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

Purchae order Upload Error

Former Member
0 Likes
702

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.

5 REPLIES 5
Read only

alejandro_bindi
Active Contributor
0 Likes
644

If this is a new development, you should be using BAPI_PO_CREATE1 instead, which is the newer version.

Regards

Read only

0 Likes
644

no i am debugging the code which is already developed.

Read only

0 Likes
644

sorry guys i am using 'BAPI_PO_CREATE1'.

Read only

Former Member
0 Likes
644

along with those errors can any one explain what is the purpose of id field in the return structure of BAPI_PO_create1".

Read only

0 Likes
644

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