Skip to Content
0
Aug 27, 2012 at 10:41 AM

TD600 Text * ID * language * not found - error

1120 Views

Hi,

I am getting this error when i run thro BAPI.Kindly suggest where am i wrong.

1 E BAPI 001 No instance of object type PurchaseOrder has been created. External reference: 2 E TD 600 Text * ID * language * not found

gs_poheader-vendor = '0000100005'.

gs_poheader-DOC_TYPE = 'NB'.

gs_poheader-purch_org = 'MARB'.

gs_poheader-pur_group = '001'.

gs_poheader-comp_code = 'MINA'.

gs_poheaderx-vendor = 'X'.

gs_poheader-DOC_TYPE = 'X'.

gs_poheaderx-purch_org = 'X'.

gs_poheaderx-pur_group = 'X'.

gs_poheaderx-comp_code = 'X'.

gs_poitem-po_item = ls_group-line.

gs_poitem-material = 'NIS-01'.

gs_poitem-item_cat = ls_group-item.

gs_poitem-quantity = ls_group-qty.

gs_poitem-po_unit = ls_group-uom.

gs_poitem-orderpr_un = ls_group-price.

gs_poitem-plant = 'NSW1'.

APPEND gs_poitem TO gt_poitem.

CLEAR : gs_poitem.

gs_poitemx-po_item = ls_group-line.

gs_poitemx-material = 'X'.

gs_poitemx-item_cat = 'X'.

gs_poitemx-quantity = 'X'.

gs_poitemx-po_unit = 'X'.

gs_poitemx-orderpr_un = 'X'.

gs_poitemx-plant = 'X'.

APPEND gs_poitemx TO gt_poitemx.

CLEAR : gs_poitemx.

gs_poschedule-delivery_date = ls_group-date.

gs_poschedule-po_item = ls_group-line.

APPEND gs_poschedule TO gt_poschedule.

CLEAR:gs_poschedule.

gs_poschedulex-po_item = ls_group-line.

gs_poschedulex-delivery_date = 'X'.

gs_poschedulex-po_itemx = 'X'.

APPEND gs_poschedulex TO gt_poschedulex.

CLEAR:gs_poschedulex.

*BAPI*

CALL FUNCTION 'BAPI_PO_CREATE1'

EXPORTING

poheader = gs_poheader

poheaderx = gs_poheaderx

IMPORTING

exppurchaseorder = gs_exppurchaseorder

* EXPHEADER =

* EXPPOEXPIMPHEADER =

TABLES

return = gt_return

poitem = gt_poitem

poitemx = gt_poitemx

* POADDRDELIVERY =

poschedule = gt_poschedule

poschedulex = gt_poschedulex

.

CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'

EXPORTING

wait = 'X'.