10-23-2014 8:38 AM
Hi All,
I want to creating a PO and Inforecord using report program . I gonna use BAPI "BAPI_PO_CREATE1" to create PO .
For creating the Inforecord, I found following function module can be used.
ME_DIRECT_INPUT_INFORECORD
ME_UPDATE_INFORECORD
ME_POST_INFORECORD
ME_MAINTAIN_INFORECORD
But the problem is all the above Function Modules are unreleased by SAP. So using this FM is not recommended. can anyone sugguest any FM for creating Info record which is released by SAP.
10-23-2014 3:51 PM
Hello,
AFAIK, there is no bapi for PIR creation, so you need to use those FMs (with caution) or go via BDC...
Br,
Manu.
10-23-2014 9:00 PM
Hi,
I've tried several FM's a couple of months ago, but none did the job. So eventually used a BDC, as Manu pointed out.
Check this article out: http://wiki.scn.sap.com/wiki/pages/viewpage.action?pageId=243630173
Specially in the subroutine 'TRANSFER_FILE' line 580, those are the structures you need to create.
My experience is, that the FM's you mentioned, have some drawbacks, for example no history, the PIR is overwritten without any reference to the old PIR.
Have fun!