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

Printing in BAPI_GOODSMVT_CREATE

Hi everyone,

I'm using the BAPI_GOODSMVT_CREATE, but I need to print the document that is generated after an entry is done. In the mb01 transaction there is a flag (in the GR/GI Slip Window) that I can check to print the document with different options Individual Slip, Indiv.Slip w.Inspect.Text and Collective Slip.

How can I print the document using the BAPI_GOODSMVT_CREATE?? What fields should I use?? Many Thanks!

Message was edited by: Felipe Contreras

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

2 Answers

  • Best Answer
    author's profile photo Former Member
    Former Member
    Posted on Jan 26, 2005 at 02:10 PM

    If you look at the help for the Print checkbox in MB01, you will see the following sentence:

    You cannot set the indicator manually for movements that are posted from other applications. This means that in this case you have to set the indicator through the user parameter NDR.

    Maybe you need to set the parameter ID before you call the BAPI.

    SET PARAMETER ID 'NDR' FIELD checked.
    

    Where checked ='X'.

    Brian

    Add a comment
    10|10000 characters needed characters exceeded

    • Hi Felipe,

      If you look at the header structure of the BAPI BAPI2017_GM_HEAD_01, there is a field VER_GR_GI_SLIP. This field will take the values as follows

      1 Individual Slip

      2 Indiv.slip w.inspect.text

      3 Collective Slip

      Do the following.

      1. Fill in this field with the appropriate value.
      2. Fill in the VER_GR_GI_SLIPX with a 'X' value.
      3. Then you will need to set the user parameter as
         mentioned by Brian.
      

      Please let me know if it works. If it helps, please reward and close the issue.

      Regards,

      Srinivas

  • author's profile photo Former Member
    Former Member
    Posted on Jan 26, 2005 at 01:56 PM

    You need to have output determination configured for the movement types. Does the document print if you manually run MB01 with the same values?

    Brian

    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.