hi
i have value in string separated by : something like this
11:3:4
2:2
4:2:2:2:2
3:1
.....
I must add value from row. What is the beter way ? I don't now how many value is separated in one row by :
thx for a hint.
|
|
This website is not affiliated with, sponsored by, or approved by SAP AG.
add in the stringModerators: thx4allthefish, Snowy, Gothmog, YuriT
6 posts
• Page 1 of 1
add in the stringhi
i have value in string separated by : something like this 11:3:4 2:2 4:2:2:2:2 3:1 ..... I must add value from row. What is the beter way ? I don't now how many value is separated in one row by : thx for a hint.
Re: add in the string
I am afraid your question is not quite clear. Do you mean just add a value to the end of the string ? If so then use CONCATENATE. If that is not what you mean then you will need to provide more detail and an example. Cheers, Grogan
Award cash if useful.
Re: add in the stringUse SPLIT at ':' into a table for both the source strings and then loop around the resulting tables concatenating them back into a single string.
Re: add in the stringYes, I want add value from one row to variable.
for example: data: i_var type i. table ztest have column name test1. value test1: row 1 have value - 11:3:4 row 2 - 2:2 row 3 - 4:2:2:2:2 row 4 -3:1 .... result form test1 i_var: row 1 - 18 row 2 - 4 row 3 - 12 row 4 - 4
Re: add in the stringSo, as Rich said, for each row use SPLIT row AT ':' INTO TABLE itab, the sum the resulting table's rows.
68 74 74 70 3a 2f 2f 74 69 6e 79 75 72 6c 2e 63 6f 6d 2f 62 64 6f 37 6d 77 67
6 posts
• Page 1 of 1
Who is onlineUsers browsing this forum: Yahoo [Bot] and 11 guests |
|