Skip to Content

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

BAPI_PO_CREATE1, Service line, PREQ_NO

Hi friends,

I use bapi_po_create1 in combination with purchase requesition and service.

Retunrvalue is with Msg: SE 518 - No account assignment exists for service line 0000000010.

Population is without preq_no and item possible. If I use transaction code ME21N with same population, purchase order will be created.

Thank you in advance for your help and ideas

Here is the population of fields...

po_header-COMP_CODE = '1000' .

po_header-DOC_TYPE = 'NB' .

po_header-ITEM_INTVL = '00010' .

po_header-VENDOR = '0000001101'.

po_header-PMNTTRMS = '0001' .

po_header-PURCH_ORG = '1000' .

po_header-PUR_GROUP = '008' .

po_header-CURRENCY = 'EUR' .

populated same header X-Flags

po_item_-PO_ITEM = '00010' .

po_item_-PLANT = '1000' .

po_item_-QUANTITY = '1.000' .

po_item_-TAX_CODE = 'V0' .

po_item_-item_cat = '9'. "Leist

po_item_-ACCTASSCAT = 'F'.

po_item_-short_text = 'Leistung'.

po_item_-NET_PRICE = '12'.

po_item_-MATL_GROUP = '007'.

po_item_-PCKG_NO = '0100002226'.

po_item_-PREQ_NO = '0010008985'.

po_item_-PREQ_ITEM = '00010'.

populated same itemx-Flags...

po_sched-PO_ITEM = '00010'.

po_sched-SCHED_LINE = '0001' .

po_sched-DELIVERY_DATE = '20060526'.

with account fields and account assignment fields (X-Flags)

po_acc-PO_ITEM = '00010' .

po_acc-SERIAL_NO = '01' .

po_acc-QUANTITY = '1' .

po_acc-GL_ACCOUNT = '0000400000' .

po_acc-COSTCENTER = '0000001000' .

po_acc-CO_AREA = '1000' .

Fields of Service:

po_serv-PCKG_NO = '0100002226'.

po_serv-line_no = '0000000001'.

po_serv-OUTL_IND = 'X'.

po_serv-SUBPCKG_NO = '0100002227'.

po_serv-SHORT_TEXT = 'TEST LEISTUNG'.

po_serv-QUANTITY = '1.000' .

po_serv-BASE_UOM = 'LE'.

po_serv-GR_PRICE = '1'.

append po_serv to po_services.

        • second item

po_serv-PCKG_NO = '0100002227'. "'0100002506'.

po_serv-line_no = '0000000002'.

po_serv-EXT_LINE = '0000000010'.

po_serv-MATL_GROUP = '007'.

po_serv-OUTL_IND = ''.

and item to accesvalue:

po_accval-PCKG_NO = '0100002227'.

po_accval-line_no = '0000000002'.

po_accval-serno_line = '01'.

po_accval-SERIAL_NO = '01'. "Link to account assing

po_accval-PERCENTAGE = '100'.

po_accval-QUANTITY = '1'.

po_accval-NET_VALUE = '1'.

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