cancel
Showing results for 
Search instead for 
Did you mean: 

Automatic Account Assignment for PO

Former Member
0 Kudos

Hi,

We need to have purchase order's created automatically through an interface with a BAPI. We have the account assignment category as a Profit center and not a cost center. G/L account and a Profit center need tobe read from a cost center table(CSKS) and should assign to the purchase order for automatic PO's. System creates the automatic PO but unfortunately its picking up the G/L and Profit center account number's.

Thanks!

Accepted Solutions (0)

Answers (2)

Answers (2)

JL23
Active Contributor
0 Kudos

which entry in CSKS table shall be taken?

you probably have not just one entry there, so you need some logic.l

Usually you have all this info when you call the BAPI, as SAP validates the entered data against those checking tables.

Former Member
0 Kudos

We have a "Z" table maintained for G/L accounts, it will vary based on each PO line item, so system need to refer to the particular "Z" table each time to fill the G/L account number in PO line item but its not happening during automatic PO creation.

Thanks.....

JL23
Active Contributor
0 Kudos

The BAPI may not read your own program coding that is used in manual PO creation.

There are FAQ notes in SAP Market place which explains what the PO creation BAPI does and what it doesn't.

As you are creating the POs with an own report by calling a BAPI it should not be a big problem to add this coding directly in your ABAP to submit the correct valuesdirectly with BAPI

Former Member
0 Kudos

Hi....Thanks! The PO will be created using a BAPI during an interface update, most of the fields are filled from input from external system and the issue is only with account assignment. Could you please provide me couple of links for Service Market....

Thanks again!

JL23
Active Contributor
0 Kudos

OSS Note 197958 - BAPIs for purchase orders: Missing functions

and OSS Note 582221 - FAQ: BAPIs for purchase orders

former_member186144
Participant
0 Kudos

Correct me if I'm wrong, but if ure creating po from bapi so u will be able to insert the account assignment data in the input parameter of the bapi. But if u want sap to propose the gl account, u normally use material master or service master. These datas are linked to valuation class whcin in turn thru tcode obyc is linked to gl account via the valuation class.

Should u not have any master data then u can configure so that the val class is determined thru material group (entry aid without material master config)

Former Member
0 Kudos

Hi,

We are using limit PO and there is no any material/info record, we maintain only the venodr master. We have specific GL and Profit center tobe assigned based on the PO line item.

Thanks...