cancel
Showing results for 
Search instead for 
Did you mean: 

Adding url into smart form

Former Member
0 Kudos

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.

Accepted Solutions (1)

Accepted Solutions (1)

former_member383880
Discoverer
0 Kudos

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

Former Member
0 Kudos

Thanks Khusro, but how to tell the smartform that &abc&. is not a variable

regards,

Sherif

Edited by: Sherif Eid on Jul 2, 2009 12:29 PM

former_member383880
Discoverer
0 Kudos

The easiest way would be to create a variable

url type string

and put your complete url there

and then assign this variable in the text block

&url&

Former Member
0 Kudos

Thanks it is working fine now

regards,

Sherif

Answers (1)

Answers (1)

Former Member
0 Kudos

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

Former Member
0 Kudos

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