on 08-26-2008 6:37 AM
i need to draw based on this condition
in main window i had written this code
IF &PAGE& EQ 1.
IF &PAGE& = &SAPSCRIPT-FORMPAGES(C)&.
BOX XPOS '0'CM YPOS '0'CM HEIGHT '4'CM WIDTH '17.40'CM FRAME 10 TW
&ITAB-POSNR&,,&ITAB-MATNR&,,&ITAB-FKIMG&,,&ITAB-VRKME&,,&ITAB-NETWR&
ELSE
BOX XPOS '0' CM YPOS '0'CM HEIGHT '7.30'CM WIDTH '17.40'CM FRAME 10 TW
&ITAB-POSNR&,,&ITAB-MATNR&,,&ITAB-FKIMG&,,&ITAB-VRKME&,,&ITAB-NETWR&
ENDIF.
ENDIF.
IF &PAGE& NE 1.
IF &PAGE& = &SAPSCRIPT-FORMPAGES(C)&.
BOX XPOS '0' CM YPOS '0'CM HEIGHT '12'CM WIDTH '17.40' CM FRAME 10 TW.
&ITAB-POSNR&,,&ITAB-MATNR&,,&ITAB-FKIMG&,,&ITAB-VRKME&,,&ITAB-NETWR&
ELSE.
BOX XPOS '0' CM YPOS '0'CM HEIGHT '16.80'CM WIDTH '17.40'CM FRAME 10 TW
&ITAB-POSNR&,,&ITAB-MATNR&,,&ITAB-FKIMG&,,&ITAB-VRKME&,,&ITAB-NETWR&
ENDIF.
ENDIF
but when i debug
&sapscript-formpages& value always coming current page number that is value of &page&
Hi sunil,
http://help.sap.com/saphelp_45b/helpdata/en/6c/897415dc4ad111950d0060b03c6b76/content.htm
Regards,
Sravanthi
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
hi amit
i defined one dummy window header which is type variable in that
DEFINE &VAL& = &SAPSCRIPT-FORMPAGES(C)&
but when i debug it starting debugging from main window
val = ' '
moreover it giving same value even in variable window
val = 1 in first page var =2 in second page.
help me in this regard
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
i am checking this condition in main window
if cant check this condition then how to draw the box.
based on this condition
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
but when i debug
&sapscript-formpages& value always coming current page number that is value of &page&
What is the window type where you wnat to see total no of pages?
remember it should window type final.
check it.
Amit.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
85 | |
10 | |
10 | |
9 | |
7 | |
6 | |
5 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.