2006 Oct 24 11:37 AM
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
2006 Oct 24 11:42 AM
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