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: 

BAPI_PO_CREATE1

Former Member
0 Kudos

Hi there,

I'am using BAPI_PO_CREATE1 but the delivery date is not

passed to the created PO, i'am filling the tables poschedule and poschedulex but the items delivery date is not modified.

poschedule-po_item

poschedule-del_datcat_ext

poschedule-shed_line

poschedule-delivery_date

poschedule-quantity

poschedulex-po_item

poschedulex-del_datcat_ext

poschedulex-shed_line

poschedulex-delivery_date

poschedulex-quantity

Message was edited by: Nuno Gonçalves

5 REPLIES 5

Former Member
0 Kudos

Hi Nuno i had the same problem:

You have to do this:

Try to fill this fields to:

poschedule-delivery_date = record_det-eeind_010.

poschedulex-delivery_date = 'X'.

poschedule-stat_date = record_det-eeind_010.

poschedulex-stat_date = 'X'.

poschedule-po_date = record_det-eeind_010.

poschedulex-po_date = 'X'.

I think this can help you. If it helps please don`t forget to reward the answer.

Have a nice day!

Regards,

Carlos A. Lerzundy

Venezuela

0 Kudos

Hi Carlos, i've tried to fill the other two fields but

the result is the same, but thanks anyaway.

Former Member
0 Kudos

Hi Nuno,

Did you fill in the PO_ITEM, SCHED_LINE with some values on the POSCHEDULE structure and filled the same values on the POSCHEDULEX structure? See below.


  v_schdule_line       = v_schdule_line + 1.
  v_poitem             = v_poitem + 1.

  poschedule-po_item        = v_poitem * 10.
  poschedule-sched_line     = v_schdule_line.
  poschedule-delivery_date  = <DATE>.

  append poschedule.
  clear  poschedule.

*--Fill X structures
  poschedulex-po_item       = v_poitem * 10.
  poschedulex-sched_line    = v_schdule_line.
  poschedulex-po_itemx      = 'X'.
  poschedulex-delivery_date = 'X'.
  poschedulex-sched_linex   = 'X'.

  append poschedulex.
  clear  poschedulex.

Your PO item numbers on the POITEM, POSCHEDULE and POSCHEDULEX structures should be same for the same item and the schedule line number should be the same on POSCHEDULE and the corresponding POSCHEDULEX structures.

Even if your po line item and schedule line item numbers are internally assigned, you need to do this.

Hope this helps,

Srinivas

0 Kudos

What was the issue Nuno?

Srinivas

Former Member
0 Kudos

Hi Nuno,

I am also facing the same problem like,

poschedule-del_datcat_ext = 'M'.

poschedule-delivery_date = '20050101'.

-


>

poschedulex-del_datcat_ext = 'X'

poschedulex-del_datcat_ext = 'X'

But the BAPI is taking as current date and the date category format is 'D'.

Kindly let me know, if you have any answer for that.

Appreciated your help.

Thanks and Regards,

Arun