cancel
Showing results for 
Search instead for 
Did you mean: 

Force NEXT page

Former Member
0 Kudos

Hi to all,

can anyone say me how to force(call) next page.

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi,

Use Command Node to call the Page in the smartfrom where ever you required.

Former Member
0 Kudos

THANKS , IN SCRIPT CAN U TELL ME THAT

😕 GOTO &PAGE_LAST&

IS IT CORRECT!

Former Member
0 Kudos

Hi,

Use the command line

/: NEW-PAGE <PAGE_NAME>

page name over here can be the last page name as you need i hope

it will trigger the new page

Regards

Sarves

Former Member
0 Kudos

Hi,

U can also use 'CONTROL_FORM' FM in the program to trigger a new page...

CALL FUNCTION 'CONTROL_FORM'

EXPORTING

COMMAND = 'NEW-PAGE'.

Hope it helps!!

Rgds,

Pavan

Former Member
0 Kudos

hi,

thanks ,

but i dont have the driver program , i have only script which is called by ME22N .

and i dont want a new page , i want to call a page (eg page_last)

for Instance consider,

if frgke = 'l'

i want to call the page "page_last"

can u help me!

Former Member
0 Kudos

HI,

There is no command to call the last page. If you want to call a page which comes in last if the condition satisfies then mention the new-page command with last page name.

/: IF FRGKE = 'I'
/: NEW-PAGE <LAST-PAGE> "--> Here you need to give the last page name.
/: ENDIF

Regards

Sarves

Former Member
0 Kudos

i guess we are/were misunderstanding you.

May it be that you just want to call a page which you have created as seperate page in your Scipt/Smartforms?

Former Member
0 Kudos

hi,

Ya , in Script i want to call a page at last after printing all the line items.

Former Member
0 Kudos

So this is something quite different

at first you need to create that seperate page in your sap-script form.

it´s getting a little complicated if you aint have control over you driver program but still will work out.

Search yourself a textelement in your script which is getting triggered as last one.

probably something like

/E supplement_text

in this text element program a jumpoff to an external perform coding like:


/: PERFORM PROCESS_LAST_PAGE in program XXX
/: ENDPERFORM

this calls the routine PROCESS_LAST_PAGE in program XXX, where XXX should be some z-program of you.

The routine in this program should have following form:


FORM PROCESS_LAST_PAGE TABLES 
                                     intab STRUCTURE itcsy
                                    outtab STRUCTURE itcsy.

endform

in this routine you can do a write form on a text element on your "last" page, this should trigger it.

Former Member
0 Kudos

Thanks ,

i have tried that but failed ,

any sugession plz!

Former Member
0 Kudos

Aye sir, instead of triggering a write form in that routine you could trigger the output of a whole new form, which is then to be you last page.

Answers (0)