Skip to Content
author's profile photo Former Member
Former Member

URGENT: About FM BAPI_PO_CHANGE in subcontacting PO

Hi, Experts,

Following code retrun sy-subrc = 0 , but quantity was not changed in subcontracting PO item's component, what is the reason ?

lt_pocomponents LIKE bapimepocomponent OCCURS 0 WITH HEADER LINE,

lt_pocomponentsx LIKE bapimepocomponentx OCCURS 0 WITH HEADER LINE,

lt_return LIKE bapiret2 OCCURS 0 WITH HEADER LINE.

lt_pocomponents-po_item = '10'.

lt_pocomponents-sched_line = '1'.

lt_pocomponents-material = 'ZC333'.

lt_pocomponents-entry_quantity = 13.

lt_pocomponents-change_id = 'U'.

APPEND lt_pocomponents.

lt_pocomponentsx-po_item = '10'.

lt_pocomponentsx-sched_line = '1'.

lt_pocomponentsx-material = 'X'.

lt_pocomponentsx-entry_quantity = 'X'.

lt_pocomponentsx-change_id = 'X'.

APPEND lt_pocomponentsx.



purchaseorder = '6501001992'


return = lt_return

pocomponents = lt_pocomponents

pocomponentsx = lt_pocomponentsx.

IF sy-subrc = 0 .





Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

1 Answer

  • Posted on Nov 21, 2007 at 06:05 PM

    Hi Jimin!

    The return code is nearly all the time equal 0 - the relevant information will be in lt_return. There all messages of the transaction will be gathered. Have a look, if you don't get it running, come back with the messages.



    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.