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.

Similar Messages

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

  • 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

  • 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

  • PO delivery date changed according to delivery date on the inbound delivery

    Hi!
    Initial PO date is changed according to the inbound delivery date when I create inbound delivery.
    For example, initial PO has order qty. 1000 and delivery date 8/10/07.
    And then I created inbound delivery for that PO with qty. 500 and changed delivery date to 8/5/07 on the inbodund delivery. Then when I check PO again, PO line item delivery date was changed to 8/5/07 which is
    inbound delivery date. I think remaining 500 should have the same
    delivery date originally assigned unless we change manually.
    If somebody have experience, please let me know.
    Thank you!

    Dear Wan Lee,
    I think you also need to check for your Configuration setting for confirmation:IMGMM> Purchasing-->Confirmation.
    Regards,
    w1n

  • Problem in posting the goods receipt with reference to the inbound delivery

    Hi All,
    Below is the explanation of the scenario:
    1. Materials are purchased (PO created in CAS as order unit) and inbound delivery document is created in cases as well.
    2. When the TO is created for put away (we are performing put away using the hand held devices) the line item is split resulting in new line item number created
    3. When the TO is confirmed the del quantity on the split line item is zeroing out and as a result the system is treating it as a service item with zero del quantity and is stopping from performing the GR with respect to the inbound delivery document
    And also the inbound delivery is disappearing from the confirmation tab on the PO)
    This is happening only with the materials which have an alternate unit set up in the material master (in this scenario CAS is the order unit and JAR is the base unit of measure)
    Can some one help fix this?

    Hi,
    There is no standard option available and I don't think that there is any feasible way of stopping this without the use of a user exit (as already suggested).
    But even the user exit option would be complex because it would have to block off the PO number field after enter (or any other key) was pressed.
    It would also have to stop the use of multiple entries via the "find" option.
    If you have a valid reason for doing this, have you thought of trying to get your users to do as they are told instead of changing the system?
    Why is it important to have one PO per GR ?
    Steve B

  • How to find out the Group Delivery Number from STO

    User performed WA08 to create Vendor PO and STO for stores.
    When GR was carried out on the Vendor PO, multiple Delivery Order were auto-generated.
    Now, is there a place whereby User could identified the Group Delivery Number which
    links all the DOs generated based on either
    a. The STO number  OR
    b. The vendor PO number OR
    c. the allocation table.
    Can some assist?

    Hi,
    Please check these tables
    LIPS...
    VBELN: for Delivery Number
    VGBEL: for STO Number
    with the above chk this.
    VBSS...
    SAMMG: Group Number
    VBELN: Sales and Distribution Document Number
    Regards
    GK.

  • Need help in updating Inco terms 1 and 2 in the Inbound delivery creation

    Hi Group,
    I have created an output type that will be triggered before an Inbound Delivery is created from the Outbound Delivery ( this scenario is in STO orders - Inter company stock transfer process ).
    I have copied a standard processing routine and customized it but, I am not able to update the 2 fileds (INCO1 and INCO2) in the item delivery of the Inbound Delivery. I was using the FM 'WS_DELIVERY_UPDATE' to update these 2 fields( by passsing the values fetched from the Outbound Delivery into the structure 'vbkok_wa' and the Inbound delivery created into the field 'delivery' of the FM ).
    When I run the the FM this is giving me errors and thus no Inbound Delivery is getting created.
    Please suggest me with some other way of updating these fields in the Inbound Delivery.
    and one more thing is that, I was selecting the Inco terms from the table LIKP directly, but this should not be the proper way to read the Incoterms, so please suggest me a way to read these 2 fields from the Outbound Delivery.
    to summarize, I need an FM to get the Incoterms from Outbound Delivery initially, and then, require another FM to update these Incoterms in the Inbound Delivery( this is a typical scenario in an STO - Stock Transport Order ).
    Please let me know your input on these 2 cases.
    Thanks for the help in advance.
    Regards
    Vishnu.

    Hi Group,
    By implementing the BADI 'LE_SHP_DELIVERY_PROC' this particular requirement can be fulfilled.
    Regards
    Vishnu.

  • Vendor batch and batch field on the inbound delivery

    hi GUrus,
    i have looked through most of the threads where the topic of vendor batch and batch on the inbound delviery has comeup. I'm specifically looking at a scneario where i would want to pass the on the batch number provided by the vendor on the IDOC to batch field on the inbound delivery. The reason for this is , i can look at the batch field in the confirmations tab of the PO, in the purchase order histroy tab of the PO, and also MMBE tcode. the material is also batch managed turned on in hte material master. But the issue is that even though i put the batch provided by vendor in the CHARG field on the ASN IDOC, it is still getting populated in the vendor batch field in the inbound delivery.
    any ideas?
    Thanks
    Ravi

    Hi,
       Refer the note:  833668 - Creating batches in the inbound delivery using IDOC  which explains the system design.
    Regards,
    AKPT

  • Dates on the inbound delivery header

    Hi Gurus,
    Can anybody please explain me what is the use of dates tab on the inbound delivery header. What is it used for? How can we activate/populate this. We are looking for the ASN functionality to be turned on. Any help is greatly appreciated
    Thanks
    Anusha

    Picking = planned time to start picking
    Trans. Planning = planned time to start processing shipment
    Loading = planned time for loading
    Planned GI = planned goods issue date
    Delivery Date = planned date to deliver
    The dates can be used for planning various warehouse activities and they should be populated by the system when the delivery is released based on entries maintained in the sales order.
    The dates can all be the same or different depending on your needs. They are used for various things (depending on your config) we use the planned goods issue date to show the date we want to the delivery to ship and we us the transportation planning date (same as planned goods issue) to calculate transit time for revenue recognition.
    basically delivery processing, shipping scheduling dates that can be used or not depending on your needs

  • 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

  • Create Third Party Invoice after the Inbound Delivery Creation

    Hello,
    We have a requirement in 3rd party order process, where create invoice with reference to 3rd party order/ items after the inbound delivery completion.
    Normally 3rd party invoice creation will be done after the MIRO transaction.
    For this, I have checked the Item category billing relevance & copy controls between OR & F2, TAS and I couldnt get any idea for this requirement.
    Please let me know if you have an Idea.
    Regards
    Suresh.

    dear friend,
    the following info would help:
    If relevance for billing indicator for the item category has been set to B (relevant for order-related billing on the basis of the order quantity) in Customizing, the system includes the order in the billing due list immediately. If, however, the indicator has been set to F (relevant to order-related billing on the basis of the invoice quantity), the system does not include the order in the billing due list until an invoice from the vendor has been received and processed by the purchasing department. In the standard system, item category TAS (third-party order processing) has been given billing-relevance indicator F.
    In the first case, the third-party order is considered to be completely billed only when the invoiced quantity equals the order quantity of the sales order item. In the second case, each time a vendor invoice is received, a customer invoice is created for the quantity in the vendor invoice and the order is considered to be fully invoiced until the next vendor invoice is received.
    If you have activated billing-relevance indicator F for item categories in Customizing, billing can refer to the goods receipt quantity instead of the incoming invoice quantity.
    You can control whether the invoice receipt quantity or the quantity of goods received is relevant for billing in Customizing for copying control for billing at item level.
    regards,

  • How to skip the Inbound Delivery while updating LA confirmations via EDI

    Hi Experts,
    I have a requirement wherein I dont want to create Inbound Delivery automatically when updating the LA (or a copied Conf Cat of LA) confirmation via EDI.  When we are using the message type DESADV, LA confirmations are being updated, but simultaneously, the Inbound delivery also being created.  My client desires that Inbound Delivery should not happen and only LA confirmation should be updated via EDI.
    Is there anyway, by which we can skip the Inbound Delivery while updating the LA confirmations in the PO?
    Thanks in advance
    Regards
    Radha Krishna

    Hi Prabhaharan,
    Thanks for your quick response.
    My requirement is to have both AB and LA confirmations.  I have included these two in a new the conf control   So, your suggestion will not work.
    Is there any other way out to fulfill my requirement?
    Thanks & Regards
    Radha Krishna

  • After reversing the Inbound delivery in VL09, lock in LT0G

    Hi,
    I am canceling a Inbound delivery (Plant - WM managed) thru VL09 and then trying  return to stock using LT0G.
    But I am getting lock, unable to reverse stock/TO , and the log says " Scheduled quantity exceeds available/picked quantity ".
    LS24 shows no stock available for the material in the Storage type,
    but surprisingly this LT0G some times works fine & some times show this lock and unable to proceed further.
    What is the setting or process missing? are we not suppose to use VL09 and LT0G subsequently?
    Is there any other better way to do this? and what is the proper way to do this?
    Appreciate your suggestions to either unlock the item or reverse the stock or unpick the qty in the Inbound delivery.
    Thankyou,
    Ravi

    Hi Chris,
    Please find the detailed process steps in my scenario
    Creation process:
    1. Create Inbound delivery : VL31N & save it.
    2. VL32N- and then subsequent function- create TO & save it.
    After confirmation of the TO, the below happens in background.
    TO - Putaway the stock from 902 to 011 storage type.
    3. VL32N - PGR.(Post Goods Receipt)
    Cancelation process:
    Successful Example: (pre-existing stock)
    1. VL09 - Cancelation successful
    2. LT0G - Successful.
    Before PGR: LS24 Stock
    Inbound delivery qty =1
    After TO created.
    After TO confirmed
    After PGR :LS24 Stock  (Before VL09)
    After VL09
    After LT0G successful
    After the TO is confirmed
    Status overview screen

  • Catch the process id number in unix

    With my java program I run command in Unix. This application I start in background (nohup start.sh &). How can I catch the process ID number of my application? I use next string for code:
    String command[] = {"/bin/sh", "-c", "/bin/" + command, "/bin/searcId"};
    In run this line whit Runtime.exec()
    command is "nohup start.sh &" and the searchId is a Unix script for catching process ID number (this script works fine, when I run it in Unix).
    What can be wrong???
    MArko

    I arrived at this thread doing a Google search on how to obtain the process id of an executable launched from Java. The following code is not recommeded for released code, but it was helpful for my debugging purposes.
    try
        Process proc = Runtime.getRuntime().exec("executable");
        Field pidField = proc.getClass().getDeclaredField("pid");
        //pid field in UNIXProcess class is private - make it accessible
        pidField.setAccessible(true);
        System.out.println("Exec'ed process ID is: " + pidField.get(proc));
    catch (Exception e)
        e.printStackTrace();
    }The process id field for the UNIXProcess is "pid." On Windows, I believe it is "handle."

Maybe you are looking for

  • Surround sound in films causes iTunes to crash

    Hey there. I recently bought the films Pulp Fiction and Inception. But for me there is a big problem. Everytime I select the surround option iTunes kind of crashes. The film stops and after a few seconds, if i don't switch back to stereo, iTunes free

  • Badi for Z-Fields updating using BAPI_CONTRACT_CREATE

    Hi Experts, I need badi name required for updating Custom fields in contract while creating purchase contract. I am using BAPI_CONTRACT_CREATE for creating contract. Thanks & Regards, Sushant singh

  • Connecting a wrt310n wirelessly to a wrt310n

    I have a wrt310n connected to my modem, and placed in my living room.  Upstairs, I have my PC and xbox 360 that I would like to connect to my wireless network.  I have a 2nd wrt310n that I would like to put in my office and connect my Pc and 360 to,

  • Final Cut Express Chroma Keyer stop working

    Hi, I am working on a video with some green screen. The chroma keyer effect was working great, but then it stopped. All of a sudden it wont key out anything. I change the settings and nothing changes? It is just someone in front of a green screen? I

  • CS6 oil paint error msg

    Just got CS 6 (not extended)  When I click Oil Paint Filter I get the following msg. The filter you were using encountered an unknown graphics processor error that caused an unexpected exit.  Check manufacturer for the latest software. Is it my graph