on 02-25-2010 5:54 AM
Hi all,
I want to break a text in sap script.
exp like.
sunday creditors - GR / IR CLEARING ACCOUNT
I WANT TO BREAK IT LIKE
SUNDAY CREDITORS
GR / IR CLEARING ACCOUNT
PLEASE HELP ME..
THANK YOU
Hi ,
Use formatting options like
wa_tab-fld = 'sunday creditors - GR / IR CLEARING ACCOUNT '
this is the actual data
if you want to split this data in the following way
&wa_tab-fld+0(16)& - it will print first 20 characters from 1 character (sunday creditors )
&wa_tab-fld+16(30)& - it will print 30 characters from 16th character (GR / IR CLEARING ACCOUNT)
if you give loke this
&wa_tab-fld+16& - it will print from 16th character to end (GR / IR CLEARING ACCOUNT)
Let me know if any concerns.....
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
Better you call a subroutine from the script
And use..SPLIT Function.
Like
v_string = 'sunday creditors - GR / IR CLEARING ACCOUNT '.
SPLIT v_string by '-' into table it_string.
You will get two rows in it_string which can be used to futther operation...
like ::: it_sting[0] = ''sunday creditors '.
it_string[1] = 'GR / IR CLEARING ACCOUNT'.
Thanks & Regards,
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
If you wan to break the sentence at particular Length you can the FM FORMAT_TEXTLINES by specifying the Length in FORMATWIDTH exporting parameter.
Thanks & Regards,
Vamsi.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
86 | |
10 | |
10 | |
9 | |
6 | |
6 | |
6 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.