cancel
Showing results for 
Search instead for 
Did you mean: 

Upload file from local PC and send to RFC function

Former Member
0 Kudos

Hi to all,

I have a web dynpro that do a procedure which creates a file pdf in a temp folder on my local PC. I need to upload this file and send it to an RFC function module (R/3 4.6c) which saves it to DMS on r/3 system. Which java code I have to implement to handle this file? Which kind of data type I have to create on my Func module to storage the file? and how can I save it to DMS (I have to create a new document)?

I hope I was clear.

Thank you very much

Enrico

Accepted Solutions (0)

Answers (4)

Answers (4)

PradeepBondla
Active Contributor
0 Kudos
nikhil_bose
Active Contributor
0 Kudos

blog [Adobe & BAPI call|https://www.sdn.sap.com/irj/sdn/weblogs?blog=/pub/wlg/7588] [original link is broken] [original link is broken] [original link is broken];

this blog may worth as reference [Adobe forms with Attachements|https://www.sdn.sap.com/irj/sdn/weblogs?blog=/pub/wlg/8498] [original link is broken] [original link is broken] [original link is broken];

nikhil

Former Member
0 Kudos

Hi Grimaldi,

You have to use Upload UI element and that must me bind with an attribute type of Resource. Once you upload a file, the contents will be available using this Resource element. Its possible that we can change the Resource to binary.

Make sure of any type that can store of data binary.

Regards

Vinod

jnmurthi
Participant
0 Kudos

hi,

the following link would help you to work with uploading file in webdynpro for java.

[https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/00062266-3aa9-2910-d485-f1088c3a4d71]

as per ur query, since you have to upload it to a RFC, i guess there would be an attribute that would receive the uploaded file, because it should be uploaded in your r/3 system.

please check it out in the model context.

regards,

Murthy.