on 01-21-2008 1:07 PM
Hi,
i need to enforce a position after the decimal point in an SAPScript Form.
The Form is MEDRUCK_RV and the field ist RM06P-PRMG1.
I tried to enforce it with RM06P-PRMG1(Z9.1) but it doesn't work.
I need to cut the left-hand zeros and display one position after the decimal point.
Can someone help?
Hi,
Seems its a character field . thats why may be it did not work. use some numeric variable.
Regards,
Nageswar
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
Try this.
DATA : DFORMAT TYPE XUDCPFM,
L TYPE I.
SHIFT RM06P-PRMG1 LEFT DELETING LEADING '0'.
SELECT SINGLE DCPFM FROM USR01
INTO DFORMAT WHERE BNAME = SY-UNAME.
IF SY-SUBRC EQ 0.
IF DFORMAT EQ 'X'.
SEARCH RM06P-PRMG1 FOR '...'.
ELSE.
SEARCH RM06P-PRMG1 FOR ','.
ENDIF.
ENDIF.
IF SY-FDPOS NE 0.
L = SY-FDPOS + 2.
RM06P-PRMG1 = RM06P-PRMG1+0(L).
ENDIF.
Thank You,
Saritha
hm,
i will try this.
thanks!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Could nobody help me?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
85 | |
10 | |
10 | |
10 | |
7 | |
6 | |
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.