Skip to Content
0
Former Member
Dec 11, 2007 at 03:19 AM

Passing multiple Schedule lines BAPI_PO_CREATE1

762 Views

Hi

I'm creating PO using BAPI_PO_CREATE1 but able to upload only one schedule line even though line item has multiple schedule lines.

Please help it is very urgent

Best regards

Satya

Here piece of code

LOOP AT IT_SCHD INTO WA_SCHD

WHERE PO_ITEM = WA_USA_PO_ITEM_DATA-PO_ITEM.

WA_ITEM_SCHD-PO_ITEM = LV_EBELP.

WA_ITEM_SCHD-SCHED_LINE = WA_SCHD-SERIAL_NO.

WA_ITEM_SCHD-DELIVERY_DATE = LV_DATE.

WA_ITEM_SCHD-QUANTITY = WA_SCHD-QUANTITY.

APPEND WA_ITEM_SCHD TO IT_ITEM_SCHD.

WA_ITEM_SCHD_INX-PO_ITEM = LV_EBELP.

WA__ITEM_SCHD_INX-SCHED_LINE = WA_SCHD-SERIAL_NO.

WA_ITEM_SCHD_INX-DELIVERY_DATE = 'X'.

WA_iTEM_SCHD_INX-QUANTITY = 'X'.

APPEND WA_ITEM_SCHD_INX TO IT_ITEM_SCHD_INX.

CLEAR : WA_ITEM_SCHD, WA_ITEM_SCHD_INX.

ENDLOOP.