on 04-21-2009 2:53 PM
Hi experts ,
i am new to sap script and smartform.now i am modifying the smartform.
In existing sap script, page number window editor has following code
/: PERFORM GET_PAGE3 IN PROGRAM ZSUBPROG.
/: USING &W_PAGE1&
/: CHANGING &PNO&
/: ENDPERFORM.
ZP &PNO&
if the user enter page no. in selection screen as 9999, the output will be 9,999 thats y they are using above perform. but i have seen the code there is no data decleration for PNO in both programs.
Wat is PNO?.
in driver program.
Data: w_page(5) type n.
PARAMETERS p_page(4) type n OBLIGATORY DEFAULT '1'.
w_page = p_page.
2, Above same code i have written in smart form page no. window editor, it is not accepting the PNO it show error as PNO is unknown field.
3,Wat is PNO? (is it system variable for script)
4. Wat should i give for page no. in smartform instead of PNO?.
thanks
PNO = page number.
Regards
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
YOu have to use the Define statement in SAP Script editor.
like this:
/:define &PNO& = ' '
Regards,
Ravi
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
HI,
PNO should be declared in the driver program of the sapscript or declared in the sap script using DEFINE statement.
In the smartform You use this variable &SFSY-PAGE& to get the page number.
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 | |
23 | |
11 | |
9 | |
8 | |
5 | |
5 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.