cancel
Showing results for 
Search instead for 
Did you mean: 

SAP-Script last page is not printing

Former Member
0 Kudos

hi all,

iam customizing standard script MEDRUCK,

PAGE1 contains purchase order details,

PAGE2 contains static text (Terms and conditions),

every page back side i need to print PAGE2 text(i.e. terms and conditions).

for this i mentioned,

PAGE1 nextpage is PAGE2,

PAGE2 nextpage is PAGE1.

and my output is,

in First page purchase order details.

second page static text,

third page purchase order details.

Iam not getting static text in the last page.

please suggest me.

regards,

prajwala

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi,

page1 --> page2(next page)

page2 --> page1(next page)

In the driver program,

Write this code

FORM control_form .
  CALL FUNCTION 'CONTROL_FORM'
    EXPORTING
      command   = 'NEW-PAGE TERMS'
    EXCEPTIONS
      unopened  = 1
      unstarted = 2.

  IF sy-subrc NE 0.
    MESSAGE 'COMMAND CANNOT BE EXECUTED' TYPE 'I'.
  ENDIF.

Regards,

Sravanthi