‎2014 Feb 11 6:42 AM
Hi Experts
I have developed a program in R3 and attached it in ESS where employee fill details of their PF nomination. Want to upload an attachment as pdf or image throgh ESS as supporting document of PF nomination. This attachment should be accessable by higher authorization. Please tell me the process.
Regards
Swati
‎2014 Feb 11 7:08 AM
Hi Swati,
1. Create a WebDynpro application which uploads the file from the user desktop and provide the Upload link in the ESS as quick Link. So that the users can select the link and upload the document in the WD application. You can save the PDF file in an Ztable as XSTRING format.
2. Check for the possibility, whether the presentation server can be accessed in the report and upload (gui_upload nor cl_frontend_services).
Hope it might help you.
With Regards,
Giriesh M
‎2014 Feb 11 7:03 AM
Hi Swati,
not sure that this will work for you or not, but you can take a look at
this link, which might becomes helpful to you.
‎2014 Feb 11 7:08 AM
Dear Sanjeev
Thanks for the link but I have already checked it out and could not solve required job.
‎2014 Feb 11 7:24 AM
Hi Swati,
as i am not aware of it so only can provide you some good wiki help links,
here is one, please see once, if you will get something to start.
Employee Search (SAP Library - Business Package for Manager Self-Service (mySAP ERP))
‎2014 Feb 11 7:08 AM
Hi Swati,
1. Create a WebDynpro application which uploads the file from the user desktop and provide the Upload link in the ESS as quick Link. So that the users can select the link and upload the document in the WD application. You can save the PDF file in an Ztable as XSTRING format.
2. Check for the possibility, whether the presentation server can be accessed in the report and upload (gui_upload nor cl_frontend_services).
Hope it might help you.
With Regards,
Giriesh M
‎2014 Feb 17 8:39 AM
I have created WebDynpro application and for saving the uploaded file cant save as name cannot accessed. Please consider the below mentioned screen :
lo_nd_image = wd_context->get_child_node( name = wd_this->wdctx_image ).
lo_el_image = lo_nd_image->get_element( ).
lo_el_image->get_static_attributes(
IMPORTING
static_attributes = ls_image ). "Is_image-name is not coming..please help.
‎2014 Feb 17 8:57 AM
Hi Swati,
Please refer the below document.
http://wiki.scn.sap.com/wiki/display/WDABAP/Upload+and+Download+files+in+Webdynpro+ABAP
With Regards,
Giriesh M
‎2014 Feb 17 9:01 AM
Hi Swati
Please follow this below link . it will work for images and pdf both .
http://saptechnical.com/Tutorials/WebDynproABAP/Call/Webdynpro.htm
Regards
Vaibhav
‎2014 Feb 17 9:02 AM
I have already followed by this doc..code is extracted from it..thanks for your reply..
‎2014 Feb 17 9:21 AM
Hi Swati,
I tried the code as mentioned in the document and I am able to get the path and name of the file.
Are you using Code wizard to generate the code in the Upload method ?. If no please utilize the code wizard to avoid problems.
Check the screen shot of mine.
Revert back if the issue exist.
With Regards,
Giriesh M
‎2014 Feb 17 10:19 AM