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

Electing a Correct Function module

Former Member
0 Likes
424

Hi Experts,

I have to Implement SOAP To RFC Scenario.

Here My Soap Source Message Structure is::

Material No :

Some Source File path where the Attachment is located:

1::::---->>>Here My Question is Which Function Module is correct To Attach the Attachment to the Function Module.

In receiver side i have to find out the suitable FM.

2:::--->>>And the Second thing is in that FM Which is the suitable field to mapp the Source file path.

I have Some FM's Here . Out of these which is the correct one .Please point it and please let me know.

SO_ATTACHMENT_INSERT_API1

SO_DOCUMENT_RECEIVE_API1

CVAPI_DOC_CHECKIN

Please let me know all the above mentioned questions.

Regards

Khanna

2 REPLIES 2
Read only

Former Member
0 Likes
368

hi

you can use function SO_ATTACHMENT_INSERT_API1 as follows:

<b>* Add the object to the mail.</b>

>

> CALL FUNCTION<b> 'SO_ATTACHMENT_INSERT_API1'</b>

> EXPORTING

> DOCUMENT_ID =3D

> S_DOCUMENT-DOC_ID

> ATTACHMENT_DATA =3D

> S_DESCR_ATTACH

> ATTACHMENT_TYPE =3D 'OBJ'

> * IMPORTING

> * ATTACHMENT_INFO =3D

> TABLES

> ATTACHMENT_HEADER =3D S_LIST_OBJ

> ATTACHMENT_CONTENT =3D S_LIST_OBJ

> * CONTENTS_HEX =3D

> EXCEPTIONS

> DOCUMENT_NOT_EXIST =3D 1

> ATTACHMENT_TYPE_NOT_EXIST =3D 2

> OPERATION_NO_AUTHORIZATION =3D 3

> PARAMETER_ERROR =3D 4

> X_ERROR =3D 5

> ENQUEUE_ERROR =3D 6

> OTHERS =3D 7.

for details please refer to the following link

http://mailman.mit.edu/pipermail/sap-wug/2002-February/004001.html

<b>plz reward if helpful</b>

regards

ravish

Read only

Former Member
0 Likes
368

hi

you can use function SO_ATTACHMENT_INSERT_API1 as follows:

<b>* Add the object to the mail.</b>

>

> CALL FUNCTION<b> 'SO_ATTACHMENT_INSERT_API1'</b>

> EXPORTING

> DOCUMENT_ID =3D

> S_DOCUMENT-DOC_ID

> ATTACHMENT_DATA =3D

> S_DESCR_ATTACH

> ATTACHMENT_TYPE =3D 'OBJ'

> * IMPORTING

> * ATTACHMENT_INFO =3D

> TABLES

> ATTACHMENT_HEADER =3D S_LIST_OBJ

> ATTACHMENT_CONTENT =3D S_LIST_OBJ

> * CONTENTS_HEX =3D

> EXCEPTIONS

> DOCUMENT_NOT_EXIST =3D 1

> ATTACHMENT_TYPE_NOT_EXIST =3D 2

> OPERATION_NO_AUTHORIZATION =3D 3

> PARAMETER_ERROR =3D 4

> X_ERROR =3D 5

> ENQUEUE_ERROR =3D 6

> OTHERS =3D 7.

for details please refer to the following link

http://mailman.mit.edu/pipermail/sap-wug/2002-February/004001.html

<b>plz reward if helpful</b>

regards

ravish