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

BAPI_PO_CREATE1 - Delivery date not changing

Former Member
0 Likes
1,640

Hi All,

I ''m using BAPI_PO_CREATE1 for po creation.

When I try to enter the po creation date using the bapi its not taking the value I enter.

It takes from the system .

it_shed-po_item = git_input-ebelp.

it_shed-sched_line = '0001'.

it_shed-delivery_date = '25.05.2008'.

it_shed-stat_date = '25.05.2008'.

it_shed-quantity = git_input-menge.

it_shed-DEL_DATCAT_EXT = 'D'.

APPEND it_shed.

it_shedx-po_item = git_input-ebelp.

it_shed-sched_line = '0001'.

it_shedx-po_itemx = 'X'.

it_shedx-sched_linex = 'X'.

it_shedx-delivery_date = 'X'.

it_shedx-quantity = git_input-menge.

it_shedx-DEL_DATCAT_EXT = 'X'.

it_shedx-stat_date = 'X'.

APPEND it_shedx.

Please let me know how to enter the date.

Thanks

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
1,049

Hi Ann,

Currently I don´t have a system to test it myself, but can you please try the following:

Replace '25.05.2008' by '20080525', the first is a external format and the second is the format used internally.

I don´t know you copied the code or you have written it again, but the field sched_line in the second structure is still pointing to the first (missing x)..

I hope this helps you!

Good luck!

Hi All,

I ''m using BAPI_PO_CREATE1 for po creation.

When I try to enter the po creation date using the bapi its not taking the value I enter.

It takes from the system .

it_shed-po_item = git_input-ebelp.

it_shed-sched_line = '0001'.

it_shed-delivery_date = '25.05.2008'.

it_shed-stat_date = '25.05.2008'.

it_shed-quantity = git_input-menge.

it_shed-DEL_DATCAT_EXT = 'D'.

APPEND it_shed.

it_shedx-po_item = git_input-ebelp.

it_shed-sched_line = '0001'.

it_shedx-po_itemx = 'X'.

it_shedx-sched_linex = 'X'.

it_shedx-delivery_date = 'X'.

it_shedx-quantity = git_input-menge.

it_shedx-DEL_DATCAT_EXT = 'X'.

it_shedx-stat_date = 'X'.

APPEND it_shedx.

Please let me know how to enter the date.

Thanks

3 REPLIES 3
Read only

Former Member
0 Likes
1,050

Hi Ann,

Currently I don´t have a system to test it myself, but can you please try the following:

Replace '25.05.2008' by '20080525', the first is a external format and the second is the format used internally.

I don´t know you copied the code or you have written it again, but the field sched_line in the second structure is still pointing to the first (missing x)..

I hope this helps you!

Good luck!

Read only

0 Likes
1,049

Hi ,

Thanks alot for the reply, it was not the date format. It was because as you said the second shed_line was pointing to the first structure. Thanks again.

Read only

0 Likes
1,049

You are welcome! I saw you gave me some points, knowing that I was able to help somebody was a more than sufficient reward! (But to be not ungrateful: thanks a lot! )

Have a nice day!

Edited by: Sven Janssens on Feb 27, 2008 10:05 AM