04-18-2006 8:44 AM
Dear all,
How to use BAPI_PO_CREATE1 function module(BAPI)
I want to create PO with header text and item text (PO number range is set to internal number range)
If PO number range is external I am able to create PO with header Text and Item Text.
If PO Number is Internal then it is a problem I am not able to create header and item text .
Please suggest me
Thanks in advance
Regards
Manohar
04-18-2006 8:48 AM
Hi
The BAPI'll automatically create the header data of the texts, you have to transfer the keys of the text (ID) and the number of the item (for only item text).
Max
04-18-2006 8:52 AM
Hi,
in that case use SAVE_TEXT or CREATE_TEXT with all the required parameters(tdname,tdid). may be that will work..
Regards
vijay
04-18-2006 8:54 AM
Manohar,
You send the data in the following structures with the ID and the OBJECT and BAPI will take care of the rest.
POTEXTHEADER STRUCTURE BAPIMEPOTEXTHEADER OPTIONAL
POTEXTITEM STRUCTURE BAPIMEPOTEXT OPTIONAL
regards,
Ravi
Note : Please close the thread if this solves the issue
04-18-2006 9:11 AM
Hello Mathkunti,
U need to fill in the folowing fields..
POHEADER
COMP code,doc type,vendor,purchase ord and group
POHEADERX
Mark all the above fields as X.
POITEM
PO_ITEM,material,plant,qty and price. Price depending upon if it can determine by info rec then no problem.
POITEMX
Mark all the above fields as X
POTEXTHEADER
TEXT ID = F01
TEXT FORM = *
TEXT LIne = whatever u want to appear as text
POTEXTITEM
Same as above.
U should be able to create PO.