on 08-12-2009 8:31 AM
Hi all,
I'm facing a issue with the extra page which is not needed in the output of a script.
when the data has got line items which exactly fits in the page, there is an extra page coming which is to be avoided.
For instance, If the data has got 10 line items which exactly fits in first page, 2 pages are coming without any data in second page.
Any pointers on this would be of great help.
Regards,
Vamsee.
Hi,
Just make sure that there is no blank line after the line item variables are entred in Sapscript editor.
/E ITEM_LINE
P1 &WA_ITAB-MATNR&,,&WA_ITAB-ERSDA& " Line items variables
" -----------> see that no blank line here
Regards
Bala Krishna
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Bala Krishna,
There are no blank spaces after the line items in the script,but some fields are being called through performs in the script as show below:
Y7,,&IL_ITEM_DEL(3)&,,&TVBDPL-ARKTX&,,&QKEY&,,&MEHI&,,
=<A1>&TVBDPL-LFIMG(CT10.0)&</>,,&ITEM_BACKORDER(CT10.0)&,,
/:DEFINE &CKEY& = &TVBDPL-MATNR&
/:PERFORM GET_KENSA IN PROGRAM ZJPV0167
/:USING &CKEY&
/:CHANGING &RKEY&
/:ENDPERFORM
Y7&RKEY&
Is this way of calling fields is causing the extra page??
Thanks in advance,
Vamsi.
Hi,
Just check what does the value &RKEY& is holding, whether is it displaying on output, and what what location, see that no blank lines before the DEFINE statement.
or just copy the whole statements from DEFINE upto Y7&RKEY&, to just above the item variables and see the output. Just comment the down lones and paste them above.
See below
/:DEFINE &CKEY& = &TVBDPL-MATNR&
/:PERFORM GET_KENSA IN PROGRAM ZJPV0167
/:USING &CKEY&
/:CHANGING &RKEY&
/:ENDPERFORM
Y7,,&IL_ITEM_DEL(3)&,,&TVBDPL-ARKTX&,,&QKEY&,,&MEHI&,,
=<A1>&TVBDPL-LFIMG(CT10.0)&,,&ITEM_BACKORDER(CT10.0)&,,
Y7&RKEY& "--> is this continuoes of above line? if so remove the Y7 and add =
Regards
Bala Krishna
Edited by: Bala Krishna on Aug 12, 2009 3:08 PM
Moved to correct forum. Please take care in future.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
This message was moderated.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
87 | |
10 | |
10 | |
9 | |
7 | |
7 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.