‎2007 Aug 23 10:14 PM
Hi All
I am doing Purchase Order conversion.I am using BAPI_PO_CREATE for upload. When i am uploading from a test file i observed that the data in li_poschedule of type poschedule is modified once i executed the bapi. The thing is po item field in li_poschedule is changed to 00010 from 4.once bapi excuted. The po_item in test file is 4. We are getting an error "Purchase order item 00010 still contains faulty schedule lines". I also want to know what this error means "Source not included in list despite source list requirement".
Any suggestions for these errors.
‎2007 Aug 23 10:17 PM
If this is a new development, you should be using BAPI_PO_CREATE1 instead, which is the newer version.
Regards
‎2007 Aug 23 10:26 PM
‎2007 Aug 23 10:28 PM
‎2007 Aug 23 10:34 PM
along with those errors can any one explain what is the purpose of id field in the return structure of BAPI_PO_create1".
‎2007 Aug 24 12:16 AM
That ID in Return table is the Message Class of the message you get in return line (check in transaction SE91).
You can build the text as this:
CALL FUNCTION 'MESSAGE_TEXT_BUILD'
EXPORTING
msgid = return-id
msgnr = return-number
msgv1 = return-message_v1
msgv2 = return-message_v2
msgv3 = return-message_v3
msgv4 = return-message_v4
IMPORTING
message_text_output = built_msg_text
EXCEPTIONS
OTHERS = 1.
As for the message itself, i don't know what it may be.
Read Schedule lines parameter documentation in SE37, maybe there you have a clue.
Regards
Please reward points if helpful