Call transaction 'VL33N' on click of Inbound delivery number  in ALV List.

Hi,
My ALV output is having Inbound delivery number.
If user clicks on one of the Inbound delivery it has to call transaction VL33N and display the user selected document.
Code:
WHEN '&IC1'.
IF rs_selfield-fieldname = 'VBELN'.
        READ TABLE gt_final INTO wa_final INDEX rs_selfield-tabindex.
        if wa_final-vbeln is not initial.
          FREE MEMORY ID 'VL'.
          SET PARAMETER ID 'VL' FIELD WA_FINAL-VBELN.
          CALL TRANSACTION 'VL33N' AND SKIP FIRST SCREEN.
        ENDIF.
      ENDIF.
I am setting the parameter id 'VL' by passing Inbound Delivery number.After that it is calling VL33N Screen but the Inbound delivery number is blank.In debugging i can see the SAP memory for 'VL' as the selected document number.
Why VL value is not  transferred to Inbound Delivery number field in VL33 Eventhough Parameter id having value.
VL (10)  <0180000057>
Thanks
Bhuvana
Edited by: Pulibhuvana on Nov 22, 2010 8:20 AM

Hi,
Removed Free statement.
      IF rs_selfield-fieldname = 'VBELN'.
        READ TABLE gt_final INTO wa_final INDEX rs_selfield-tabindex.
        if wa_final-vbeln is not initial.
          SET PARAMETER ID 'VL' FIELD rs_selfield-value.
          CALL TRANSACTION 'VL33N' AND SKIP FIRST SCREEN.
        ENDIF.
      ENDIF.
In background VL is passing to VL03N Transaction instead of VL33N.
Outbound delivery and Inbound Delivery both are assigned to same paramer id.
Don't undestand if i'm calling VL33N Why the paramer value is passed to Outbound delivery transaction VL03N.
Please suggest me.
Thanks
Bhuvana

Similar Messages

  • Get inbound delivery number by using material serial number

    is anyfuction module to get inbound delivery number by using material serial number?
    input---material serial number.
    output--inbound delivery number.

    Hi,
    BAPI_OUTB_DELIVERY_CHANGE
    BAPI_GOODSMVT_CREATE
    it's ok with the Function module
    CALL FUNCTION 'WS_DELIVERY_UPDATE_2'
    EXPORTING
    VBKOK_WA = LWA_VBKOK
    SYNCHRON = ' '
    NO_MESSAGES_UPDATE = ' '
    COMMIT = 'X'
    DELIVERY = P_ITEM-VBELN
    IT_SERNR_UPDATE = LT_SERIALS
    IMPORTING
    EF_ERROR_SERNR_UPDATE = L_SERNR_UPDATE
    <b>Reward points</b>
    Regards

  • User Exit or BADI for MIGO on entry of inbound delivery number

    Hi all,
    I want a user exit or BADI for MIGO, my requirement is that whenever a user enters an inbound delivery number and presses enter in MIGO the exit should get fired.
    Please help, if someone knows.
    Thanks and Regards,
    Mohammed.

    hi
    you can try out various BADI'S-
    MB_MIGO_BADI
    MB_MIGO_ITEM_BADI
    Helpful function modules:-
    MIGO_BADI_EXAMPLE
    MIGO_BADI_EXAMPLE_GET_DATA
    MIGO_BADI_EXAMPLE_GET_HEADER
    MIGO_BADI_EXAMPLE_PUT_DATA
    MIGO_BADI_EXAMPLE_PUT_HEADER
    MIGO_BADI_EXAMPLE_UPATE_DATA
    MIGO_BADI_EXAMPLE_UPDATE_HEAD
    I hope at least one of these helps.
    regards
    Aakash

  • MIGO to receive by PO or Inbound delivery number?

    HI,
    I've created a Inbound delivery with 2 line item for a PO. Then do MIGO receipt by Inbound delivery number.
    In MIGO screen, only 1 line item display. It supposed 2 line item (inbound contain 2 line item).
    So far, I havn't receipt any for this PO. Please advice.
    1. Why MIGO only display 1 line?
    2. If I receive by using PO number, is any impact on my Inbound delivery?
    Thanks

    Hi,
    If 2 line item are same material then in MIGO consider only one line item of the Goods receipt. Because the Inbound delivery of 2 line items u are receiving on the same posting date.
    MIGO only look wether you are recing parcial or full order qty. If account assignemnt category or Multiple storage location then you can divide that in the same multiple line items.
    SAM

  • I want Inbound Delivery number from Material document

    Hi,
    I wish to know where is the Inbound Delivery number (which SAP table) stored when we do a MIGO_GR against an Inbound Delivery ? I want to fetch the Inbound Delivery number from the Material document number.
    I observe, when we do a MIGO_GR against an Inbound Delivery; the original PO number (against which the Inbound Delivery was created) is stored in MSEG_EBELN. However, there is no trace of the Inbound Delivery number...neither in MKPF, nor in MSEG.
    Since a PO number- line item can have multiple Inbound Deliveries associated with it, having a PO number in MSEG is of no use to me.
    Please help.
    Thanks,
    Pranav

    Dear Pranav,
    I think you should check again, in MSEG, there's also PO -item with field name : MSEG-EBELP. So from PO and PO item , you can get all the Inbound delivery number.
    Regards,
    w1n

  • Catch the inbound delivery number when VL31n is saved.

    Hello Friends,
    In order to get inbound delivery when VL31N is saved, i am using the BADI :
    DELIVERY_PUBLISH ...this is having 2 methods.
    1.PUBLISH_BEFORE_COMMIT ( having import parameter it_changed_data...this structure is having inbound delivery number)
    2.PUBLISH_AFTER_SAVE (no parameters)
    when i am saving ....i am able to get into <b>publish_after_save</b> ...how to get
    that number into PUBLISH_AFTER_SAVE ?
    With Ever Smile & Regards,
    Madhu!!

    I dont know about said BADI but i think you can use LE_SHP_DELIVERY_PROC which has documentation in EN also and there are several methods which can be used for delivery process.

  • How to Copy Inbound delivery number in MIGO Delivery Note (GOHEAD-LFSNR) ?

    Hi all,
    I'm Creating the GRN based on Inbound Delivery and i'm looking for the option by which i'll be able to copy Inbound Delivery number in Delivery note Field (GOHEAD-LFSNR).
    Is it Possible.....How....
    Regards
    S Anand

    Hello,
    Delivery note filed in MIGO is for Number of External Delivery Note. If you enter External ID in Inbound delivery then it will copy the same in MIGO.
    Regards,
    Shailesh

  • BADI for VL31N which has the Inbound Delivery Number as a parameter.

    Hi,
    I have a requirement that after creation of a new inbound delivery through VL31N the control should go to a custom screen. The new inbound delivery no. generated thru VL31N should be seen in this custom screen.
    I am searching for a user exit or BADI for VL31N. This exit should have the Inbound delivery Number created through VL31N.
    I tried many exits and BADIs. However, none of them have the Inbound Delivery No.
    Please help.
    Regards,
    Jaya

    The issue was resolved by the use of the BADI 'DELIVERY_PUBLISH'. Its method PUBLISH_AFTER_SAVE was used.
    IF sy-tcode = 'VL31N' OR sy-tcode = 'VL32N'.
        DATA : v_tcode TYPE sy-tcode .
        FIELD-SYMBOLS: <i_del> TYPE likp.
        DATA: wa_likp TYPE likp,
                    t_likp TYPE STANDARD TABLE OF likp.
        ASSIGN ('(SAPMV50A)LIKP') TO <i_del>.
        wa_likp =  <i_del> .
        SET PARAMETER ID 'VL' FIELD wa_likp-vbeln .
      ENDIF.

  • Details from Inbound delivery number(VBELN)

    Hello Gurus,
    Can anyone suggest me how to arrive at the following fields if i am given with inbound delivery number(VBELN).
    The fields are:
    1) Due date(GR date)
    2) Vendor delivery number
    3) Material
    4) Name of material
    5) Quantity
    6) Vendor
    7) Name of Vendor
    Would help if  table and the field names for the above are given.

    Hello Prashant,
    Thanks a lot for the useful info.
    The fields i got are:
    1. Inbound delivery number - VBAK-VBELN
    2. Due date (GR date)       - ??
    3. Vendor delivery number - ??
    4. Material                       - VBAP-MATNR
    5. Name of material          -VBAP-MATWA
    6. Quantity                      -??
    7. Vendor                        -LFA1-LIFNR
    8. Name of vendor            -LFA1-NAME1
    Could you pls check if the fields are right and also provide the missing details?

  • Need BDC code for Call Transaction of VL31N, which creates Inbound del.s,

    Hi Experts,
    Is any body does have the BDC (CALL TRANSACTION) code for VL31N transaction, where we can crete INBOUND deliveries from Purc Orders.
    Actually, currently am doing by using FM - GN_DELIVERY_CREATE, but, its not given me a chance to incorporate BATCH SPLIT functionality. So, decided to go with BDC
    1 - Is this VL31N is Okay for BDC, bcoz, some where I red that, since its a ENJOY tx, its NOT recommended?
    2 - Is there any other FM, BAPI to create INBOUND deliveries from POs, which can take care of BATCH SPLIT functionality?
    3 - BDC code for VL31N  tx.
    thanq
    Edited by: Srinivas on Jul 29, 2008 1:47 PM

    1 - Is this VL31N is Okay for BDC, bcoz, some where I red that, since its a ENJOY tx, its NOT recommended?
    yes you can do that .
    2 - Is there any other FM, BAPI to create INBOUND deliveries from POs, which can take care of BATCH SPLIT functionality?
    using BDC we can achieve the  Barch split functionality.
    3 - BDC code for VL31N tx.
    Record using SHDB it will give you.

  • How to get inbound delivery number according to materail document number

    Our business scenario:
    1) ME21N, to create NB purchasing document
    2) VL31N, to create inbound delivery based on NB purchasing document
    3) MIGO, to receive the material to storage location based on inbound delivery, then materail document number will be generaated.
    My question is that how shall I find the original inbound delivery based on the materail document number? Thanks very much.
    King qi
    2008-08-21

    Sridhar,
       Yes, you can find inbound delivery in confirmation tab, and GR material document in PO history, but still can not find the matching relattionship between inbound delivery and GR material document.
    For example
    PO             inbound delivery/qty     GR material  document/qty
    450000690      6900001/100             5000001/40
                          6900001/100             5000004/60
                          6900003/80               5000008/70
    this is my simulation for the matching relattionship between inbound delivery and GR material document.
    in fact, this will be more complex in real world, my question is to get the original inbound delivery  based on the GR materail document number.
    thanks.

  • Inbound delivery   / GR   Report

    Dear All,
    Any SAP standard report available which shown me data  which  (particular GR  number create against particular inbound delivery number  ) or  any list  inbound delivery against GR number
    1.     Right  we  first create  PO 
    2.     After that  create inbound delivery
    3.     Then  against inbound delivery create GR
    4.     After that GR against done miro
    Purpose of information is this   if today  I m create 50 inbound delivery  and our store department  people create  45 GR …. So in this  case I am able to  trace out  which  5 GR  not created  by our store department   
    Regards
    Maheru

    Hi,
    Please try transaction MB51. GR is displayed as default and you can insert 'Reference' field (that contains delivery doc. no.) into your layout from possible field list.
    BR
    Csaba
    Edited by: Csaba Szommer on May 13, 2008 8:47 AM
    Edited by: Csaba Szommer on May 13, 2008 8:48 AM

  • Alv grid - call transaction 'ME22N' and reflect the change made in alv grid

    Hi,
    <u>Scenario</u>
    I have an alv list which has fields Purchase document no. (EBELN) and Item delivery date (EINDT). EBELN field is hot spot enabled. when i click on that transaction 'ME22' is called. I have done this using USER_COMMAND subroutine.the code is given.
          FORM USER_COMMAND                                             *
    Call transaction ME22N on clicking Document number                 *
    FORM USER_COMMAND USING F_UCOMM LIKE SY-UCOMM
                    I_SELFIELD TYPE SLIS_SELFIELD.
      DATA: F_SUBRC LIKE SY-SUBRC,
            s_arseg like G_T_PORD. "the internal table used is G_T_PORD
      CASE F_UCOMM.
        WHEN '&IC1'.
          IF i_selfield-fieldname = 'EBELN'.
            READ TABLE G_T_PORD INDEX i_selfield-tabindex INTO s_arseg.
            SET PARAMETER ID 'BES' FIELD s_arseg-ebeln.
            CALL TRANSACTION 'ME22N' AND SKIP FIRST SCREEN.
          ENDIF.
      ENDCASE.
    endform.
    <u>Requirement</u>
    After calling the transaction, If the user changes the Item delivery date (EINDT) at the ME22 transaction screen, the new date needs to be reflected in the ALV grid.
    Plz help it is very urgent.

    The first method (using selfield-refresh = 'X'.) didn't work as the internal table doesnt get modified when the user make changes in Item delivery date(EINDT) at ME22 transaction screen. The 2nd method is OO,which can't be used in my case.
    I tried calling the subroutine for populating the itab (G_T_PORD) and the subroutine for displaying the alv grid immediately after calling ME22N transaction. Still it is not reflecting the new date in the output alv. The code is given below.
          FORM USER_COMMAND                                             *
    Call transaction ME22N on clicking Document number                 *
    FORM USER_COMMAND USING F_UCOMM LIKE SY-UCOMM
                    I_SELFIELD TYPE SLIS_SELFIELD.
      DATA: F_SUBRC LIKE SY-SUBRC,
            s_arseg like G_T_PORD.
      CASE F_UCOMM.
        WHEN '&IC1'.
          IF i_selfield-fieldname = 'EBELN'.
            READ TABLE G_T_PORD INDEX i_selfield-tabindex INTO s_arseg.
            SET PARAMETER ID 'BES' FIELD s_arseg-ebeln.
            CALL TRANSACTION 'ME22N' AND SKIP FIRST SCREEN.
          ENDIF.
      ENDCASE.
            refresh G_T_PORD.
            perform F1000_POPULATE_PO.
            perform F2000_DISPLAY_PO .
    endform.

  • Error when updating PO and Inbound Delivery

    Hi,
        I am facing an error in one of my programs where I am making updates to a PO and its Inbound Delivery.
        I am processing multiple POs, the details of which are read from a text file.
        These PO's are processed in a loop, and for each PO, the 'BAPI_PO_CHANGE' is first called and then
        I am using BDC over transaction 'VL32' to update the Inbound Delivery.
        However, when I try to process multiple PO's, it gets stuck when updating the Inbound Delivery of the second PO
        itself. When the BDC for updating the inbound delivery is called, I get an error message informing that the 'PO' is
        still being processed.
        I am not sure why this error is occurring because I am calling the 'BAPI_TRANSACTION_COMMIT' after updating the PO.
        Any suggestions for solving this would be a great help.
    Regards,
    Sudeep

    This because the locks aren't already deleted.
    After the "BAPI_TRANSACTION_COMMIT", try this code
    do.
    CALL FUNCTION 'ENQUEUE_READ'
       EXPORTING
         gclient = sy-mandt
         guname  = '*'
         gname   = 'EKKO'
         garg    = garg                     "YOUR PURCHASE ORDER
       IMPORTING
         subrc   = vn_subrc
       TABLES
         enq     = tb_enq
       EXCEPTIONS
         OTHERS  = 1.
    if tb_enq[] is initial.
        exit.
    endif.
    enddo.
    In this way, you avoid locks and you can process the Inbound delivery
    Edited by: Simone Milesi on May 5, 2010 10:38 AM

  • Workflow for vl32n - Change inbound delivery

    Hi All,
       I need to create a workflow after saving the putawayqty field in vl32n.
    I will enter the inbound delivery number and i will change the qty field . then i will click on save button.
    Then after saving, workflow should be trigerred.
    But there is no event getting trigerred for this transaction.
    How to trigger  a event? so that i can activate my workflow according to that event.
    Is event should be trigerred via userexit or Badi's.
    if userexit or Badi's, which user exit i should write a code to trigger the event.
    Its urgent.
    Points will be awarded.
    Regards,
    Sandhya.

    Hi,
    The requirement is to trigger a workflow, when an inbound delivery is changed. However, the solution suggested by you, is a workflow, which is triggred when inbound delivery is created. Is there any workflow which is triggred when inbound delivery is changed? Or do any of you know the user exit or badi where a new task can be implemented, when a inbound delivery is changed?
    Regards,
    Sandhya

Maybe you are looking for

  • MacBookAir is shutting down randomly

    I recently downloaded Maverick, and then my computer began shutting down randomly. I cannot even get 5 minutes on it. Also, at the time of writing, it has been plugged in for 2.5 hours, and has only charged from 82% to 93%. This was sufficient timing

  • Video wont fill upp entire screen when looking at TV

    I just cant get the aspect ratio correct. Ive searched everywhere (entire internet) f or an answer but cant find it. This is not a specific AE-question but I have the same problem there. Im trying to create a video slideshow that will run on a TV, pl

  • Create a second invoice for one condition in my price procedure.

    Hello, I am facing the following problem: I have a price procedure in which I have several conditions. One of these conditions ZZ01 (a discount) is statistical and has to be invoiced on a seperate invoice (immediately not via rebates). I create my ma

  • Open bookmark as an app tab?

    In Firefox 4.0.1, is it possible to always have a bookmark launched in an app tab? For example, I middle-click a Google bookmark on my bookmarks toolbar, and the Google website is spawned in a new app tab, rather than a normal tab.

  • Open Hub destinations

    I am using open hub destinations to transfer the cube data into database tables in BI.During activation of open hub the database tables with names /BIC/OH* are created. I am facing problem with the reference fields associated with this table.It is ta