cancel
Showing results for 
Search instead for 
Did you mean: 

regarding a requirement in scripts

Former Member
0 Kudos

hi guys,

i just got a requirement in scripts,

<b>first page</b> i need to print sales order details

<b>second page </b> sales order item details

<b>3rd 4th and 5th till 10th </b>same details i.e same item details which i have printed in 2nd page

and again in <b>11th page</b> terms and conditions

can any one suggest me, how do i accomplish this type of requirement in sap scripts

waiting for ur reply

thank you

pavan

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi Pavan,

You need to create three pages in your case.

1) FIRST page has a main window with the details of Salers order details.

Set Next page as SECOND under standard attributes for page FIRST.

2) SECOND page has a main window which needs to be filled with Line item details of sales orders.

Set Next page as SECOND under standard attributes for page SECOND.

Check for a condition in SECOND with &JOB-PAGES& = '11' then trigger a NEW-PAGE control command as NEW-PAGE LAST

which will trigger terms & conditions page.

3) Last page has a main window with terms & conditons.

Thanks,

Vinay

Answers (3)

Answers (3)

Former Member
0 Kudos

HI,

You can call different forms by using START_FORM & END_FORM Function Modules.

Follow the below mentioned procedure

call function 'OPEN_FORM'

loop at <itab>

call function 'START_FORM'

  • here you can call different pages.

call function 'WRITE_FORM'.

call function 'END_FORM'

endloop.

call function 'CLOSE_FORM'

Click the link below to know about START_FORM

http://help.sap.com/saphelp_47x200/helpdata/en/d6/0dba34494511d182b70000e829fbfe/content.htm

To Control a Form

http://help.sap.com/saphelp_47x200/helpdata/en/d6/0dba68494511d182b70000e829fbfe/content.htm

Regards,

Vara

Former Member
0 Kudos

thanks very much vinay, i did not read ur reply properly.

points will be awarded.

regards

pavan

Former Member
0 Kudos

hi vinay,

thanks for ur reply , but i did not get u exactly what u mean by -

yah i think 3 pages is enough but i got a problem:

next page of first page is second and next page of second is second only bcoz from second page to 10 th page same details to be displayed then how shud i accomodate 11th page which is terms and conditions

pls reply bk if u dunt understand

thanks

pavan