Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

Error in BAPI_PO_CREATE1 imputing WBS Element

hi,

   I'm trying to create a service purchase order (ME21N) tied to a purchase requisition using BAPI_PO_CREATE1. The purchase requisition is imputed to Project (WBS Element). I have not been able to create, the BAPI generates an error KI235 "Account & requires an assignment to a CO object" The account 123456 is not set in OKB9 table. However, when I create a service purchase order using the same bapi with this account but charged to cost center, works perfectly. However, I need to create it imputing WBS element.

I filled the following relevant fields to the BAPI:

  POITEM-PO_ITEM    : 00010

  POITEM-SHORT_TEXT : Texto 

  POITEM-PLANT      : 'CENTRO'

  POITEM-MATL_GROUP : 'GRUP'

  POITEM-QUANTITY   : 1

  POITEM-PO_UNIT    : 'ACT'

  POITEM-NET_PRICE  : 10

  POITEM-ITEM_CAT   : '9'

  POITEM-ACCTASSCAT : 'P'

  POITEM-PREQ_NO    : 2000001500

  POITEM-PREQ_ITEM  : 00010

  POITEM-PREQ_NAME  : 0000012000

  POITEM-PCKG_NO    : 0000000100

  POACCOUNT-PO_ITEM    : 00010

  POACCOUNT-SERIAL_NO  : '01'

  POACCOUNT-GL_ACCOUNT : '123456'

  POACCOUNT-WBS_ELEMENT: 'PEP_ELEMET'

  POACCOUNT-CO_AREA    : 'SCOS'

  POACCOUNT-PROFIT_CTR : 'CTRBENEF'

  POACCOUNT-FUND       : 'FUND'

  POACCOUNT-CMMT_ITEM  : '0000123456'

Best Regards,

Former Member
Not what you were looking for? View more on this topic or Ask a question