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

Similar Messages

  • User exit for PGI in delivery

    Hello every one,
    This is regarding vl03n transaction. The requirement is to have some checks before PGI is done. If that checks are not satisfied PGI should not be happened and the delivery document should not be saved. The user exit we have used is SAVE_DOCUMENT_PREPARE. But the problem if we save the document without doing PGI then also the checks are carrying out and if those are not satisfied delivery is not saving. The requirement is to bypass the PGI when we save the document in case when we doesn't do PGI.

    hi prabhu,
    Thanks for your reply. Seems it may work, but i have another idea and that is we can use IF fcode = 'WABU' then only PGI checks will be carried out.If we save directly instead of doing PGI the fcode is different and checks will not be carried out. Hope it will work. If you have any further ideas please post it.
    thank you.

  • 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

  • Regarding user Exit for PGI

    when user do PGI i need to create the billing document automatically in back ground can any one suggest user exit present for PGI(user can do PGI directly from VL02N or directly for VA01 or VA02 ).............
    Very urgent ...........
    Points will be rewarded for your answers

    Hi try exit MV50AFZ1 - This include is reserved for user modifications
    Forms for delivery processing
    also verify OSS note 415716 for this
    sugested code: if user name <> ADMIN User, no change allowed.
    Ask your abapper to do this. (use appropirte user name for ADMIn user)
    rewards if useful...........
    Thanks.
    abhay.

  • Calling a driver program by submit in user exit for PGI

    Hi Gurus,
    I have a question regarding post goods issue (PGI) for transaction vl01n,vl02n and vl06g.
    earlier i have created a smartofrm and a driver program for sending the form output attachment in a mail after delivery posting manually.
    for this i have created a smartform and driver program in which all the logic to attach and mail send is written on delivery posting.
    but now customer want this fucntionality on Post goods issue (PGI), when user go to trasaction vl01n ,vl02n and vlo6g and pressing PGI button,
    then mail should be sent automatically with for output attachment.
    i have found a user exit which is being triggerd on PGI press MV50AFZ1 in which implemented the implecit enhancement in perform
    user_exit_save_document_prepeare with below code.
    ENHANCEMENT 1  ZPGI_MAIL_SEND.    "active version
    DATA c_zlf TYPE likp-lfart.
    IF sy-ucomm = 'WABU_T' and xlikp-lfart = c_zlf.
    SUBMIT ZSD_DECLARATION_CONFORMITY AND RETURN.
    ENDIF.
    ENDENHANCEMENT.
    After going to transaction vl02n i am putting unposted delivery number and clicking on PGI button.
    in debugging its going to condition check for ucomm for PGI buttion and delivery type.
    if condtion is fullfiled and curser going further on submit statement, but without executing the driver program ZSD_DECLARATION_CONFORMITY it coming out of enhancement.
    its not performing the task which is develped in the driver program.
    Please help me with the submit statement structure if i am missing any or other solution for my problem.
    Br,
    Surya

    Hi Team,
    I have used the perform.
    ENHANCEMENT 1  ZPGI_MAIL_SEND.    "active version
    DATA c_zlf TYPE likp-lfart.
    IF sy-ucomm = 'WABU_T' and xlikp-lfart = c_zlf.
    Perform entry( ZSD_DECLARATION_CONFORMITY )using return screen.
    ENDIF.
    ENDENHANCEMENT.
    Now i am able to communicate with my program.
    Thanks,
    surya

  • User Exit for PGI

    Dear All,
    I have a requirement where client wants del. qty. & pick qty. should be uneditable i.e. not changeable before PGI. The net wt. i.e. del. qty. & pick qty. is updated in VL02N through weigh bridge system by internally run BDC. Users are creating D.O. by entering a expected qty. in VL01N.
    can anybody suggest any specific USEREXIT for PGI to fix this issue.
    Regards
    Subrat
    Message was edited by:
            subrat panda

    Hi try exit  MV50AFZ1 - This include is reserved for user modifications
    Forms for delivery processing
    also verify OSS note 415716 for this
    sugested code: if user name <> ADMIN User, no change allowed.
    Ask your abapper to do this. (use appropirte user name for ADMIn user)

  • User Exit for "Serial Number" in VL02N before "Post Goods Issue".

    Hi Friends,
    Current Scenario:
    End User has to scan "Serial Number" for Main Unit (Item CAtegory - TAN) while doing "Outbound Delivery". But, sometimes he forget to do this activity of scanning "Serial Number". And do "Post Goods Issue" without "Serial Number".
    Requirement:
    When End user will click "Post Goods Issue", system should first check "Serial Number" for Main Unit (Item Category - TAN). If he will not find "Serial Number" then system should give warning message for "Serial Number".
    Please suggest the suitable "User Exit" that can be used for above purpose.
    Or if there is any other way then let us know.
    Regards
    Siva

    hi
    check is there any standard User Exit available for VL02N. apply your logic and activate

  • User exit for save_document in delivery

    hello!
    What is the include for the user exit of save document in a delivery?
    Thx

    hi
    try method
    SAVE_DOCUMENT_PREPARE
    or
    include mv50afzz.
    include mv50afz1.
    include mv50afz2.
    include mv50afz3.          "Userexit neu zu Release 3.0A
    include mv50afzk.          "Userexit 4.6A (KOMKG/KOMPG)include mv50afzl.          "Userexit 4.6A Liefergruppen
                                                                   "n_693000
    include mv50afzp.          "Userexit for pricing screen input
    regards
    ravish
    <b>plz dont forget to reward points if helpful</b>
    Message was edited by:
            ravish goyal

  • User exit for XD01 with delivery priority

    Hi ,
    I am using a user exit EXIT_SAPMF02D_001 for customer master.Below is the piece of code .I am just displaying message based on delivery priority field in the customer master .
    But the probleam is when user only change the value in delivery priority field then only my message should come .But now my logic executes when ever no changes in the delivery priority field also and any touch other than this field also getting the message.
    Means the value in the delivery priority field  not refreshed in the customer master screen .Thats why the message is coming any time when not touching the field also.
    so can somebody suggest what to do?My logic should work only when delivery priority field only changed.
    TABLES:tpakd.
    DATA:l_lprio TYPE lprio,
         l_kztlf TYPE kztlf,
         l_antlf TYPE antlf.
    DATA:l_lp(2) TYPE c VALUE '03',
         l_kz(1) TYPE c VALUE 'B',
         l_an(1) TYPE c VALUE '1'.
    SELECT SINGLE * FROM tpakd
                    INTO tpakd
                    WHERE parvw = 'WE'
                      AND ktokd = i_kna1-ktokd.
    IF sy-subrc = 0 .
      MOVE i_knvv-lprio TO l_lprio.
      MOVE i_knvv-kztlf TO l_kztlf.
      MOVE i_knvv-antlf TO l_antlf.
      IF l_lprio = l_lp AND ( l_kztlf NE l_kz OR l_antlf NE l_an )  .
        MESSAGE w534(zm).
        ELSEIF l_lprio IS NOT INITIAL
                AND ( l_kztlf IS NOT INITIAL
                OR  l_antlf IS NOT  INITIAL
                OR  l_antlf NE '0'
                OR  l_antlf NE '9' ).
        MESSAGE w534(zm) .
      ENDIF.
    ELSE.
      EXIT.
    ENDIF.

    HI
    I think something doesn't sound good in this control
    ELSEIF l_lprio IS NOT INITIAL
      AND ( l_kztlf IS NOT INITIAL
           OR l_antlf IS NOT INITIAL                  "<-------
           OR l_antlf NE '0'
           OR l_antlf NE '9' ).
        MESSAGE w534(zm) .
    ENDIF.
    The control for L_ANTIF seems to be always valid, probably you should use AND insted of OR
    ELSEIF l_lprio IS NOT INITIAL
      AND ( l_kztlf IS NOT INITIAL
           OR ( l_antlf IS NOT INITIAL                  "<-------
           AND l_antlf NE '0'
           AND l_antlf NE '9' ) ).
        MESSAGE w534(zm) .
    ENDIF.
    Max
    Max

  • User exit for copying planned delivery time

    Hi
    My requirement is to copy the value in field Planned delivery time from contract to planned delivery time field in MRP2 view in material master. Please let me know which user exit or enhancement may be used for the purpose.
    TIA.

    Hi
    Check BADI_MATERIAL_CHECK
    Regards
    Sanil

  • User exit for copying Inbound delivery data to Batch

    Hi, my client wanted copy the field 'country of origin' of Inbound delivery to batch when we create a new batch in inbound delivery.
    Can anyone tell me which User Exit I can use? Thanks.

    Removed, for new thread
    Edited by: Carol D'Sa on Dec 7, 2009 12:56 PM

  • User exit for return from delivery - 651 movemment type in WM

    Hi Guru,
    We are going to implement a customize program to control the putaway storage location when the HU returning from delivery in WM environment.
    The process is as below:
    1. Create the return order with reference to the original billing document;
    2. Create the return delivery (original storage location is 0001).
    3. Manually attached the HU we want to return to the delivery ;
    <<<< 4.LT03 to create the TO for this delivery. >>>>>
             - then it will automatically PGR (material document with 651 movement type) 
             - A TO will automatically created and from 904 to another destination storage type 101 (setup in the 651 movement type).
    The requirement is: we need to change the storage location when the TO (904 to 101) is confirmed according to some logic.
    We found that we can not use the user exit "EXIT_SAPLL03T_001 - User Exit at End of TO Creation (in Update Task)" or   'EXIT_SAPLL03T_002 - User Exit at End of TO Confirmation (in Update Task)". We set the break point, but it didn't stop there.
    Any one can help us where we can put our code in?
    Thank you very much,

    Hello!
    The user exit MWMTO001 (FM EXIT_SAPLL03T_001) runs usually in Update
    Task. That means that you have to switch on the update debugging in
    order to let the debugger stop in this exit. In most cases update
    debugging isn´t switch on when the debugger doesn´t stop in the exit.

  • User Exit for Tagging a Delivery manually  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

    Dear,
    In main program SAPMV50A of transaction VL01N you would find an include MV50AFZ1. This include is supplied by SAP for customers to do specific checks etc.
    FORM USEREXIT_MOVE_FIELD_TO_LIKP.
    Move the required values to KNA1
    Hope this helps.
    Regards,
    R.Brahmankar

  • NEED VL02N VL09 USER-EXIT FOR DELIVERY COMPLETE INDICATOR IN PURCHASE ORDER

    I NEED VL02N VL09 USER-EXITS FOR DELIVERY COMPLETE INDICATOR IN PURCHASE ORDER POSITIONS.
    F.X: IF POST QUANTITY 10, BUT PURCHASE ORDER POSITION QUANTITY 30, I NEED AT ANY CASE TO SET DELIVERY COMPLETE INDICATOR FOR RELEVANT OUTBOUND DELIVERY AN P. ORDER POSITIONS.
    THANKS/

    Hi Malka,
    It's possible set the system to mark automatically the delivery completed indicator.
    First you need to set the under delivery and over delivery tolerances.You do this in customizing:
    Materials Management under Purchasing -> Material Master -> Define Purchasing Value Keys.
    Once you set this, you can insert this value keys on Material Master Record for the materials.
    When you create the PO with a material with this value keys set the system will check the under delivery and over delivery set on customizing.
    In customizing you also have the option to let the system mark automatically the delivery indicator based on delivery tolerances set.
    In Customizing for Inventory Management and Physical Inventory under Goods Receipt -> Set Delivery Completed Indicator, you can determine for each plant whether the system automatically sets the delivery completed indicator for delivery quantities within the underdelivery and overdelivery tolerances.
    You can test setting the under delivery for 0 (with a warning message) and see if the system will only mark delivery complete only for over delivery.
    You can also work with the following Badi: MB_GOODSMOVEMENT_DCI. This Badi also allows custom logic for setting the delivery completed indicator in a PO item.
    Message: M7 433 (The "delivery completed" indicator is set for the purchase order item)
    Regards,
    Rodrigo

  • 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

Maybe you are looking for