‎2012 May 04 8:29 AM
HI,
I need help. I am new to sapscript and I am using this for our payslip forms..
The loop in my print program is working well but when it comes to the preview, sapscript is displaying the ***** EARNINGS ***** twice.
Here is sample code I did in the editor. I don't know how such word is doubled when ***** DEDUCTIONS ****** is working ok.
Thanks so much in advance.
| IF &ITAB_EARNDED-TAG& = 'E' AND &ITAB_EARNDED-LINE_CNT& = ' | 1' |
***** EARNINGS *****
ENDIF
| IF &ITAB_EARNDED-TAG& = 'D' AND &ITAB_EARNDED-LINE_CNT& = ' | 1' |
***** DEDUCTIONS *****
ENDIF
IF &ITAB_EARNDED-LGART& <> '/559'
&ITAB_EARNDED-LGTXT(30)& &ITAB_EARNDED-BET01(S13R)&
ENDIF
‎2012 May 09 6:28 AM
Hi Liza,
Is your driver program Standard or 'Z' program.
If you have Z program, then place a flag check in the loop and skip if it enters second time into loop.
Regards
Pavan Kumar