User exit MV50AFZ1

Hi all,
I need to do some activity when TO (Transfer Order) is confirmed. The exit 'MV50AFZ1' will be triggered when i confirm the TO but inside the exit, only Delivery tables are populated but not the Transfer Order tables.
The activity that i need to do should only be done when TO is confirmed. But the exit will trigger for all the delivery related things.
How would i restrict my activity to perform only when TO is confirmed?
could someone help me with this please?
Thank you.
Suresh.

Hi Suresh,
User exit MV50AFZ1 is  used for the purpose of Delivery Doc related tables to move some fields into the  delivery header work area LIKP. 
So the moment when the TO is Confirmed the Picking will be confirmed and Del table will be externally updated.
Warehouse related info will not be triggered through this Exit.If you need to control then your logic should not be with this Exit.Put a break point in TO program. I dont remember if there is any specific Exit for TO but I think you can still control.
On the whole I still did not get your problem statement properly.
Regards,
Hari
Singapore

Similar Messages

  • How to update old records of LIPS used user exit MV50AFZ1

    To All Experts,
    I have used User Exit MV50AFZ1 and in this user exit i updated the fields
    USEREXIT_MOVE_FIELD_TO_LIPS.
    LIPS-ETENR = VBEP-ETENR.
    Its working fine for new VL0N1 t-code, but what about old recods of LIPS table ?
    How to update old records ? Pl. guide me.
    Yusuf

    Hi Yusuf,
    See SAP Note 415716 - User exits in delivery processing, it explain how these userexits work and cautions that you must have.
    Regards
    Eduardo

  • Message error on user-exit MV50AFZ1

    Hi!
    I need to send a message error on user-exit MV50AFZ1 (VL01N), but I can't, because when I use BAPI_DELIVERYPROCESSING_EXEC for create deliveries, it will abort my program.
    My program try to create many deliveries together, when occurs a message error, I don't know what order is the problem!!
    Thanks,
    Tatiana

    Hello.
    In the exit, use a condition like:
    IF sy-tcode EQ 'VL01N'.
      MESSAGE E000(...)
    ENDIF.
    This will avoid the error in BAPI execution.
    Regards,
    Valter Oliveira.

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

  • 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

  • Passing data from user exit to workflow.

    HI,
    Please consider the below scenario.
    In the user exit 'MV50AFZ1' I have created an include in the form 'USEREXIT_SAVE_DOCUMENT_PREPARE.'.
    In this include based on some certain conditions a workflow is triggered.
    I am using the function module 'SWE_EVENT_CREATE' to trigger the workflow.
    Now the requirement is to pass some data from this user exit ('USEREXIT_SAVE_DOCUMENT_PREPARE') into the workflow.
    Could someone please explain me how to pass this data from the user exit into the workflow ?
    Thanks in advance.
    With regards
    Abhishek

    Hello everybody,
    Thanks a lot for your responses.
    I am using the fuction module 'SAP_WAPI_CREATE_EVENT' to trigger the workflow, I am also able to pass the delivery number through the paramater 'OBJECT_KEY' of the function module in to the workflow container.
    But I am unable to pass the line item number and the material number into the workflow.
    I am following the below process:
    I have defined a stucture ZST_DELIVERY containing the POSNR and MATNR in the data dictionnary.
    I have pouplated the internal table of this structure inside my user exit.
    Then I m passing the values of the above internal table into another internal table - 'Container''which is of structure type 'SWR_CONT'.
    And I am passing the internal table 'Container' into the paramater 'INPUT_CONTAINER' of the function module 'SAP_WAPI_CREATE_EVENT'.
    And in the workflow I have created a container 'ST_DELIVERY' which is of the structure ZST_DELIVERY and I have made it 'import', 'export.'
    And in my business object ZLIKP in the custom event CheckPrice I have defined a paramater 'ST_DELIVERY' of the structure  ZST_DELIVERY and I have made it multiline.
    And in I have binded my workflow container 'ST_DELIVERY' and the ZLIKP paramater with the same name.
    Please do let me know if the above steps that I have followed is correct.
    Please do let me know if any further information is required.
    Thanks in advance,
    ~Regards
    Abhishek

  • Submit job in user exit

    Hi sap expert,
    Please guide me for the abap coding. my requirement is when i create outbound delivery note, then press SAVE button, serial number will be automatic proposed.
    Now , i process as below sequent.
    1. using user exit MV50AFZ1 -> FORM USEREXIT_SAVE_DOCUMENT
    in this user exit i submit background job to change oubound delivery
    2. in the background job, i call BAPI BAPI_OUTB_DELIVERY_CHANGE to change serial number
    Question.
    1. This step right or wrong, if wrong, please suggest
    2. How to coding --> submit job from the user exit
    Thank you in advance
    Jean

    Hi,
    Most of the guys around are with functional experience.
    I think you should post this query in SAP-ABAP. U will get
    an immediate reply.
    Kind Regards
    Chakradhar

  • Commit statement in user exit

    Hi All,
    We found that while doing PGI , it takes some time to COMMIT the table VBUK. Due to which we are getting old values of VBUK-KOSTK field while executing select query at later point of time in the flow.
    My question --
    Can I use COMMIT WORK statement in user exit MV50AFZ1 --> FORM USEREXIT_SAVE_DOCUMENT so that all the related tables
    get committed immediately.
    Thanks
    Saurabh

    Hi Saurabh ,
    Normally , you shoud not specify COMMIT stmt in any user exit , badi etc..
    SAP has its own COMMIT statement while execuiting the standard transactions .
    Addition of a COMMIT might lead to problems elsewhere .
    Thanks
    Supriya

  • User exit for PGI via delivery (Vl02N)

    Hi Folks
    Can you suggest me appropriate user exit which can be used during PGI for delivery in Vl02N. This should get triggered when POST PGI tab is hit in VL02N.
    Via USer exit I want to change the GL account in the accounting document for PGI ( GL account for Tr price difference which is posted via key AUM (Expense/revenue from stock transfer).
    Please reply ASAP.
    Thanks
    Vipin

    Hi Vipin
    I did a small check in our internal system.
    In VL02n choosing the PGI TAB it hits user exit MV50AFZ1 -> FORM USEREXIT_SAVE_DOCUMENT_PREPARE
    This is the call:
    Main Program     SAPMV50A
    Source code of   FV50XF0B_BELEG_SICHERN
    form BELEG_SICHERN_DET_CHECK
    * Userexit
        PERFORM userexit_save_document_prepare(sapmv50a).
    So you are good to go with MV50AFZ1 just use
    form USEREXIT_SAVE_DOCUMENT_PREPARE
    Kind regards
    Brian

  • Some Quries on User Exit For VL02N

    Hi All,
    Does anyone knows how to obtain what Output Type the user has selected for a particular Outbound Delivery document before that document is saved/post goods issue?? I've tried using the user exit 'MV50AFZ1' but i couldnt seem to get any data on NAST.
    Thanks in advance and Best Regards.

    try to get output type based on the delivery Type not based on the delivery Number ?
    comming to ur probs : SAP will update NAST with delivery numner + output type ,but  u are going to create delivery ? So u may not get from NAST table.
    Regards
    Prabhu

  • User exit for transaction VL10D

    Hi,
    in transaction VL10D, after clicking the button 'Create delivery in background', i have to check per item the material, and eventually show an popup with some information.
    Which exits / badi's should use ?
    regards,
    Hans

    Hi,
    You can use the user-exit, MV50AFZ1. And inside this, there is are form FORM USEREXIT_SAVE_DOCUMENT_PREPARE and
    FORM userexit_save_document. 
    Inside this you can give pop-up, but only with a warning message. If you give an error message the screen VL10d will give errors.
    You can also use this - BADI LE_SHP_DELIVERY_PROC for delivery processing.
    Hope this solves your issue.
    Lakshminarayanan

  • User exit for add partner in delivery document when execute then tx-vl06

    Hi,
    I try to add new partners in delivery document when I execute the transaction vl06. For this, I use the user exit MV50AFZ1 where I implement the code that add new registers in table XVBPA. This solution doesn't work because it doesn't add new partners in delivery document.
         CLEAR XVBPA.
         XVBPA-MANDT = '010'.
         XVBPA-VBELN = LIKP-VBELN.
         XVBPA-POSNR = '000000'.
         XVBPA-PARVW = 'ZC'.
         XVBPA-PERNR = '00000045'.
         XVBPA-ADRNR = '0000000000'.
         XVBPA-LAND1 = 'ES'.
         XVBPA-ADRDA = 'D'.
         APPEND XVBPA.
         CLEAR XVBPA.
         XVBPA-MANDT = '010'.
         XVBPA-VBELN = LIKP-VBELN.
         XVBPA-POSNR = '000000'.
         XVBPA-PARVW = 'SP'.
         XVBPA-LIFNR = '0000000491'.
         XVBPA-ADRNR = '0000083037'.
         XVBPA-LAND1 = 'ES'.
         XVBPA-ADRDA = 'D'.
         APPEND XVBPA.
    Please, anybody knows others solutions.
    Thanks for your help.
    Xevi G.

    Hi Ram Ki,
    It doesn't work. When I execute the transaction vl06g, the flow doesn't pass for this user exit.
    Thanks for your comment.
    XeviG.

  • User Exit for VL01N/VL2N to modify eipo-herkl

    Hi.
    I want to modify value of eipo-herkl(Country of origin) when save data, in T-CD VL01N/VL02N.
    I find the User-Exit: MV50AFZ1(form: USEREXIT_SAVE_DOCUMENT).
    But it cannot be done.
    Can anybody tell me, how can i update eipo-herkl instead of default value in T-CD VL01N/VL02N when push save button?
    regards,
    Huang

    Hi all, thank you for response.
    The User-Exit EXIT_SAPLV50E_003 is for VL01N only, and executed only one time when you input item data. It is  for export item data default.
    In EXIT_SAPLV50E_003, you can not change the value of eipo-herkl.
    What I want is to change value of eipo-herkl when Save button is pushed, for VL01N and VL02N both.
    Is there any Badi can do it?
    regards,
    Huang

  • Hi Experts need to know the user exit how to find out MV50AFZ1

    Hi experts,
    How to find the user exit i already tried with cmod ->utilities-> find exit and giving package name but not getting it please can u tell how to find it MV50AFZ1
    Regarding
    anil

    HI,
    Chek the following Exits..
    Exit Name           Description
    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)
    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)

  • What is this user exit for: MV50AFZ1

    Thanks.

    Hi,
    This userexit is used for delivery processing...that menas transactions related to delivery as VL01,VL02,VL03...Before saving delivery if u want to overwrite the sap functionlity or to update some custom tables ,u can write logic in this include..It contains lot of user exits,so u have to use particular ones for ur requirement..
    Reward if hlpful.
    Regards,
    Nagaraj

Maybe you are looking for

  • LiveCycle Designer ES Not Working-Acrobat 9

    I am using an older version of LiveCycle and Acrobat to create forms.. ES8.2; however, it has stopped working.  When I go to create or edit a form, it will not launch the form and states there is problem. (see below).  Can someone let me know how to

  • Color Picker Component in JSF

    Hi I would like to know if there is a Color Picker Component in JSF Thanks Sreelekha

  • Persisting Data across different WebApps/Sessions

    Hello all, I am developing in an environment where multiple (web & enterprise) applications are developed and deployed separately to the same clustered WebLogic infrastructure. The applications are all owned by the same company, and usually co-exist

  • GR -MIGO

    Dear friends, We have got the requirement that, When the material is visible and open and countable , at the entry gate itself, Security will create Gatepass and by entering line items wise data can be entered and craete Draft SRV( Store recipet voch

  • Song in limbo?

    I bought a song from the Itunes store and didn't really want it. I deleted it but can't get rid of it completely. It is not on my phone but it shows in Music On My device as grey with a dotted circle icon in the first column. I can delete it from the