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

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

Similar Messages

  • Trigger print from custom RF transaction

    Hi! All,
    I have created a custom RF transaction that creates HU, packs with material and moves it from origin to a destination Sloc. I have used the FM BAPI_HU_CREATE & HU_CREATE_GOODS_MOVEMENT. Now if the user wants to print a lebel, how do I connect this code to the output type created. I am confused. HU_CREATE_GOODS_MOVEMENT does not have any parameter to trigger print like BAPI_GOODSMVT_CREATE.
    Any suggestion is greatly appreciated and will be rewarded.
    Thank You,
    -Priyanka

    Hi
    You can create a background job dynamically to execute a program that will call a transaction/create a spool request. Pass the printer parameters to print immediately.
    I have used this method to schedule an email when goods receipt is completed.
    Regards
    Raj

  • BAPI_GOODSMVT_CREATE u2013 Collective slip not printed when called from Biztalk

    Hi Experts,
    Iu2019m trying to call BAPI_GOODSMVT_CREATE from within a Biztalk Orchestration.
    Everything works fine except for one thing: The printing of the collective slip.
    I made a quick test and the collective slip is printed when I call BAPI_GOODSMVT_CREATE from transaction SE37 (Test Sequences).
    I have used exactly the same parameters for the two cases.
    I can see that when I call the BAPI from SE37, an output is generated for the material document (MB03 / details / messages). 
    This is not the case when the call comes from Biztalk.
    I followed the documentation and the notes 520813 (Question 12), 426554.
    This means that:
      - The user executing the BAPI has the parameter NDR set to u2018Xu2019 in his profile.
      - VER_GR_GI_SLIP is set to u20183u2019 to ask for the collective slip print out.
      - VER_GR_GI_SLIPX is set to u2018Xu2019 to enable the print out.
    What should I do to be able to print a collective slip when calling the BAPI from Biztalk ?
    Thank you in advance for your help,
    Francisu2026

    hi,
    check out this thread.
    Re: User Exit for MSC2n( Batch) while doing a Good receipt for an order
    Ashutosh

  • Print GR slip using BAPI_GOODSMVT_CREATE

    Hi,
    My Output ype is configured but when i create GR via BAPI_GOODSMVT_CREATE (GOODSMVT_CODE = 03), the output is not determined.
    any help on it pls?

    Hi,
    have a look at note 520813. Especially, have a look at question 12 - "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?".
    Cheers

  • Disable print output when using bapi BAPI_GOODSMVT_CREATE

    Hello,
    I am using BAPI BAPI_GOODSMVT_CREATE to post material documents in our programs.
    I wish to prevent the print output of the documents created by the BAPI.
    Meaning - when the user post good movement using MIGO, there will be a printout of the movement, but if the movement is created using BAPI_GOODSMVT_CREATE, no output will be printed.
    I have tried sending blank values in fields VER_GR_GI_SLIP & VER_GR_GI_SLIPX in GOODSMVT_HEADER structure, but to no avail.
    Is there a way to disable printing ONLY when using the BAPI?
    Thank you very much.

    Hi,
    We cant restrict the print preview or print out of the material document. Once the condition record has maintianed for the material document, it ll applicable for all the material doc . It would be manual Gr or BAPI GR.
    In your case Print is coming automatically or user is taking the print !!
    Regards,
    Dhanush.

  • 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.

    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.

  • BAPI_GOODSMVT_CREATE - printing error

    Hi,
          Iam using  "BAPI_GOODSMVT_CREATE" to create transfer posting document (for T-code MB1B). The document is created perfectly. My issue is, Iam not able to print that document in MB90.
         In MB1B transaction, there is a Print check box in screen. If it is ticked, document created via MB1B is able to print using transaction MB90. But when using above BAPI, I could not find any suitable field to pass this print tick value.
         How to print documents created through this BAPI. Any help is appreciated.
    regards,
    Nagaraj.

    hi
    good
    Please take a look at this links for sample coding of BAPI_GOODSMVT_CREATE.
    http://www.sap-img.com/abap/bapi-goodsmvt-create-to-post-goods-movement.htm
    http://www.4ap.de/abap/bapi_goodsmvt_create.php
    thanks
    mrutyun^

  • BAPI_GOODSMVT_CREATE - Document Printing

    Hi Experts
    Is there any way to Print the Material document automatically after executing the BAPI_GOODSMVT_CREATE.
    Regards
    N.Saidasan

    hi
    change the coding as required in the BAPI and do it

  • BAPI_GOODSMVT_CREATE No print

    Hi All,
    I am using  BAPI_GOODSMVT_CREATE to create material Document and I am unable to get Print .
    I have checked config settings and everything fine and  I am able to create Same Through MIGO tcode.
    I filled these parameters in BAPI.
    PR_UNAME
    HEADER-VER_GR_GI_SLIP = '1'.
    HEADER-VER_GR_GI_SLIPX = 'X'.
    Regards,
    Esh

    Within the BAPI the table USR05 is checked for Parameter ID NDR(Print via output control in MM - Inventory management) it's the parameter ID linked to the field XNAPR.
    To make it work just update the table USR05 with the required setting and then execute the BAPI.
    Once the procecssing is done reset the value in the table to the default.
    Geting and setting the parameter ID doesn't work.
    This the code I have:
    Store current value in temp variable
    SELECT SINGLE * FROM usr05 WHERE bname = sy-uname
    AND parid = 'NDR'.
    old_prflag = usr05-parva.
    Set the new value
    usr05-parva = rm07m-xnapr.
    UPDATE usr05 SET parva = usr05-parva
    WHERE bname = sy-uname
    AND parid = 'NDR'.
    Execute the BAPI
    CALL FUNCTION 'BAPI_GOODSMVT_CREATE'
    EXPORTING
    goodsmvt_header = gm_head
    goodsmvt_code = gm_code
    testrun = ' '
    IMPORTING
    materialdocument = g_mblnr
    matdocumentyear = g_year
    TABLES
    goodsmvt_item = gt_item
    return = gt_return
    extensionin = gt_ext.
    Set the print Parameter back
    usr05-parva = old_prflag.
    UPDATE usr05 SET parva = usr05-parva
    WHERE bname = sy-uname
    AND parid = 'NDR'.
    Moderator message: directly updating SAP standard tables is not recommended!
    Edited by: Thomas Zloch on Dec 2, 2010 11:53 AM

  • Printout GR Slip when GR posted via BAPI_GOODSMVT_CREATE

    Dear all ,
    We need to printout the slip when we do the Goods receipt with movement type 101 via BAPI_GOODSMVT_CREATE.
    We set the user parameter NDR with value X in the User parameters to bring the field always on in the MM transactions but when we post GR via this BAPI_GOODSMVT_CREATE  there's no form printed out.
    Does anyone knows if is possible to printout an slip when we are posting GR via BAPI ?
    Best regards,
    Ale

    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.

  • Some fields in BAPI_GOODSMVT_CREATE

    Hi Abapers,
    I am usiing BAPI_GOODSMVT_CREATE for the MIGO transaction for creating material document.
    With movement type '101' and MVT_IND = 'B'.
    In this am not able to find out some fields like ' 1. Activate Print (XNAPR) , 2.Quantity in delivery note (LSMNG) , 3. unit of measure (LSMEH).
    Please let me know how to get these field.
    Thanks & Regards,
    Simha S

    hi shakya
    check this thread.
    Re: About BAPI_GOODSMVT_CREATE
    Set parameter is used to set the values of screenfields like checkboxes,
    when u set it as X means u r ticking a checkbox
    Anyways i dont think this has anything to do with ur requirement. I guess so!!
    кu03B1ятu03B9к
    Edited by: kartik tarla on Jan 22, 2009 9:31 AM
    Edited by: kartik tarla on Jan 22, 2009 9:34 AM

  • Print during BAPI call in backround

    Hi all...
    I am creating 351 movement using BAPI_GOODSMVT_CREATE in backround,during transfer Order confirmation...I want to print the details after job as been completed,is there any option to give in the BAPI function module...
    Note: If I do manually I am getting printout

    Hello,
    the problem is in this line:
    function.getImportParameterList().setValue(0000000001 , "DEBTORID");
    it should be:
    function.getImportParameterList().setValue("0000000001" , "DEBTORID");
    if you had read the RETURN Structure you would have get more information
    JCO.Structure ret = function.getExportParameterList().getStructure("RETURN");
    System.out.println("BAPI_DEBTOR_GETDETAIL RETURN: " + ret.getString("MESSAGE"));
    If you want more information about the Customer I think it's better to use "BAPI_CUSTOMER_GETDETAIL2".
    Reagards
    Gregor

  • About BAPI_GOODSMVT_CREATE

    Dear experts,
    I have created program upload GR data by call function module BAPI_GOODSMVT_CREATE,and in MIGO screen,there is one checkbox 'Print via output control',I must set it check status.But in BAPI_GOODSMVT_CREATE,I can not find this importing parameter.
    Could you give me any idea?
    Thanks and regards,
    collysun.

    Hi
    Just before BAPI call put this line in code
    SET PARAMETER NDR VALUE 'X'.
    It should work .
    Cheers

  • About BAPI_GOODSMVT_CREATE urgentuFF01uFF01uFF01

    I am using the BAPI 'BAPI_GOODSMVT_CREATE' to post.
    But, there is a small problem. When we post Po's using
    MIGO, there is a check box for printing the material
    document generated. The defualt setting is 3 -
    Collective Slip. When MIGO is used, the user has to
    click the checkbox next to this input feild, then
    using MB90 we can print the material document.
    There is a header field in the above BAPI
    VER_GR_GI_SLIP which I set to 3. I was hoping that
    this would take care of generating the print preview
    for the material document through MB90. But, it
    doesn't happen.

    You need to pass VER_GR_GI_SLIPX along witht he VER_GR_GI_SLIP.
    Like
    HEADER-VER_GR_GI_SLIP = '3'.
    HEADER-VER_GR_GI_SLIPX = 'X'.  " << To let the BAPI to that we are changing VER_GR_GI_SLIP
    Regards,
    Naimesh Patel

  • Print via Output Control(XNAPR) field in MIGO to be checked through BAPI

    Hi Sir,
    I am creating goods movement using BAPI 'BAPI_GOODSMVT_CREATE'. I am able to fill all field exect the check bos for Print via Output Control(XNAPR) field in MIGO Header screen. I am unable to find out any field corresponding to this in the BAPI structure so that I can put 'X' in that.
    Please help me and I have to do this only using this BAPI.
    Regards
    Krishan

    Hi,
    I figured this one out, it's faily simple.
    Within the BAPI the table USR05 is checked for Parameter ID NDR(Print via output control in MM - Inventory management) it's the parameter ID linked to the field XNAPR.
    To make it work just update the table USR05 with the required setting and then execute the BAPI.
    Once the procecssing is done reset the value in the table to the default.
    Geting and setting the parameter ID doesn't work.
    This the code I have:
    Store current value in temp variable
          SELECT SINGLE * FROM usr05 WHERE bname = sy-uname
                                     AND   parid = 'NDR'.
          old_prflag = usr05-parva.
    Set the new value
          usr05-parva = rm07m-xnapr.
          UPDATE usr05 SET parva = usr05-parva
                    WHERE bname = sy-uname
                      AND parid = 'NDR'.
    Execute the BAPI
          CALL FUNCTION 'BAPI_GOODSMVT_CREATE'
            EXPORTING
              goodsmvt_header  = gm_head
              goodsmvt_code    = gm_code
              testrun          = ' '
            IMPORTING
              materialdocument = g_mblnr
              matdocumentyear  = g_year
            TABLES
              goodsmvt_item    = gt_item
              return           = gt_return
              extensionin      = gt_ext.
    Set the print Parameter back
          usr05-parva = old_prflag.
          UPDATE usr05 SET parva = usr05-parva
                    WHERE bname = sy-uname
                      AND parid = 'NDR'.
    Regards,
    Jeroen

Maybe you are looking for

  • ITunes 10.5 and IOS 5 sync hang at "Waiting for items to copy", possible fix

    After seeing many other threads, I am hesistant to start my own. However, I thought it worthwhile to share how I fixed this problem on my iPad 1. SYMPTOM: iTunes sync doesn't complete, with the message "Waiting for items to copy" displayed. There are

  • NTSC switches to PAL in clamshell

    When connected to a TV via RCA out to TV from MacBook the MacBook switches to PAL every time I close the MacBook. Very frustrating. I have tried rebooting with the tv connected and closing the MacBook immediately. This used to work on my old iBook G4

  • Is there a way to capitalize a string using batch rename regex in Bridge?

    Has anyone had success using more advanced pieces of regex to properly rename strings? I want to Capitalize the 3rd back reference in a file name, and although I believe I'm following the proper way of doing so via Replacement Text Case Conversion, B

  • FIX:::  NSURLErrorDomain error -1012  [for Avast users]

    If you've been unable to receive updates from the Mac App Store, and getting this particular error (NSURLErrorDomain error -1012), then you can do the following in order to enable your Web Shield again. 1.  Open Avast Preferences 2.  If Preferences i

  • Ok I REALLY need some help

    Please post anyhting you can to help me out, I've had this ipod for so long now... and recently itunes has just been being incredibly stupid for me. So here is how it all began, few days ago i connect my ipod... and it auto syncs it, even when that f