Application Development 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: 

Scripts

Former Member
0 Kudos
112

Hi,

I have a BULK ORDER ACKNOWLEDGE Script in which for every Sales Order Item it is printing the delivery date status for each sales item , which should be display only once before the terms and conditions on last page ..may i know wht r the steps & changes in print prog and form i have to make plz ..

thxs,

vind.

6 REPLIES 6

Former Member
0 Kudos
80

Hi,

Print Footer notes only on the last page

Command to used in your sapscripts :-

/: IF &NEXTPAGE& EQ 0

whatever footer you want.

/: ENDIF

check the thread.

reward if helpful.

regards,

keerthi.

0 Kudos
80

store the data in internal table itab.

in script create two text elements in main window.

/E:data

&itab-data&

/E:footer

/: write terms and condition.

in main program.

loop at itab.

CALL FUNCTION 'WRITE_FORM'

EXPORTING

ELEMENT = 'DATA'

WINDOW = 'MAIN'

.

CALL FUNCTION 'WRITE_FORM'

EXPORTING

ELEMENT = 'FOOTER'

WINDOW = 'MAIN'

.

reward points if you find this helpful.

Former Member
0 Kudos
80

hi,

in the last page of your form, just check the condition.

/: IF &NEXTPAGE& EQ 0

write the footer text..

/: ENDIF

Regards,

Richa

Former Member
0 Kudos
80

Vind,

Belive you are using Custom print program and script.

VBDKA-LFDAT will be the delivery order and you can check this values in the main window before you write your lineitem. That way you can validate your lineitems and print.

rgds,

TM

Former Member
0 Kudos
80

Hi Vinod,

Use the Main Window in the page. In the Main Window you have something called

<b>/: Bottom

&sy-datum&

/: Endbottom</b>

When you use this your date will be the last value which will be displayed. If you use this there is no need to check for any condition like next page or call a function module. What it does is, it writes all the contents in Main Window and after writing all that your Bottom .. Endbottom will be triggered so your value within Bottom .. Endbottom will be displayed.

Hope this solves ur issue.

Reply if you have any problem regarding the same.

Regards,

Tushar

Former Member
0 Kudos
80

hi vind,

/: IF <b>&NEXTPAGE& = 0</b>

GIVE YOUR CODE HERE

/: ENDIF

check this thread...