Application Development 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: 

Upload attachment in notification ( IW33) using code

vivek_gaurav
Participant
0 Kudos

Hi All,

I have requirement to upload attachment using "base64" content of attachment ( JPG, PNG, PDF etc).

I used some standard BAPI and it is successfully uploading the attachment but base64 content is somehow getting changed during upload and it is not allowing to open in notification (IW33).

Can someone advise what is the best approach to upload attachment (base64) in notification using code.

BAPI ,I am using below BAPI and class.

1. 'SO_FOLDER_ROOT_ID_GET'

2. SO_DOCUMENT_INSERT_API1

3. CALL METHOD cl_binary_relation=>create_link


code

uploadattachmentin-notification.txt

Thanks in advance

Regards

Vivek

1 REPLY 1

vivek_gaurav
Participant
0 Kudos

Hi Expert ,

Kindly help me on above problem.

Regards

Vivek