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

Strange behaviour in HU Packing with BAPI calls


I am using the following function calls to perform packing on a delivery document via an interface.




For a single delivery line and single HU it works fine all the time. When I start getting more complicated with 2/3 delivery lines and 2/3 HU's I get a strange effect. If I run it through debug quite slowly it works. But leave it to run itself and the BAPI_HU_PACK runs twice in a loop it seems to fail second time around by not passing back the HUITEM results correctly - it does however return a sucess code.

Am I missing something really obvious about stringing these FM's together in an ABAP program?


Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

1 Answer

  • Best Answer
    author's profile photo Former Member
    Former Member
    Posted on Jan 09, 2007 at 09:29 PM

    Are you using <b>BAPI_TRANSACTION_COMMIT</b> between BAPI calls??? Also...A BAPI would almost never returns you a failure sy-subrc.....You must check the RETURN table in order to know is something went wrong...



    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.