Application Development 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: 

Problem with BAPI_PO_CREATE1: Delivery Date

Former Member
0 Kudos

Hi everyone,

I am using the fm BAPI_PO_CREATE1 to create my PO's. The problem is, I keep getting the following error messages:

Purchase order item 00100 still contains faulty schedule lines

Delivery date is in the past

Can delivery date be met? (Realistic delivery date: 17.06.2008)

Deliv. date outside period covered by logistics calendar CH

I populate the delivery date like this:


      wa_poschedule-po_item       = wa_poitem-po_item.
      v_date = SY-DATUM.
      PERFORM convert_date USING v_date
                        CHANGING wa_poschedule-delivery_date.
      wa_poschedule-sched_line    = '0001'.
      APPEND wa_poschedule TO i_poschedule.

      wa_poschedulex-po_item       = wa_poitem-po_item.
      wa_poschedulex-po_itemx      = 'X'.
      wa_poschedulex-delivery_date = 'X'.
      wa_poschedulex-sched_line    = '0001'.
      wa_poschedulex-sched_linex   = 'X'.
      APPEND wa_poschedulex TO i_poschedulex.

Does anyone have any idea what I am might be doing wrong?

Thanks

2 REPLIES 2

Former Member
0 Kudos

What is happening in routine convert_date?

John.

Former Member
0 Kudos

Check if the delivery date u r giving is past date...?