2008 Nov 05 4:44 AM
hi,
i have one standard text in smart form , in standard text i have data as follows:
&IDES_FORM-MSATZ(6)& &IDES_FORM-MDSHB& &IDES_FORDMSHB& &IDES_FORM&
now my requirement is : the sign for IDES_FORM-MSATZ has to be ignored, i.e. ir-respective of it being negative or positive it should always be displayed as positive.
Secondly as of now it is max 6 characters, it should allow 7..
thanks
rahul
Edited by: RAHUL SHARMA on Nov 5, 2008 5:44 AM
2008 Nov 05 5:25 AM
&IDES_FORM-MSATZ(7)& <--OUTPUTS 7 CHAR
&IDES_FORM-MSATZ(S)& <-- REMOVES -VE SIGN
&IDES_FORM-MSATZ(7S)& <--ABOVE BOTH
&IDES_FORM-MSATZ(7)& <--OUTPUTS 7 CHAR
&IDES_FORM-MSATZ(S)& <-- REMOVES -VE SIGN
&IDES_FORM-MSATZ(7S)& <--ABOVE BOTH
2008 Nov 05 4:54 AM
Hi,
USe shift keyword to delete the negative sign at the beginning of your value as shown in the simple example.
Declare the number of characters as 8 since -ve sign also holds a character.
data: a(8) value '-1234'.
shift a left deleting leading '-'.
write: a.
Cheers!!
VEnk@
Edited by: Venkat Reddy on Nov 5, 2008 10:24 AM
2008 Nov 05 5:03 AM
hi,
Put programlines before printing the value &IDES_FORM-MSATZ(6)&
and then write a code in the in the following way
if IDES_FORM-MSATZ LT 0.
IDES_FORM-MSATZ = IDES_FORM-MSATZ * -1.
endif.
to allow 7 digits
insted of &IDES_FORM-MSATZ(6)&
give it as &IDES_FORM-MSATZ(7)&
regards
prasanth
2008 Nov 05 5:25 AM
&IDES_FORM-MSATZ(7)& <--OUTPUTS 7 CHAR
&IDES_FORM-MSATZ(S)& <-- REMOVES -VE SIGN
&IDES_FORM-MSATZ(7S)& <--ABOVE BOTH
| User | Count |
|---|---|
| 3 | |
| 2 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |