on 08-20-2008 8:46 PM
Hi Guys
I have defined a global variable in the print program.
I want to pass the value of page (sapscript current page) to this variable in a text element of the script.
If i simply do like this
&gv_page& = &page&
it gives me an error, how can i achieve this?
Thanks
PS: &page& has value and &gv_page& and page are compatible variables.
Try like this:
/: DEFINE &GV_PAGE& := &PAGE&
Regards,
Naimesh Patel
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 write a perform statement to achieve this
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Sameeer,
i think you can go for PERFORM Routines ? Let me know it it is not working.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
You can use Perform Statment and send that to the driver program.
In script
/ : PERFORM send_pageno IN PROGRAM <prog>
/: USING &PAGE&
/: ENDPERFORM.
In driver program <prog> define the FORM as shown below..
DATA:
Pageno type i.
FORM <form> TABLES IN_TAB STRUCTURE ITCSY
OUT_TAB STRUCTURE ITCSY.
READ TABLE IN_TAB WITH KEY u2018PAGEu2019
CHECK SY-SUBRC = 0.
pageno = in_tab-value.
ENDFORM.
Check this link for HELP on PERFORM if necessary
http://help.sap.com/saphelp_40b/helpdata/en/d1/803279454211d189710000e8322d00/content.htm
Hope this would solve your issue.
Good luck
Narin
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
92 | |
11 | |
10 | |
9 | |
9 | |
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.