‎2007 Mar 27 4:15 AM
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.
‎2007 Mar 27 4:26 AM
‎2007 Mar 27 5:09 AM
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.
‎2007 Mar 27 5:23 AM
‎2007 Mar 27 5:20 AM
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
‎2007 Mar 27 5:29 AM
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.
‎2007 Mar 27 5:38 AM
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