cancel
Showing results for 
Search instead for 
Did you mean: 

Problem in Sapscript NEW-PAGE

10-16-2009 4:31 PM
2044 views 9 comments Go to solution
0 Likes
Subscribe

Hi,

I need to create a new page for the sapscript of Purchase Orden.

the first page goes to the first page (FIRST).

The new page is called SECOND and it contains just text, such as Terms & conditions.

The problem is that i couldnt be able to use the statement :


/: NEW-PAGE SECOND

It doesnt go to the second page.

I added it at the end of the MAIN windows of the FIRST page.

I also added it at the end of the TOTAL windows of the FIRST page, because that windows is the last one.

What am i doing wrong? I think that it should be worked.

Please some help.

0 Likes

Accepted Solutions (1)

Accepted Solutions (1)

Business_Solutions1
Active Participant
0 Likes

Hi,

If, in a NEW-PAGE command, you specify a page not contained in the form, the specification is ignored.

Please check for typing errors.

Rgds,

Suzy

Former Member
0 Likes

Hi guys

the SECOND page is created and it contains texts, just texts. In addition, that page is contained in the sapscript.

What i was able to do until now, was create a smartform and called it from the sapscript. It is working well.

But i wanna know why my sentence doesnt work in the sapscript.

In everywhere says that using that command should be work, but it doesnt.

Regards

Business_Solutions1
Active Participant
0 Likes

Hi,

Have you tried to debug the SAPscript? (SE71 - utilities - activate debugger)

Rgds,

Suzy

Former Member
0 Likes

sure.

this is the last option that i have on mind.

Thanks

P.D: it gives me a sy-subrc = 4. I dont know why, but i am giving up. Maybe the easy way is to do that i did. Unless somebody gives me a better idea.

Former Member
0 Likes

Hi

It's not very important where u've insert the command NEW-PAGE, but it's important the command is inserted in a text element of the MAIN.

So when do u call this text element in order to skip to next page?

Max

Former Member
0 Likes

Hi master.

Why text element r u talking about? i havent create text element.

what do i have to do? please some help.

Regards

Former Member
0 Likes

Hi

Your MAIN should be:

/E  NEW_PAGE
/:   NEW-PAGE SECOND

So your driver program should call the fm WRITE_FORM:

CALL FUNCTION 'WRITE_FORM'
       EXPORTING
            WINDOW  = 'MAIN'
            ELEMENT = 'NEW_PAGE'.

Or u can also use the fm CONTROL_FORM instead of the code above:

CALL FUNCTION  'CONTROL_FORM'
      EXPORTING  COMMAND   = 'NEW-PAGE SECOND'
      EXCEPTIONS UNSTARTED = 1
                 UNOPENED  = 1.

Max

Former Member
0 Likes

Thank u very much.

Answers (1)

Answers (1)

Former Member
0 Likes

This message was moderated.