Delivery user exit issue...

Hi,
I am implementing the BADI interface IF_EX_LE_SHP_DELIVERY_PROC and coding the save_document_prepare method in which I check the delivery qty and some additional checks and even if one of the line items of the order fails I do not want delivery to be created for other line items too. In short, if the order has 5 line items and 3 fail then no delivery for rest of the 4 line items too.
In order to achieve this, I clear the ct_xlikp and ct_xlips internal tables accordingly. Sometimes they become totally blank, sometimes they are partially blank. But in both the cases, after this code is executed and when the standard code is processed I get dumps sometimes.
My latest dump was ' SAPSQL_ARRAY_INSERT_DUPREC'  as detailed below..
My question is clearing these internal tables the right approach in my case ? or is there any deletion indicator or something that I can set in the records in these tables by which SAP will not take these into consideration for delivery ?
Pl advise.
thnks
Termination occurred in the ABAP program "SAPLV05I" - in "SD_PARTNER_UPDATE".
The main program was "RVV50R10C ".
In the source code you have the termination point in line 480
of the (Include) program "LV05IU15".
The termination is caused because exception "CX_SY_OPEN_SQL_DB" occurred in
procedure "SD_PARTNER_UPDATE" "(FUNCTION)", but it was neither handled locall
  nor declared
in the RAISING clause of its signature.
The procedure is in program "SAPLV05I "; its source code begins in line
1 of the (Include program "LV05IU15 ".

Thanks I will look into that. Meanwhile I noticed that this method has other internal tables too like VBPA, VBUK, VBUP related and an inconsistency occurs when I delete the LIKP, LIPS and do not delete in these tables. Hence now the dumpt at VBPA is resolved  but I get at VBUK level !!!
So may be clearing the tables here is not a very good idea. Let me see if I can find the OSS note.
thanks

Similar Messages

  • Issue with Transporting MV50AFZ1(Delivery User Exit)

    In the delivery user exit MV50AFZ1, there are two performs. The FORMS for these are in an include program. The Syntax check is fine, everything is activated.
    When I move this to QA and double click on the perform it says that the form do not exist and ask if I want to recreate. Thatu2019s weird.
    The syntax check in QA is fine.
    There are no errors in the transport when I moved this to QA.
    I generated the program in QA. Also re-transported several times but the problem persists.
    Has anyone ran into this before?
    Any help would be appreciated.
    Thanks,
    ALAM.

    Hello,
    You were not clear at all...is the include program on your QA?...if it is....go to the exit by SE80 and look for an option PROGRAM->GENERATE....it may solve the issue,
    Bye
    Gabriel P.

  • Problem in updating LIPS table in outbound delivery user exit

    Hi,
    I wrote a code in outbound delivery user exit (save document userexit) to update LIPS table.
    for example
    XLIPS-LGORT = '0657'.
    XLIPS-PIMNG = I_LIPS-LFMING
    (PICKing QUANTITY =  DELIVERY QUANTITY)
    MODIFY XLIPS TRANSPORTING LGORT PIMNG.
    After outbound delivery created i couldn't found my entries in lips table. it shows me as blank.
    Can anybody tell me what went wrong?
    Thanks and Regards,
    Suresh.

    Hi Suresh,
    If you want to change any delivery data, like LIKP or LIPS you should use the USEREXIT_SAVE_DOCUMENT_PREPARE exit. The exit you are using is called after all delivery data is passed to the update task.
    Regards,
    John.

  • How to change actual quantity in Outbound delivery User exit

    hi all ,
    My requirement is to change the quantity of outboud delivery according to some logic .but my issue is after writing the code MV50AFZ1 , system is not considering the quantity changed by me , it is taking the quanity directly from sales order confirmed quantity .
    please anybody help on this issue  .

    Hi,
    Under which user exit have your written your code:
    USEREXIT_MOVE_FIELD_TO_LIKP or
    USEREXIT_MOVE_FIELD_TO_LIPS or
    USEREXIT_SAVE_DOCUMENT or
    USEREXIT_SAVE_DOCUMENT_PREPARE
    I think if you write your code within the USEREXIT_SAVE_DOCUMENT, it should work.
    Regards,
    Subramanian

  • Packing data at delivery user exit or BADI time

    I create a delivery and enter associated packing data (handling units HU), then save the delivery.  At user exit time, the delivery header is available via XLIKP and the delivery items are available via XLIPS tables, but the packing data is not! 
    Now, program SAPMV50A has a table called CVEKP, whose structure is VEKPVB, the handling unit header, but this table is always empty.
    I thought I had a solution: instead of putting my custom logic in user exit MV50AFZ1, I tested putting my logic in the "Delivery Publish" BADI.  Supposedly, this one is executed after the commit work, and so I could then read table VEKP directly and get the handling units. No such luck!  Unfortunately, at the time the BADI is executed, the VEKP table may or may not be updated.  Even adding the WAIT option wasn't 100% effective.
    But these attempted workarounds still leaves the big question unanswered: "Where are the handling units data stored during execution of transaction VL01 or VL02"? 
    Anybody know?

    which BADI u have seen ?
    what abt ur requirement ?
    Regards
    Prabhu

  • User Exit issue after upgrade from 4.6c to ECC 6.0

    Hi Experts,
    After upgrade we are facing some issues regarding user exit. In 4.6c we have implemented several user exit to do customization in several module like SD,FI and HR. But after upgrade it has been identified that SAP has already provided this functionality in ECC 6.0. Now our problem is when this transactions are called or executed control is going to both custom and standard code. Which took long time to execute and causing performance issue.
    Is there any ways to identify which are the functionality SAP has provided in ECC 6.0 so that we can delete our custom user exits.

    Hi
        List all the user exits which you have modified and check in OSS notes you will get the OSS note with all the details what functionality has been changed.  Based on this you can delete or retain the user exits which ever you want.
    Regards,
    JB

  • Need Form routine in MV50AFZ1--Delivery User exits

    FOR ANY VENDOR OUTSIDE INDIA, THE SYSTEM SHOULD ALLOW TO MAKE A SINGLE DELIVERY WIHTOUT TAKING INTO CONSIDERATION THE SUPPLYING PLANT ...
    Could anyone  tell me  which routine would be suitable to include the code. (Vendor Country <> IN)

    Hi priya,
    I think you cannot do this through the user exit, Delivery split based on the Supplying plant is the standard functionality.  Consult with the functional consultant to know whether the same can be done through configuration.
    Regards
    Vinod

  • Change Schedule Line category through user exit - Issue with transfer of requirements

    Dear All,
    There is a user exit in Sales Order program MV45AZZ - PREPARE_TO_SAVE . It is currently being used to implement code to change schedule line category based on the status of the sales order.
    When Blocked , category is set to ZP, and when Released then it is set to CP.
    Now, when we change ZP to CP manually through VA02, I am able to see the requirements transferred in tcode MD50.
    The problem is, when user changes status of sales order from blocked to released, the userexit changes categories from ZP to CP, but the requirements are not transferred ( cannot see it in MD50 ).
    I tried searching the SCN, tried googling it, its been a week now and I havent found any clear solution.
    So, far what I understood is Availability Check needs to be carried out again. But I am not clear how to trigger it again.
    Are there any indicators that need to be set or any internal tables to be updated or any FM to call or any other user exit to place the code in.

    ?? Any suggestion friends ?

  • Need User Exits for Creation of Delivery and for Posting Goods Issue

    Hi,
    I need User Exits for
    Creation of Delivery
    Posting Goods Issue
    I need to make some checks regarding customer license expiration and if checks fail, I need to stop Creation of Delivery and Posting Goods Issue.
    Thanks in advance,
    Will reward,
    Mindaugas

    In the delivery you can use userexit USEREXIT_SAVE_DOCUMENT_PREPARE to make your checks and send an error message to the user in case they fail.
    You can find this user exit (form routine) in include MV50AFZ1.
    Hope that helps,
    Michael

  • User exits for delivery picking confirmation and transfer order creation

    Hi
    We have a scenario for which we need help.
    This is to do with replenishment from plant to plant.
    We have sales sets.
    The sales sets needs to be replenished from one plant to another. We want the componenets of the sales sets to picked from the issuing plant. For this we need a transfer order. this needs tobe confirmed and then the goods issue should take place from the issuing plant. Its a two step process.
    we are doing Sales sets in STO. The explosion takes place in STO. However when we create deliveries for this. Only the sales set header item without its components are flowing into the delivery.
    The Tranfer order does not contain the components either.
    However post  the goods issue we  can create a TO with reference to the TR. This is is not acceptable because we want the picking and confirmation to occur before PGI from the issuing plant.
    Could anybody help: We want the TO to be created with the components even though in the delivery only the Sales set header appears. Can u suggest a user exit in which when we create the TR from the delivery the components of the set.
    After confirmation of the TO then we want the picking status to be put as C.
    Supreeth

    Hi,
    Check the following users exits.
    MWMRFSSG            user exit for sorting TOs in RF system-guided transaction
    MWMRFUP             Customer defined general purpose pushbutton called from scr.
    MWMRP001            Cust. Exit for Fixed Bin Replenish.: Delivery Item Selection
    MWMRP002            Cust. Exit for Fixed Bin Replenishment: TR Quantity Distr.
    MWMRP003            Customer Exit for Replenishment using RLLNACH1
    MWMRP004            User Exit for Replenishment using RLLNACH4
    MWMTO001            Enhancements for end of transfer order generation
    MWMTO010            Exit: Calculation of Total Planned TO Processing Time
    MWMTO011            Correction of Planned Processing Time for TO Item
    MWMTO012            Correction of Sorting and Split Transfer Order
    MWMTO013            Stock Removal for Sev. Storage Types as in Stringent FIFO
    MWMTOAU3            Separate selection of posting changes for autom.TO creation
    MWMTR001            Exits at the end of transfer rqmnt creation (IM,PP interf.)
    MWMD0001            Transfer order print via RLVSDR40
    MWMD0002            Transfer order print as multiple process with RLKOMM40
    MWMIDI07            Enhancement for Output WMPIHU (Create Pick-HU) Inbound
    MWMIDO11            Enhancement for message WMTORD: TO with several items
    MWMIDO12            Enhancement for Output WMPIHU (Pick-HUs) Outbound
    MWMIDO13            Extension for WMMBXY (subsequent tasks after goods movement)
    MWMPP001            Enhancement WM/PP Interface (automatic TR generation)
    Regards,
    Murali

  • User exit in Delivery after the SAVE button is pressed.

    When the Delivery gets picked and Post Goods issued , the Delivery quantity for example instead of 48,000 LBS may be little less say 47,345 LB. We need to update this number in the order quantity which will originally have 48,000 LBS.
    I need to update this quantity in the sales order VA02 after the delivery is saved. Whats the user exit AFTER the save button is pressed?
    Thank you in advance

    Hi,
    Check this User Exits related to Delivery,
    Delivery related exits
    V50PSTAT - Delivery: Item Status Calculation
    V50Q0001 - Delivery Monitor: User Exits for Filling Display Fields
    V50R0001 - Collective processing for delivery creation
    V50R0002 - Collective processing for delivery creation
    V50R0004 - Calculation of Stock for POs for Shipping Due Date List
    V50S0001 - User Exits for Delivery Processing
    V53C0001 - Rough workload calculation in time per item
    V53C0002 - W&S: RWE enhancement - shipping material type/time slot
    V53W0001 - User exits for creating picking waves
    VMDE0001 - Shipping Interface: Error Handling - Inbound IDoc
    VMDE0002 - Shipping Interface: Message PICKSD (Picking, Outbound)
    VMDE0003 - Shipping Interface: Message SDPICK (Picking, Inbound)
    VMDE0004 - Shipping Interface: Message SDPACK (Packing, Inbound)
    V02V0001 - Sales area determination for stock transport order
    V02V0002 - User exit for storage location determination
    V02V0003 - User exit for gate + matl staging area determination (headr)
    V02V0004 - User Exit for Staging Area Determination (Item)MV50AFZ1 - User Exits for Delivery Processing
    MV50AFZ2 - User Exit for Batch Quantity Allocation
    MV50AFZ3 - LIPS-KOQUI (Picking is subject to confirmation) determination
    MV50AFZK - The user exits in this include can be used to fill the condition tables for material listing and
    material exclusion (KOMKG and KOMPG) and product selection (KOMKD and KOMPD) with own data.
    MV50AFZL - In delivery creation process for sales orders there is the possibility to restrict the delivery creation to some order items.
    If these order items are member of a delivery group, but not all items of
    this delivery group are includes in the restriction range of the order item nubers, you can specify in this routine what to do.
    MV50AFZP - This user exit can be used to modify change mode of pricing screens in delivery processing.
    MV50AFZZ - Users Exit for Batch Determination; LIPS-LGORT determination
    Thanks & regards,
    Dileep .C

  • User Exit For Tagging Delivery To A Manual Shipment

    Hi All,
    We have a process in which we are creating a shipment manually and then we are trying to tag a delivery manually to that shipment. The requirement is that it should give an error for a particular type of delivery.
    Please let me know if there are any exits for that.
    Thanks,
    Sharadendu

    You should try to control it while transaction VA02 then. I think the user exit should be MV45AFZZ, u plz check in the list of user exits - SPRO-IMG- Sales and Distribution- System Modifications- User Exits and you will have all specific user exits used during various SD processes there.
    And then u might want to issue a hard error when some one changes or tries to change the Delivery date- can use a message number according to the application(for ex if its sales then Message class is V1). And then get that message number and code included in the particular user exit.
    Else u can have a screen variant defined for a specific users profile which will not allow any changes to the particular field. creta evariant using SHDO- select ur specific needs- assign this screen variant to the tarnsaction code may be VA02.
    Regards
    Sai

  • User Exits for posting delivery related FI/CO docs in another system

    My company is currently running two SAP systems.  System A takes sales orders and creates delivery documents.  System B is the corporate financial system.
    When delivery and goods issues are created in System A, we want to generate the associated FI and CO documents in System B real-time.
    What is the best approach to implement this scenario?  Should we call the Post Accounting Docs BAPIs in system B using some user exits in System A?  Or should we expose those BAPIs as web services and make web service calls?

    Hi Simon,
    I think the best way is to create an IDoc in system A when the document is created (via User exit or something), and send it to system B.
    There are some IDocs to receive this information, but you have to code the send of the IDoc (Create the IDoc and call FM MASTER_IDOC_DISTRIBUTE).
    The IDocs to do that are:
    ACC_GL_POSTING
    ACC_BILLING
    ACC_INVOICE_RECEIPT
    Regards
    PabloX

  • Badi or User exit to modify MSEG data during Goods issue

    Hello,
    I have a requirement to modify the field plant MSEG-WERKS while doing goods issue of outbound delivery via transactiona VL02N.
    Can anybody suggest me which BADI or user exit should i use.I have searched the SDN and all the previous threads on this haven't yeild any solution for this.
    I have tried with below listed Badis and enhancements which wont work.
    Badi
    ===================
    MB_DOCUMENT_BADI
    MB_MIGO_BADI
    LE_SHP_GOODSMOVEMENT
    DELIVERY_PUBLISH
    Enhancements
    ===============
    MB_CF001
    MBCF0005
    Thanks and Regards,
    Koustubh

    Hi,
    I am facing a similar issue of updating the MSEG-DMBTR field when Post Goods reciept is done in VL02n.
    I hav tried to update the value in LE_SHP_GOODSMOVEMENT BADI and tried to modify the structure .
    eg in this way
    method IF_EX_LE_SHP_GOODSMOVEMENT~CHANGE_INPUT_HEADER_AND_ITEMS.
    data: wa1 type LINE OF shp_imsegvb_t. "IMSEGVB.
    DATA: flag TYPE c.
    LOOP at CT_XIMSEG INTO wa1.
      wa1-dmbtr = '12345'.
    MODIFY CT_XIMSEG FROM wa1.
    " TRANSPORTING dmbtr.
    flag = 'x'.
    ENDLOOP.
    endif.
    endmethod.
    The value gets updated in the structure but when the material document gets created then the table MSEG has the amount DMBTR field not changed.
    Also, I tried doing the updation in the Function eXit : EXIT_SAPMM07M_001 by the method mentioned in different threads:
    betweeb statemnet if  sy-tcode = 'VL02n'
    FIELD-SYMBOLS: <DMBTR> TYPE any,
    <DMBTR1> TYPE any.
    ASSIGN '(SAPMM07M)MSEG-DMBTR' TO <DMBTR>.
    assign (<DMBTR>) to <DMBTR1>.
    But still on save of the material document in MSEG I cannot find the new DMBTR field value.
    Kindly help me on this, urgently required. I have already gone through the number of threads in the forum, but no solution.

  • Generate VICS BOL Number in User Exit For Delivery

    Hello,
    I have been asked to automatically generate a BOL for a delivery based  the Voluntary Interindustry Commerce Solutions (VICS) Association specifications.  However, I am having a difficult time finding the correct user exit in the delivery process. 
    Can any of you SD gurus point me in the right direction?
    Regards, Dean.

    I think I found the exit I needed EXIT_SAPLV56U_004. I was wrong about needing the exit for delivery, the requirement is the shipment.  
    With that said, I think I am on the right path but I was hoping that there was someone who has implemented the VICS Bill of Lading in SAP.  I found that the Handling Units -> External Identification seems to have all of the foundation for generating the BOL per the VICS specification.  However, there has been concern that if that was done, that something could cause an issue with Handling Units. Which we are using to generate labels for shipments.  
    So, has anyone used the Handling Units->External Identification for VICS Bill Of Lading generation? If so, anything I should be concerned about?
    Regards, Dean.

Maybe you are looking for