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

Similar Messages

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

  • 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

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

  • 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

  • How to give a print in background

    Hi all,
    Iam doing goods movement in background using Bapi 'BAPI_GOODSMVT_CREATE', but the documents does'nt get printed. But when iam manually running the program the document gets printed. Is there any way to print the documents in background.
    Please send your suggestions,
    Rajesh.

    hi rajesh
    Hi,
    v_print = 'X' only for printing else it is space
    first setup print parameters..
    Setup the Print Parmaters
    CALL FUNCTION 'GET_PRINT_PARAMETERS'
    EXPORTING
    AUTHORITY = SPACE
    IMMEDIATELY = V_PRINT
    NEW_LIST_ID = C_X
    NO_DIALOG = C_X
    USER = SY-UNAME
    IMPORTING
    OUT_PARAMETERS = V_PRINT_PARMS
    EXCEPTIONS
    ARCHIVE_INFO_NOT_FOUND = 1
    INVALID_PRINT_PARAMS = 2
    INVALID_ARCHIVE_PARAMS = 3
    OTHERS = 4.
    IF SY-SUBRC NE 0.
    CLEAR : V_PRINT_PARMS.
    ENDIF.
    The printer destination has to be set up
    IF V_PRINT_PARMS-PDEST = SPACE.
    V_PRINT_PARMS-PDEST = LC_LOCL.
    ENDIF.
    Explicitly set line width, and output format so that
    the PDF conversion comes out OK
    V_PRINT_PARMS-LINSZ = C_LINSZ.
    V_PRINT_PARMS-PAART = LC_PAART.
    then u need to write the below comand..
    NEW-PAGE PRINT ON PARAMETERS V_PRINT_PARMS NO DIALOG.
    perform output_display.
    NEW-PAGE PRINT OFF.
    in the perform output_display..
    u need to write write statements...thre...
    regards
    navjot

Maybe you are looking for

  • Error in starting SAP application

    Hi gurus, when i execute STARTSAP ALL , getting a message as ABAP Database not available TNS -12541 no listener then i executed lsnrctl status TNS-12541: TNS:no listener TNS-12560: TNS:protocol adapter error   TNS-00511: No listener    Solaris Error:

  • Order Block effecting Ship-to partner

    In SAP R3E, an order block on the customer master appears to prevent placement of that partner on blocked sales document types for the sold-to, ship-to and payer partners (if not others perhaps).  Has anyone tried to open this up a bit more for the s

  • Cannot connect to USB shared disk

    The other day got my new Airport Extreme-n and up unitl now it has worked solidly. The most annoying problem is accessing shared USB disks. I have attached a USB disk to the ABE and it is recognized. Then, enabled disk sharing with a simple disk pass

  • Content canvas is not displaying . It contain only one control block .

    Hi , In my form , i have only one control block . in this block i have one display item. I have specified canvas for this item as "CANVAS4". I have created "canvas4" . and i have adjusted display item position in canvas. In this case while running fo

  • Buying music from the iTunes store with Apple TV.

    Since changing to the new Apple TV I can't find a way to purchase Music directly from the iTunes store. I can rent and buy Movies, so IO'm sure there must be a way but I can't seem to work it out.