LE_SHP_DELIVERY_PROC BAdi implementation - capture delivery item change

Hi Community Members,
I am recently working on enhancement which is going to forbid quantity changes for delivery line items
if corresponding PO line item is blocked or deleted.
To do this I want to use BAdi LE_SHP_DELIVERY_PROC (Enhancements in Delivery Processing)
One of methods PUBLISH_DELIVERY_ITEM imports 2 internal tables:
IT_XLIPS     Current Status of Delivery Items
IT_YLIPS     Database Status: Delivery Items
Inside the method I am checking if recent quantity value (IT_XLIPS-LFIMG) is not equal to the one from database (IT_YLIPS-LFIMG). If so then I throw error.
Everything is ok, but I have encountered a strange behavior.
For example when I change delivery item quantity (LFIMG, for example 1->2 ) and then go back to the initial value (2->1)...
The problem is that when entering the method (debugger) I can see inside IT_XLIPS that LFIMG is updated, but Gross/Net weigth and volume fields still have old values (NTGEW, BRGEW, VOLUM).
That is a problem because highly possible is that after quantity field customer will also want to validate weight and volume fields.
Moreover I also checked FILL_DELIVERY_ITEM and CHANGE_DELIVERY_ITEM methods of BAdi mentioned. In all of them weight/volume (and probably other fields also) behave the same.
Could you share your comments on this issue please?
What would you recommend to do to enable such validation?
Kind Regards,
Piotr.

Hi
Check method DELIVERY_FINAL_CHECK. See the sample implementation and how you can write the message in CT_FINCHDEL.
Other option is to use the classic userexits. See SAP Note 415716 - User exits in delivery processing with the recommendations for them.
I hope this helps you
Regards
Eduardo

Similar Messages

  • Exit/badi for ME22 line item change

    hi gurus,
    pls mention any exit/badi for ME22 line item changes......

    Hi,
    Check below thread
    BADI in ME21
    Regards,
    Atish

  • Capture delivery item in FI substitution

    I need a way of capturing the delivery item number in a FI document, at PGI. 
    The trouble I am haivng is that the delivery has a high level item (posnr 10), and then sublevel items (posnr 90001/2/3).  In the FI 2 lines are created matching to 90001, 900002, and 900003, but in the user exit I haven't been able to find the correct POSNR value.  I've tried looking at teh call stack but tables like (SAPMV50A)lips always have the posnr set to the last read value 900003, so in each of the 3 calls to the user exit the posnr value = 900003.
    Does anyone know of another way of capturing the sublevel items?

    I found that ou can access (SAPMV50A)XLIPS from here

  • What is the Table to Capture line item changes in PO?

    Dear Guru's
    what is the table in which i can find the report of ammendment in the PO at line item level OR is there any Standard SAP report ???
    please help..
    gaurav

    Go through Following Link
    Report on Purchase order header changes and Line item changes.
    Vipin

  • User-exit or BADI for Configurable line item change in VA01/VA02

    Hi,
    During sale order creation or change the configurable item characterstics depend on plant. If a plant is changed the characterstics to be entered again. In my scenario the materila characterstics are same for all the plants hence in place of entering these again want to retrieve from the database through user-exit or BADi . Is there any.
    thanks
    anya

    Hi,
    Check the user exit "MV45AFZB', form-routine "USEREXIT_CHECK_VBAP".
    Regards
    Vinod

  • User exit or badi to change quantity of delivery item

    Hi SD Experts,
    I need to change delivery item quantity when i am recording post goods issue.
    Regards,
    Aktolga

    You can find SD expert in Space: SAP ERP Sales and Distribution (SAP SD) | SCN
    Please read the document Find Topic Spaces on SCN (Forums) | SCN

  • How to capture the product change on the item level in CRM GUI.

    Dear All:
    There is a line item in the sales order. Now I change the product of the line item. I want to capture the change in CRM GUI.
    PS:
    There is a reference thread, in which I know we can capture the change in WebUI with the component T115IT_SLSO.
    Can the old product be captured after I changed the product in order item?
    But I want to know how to capture the change in GUI. Anybody can help me? Thanks in advance.

    Hi,
    when you create an item in GUI tcode CRMD_ORDER, badi CRM_ORDERADM_I_BADI will be triggered.
    Method CRM_ORDERADM_I_PRODUCT_DETERM will have the Header and item guid and newly entered product in parameter IV_ORDERED_PRODUCT.
    Regards,
    Arun

  • PO item change is not updated after Delivery completion

    Dear All,
    PO item change is not updated in the PO at the completion of the delivery.for a particular line item. In our QA system, its updated but client is facing an issue with the production system. Pls check the attached screen which I got from QA. There is no such log in the production system. Kindly help me to have a solution for this.
    Regards
    Sujith

    Hi Dev,
    After we post the GR for a PO line item, PO history is updated (line) and at the same time that particular change log is available under PO line item. But in production system, said log is not updated after GR is completed fully.
    Rgs
    Sujith

  • How to change the name of a BADI Implementation?

    Hello experts,
    Does anyone knows how to change the name of the BADI Implementation? I just create a new Implementation but we need to rename it.
    Thanks in advance,
    AK

    Hi,
    Please go to transaction SE19, enter your implementation name.
    Then go to menu: Implementation -> Rename -> ...
    Regards,
    Ferry Lianto

  • SO Delivery date change when item category is modified

    Hi expert,
    When i change the item category on my SO, the delivery date change.
    Can you please give me the configuration, or exit to check how the delivery date is calculated?
    Regards.

    - Set a breakpoint at function module SD_SCHEDULING
    - Change your item category
    - This should trigger your breakpoint (if SD_SCHEDULING is changing the delivery date)
    - Post screenshot of call stack back here.
    Looking at the call stack will give us an idea of why a new scheduling is triggered.
    If SD_SCHEDULING is not called, then I assume it must be a user exit causing the issue - check your coding in the SD user exits of include MV45AFZZ.

  • Delivery Quantity change during creation of Delivery Document

    Hi Friends,
       I have a requirement of creating a Partial delivery when not much stock is available.
       For this I am using a BADI 'LE_SHP_DELIVERY_PROC' method Save_Document_Prepare.
       I am changing the contents of CT_XLIPS-lfimg in the method and also keeping UPDKZ as 'I', but still
       the quantity is not changing.
    Pls Suggest.
    Arpit

    Check, "Outline agreement message" in Document type details in VOV8- (eg: CQ- Quantity Contract) under Transaction flow view.
    Use Indicator:A- Check at Header level.
    Then system pop ups the message saying " Already Contract is open for this Customer" - ( Assume, SOld to party already have Open Contract)
    similarly, for Material, for this you should use  Indicator" B- Check at Item Level.
    Hope it helps

  • BADI for Outbound delivery and adding fields to customers PO

    Dear Senior Abapers
    I have this requirement I seem to be at a loss.
    It's about changing the communication structure delivery line items for Customer PO number. How do I add a field to contain Customer PO number(VBKD-BSTKD) since this field  is not passed to a delivery document  used in the creation of a billing document.
    I read that  the delivery communication structure must be changed which is done by adding a field to contain Customer PO number in addition to implementing appropriate BADI for output delivery. Once this two steps are completed, it is then possible that selected deliveries for billing would be Master Invoiced.
    Thanks
    Edited by: possibility on Sep 22, 2009 7:47 PM
    Edited by: possibility on Sep 22, 2009 8:01 PM
    Edited by: possibility on Sep 22, 2009 8:02 PM

    Thanks for your response(s),
    It appears the communication section of the problem was not addressed. I will also appreciate a sample code to better clarify how to use this BADI and Comm Structure if you have had similar challenge  before.
    Thanks one more time for your time

  • AC_Document BADI Implementation

    Hi Experts,
    I am implemented BADI AC_Document to change Document type field of an Accounting Document.
    As Document Type (BLART) is not available in the structure used in the BADI, I have used Append structure to add the field in the header segment of ex_document (Exporting paramenter of the Badi).
    Now I am changing the Document Type based on certain conditions in Change_After_Check Method of the BADI, but the field is not modified in the result.
    I have used the following code:
    LOOP AT im_document-item INTO l_document.
        IF  l_document- = '2029'.
          IF l_document-mwskz = 'V1' OR l_document-mwskz = 'V2' OR l_document-mwskz = 'V3'.
            l_wa_hd-zzblart = 'RD'.
            EXIT.
          ENDIF.
        ENDIF.
      ENDLOOP.
      ex_document-header-zzblart = l_wa_hd-zzblart.
    Am i missing something here?
    Please help me.

    hi satish
    plz send these doc. on my emai id
       [email protected]
    thanks
    ashutosh

  • Creating the BAdI implementation: se19(OSS note )

    Hi Experts,
    I have to apply a Note 1330434 ( FBL5N: Performance improvement by changed selection.) in our ECC.6.0.
    The 1330434 note says,
    Solution
    When you implement a new BAdI in the line item display, the selection logic can be optimized. The system only reads the clarification case attributes for the line items that are also displayed.
    Import the specified Support Package.
    To implement the correction instructions manually, proceed as follows:
    1...
    2. Implement the corrections in accordance with the correction instructions.
    3. Creating the BAdI implementation:
    Call transaction: SE19.
    Under "Create Implementation", choose "Classic BAdI".
    BAdI name: FI_ITEMS_CH_DATA
    Implementation name: FDM_AR_ITEM_ATTR_GET
    Implementation short text: FSCM-DM: Selection of attributes in FBL5N
    Activate the implementation.
    How to do the third step --> .."3. Creating the BAdI implementation: " ?
    when I go to se19,
    Under "Create Implementation", choose "Classic BAdI"... give FI_ITEMS_CH_DATA or FDM_AR_ITEM_ATTR_GET
    and then press button 'create impl.'
    then it says  "Badi definition FI_ITEMS_CH_DATA does not exist."
    I struck up at 3rd part of the note (BADI creation/implementation part of the note.).
    Please suggest me how to apply this Badi part of the note ?
    YOUR HELP WILL BE HIGHLY APPRECIATED!
    Thanks in advance.
    Edited by: sam kumar on Jul 22, 2009 12:22 AM

    Are you sure this note is for your system. I am also working in ECC6. I checked but I couldn't find the defibition too. Make sure note is for your component version and if it is report this problem to OSS.
    Edited by: Gungor Ozcelebi on Jul 22, 2009 8:37 AM

  • Delivery item sort

    Gurus
    va01-->vl01n, dn item sequence is as same as so item
    va01-->vl10c, dn item is sort by material no
    why vl10c sort by material no? where can i find this customsize? how to modify the delivery item sequence when use vl10c sort by so item no?
    Kevin

    Hi,
    For this behavior, you can check the OSS notes 383254 and 497526.
    Following is the SAP note 383254,
    Summary
    Symptom
    The supply of the shipping due date list of Transaction VL10 via the 'Background' button behaves differently than the supply via the 'Dialog' button.
    Additional key words
    VL10A, VL10B, VL10C, VL10D, VL10E, VL10F, VL10G, VL10I
    Cause and prerequisites
    Forward compatibility
    Solution
    VL10 <-> VL04
    In addtion to VL04 that was replaced by Transaction VL10 for Release 4.5, you can use Transaction VL10 to select not only the orders but also their items and schedule lines.
    When the new function VL10 was implemented, SAP kept the dialog function of VL04, because many customers were used to it.Although this function is part of the collective run, for technical reasons no changes were made to the functions.During the design of Release 4.5B, the options existed to suppress the dialog function or to make a function available that does not entirely fit the new functions of VL10. SAP preferred the latter.
    As for Transaction VL04, the dialog mode of VL10 executes Transaction VL01(N) with all items of the selected order, regardless of whether or not you selected items or schedule lines.The only parameter for the call is the order number, no quantity specifications are transferred to VL01N.However, you can change the quantity in the screen of the delivery.
    Delivery of schedule lines
    When you deliver with the 'Dialog' button, all selected orders are delivered by means of VL01N. In this case the delivery is carried out independent of the previously displayed or changed cumulated quantity. In this case only the latest delivery creation date of all the selected schedule lines is used to determine the schedule lines.
    On the user role tabpage of VL10, you have the option with the 'Rule (delivery qty)' and 'Split per sched.line' flags to control the delivery of schedule lines via the 'Background' button:
    On a shipping due date list in item display with several schedule lines for the same document item, you can choose, whether you want to create a delivery item for each schedule line or whether they deliver the cumulative quantity of the last selected schedule line.
    Scheduling agreements
    For scheduling agreements, additionally read Notes 137937 and 52116.
    Hope this clarifies your doubt,
    Regards

Maybe you are looking for

  • Can two people share a iPad mini

    can two people share a ipad mini

  • How to enable the full list of developer options on A806?

    How to enable the full list of developer options Moderator note:Moved from http://forums.lenovo.com/t5/Lenovo-Android-based-Tablets/No-Animation-speed-options/td-p/1359241 Edited & created a new thread.

  • Special Charges in SD invoice

    Hi, My client is a distributor in US. We are using vertex, how do u handle special charges like Small Order Charge and handling charge or fuel surcharge. Do I need to use the user exit to send these different charges. thanks

  • Import dump file

    Hello, Using Oracle9i (9.2.0.1)30 days trial version on a W2K UK prof. I am trying to import a dump file. Therefore i created a database with as much parameters on default as possible. I ran a node refresh in OEM to make the new database visible and

  • WRT350N and a Sony SMP-N100 media player

    My network consists of the WRT350N with wired ethernet to mainframe PC, two wireless laptops, and a Sony Network Media Player(SMP-N100) which is also wireless and connected to a TV. I can access internet services like Netflix and it's working fine, b