cancel
Showing results for 
Search instead for 
Did you mean: 

wat is &PNO&

Former Member
0 Kudos

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

Accepted Solutions (0)

Answers (3)

Answers (3)

former_member203305
Active Contributor
0 Kudos

PNO = page number.

Regards

former_member181962
Active Contributor
0 Kudos

YOu have to use the Define statement in SAP Script editor.

like this:

/:define &PNO& = ' '

Regards,

Ravi

Former Member
0 Kudos

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.