cancel
Showing results for 
Search instead for 
Did you mean: 

Request for URL Link in SmartForm

former_member348740
Participant
0 Kudos

Hi Experts,

I am working on ECC5.0. I am developing PO smrtform and got a requirement to have HTML links in Smartform Layout.

Example Scenario: I have html link as follows for item number 1 details in PDF format. Whe I copy and paste the following link I am able to see PDF document.

http://sapuxdev.abcd.com:8085/sap/ebp/docserver/100/po%20attachment%20oss%20note.pdf?attkget&KpId=49...

Kind Note: This number "49934B44F040744CE1000000AC1D061F" is dynamic (this is changed based on Item number in a PO)

I want to store the above link in a variable called Item1_Details and want to display in smartform with the varible name. Whenever I click on variable in smartform the pdf file needs to be opened in new web browser.

Kindly let me know is there any solution for my problem.

Thanks a lot in advance for your help.

Thanks,

Sudarsan

Accepted Solutions (0)

Answers (3)

Answers (3)

Former Member
0 Kudos

Hi Koyya,

This link may guide to Request for URL Link in Smart Form

http://help.sap.com/saphelp_nw70/helpdata/EN/6c/28923f114011d5b675006094192fe3/content.htm

Regards,

Sravanthi

former_member348740
Participant
0 Kudos

Hi Sravanthi,

Thank you so much for your response.

I have read that help. But, help gave that how we can display the Smartform in HTML Browser (if I understodd correctly).

I want to disply a variable which stores the HTML link to store PO attachments and the attachment file should be opened when I click on variable from displayed Smart Form (PO Output).

Please let me know if you / any one has an idea to get the solution for the above problem.

Thanks,

Sudarsan

Former Member
0 Kudos

create ur url in a text say v_url, now display it using characterformat <%W>

Former Member
0 Kudos

Hi

If you need to create a static link only then specify in Jsp page

If the link is dynamic and also depends on some numbers It is always recommended to put the Link Or Url in the jsp dyn page or some java classess instead of jsp page.

below is the code you can use for that.

IPortalComponentRequest request =

(IPortalComponentRequest) rendererContext.getRequest();

IPortalComponentURI solnDetailsUriObj =

request.createPortalComponentURI();

solnDetailsUriObj.setContextName("specify the link or url")

String solnDetailsUri = solnDetailsUriObj.toString();

Link solutionLink = new Link("solutionLink");

Now you can use the link assigned dynamically to any thing.

Try this link also.

[http://help.sap.com/saphelp_nw04s/helpdata/en/45/1bc575ba064574e10000000a114a6b/content.htm]

Hope this will help

Regards

Hareesh

Former Member
0 Kudos

Hi Koyya,

This PDF executes the smart form through abap webdynpro,

https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/f0de1eb8-0b98-2910-7996-8a3c2fcf...

Regards,

Sravanthi

former_member348740
Participant
0 Kudos

Hi Experts,

Thanks a lot for your response.

I am looking for displaying HTML URL in smartform. We are storing PO attachment documents in HTML URL Link (content Server) in SRM. We want to have the Same attachment from ECC5.0 (Back End). PO data is replicated into backend, but we are not able to replicate the PO attachments into backend from SRM becuase we dont have content server in backend to store attachments.

Do you have any idea how I can place html link in smartform with varible name and when I click on varible name in smartform the attachment needs to be opened from webbrowser (like internet explorer).

Thanks,

Sudarsan