2007 Aug 27 7:09 AM
Hi,all
There is a field, &data&
value ' material A'
I want to dispaly it as
'material A'
how to remove the blanks before this line?
I tried to use &data(C)& but failed.
Would you please help me ?
Thanks
2007 Aug 27 7:34 AM
Hi,
Use Statement Shift <Field> Left Deleting Leading spaces in abap editor before calling sap script.
Hope this information will helps you.
With regards,
K K V
Hi,
Use Statement Shift <Field> Left Deleting Leading spaces in abap editor before calling sap script.
Hope this information will helps you.
With regards,
K K V
2007 Aug 27 7:12 AM
Yang,
Create a paragraph format in a smartstyle as a left-aligned and use this paragraph in the text editor of the script for all the variable which you want to be left aligned.
SMARTSTYLE is a tcode.
K.Kiran.
2007 Aug 27 7:20 AM
no, I means there are many space in &data&,5 spaces before characters.' material', I want to remove them.
Message was edited by:
yang
Message was edited by:
yang
2007 Aug 27 7:27 AM
if it is a character filed use
condense data.
or use:
shift data left deleting leading space.
if variable is not character type, move the variable to char type variable and then use the above statements...
plz reward points if it helps
2007 Aug 27 7:30 AM
Yes, I tried to do that
I write the in SAP Script Form like this : &data(C)&
(C) means condense, right? but still faild.
2007 Aug 27 7:35 AM
actually i dont have idea regarding sap script...in smartforms we create program lines and use the statements i mentioned and den dispplay varible...im sure u can also create program lines and do da same wid sap script
2007 Aug 27 7:34 AM
Hi,
Use Statement Shift <Field> Left Deleting Leading spaces in abap editor before calling sap script.
Hope this information will helps you.
With regards,
K K V
2007 Aug 27 8:01 AM
Yes, It's good idea.
I still want to know if it can be controlled in SAP Script Form(SE71)
2007 Aug 27 11:03 AM
Hi,
Use the statement &symbol (C)& in your script editor.
The C option replaces each string of space characters with a single space and shifting "words" to the left to close gaps. Leading spaces are completely removed.
Hope the above information will helps you.
With Regards,
K K V
| User | Count |
|---|---|
| 3 | |
| 2 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |