Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Del Date not populating using bapi_po_create1

Former Member
0 Likes
482

Hi,

I am using Bapi_po_create1 and am having a problem with delivery dates. The Po creates fine but the delivery date will not populate.

here is the code i use to populate the Bapi

wa_po_item_schedules1-po_item = line_c.

wa_po_item_schedules1-delivery_date = del_date.

wa_po_item_schedules1-quantity = scr100-qty.

wa_po_item_schedules1-del_datcat_ext = 'D'.

APPEND wa_po_item_schedules1 TO it_po_item_schedules1.

wa_po_item_schedulesx-po_item = 'X'.

wa_po_item_schedulesx-delivery_date = 'X'.

wa_po_item_schedulesx-quantity = 'X'.

wa_po_item_schedulesx-del_datcat_ext = 'X'.

APPEND wa_po_item_schedulesx TO it_po_item_schedulesx.

Any ideas?

Kieran.

2 REPLIES 2
Read only

Former Member
0 Likes
451

You are passing 'Category of delivery date' as 'D'. Could you check Category of delivery date in TPRG table ? Also check in which format you are passing the schedule date.

Read only

Former Member
0 Likes
451

Hi,

del date is set like this del_date = sy-datum + 28. it is a field of type d.