2008 Aug 27 11:12 AM
Hi,
How do I suppress zero values in SAP Script?
Also, how can I have more than 1 formatting options for a program symbol in SAP Script?
Thanks.
2008 Aug 27 11:17 AM
there are 2 possibilities.
1. format option (I).
e.g.
A1 &MARA-MATNR(I)&
will only display on form if mara-matnr is not initial.
2. with comment
e.g.
A1 &'MaterialNo. : 'MARA-MATNR&
this is even better. if you have a mara-matnr lets say 'RF23443' the output would be:
MaterialNo. : RF23443
if your mara-matnr is initial there will be nothing in your outpuit since this format option will not even output the comment once the value is blank.
ugh sorry i misunderstood you.
suppressing leading zeros will be (Z)
suppressing leading spaces will be (C).
just have a look at:
http://help.sap.com/saphelp_47x200/helpdata/de/d1/803445454211d189710000e8322d00/frameset.htm
Edited by: Florian Kemmer on Aug 27, 2008 12:17 PM
Hi,
How do I suppress zero values in SAP Script?
Also, how can I have more than 1 formatting options for a program symbol in SAP Script?
Thanks.
2008 Aug 27 11:15 AM
2008 Aug 27 11:16 AM
Hi,
In the print program use SHIFT <field name> LEFT DELETING LEADING '0'.
Thanks,
2008 Aug 27 11:17 AM
there are 2 possibilities.
1. format option (I).
e.g.
A1 &MARA-MATNR(I)&
will only display on form if mara-matnr is not initial.
2. with comment
e.g.
A1 &'MaterialNo. : 'MARA-MATNR&
this is even better. if you have a mara-matnr lets say 'RF23443' the output would be:
MaterialNo. : RF23443
if your mara-matnr is initial there will be nothing in your outpuit since this format option will not even output the comment once the value is blank.
ugh sorry i misunderstood you.
suppressing leading zeros will be (Z)
suppressing leading spaces will be (C).
just have a look at:
http://help.sap.com/saphelp_47x200/helpdata/de/d1/803445454211d189710000e8322d00/frameset.htm
Edited by: Florian Kemmer on Aug 27, 2008 12:17 PM
2008 Aug 27 11:18 AM
hiii
use Z with variable in script like
only z in capital letter.
&wa_value(Z)&
regards
twinkal
2008 Aug 27 11:18 AM
To suppress leading zero values... write 'z' in bracket beside your variable
e.g. wa_vbeln(z)
| User | Count |
|---|---|
| 4 | |
| 2 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |