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.

Similar Messages

  • 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

  • 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

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

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

  • 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

  • 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 for Delivery Updating

    Hi,
    I am creating one user exit for delivery ,
    My condition:
    If XLIKP-UPDKZ (Update indicator) = Update (U).
    Read table Deferred COGS Activity (Z1009) with key
    Delivery Number  eq LIKP-VBELN.
    If sy-subrc <> 0
    Exit.
    Else.
    If V50AGL-WARENAUSGANG=X (PGI is active)
    Update table Z1009 with
    WADAT_IST = XLIKP-WADAT_IST
    PGI_ERNAM = SY-UNAME
    PGI_ERDAT = SY-DATUM.
    where Delivery Number (DL_NO) eq LIKP-VBELN.
    If delivery updated successfully then no problem ,
    if not updated then I need to through error message to log.
    I need Function Module for this.
    Can u help me.

    These ar all the User Exits used in VL01N.
    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)
    You can also look at BADI: LE_SHP_DELIVERY_PROC. It has several implementations which could be useful to you.

  • User Exit for Updating Delivery Plant at Item Level in Sales Order

    Hello Experts
    There is a requirement to determine the delivery plant for each item level and than update the items with newly determined plant.  There is a user exit MV45AFZZ routine FORM USEREXIT_MOVE_FIELD_TO_VBAP. to update the item level entries in Sales Order in VA01 or VA02. Is this the right place to do this?, if yes , do i need to perform any other standard logic (like re determine Shipping points , schedule lines ) for newly determined plant? If not , can you please suggest any other place , BADI or user exit to change the delivery plant of sales order.
    Thanks a lot....
    -Harkamal

    Best place is MV45AFZZ-USEREXIT_SAVE_DOCUMENT_PREPARE. Populates the values just before saving the document. You can have your own deriving logic. Make sure that peice of code is trigger only for Sales Order create or change (VA01/VA02).
    Are you kidding???  You do realize that this is AFTER all validations against configuration, ATP, pricing, etc. have been performed??!!!  Never, ever change a critical value like plant in the SAVE user exits...

Maybe you are looking for

  • Polling to Database not working sometimes

    Hi all, I have created an ESB project. I am using polling operation to poll Oracle database table. I am using update field i.e. logical delete opeartion under polling. I have deployed my process, its running perfectly fine. Polling is also happening.

  • How to use a webservice (WebLogic?)

    I want my application to use a WebLogic built webservice. The documention says to create aControl from the WSDL, but the only ways it seems to use the control is by dragging it into a pageflow in design view. I need to access it via a POJO. I'm new t

  • Re: Second Try: AIX C-Compiler Syntax Error osmm.h

    Hello all, thank you all for your reply. I will check all the possible solutions. Joseph Mirwald To unsubscribe, email '[email protected]' with 'unsubscribe forte-users' as the body of the message. Searchable thread archive <URL:http://pinehurst.sage

  • Relese Procedure for Purchase Order....

    Hi experts, we have 4 types  of purchase order CLASE with ZT01,ZT02,ZT03,ZT04  .    one is  STANDARD  (NB Standard PO) also we r working with RELESE PROCEDURE . my client wants RELESE PROCEDURE only for  ZT01,ZT02,ZT03,ZT04   .. not for  (NB Standard

  • Settlements and impact on cProjects Revenue

    Hi Gurus We have an issue where after we run our end of month Settlements our Revenue in cProjects is set to zero. Is this a configuration issue to resolve or is a setting requirement within the Settlement process. Many Thanks in advance Regards Pand