on 08-05-2011 6:21 AM
Hi Sarvanan,
As per your suggestion, opened a new thread
How can we pass variables instead of hard coded values in below url,
http:/xxxxxxxxxx/sap/bc/gui/sap/its/webgui?~transaction=*ZHR_PAY_SLIP PNPXABKR=01;PNPTIMRA=X;PNPPABRP=01;PNPPABRJ=2011;PNPPERNR-LOW=4
am calling this url in external window, as this url placed in quotes, so it wont takes variable values.
Thanks and Regards
Srinivas
Hello Srinivas,
If I understand your requirement you have values of PNPXABKR, PNPPABRP etc.. in a variable and you want to append them to the URL.
I think simple string concatenation will solve your problem. Isn't it? or did I overlook your requirement?
data lv_PNPXABKR type char2.
data lv_PNPPABRP type char2.
data lv_url type string.
lv_url = 'http:/xxxxxxxxxx/sap/bc/gui/sap/its/webgui?~transaction=*ZHR_PAY_SLIP '.
concatenate lv_url 'PNPXABKR=' lv_PNPXABKR ';' 'PNPPABRP=' lv_PNPPABRP into lv_url respecting blanks.
concate
BR, Saravanan
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Yes exactly, but let me explain in a bit detail.
For example i have one field PNPPERNR and its values stored in variable in V_PERNR ( it will contain value as 1005 ),
So in URL if i pass value of PNPPERNR as V_PERNR, it dont take the internal value (1005 ), it will just take V_Pernr as text.
So here i am unable to pass variables.how can we?
For example
http:/XXXXXXX/sap/bc/gui/sap/its/webgui?~transaction=*PA30 RP50G-PERNR=4,
iF YOU EXCUTE ABOVE , IT WILL OPEN PA30 AND IN PERNR PLACE IT WILL TAKE 4.
say v_pernr = 4.
http:/XXXXXXX/sap/bc/gui/sap/its/webgui?~transaction=*PA30 RP50G-PERNR=V_PERNR
IF you excute above, it wil open PA30 and and in pERNR place it will take just V_PERNR. not 4.
Hope you understand my query.so how can we pass variable in urls?
Regards
Srinivas
..
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
93 | |
10 | |
10 | |
9 | |
9 | |
7 | |
6 | |
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.