‎2006 May 02 5:47 AM
Dear Frnds,
I have used bapi BAPI_PO_CREATE1 for material po ans service po its works fine for Account Assignment as WBS Element..
But For Account Assignment as Fund Center it gives me error message like:
Error on PO No 9100000027 Error is No funds center entered/derived in item 00010 5000 215001
So if you have some solution then help me for same.
‎2006 May 02 8:59 AM
Hi,
Have you passed 'X' to field FUNDS_CTR of structure BAPIMEPOACCOUNTX in case of fund center assignment.
‎2006 May 02 6:43 AM
Hai Priyank
Check with the following Code
DATA : l_po_header LIKE bapimepoheader.
DATA : l_po_headerx LIKE bapimepoheaderx.
DATA : l_purchaseorder LIKE bapimepoheader-po_number.
DATA : BEGIN OF t_return OCCURS 0.
INCLUDE STRUCTURE bapiret2.
DATA : END OF t_return.
DATA : BEGIN OF t_po_items OCCURS 0.
INCLUDE STRUCTURE bapimepoitem.
DATA : END OF t_po_items.
DATA : BEGIN OF t_po_itemsx OCCURS 0.
INCLUDE STRUCTURE bapimepoitemx.
DATA : END OF t_po_itemsx.
DATA : t_po_account LIKE bapimepoaccount OCCURS 0 WITH HEADER LINE.
DATA : t_po_accountx LIKE bapimepoaccountx OCCURS 0 WITH HEADER LINE.
Populate these parameters according to your requirement
CALL FUNCTION 'BAPI_PO_CREATE1'
EXPORTING
poheader = l_po_header
poheaderx = l_po_headerx
IMPORTING
exppurchaseorder = l_purchaseorder
TABLES
return = t_return
poitem = t_po_items
poitemx = t_po_itemsx
poaccount = t_po_account
poaccountx = t_po_accountx.
Thanks & Regards
Sreenivasulu P
‎2006 May 02 7:48 AM
Dear Sreenivasulu,
I have passed all these tables but its gives error same.
‎2006 May 02 8:59 AM
Hi,
Have you passed 'X' to field FUNDS_CTR of structure BAPIMEPOACCOUNTX in case of fund center assignment.
‎2006 May 03 9:46 AM
Yes,
I have passed all these, actually its work fine but fund center and commitment item are not passed in newly created PO.
PO is also generate but these two values are not come in PO
‎2006 May 03 10:04 AM
Hello Priyank,
You need to do the following,
In BAPI_PO_CREATE1 u need to fill in POITEM and POITEMX for funds and commitment and then it will be transfered to the PO irrespective of account assignment. Fill the structure BAPIMEPOITEM-FUNDS_CTR and BAPIMEPOITEM-CMMT_ITEM and set the BAPIMEPOITEMX-FUNDS_CTR and BAPIMEPOITEMX-CMMT_ITEM to X.