2007 Dec 28 4:58 AM
Hi,
I am writting a code for the below logic..please help me:
IF nast-kschl = abc and werks = 1000 or 1010 or 1100 or 4000.
WRITE 1000 TO werks RIGHT-JUSTIFIED.
please tell me how???
Thanks in advance...
hi,
kindly clarify from where you are takeing werks because werks is not with NAST table.
one more question, is the change required to be effected in u r report or in database.
regards,
pavan
2007 Dec 28 5:02 AM
HI,
YOu can do as below :
IF( nast-kschl = abc and ( werks = 1000 or werks = 1010 or werks = 1100 or werks = 4000 ) ).
WRITE 1000 TO werks RIGHT-JUSTIFIED.
or
Create a range for it
ranges : gr_werks for table-werks.
gr_werks-sign = 'I'.
gr_werks-option = 'EQ'.
gr_werks-low = '1000'.
append gr_werks.
add reaminging values.
and check the condition as below :
IF( nast-kschl = abc ) and ( werks in gr_werks.)
WRITE 1000 TO werks RIGHT-JUSTIFIED.
Thanks,
Sriram Ponna.
2007 Dec 28 5:06 AM
IF nast-kschl = 'ABC' and ( werks = 1000 or werks = 1010 or werks = 1100 or werks = 4000 ).
werks = 1000.
ENDIF.
Awrd Points if useful
Bhupal
2007 Dec 28 5:06 AM
Hi,
DO like this
IF nast-kschl = abc.
if ( werks = 1000 ) or
( werks = 1010 ) or
( werks = 1100 ) or
( werks = 4000).
WRITE 1000 TO werks RIGHT-JUSTIFIED.
endif.
endif.
Regards,
Prashant
2007 Dec 28 5:07 AM
hi,
kindly clarify from where you are takeing werks because werks is not with NAST table.
one more question, is the change required to be effected in u r report or in database.
regards,
pavan
| User | Count |
|---|---|
| 6 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |