Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

SAP SCRIPT NEXT PAGE

Former Member
0 Likes
1,102

Dear ALL,

I have created sapscript with FIRST and NEXT pages.And also mentioned in the PAGES tab, page is FIRST and next page is NEXT.When the data is long in the first page why the data is not going to NEXT page.What i need to do to get the data into next pgae? This is my below logic. But the data is not going to next page. Can yu anyone guide me what is the problem in my logic.

Urgent.

/E ITEM

/

IT ,,&S_OUT-MAKTX+0(20)& &S_OUT-CHARG& &S_OUT-MECH1&

= &S_OUT-MECH2& &S_OUT-MECH3&

= &S_OUT-MECH4& &S_OUT-MECH5&

= &S_OUT-MECH6&,,

= &S_OUT-CHEM1&,, &S_OUT-CHEM2&,, &S_OUT-CHEM3&,,

= &S_OUT-CHEM4&,, &S_OUT-CHEM5&

= ,, &S_OUT-CHEM6&,, &S_OUT-CHEM7&

IT ,,&S_OUT-MAKTX+20(40)&

/E E2

/: NEW-PAGE NEXT

IT ,,&S_OUT-MAKTX+0(20)& &S_OUT-CHARG& &S_OUT-MECH1&

= &S_OUT-MECH2& &S_OUT-MECH3&

IT ,,&S_OUT-MAKTX+20(40)&

Regards,

Karthik.

6 REPLIES 6
Read only

Former Member
0 Likes
928

Hi,

Please refer to this thread,

regards,

Priya.

Read only

0 Likes
928

Hi priya,

I have written this below logic it is not going to next page when the data is full in first page. Please let me know what is the problem in my logic.

/E ITEM

/

IT ,,&S_OUT-MAKTX+0(20)& &S_OUT-CHARG& &S_OUT-MECH1&

= &S_OUT-MECH2& &S_OUT-MECH3&

= &S_OUT-MECH4& &S_OUT-MECH5&

= &S_OUT-MECH6&,,

= &S_OUT-CHEM1&,, &S_OUT-CHEM2&,, &S_OUT-CHEM3&,,

= &S_OUT-CHEM4&,, &S_OUT-CHEM5&

= ,, &S_OUT-CHEM6&,, &S_OUT-CHEM7&

IT ,,&S_OUT-MAKTX+20(40)&

/: IF &PAGE& = 1

/: NEW-PAGE

/: ENDIF.

Regards,

Karthik.

Read only

0 Likes
928

Hi Karthik,

Use

New-page <page name>

regards,

Priya.

Read only

Former Member
0 Likes
928

HI..,,

These Text elements should be in the MAIN WINDOW ... these should not be in Variable windows ... If these are in Variable windows then u wont get a new page...

The window in which u have written this code, should be the main window.. i mean while creating a window u will give the type of the window as MAIN....

After that... in ur main program the WRITE_FORM should be..

call function 'WRITE_FORM'.

EXPORTING

ELEMENT = 'ITEM'

FUNCTION = 'SET'

TYPE = 'BODY'

WINDOW = 'MAIN'

*IMPORTING

.

AND THIS CODE SHOULD BE.... LIKE

<b>/: IF &PAGE& = 1

/: NEW-PAGE NEXT

/: ENDIF.</b>

if the problem still EXISTs let me know ...

regards,

sai ramesh

Read only

0 Likes
928

Hi Sai,

Still I am facing the problem. Can yu see my below logic I applied yur code onle. Can yu let me know. It is very urgent.

/E ITEM

/

IT ,,&S_OUT-MAKTX+0(20)& &S_OUT-CHARG& &S_OUT-MECH1&

= &S_OUT-MECH2& &S_OUT-MECH3&

= &S_OUT-MECH4& &S_OUT-MECH5&

= &S_OUT-MECH6&,,

= &S_OUT-CHEM1&,, &S_OUT-CHEM2&,, &S_OUT-CHEM3&,,

= &S_OUT-CHEM4&,, &S_OUT-CHEM5&

= ,, &S_OUT-CHEM6&,, &S_OUT-CHEM7&

IT ,,&S_OUT-MAKTX+20(40)&

/: IF &PAGE& = 1

/: NEW-PAGE NEXT

/: ENDIF

Regards,

Karthik.

Read only

0 Likes
928

HI..,

ur code is correct man...i hope these are in the Main window !!!

or the problem may be in the IF condition,..., is &page& eq 1 there ???

<b>

Paste ur print program code here ... </b>

regards,

sai ramesh