on 10-01-2007 7:17 AM
Hi,
i need to print standard text in scirpt in text window. text name is sales order number which i'm getting form &vbdka-vbeln& ie 90000049 but vbeln interally number stores as 0090000049. when i'm using &vbdka-vbeln& am getting 90000049 in script editor. how to add leading two zeros in script text editor plss let me know its very urgent.
Regards
Munna
in SAPScript conversion routines takes place automatically, so for example &vbdka-vbeln& 90000049 even it is 0090000049.
To avoid this conversion routines take place automatically, do it like this &vbdka-vbeln(K)& it will display the output like this 0090000049.
Close the thread once your question is answered.
Regards,
SaiRam
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
use FM CONVERSION_EXIT_ALPHA_INPUT
and then pass the value to FM READ_TEXT or INCLUDE
whichever way u want 2 do from above 2
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
first u go to t code SO10 create the u r own text then call same text in u layout.
in program u need the conversion to leading zero suppression u can use the function module like CONVERSION_EXIT_ALPHA_INPUT u pass the input parameter as sales order no like VBAK-VBELN then out as u r parameter . i think it will help full for u.
Reward is use full.
patil
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
In script editor we can only suppress zeros.
Use the Convertion Alpha Input in Subroutine or just
manually add '00' in front of the field to be displayed.
Reward if useful.....
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
You have to call a ABAP routine from the SAP Script & in the routine you need to call the FM: CONVERSION_EXIT_ALPHA_INPUT to pad the leading zeros.
Hope this helps.
Best Regards, Murugesh AS
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Its hard to achieve with INCLUDE TEXT instead write a subroutine and there use READ_TEXT. Append Zeros and return the value back to script.
Regards,
Amit
Reward all helpful replies.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
88 | |
10 | |
10 | |
9 | |
7 | |
7 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.