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

Create attachment document XLS for Purchase Requisition

Former Member
0 Likes
380

Hi.

I need to add attachment to my Purchase Requisition usig a FM.

I found some topics on SDN where BAPI_DOCUMENT_CREATE2 is used.

I placed it in my code and run it. Return gives me nothing.

I get a new document number each time I run my program, but when I go to ME53n and look at attachment list no documents there.

Can You tell me what parameters with which values should I pass to BAPI_DOCUMENT_CREATE2 to add attachment to a purchase requisition. Mayby I didn't set a good configuration somewhere. Please HLP

Thx in advance

Tom

Hi.

I need to add attachment to my Purchase Requisition usig a FM.

I found some topics on SDN where BAPI_DOCUMENT_CREATE2 is used.

I placed it in my code and run it. Return gives me nothing.

I get a new document number each time I run my program, but when I go to ME53n and look at attachment list no documents there.

Can You tell me what parameters with which values should I pass to BAPI_DOCUMENT_CREATE2 to add attachment to a purchase requisition. Mayby I didn't set a good configuration somewhere. Please HLP

Thx in advance

Tom

1 REPLY 1
Read only

venkata_ramisetti
Active Contributor
0 Likes
261

Hi,

Did you check the function module documentation. It contains one example also. Please check that.

BAPI fm BAPI_DOCUMENT_CREATE is internally calling this BAPI. Please check how it is calling.

Please alos check program LWPLGF06. I think it has similar code.

Thanks,

Ramakrishna

Message was edited by: Ramakrishna Prasad Ramisetti