Skip to Content
avatar image
Former Member

BAPI_GOODSMVT_CREATE: printing GR/GI slip

Hi everyone,

I need to print the GR/GI slip using BAPI_GOODSMVT_CREATE.

There are two fields in header structure (GOODSMVT_HEADER) to fill:

VER_GR_GI_SLIP

VER_GR_GI_SLIPX

I have filled the first one for example. with ‚1’ (for ‚individual slip’) and set ‚X’ on the second one but it doesn’t work.

Using the parameter NDR like

     (DATA l_ndr TYPE c VALUE ’X’.)
     SET PARAMETER ID 'NDR' FIELD l_ndr.

before calling BAPI doesn’t work either.

When I set the parameter-id using transaction ‚su01’ (user maintenance) the BAPI prints permanently regardless of wihich fields are filled or not filled. I need the printing only if it is required.

Any ideas? Thank you.

Regards,

Kai

P.S.: If it is necessary to know: The print flag by transaction 'mb01' works correct.

Add comment
10|10000 characters needed characters exceeded

  • Follow
  • Get RSS Feed

6 Answers

  • avatar image
    Former Member
    May 22, 2007 at 03:42 PM

    Did you solved this?

    I´m having the same problem...could you help me?

    thanks

    Seba

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Jul 31, 2007 at 11:28 AM

    I'm working on the same issue and thats what I see in the help :

    <i>

    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.</i>

    Any idea?

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member

      Hi, Cenk,

      It's an older issue, still did not solve it. We are using summary slips. Setting parameter NDR in SU01 (user master record) helps and the message is created (when values VER_GR_GI_SLIP, VER_GR_GI_SLIPX are set), but we are not able to get immediate printing of documents.

      The thing is that BAPI is called from an Portal (webdynpro) application and I believe that external applications can't provide immediate printing of those messages. Am I right?

      Any help is appreciated

  • avatar image
    Former Member
    Jun 19, 2007 at 02:01 AM

    Dear all,

    Anyone have solution for this?

    Any help will rewarded

    Thanks

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Jun 20, 2007 at 03:06 AM

    Anyone?

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Dec 16, 2011 at 03:24 AM

    You may check SAP note 520813

    12. Question:

    What do I have to keep in mind if I want to trigger the print output of a goods receipt or goods issue document when I execute the BAPI?

    Answer:

    You must make sure that a user name is transferred in the PR_UNAME field in the header structure. This user is used for determining the print parameters. You must set the value 'X' for the 'NDR' parameter ID for this user. Make sure that all customizing-related settings have been made for this user.

    The GOODSMVT_CODE import parameter is relevant for the print version. The transaction code is derived from this code (see table T158G, for example, code 04 stands for MB1B). The BAPI uses the print version that is assigned to this transaction for the goods receipt/goods issue document. This is customized in transaction OMBR. Check your Customizing and make sure that you have assigned a print version to this transaction and that a conditional output record exists.

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Mar 31, 2014 at 10:38 AM

    My Requirement is that i do not want to Print the Slip

    how do i disable it
    I am Getting the print pop up to print the slip after the BAPI

    Add comment
    10|10000 characters needed characters exceeded