Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Sapscript Forms

Former Member
0 Likes
529

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

1 REPLY 1
Read only

Former Member
0 Likes
432

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