‎2008 Jun 16 1:14 PM
Hi Friends,
During the execution on BAPI_PO_CREATE1 I am getting the following error.
Message Class: BAPI
Message No. 000000
Message Variable: PurchaseOrder
Parameter Name: POHEADER
Message Type: E
Please Guide me for the solution.
Regards,
Krishan Raheja.
‎2008 Jun 16 1:28 PM
Hi,
i think POHEADER and POHEADERX parameter are missing or data in this parameter are not correct. these parameter are work area of type BAPIMEPOHEADER and BAPIMEPOHEADERX respectively.
refer the function module document in SE37 (it having example and obligatory parameter details also).
Refer the below links.
Reward if found helpful.
Regards
Boobalan Suburaj
‎2008 Jun 16 1:17 PM
Hi,
Check the header parameter of BAPI_PO_CREATE1, there may be missing required fields or invalid value. Check documentation of BAPI_PO_CREATE1.
Cheers.
...Reward if useful
‎2008 Jun 16 1:17 PM
Compare the below data with data what you are passing, the fields mentioned below are mandatory.
Parameter: POHEADER
COMP_CODE = 1000
DOC_TYPE = NB
ITEM_INTVL = 00001
VENDOR = 0000001000
PMNTTRMS = 0001
PURCH_ORG = 1000
PUR_GROUP = 001
CURRENCY = EUR
Parameter: POHEADERX
COMP_CODE = X
DOC_TYPE = X
ITEM_INTVL = X
VENDOR = X
PMNTTRMS = X
PURCH_ORG = X
PUR_GROUP = X
Parameter: POITEM
PO_ITEM = 00001
MATERIAL = 100-100
PLANT = 1000
STGE_LOC = 0001
QUANTITY = 15.000
TAX_CODE = V0
ITEM_CAT = 0
ACCTASSCAT = K
Parameter: POITEMX
PO_ITEM = 00001
MATERIAL = X
PLANT = X
STGE_LOC = X
QUANTITY = X
TAX_CODE = X
ITEM_CAT = X
ACCTASSCAT = X
Parameter: POSCHEDULE
PO_ITEM = 00001
SCHED_LINE = 0001
DELIVERY_DATE = 02.12.2002
QUANTITY = 6.000
PO_ITEM = 00001
SCHED_LINE = 0002
DELIVERY_DATE = 03.12.2002
QUANTITY = 5.000
PO_ITEM = 00001
SCHED_LINE = 0003
DELIVERY_DATE = 04.12.2002
QUANTITY = 4.000
Parameter: POSCHEDULEX
PO_ITEM = 00001
SCHED_LINE = 0001
PO_ITEMX = X
SCHED_LINEX = X
DELIVERY_DATE = X
QUANTITY = X
PO_ITEM = 00001
SCHED_LINE = 0002
PO_ITEMX = X
SCHED_LINEX = X
DELIVERY_DATE = X
QUANTITY = X
PO_ITEM = 00001
SCHED_LINE = 0003
PO_ITEMX = X
SCHED_LINEX = X
DELIVERY_DATE = X
QUANTITY = X
Parameter: POACCOUNT
PO_ITEM = 00001
SERIAL_NO = 01
QUANTITY = 15.000
GL_ACCOUNT = 0000400000
COSTCENTER = 0000001000
CO_AREA = 1000
Parameter: POACCOUNTX
PO_ITEM = 00001
SERIAL_NO = 01
QUANTITY = X
GL_ACCOUNT = X
COSTCENTER = X
CO_AREA = X
Parameter: POCOND
ITM_NUMBER = 000001
COND_ST_NO = 001
COND_TYPE = PB00
COND_VALUE = 79.900000000
CURRENCY = EUR
CURRENCY_ISO = EUR
COND_UNIT = KG
COND_P_UNT = 1
CHANGE_ID = U
Parameter: POCONDX
ITM_NUMBER = 000001
COND_ST_NO = 000
ITM_NUMBERX = X
COND_TYPE = X
COND_VALUE = X
CURRENCY = X
CHANGE_ID = X
Parameter: POPARTNER
PARTNERDESC = OA
LANGU = EN
BUSPARTNO = 0000001100
PARTNERDESC = GS
LANGU = EN
BUSPARTNO = 0000001200
PARTNERDESC = PI
LANGU = EN
BUSPARTNO = 0000001000
Regards
Kannaiah
‎2008 Jun 16 1:19 PM
Hi,
First of all, ensure all the new fields added under the customer include CI_EKKODB are character like. Please check the long text on the message ME887 from SE91 for more information on this.
If it is not avoidable, then you need to implement a enhancement spot ME_BAPI_PO_CUST method map2i_extensionin, and in the implementation for this method of the spot, you need to transfer the non-character like fields to a structure with all character like fields.
This will solve the problem.
Hope this helps.
rewards are expecting.
Regards,
vivek srivastava
‎2008 Jun 16 1:28 PM
Hi,
i think POHEADER and POHEADERX parameter are missing or data in this parameter are not correct. these parameter are work area of type BAPIMEPOHEADER and BAPIMEPOHEADERX respectively.
refer the function module document in SE37 (it having example and obligatory parameter details also).
Refer the below links.
Reward if found helpful.
Regards
Boobalan Suburaj