cancel
Showing results for 
Search instead for 
Did you mean: 

printing of continuous similar pages in a script

Former Member
0 Kudos

hi experts,

i have customized a script, the script contains only one page data. but i want to print the same script with small header content change for 5 times in one execution..

thanks & regards

deepika

Accepted Solutions (1)

Accepted Solutions (1)

former_member181995
Active Contributor
0 Kudos

Call OPEN_FORM in loop or DO ENDDO statements.

Former Member
0 Kudos

hi,

i have modified standard script. should i change driver program?

regards

deepika

former_member181995
Active Contributor
0 Kudos

Yes Since you have requirement to call script 5 times than you must change Driver Program also. but just copy Driver program into Z program and start change into this.

Former Member
0 Kudos

Yes u need to do the changes mentioned above by modifying ur driver program.

Amit, so u are following the thread currenlty so striking of my answer as its same what u said.

кu03B1ятu03B9к

Edited by: kartik tarla on Mar 2, 2009 11:25 AM

Former Member
0 Kudos

Hi,

i have copied the standard program into zprogram. where should i assign the zprogram.

regards

deepika

former_member181995
Active Contributor
0 Kudos

>

> i have copied the standard program into zprogram. where should i assign the zprogram.

Exactly where prior standard program were assigned in NACE or somewhere else. You may ask Functional person for doing this.

Answers (2)

Answers (2)

Former Member
0 Kudos

I thank all of you for sharing your knowledge.

thanks&regards

deepika.

former_member196280
Active Contributor
0 Kudos

Well,if it is one page... loop your open_form 5 times and change the header line..

Ex:

START_FORM.

DO 5 times.

OPEN_FORM.

Case sy-index.

When 1.

elem ='100'.

When 2.

element = '200'.

When 3.

elem ='300'.

When 4.

elem = '400'.

When 5.

elem = '500'.

WRITE_FORM

    • main window pass elem

CLOSE_FORM.

ENDDO.

***Make sure you place your corresponding header under each element.

Above is a sample example code...

Regards,

Sairam

Former Member
0 Kudos

Hi,

iam getting 5 pages but the main window data is displayed in only one page i.e. in first page.

regards

deepika

Former Member
0 Kudos

Hi,

Check if u have given nextpage as first page.

Former Member
0 Kudos

with in loop you need to call main window text element also 5 times.....