Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

GOS create attachment automaticly

Former Member
0 Likes
5,896

Hi experts,

I met a requirement that upload an PDF file to GOS attachment, the PDF file will be generate from abap memory, does any know how to do it?

Best regards,

Tracy

1 ACCEPTED SOLUTION
Read only

former_member202771
Contributor
0 Likes
1,529

Hi Tracy,

Use FM SO_FOLDER_ROOT_ID_GET

then FM SO_DOCUMENT_INSERT.

we will find links on how to use them.

Check this sdn wiki :

Use of Generic object services to attach a URL to Business objects - Code Gallery - SCN Wiki

Thanks,

Anil

3 REPLIES 3
Read only

former_member202771
Contributor
0 Likes
1,530

Hi Tracy,

Use FM SO_FOLDER_ROOT_ID_GET

then FM SO_DOCUMENT_INSERT.

we will find links on how to use them.

Check this sdn wiki :

Use of Generic object services to attach a URL to Business objects - Code Gallery - SCN Wiki

Thanks,

Anil

Read only

0 Likes
1,529

Hi Anil,

Could you please give me more detail information? I tried the code, but it not worked with PDF, the PDF opened with error. Maybe some parameter was wrong in my program but I don't know where was wrong.

thank you very much!

Tracy

Read only

0 Likes
1,529

Hi Tracy,

try so_object_insert instead of SO_DOCUMENT_INSERT.

Attach Purchase Order as PDF and view the same in the transaction ME23

Thanks,

Anil