on 07-01-2009 11:04 AM
Dear Developers,
I have a request and hope to get your help.
i want to put URL inside one smartform, how can i do that?
Ex.
I want to put this URL http://hostname:port/sap/bc/bsp/sap/dswp_bsp/dsmop.html?ISBSP=X&CMD=NOMI&NCMD=CRMVW&YYYY&; inside the XXX form , where YYYY is a parameter and the rest of the url fixed.
Steps,
I created a new window and created a new text block. In the body of the text, I can type whatever I want. Something like, "you have a new message, click here to open the ticket in your browser" then you can type the url - http://hostname:port/sap/bc/bsp/sap/dswp_bsp/dsmop.html?ISBSP=X&CMD=NOMI&NCMD=CRMVW this is all just plain text. then I have to enter a parameter YYYY, so I clicked the 'insert field' button, then type &YYYY&. Then back on the text, highlight the entire URL including the parameter and click the 'insert URL' button.
but I'm getting errors during activating the form, it's saying that CMD=NOMI is not defiend..
So please help.
regards,
Sherif.
Dear Sherif,
The reason for this problem is that, in smartform if you put &abc&, then smart form will consider abc as a variable
now have a looka at your URL. here &CMD=NOMI& is between && so system is looking for the variable CMD=NOMI which in your case is not defined as a variable in the smartform.
http://hostname:port/sap/bc/bsp/sap/dswp_bsp/dsmop.html?ISBSP=X&CMD=NOMI&NCMD=CRMVW
Regards,
Khusro Habib
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi, I need to add URL on my smartform too. But I do not get how you do it. Could you give me an example? Thank you
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
Assume you want to put this URL http://hostname:port/sap/bc/bsp/sap/dswp_bsp/dsmop.html?ISBSP=X&CMD=NOMI&NCMD=CRMVW&YYYY&; inside the XXX form , where YYYY is a parameter and the rest of the url fixed.
Steps,
I created a new window and created a new text block. In the body of the text, I can type whatever I want. Something like, "you have a new message, click here to open that message in your browser" then you can type the url - http://hostname:port/sap/bc/bsp/sap/dswp_bsp/dsmop.html?ISBSP=X&CMD=NOMI&NCMD=CRMVW this is all just plain text.
then I have to enter a parameter YYYY, so I clicked the 'insert field' button, then type &YYYY&. Then back on the text, highlight the entire URL including the parameter and click the 'insert URL' button.
the problem is coming because the smart form dealing with avery thing between && as a variable so it's saying that CMD=NOMI is not defiend.
to solve this problem:
i split my url into 4 parts like this url1 , url2, url3,url4.. , now i have to define the url1 to url4
url1 type string and default value is " first part of my url"
url2 type string and default value is " second ....
till url4.
now in my text block the url will be like this: &url1&&url2&&url3&&url4&&YYYY&
regards,
Sherif
User | Count |
---|---|
84 | |
24 | |
12 | |
9 | |
7 | |
6 | |
5 | |
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.