on 02-12-2011 12:11 PM
Hello Gurus,
I am new in SAP, i have a question i am making an appointment letter in SMARTFORMS , in global declaration (initialization) i am using a select query
SELECT SINGLE BET01 FROM PA0008 INTO G_BET01 WHERE PERNR = WA_PERNR.
where BET01 is the Amount field which is getting printed in the smart form but its takes 5 to 6 character blank spaces in the printing time, i want to truncate this space (remove this space ) in the print time , please tell me how to remove this space , the field size is 13 , how can i reduce the field size in my smartform query. please help . G_BET01 is a variable
Welcome to SDN.
Display amount field as shown in the below example. Make sure you change your editor.
EX: &AMOUNT(C)&
Regards,
SaiRam
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
thankyou so much , i just got the answer half an hour ago , i condense it "&G_BET01(12C)&" by editing the field "&G_BET01" , and its working for me , bu againt thankyou so much for the reply.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Maybe you can use this.
DATA: d_char(15).
WRITE G_BET01 TO d_char CURRENCY 'XXX'.
'Then you can remove the spaces using :
CONDENSE d_char no-gaps.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
92 | |
11 | |
10 | |
9 | |
9 | |
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.