2008 Feb 27 7:44 AM
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
2008 Feb 27 8:42 AM
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!
2008 Feb 27 8:42 AM
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!
2008 Feb 27 8:57 AM
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.
2008 Feb 27 9:04 AM
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
| User | Count |
|---|---|
| 4 | |
| 2 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |