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

Problem in BAPI_PO_CREATE1

Former Member
0 Likes
1,035

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.

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
772

Hi,

Have you passed 'X' to field FUNDS_CTR of structure BAPIMEPOACCOUNTX in case of fund center assignment.

5 REPLIES 5
Read only

Former Member
0 Likes
772

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

Read only

0 Likes
772

Dear Sreenivasulu,

I have passed all these tables but its gives error same.

Read only

Former Member
0 Likes
773

Hi,

Have you passed 'X' to field FUNDS_CTR of structure BAPIMEPOACCOUNTX in case of fund center assignment.

Read only

0 Likes
772

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

Read only

Former Member
0 Likes
772

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.