User exit to check/uncheck the GR Indicator at the time of PO creation

Hi,
Can anybody help me out in finding the right user exit/BAdi to control the GR Indicator flag.
We already tried the user exits:
EXIT_SAPLMEKO_001
EXIT_SAPLMEKO_002
EXIT_SAPLFYTX_USER_001
EXIT_SAPMM06E_012
EXIT_SAPMM06E_013
EXIT_SAPMM06E_009 and also tried the BAdi ME_PROCESS_PO_CUST.
Nothing is updating the GR Indicator flag.
Please let me know if any other user exits exist.
Thanks in advance. Quick response is appreciated.
Bhaskar

Hi,
Try this code..I have used memory pointers....
In the userexit <b>EXIT_SAPMM06E_012</b>
DATA lwa_ekpo LIKE bekpo.
data lw_field(50).
FIELD-SYMBOLS <t_xekpo> TYPE STANDARD TABLE.
IF sy-tcode = 'ME21'.
lw_field = '(SAPLMEPO)POT[]'.
ASSIGN (lw_field) TO <t_xekpo>.
if sy-subrc ne 0.
lw_field = '(SAPMM06E)POT[]'.
ASSIGN (lw_field) TO <t_xekpo>.
if sy-subrc <> 0.
message e208(00) 'Couldn't find POT'.
endif.
endif.
loop at <t_xekpo> into lwa_ekpo.
Check the conditions..
example..
if ......
Check the GR indicator..
lwa_ekpo-WEBRE = 'X'.
<b>MODIFY <t_xekpo> from lwa_ekpo transporting WEBRE.</b>
endif.
endloop.
ENDIF.
Hope this helps..
Thanks,
Naren

Similar Messages

  • User Exit for ML81N  at the time of save -- urgent

    hello all,
    I need to fill the field reference field in ML81N transaction with some value for this i need to find user exit i was able to find so many user exits for this transaction but i couldn't find the perfect user exit at the tiem of save,
    Any pointers wouls be of great help..............

    Hi,
    check these 2 threads.
    User exit in ML81N
    Urgent. Badi or user exit for ML81N transaction
    Regards,
    Maha

  • Customer Overdue check at the time of Delivery

    Dear Friends,
    Our client requires to have a customer over due check at the time of delivery creation.
    If the days are above 45 in arreas, the delivery document should not be created.
    At present the check is placed at the sales order creation, but they opt to have it at the time of delivery.
    Kindly suggest the exits present in vl01n.
    Regards,
    Charmaine Martin

    Hi,
    Thanks for the reply.  This field is having the value the count of serial numbers entered irrespective of the valid serial numbers entered.  I created two delivery document, one with serial number which was not there in the stock and the other with a valid serial number.  For both the delivery document LIPS-ANZSN gives the count of serial number which I have entered.
    Please let me know how can I move further.
    Rgds,
    Gopali

  • User exit for checking the vendor emailid in me22n or me21n

    hi all,
         can anybody suggest me a user exit for checking the email id of the vendor in me21n or me22n or me29n.
       plz suggest me a solution its urgent.

    hi yaan,
           i checked with the user exit that u suggested me, it is getting triggered, i am able to check whether the vendor email id is present or not, but this is happening all the time that is even when the user dont want to send a email to the vendor i.e. he just wants to print the purchase order, even at that time this user exit is getting triggered and giving a message that the vendor email id is not maintained.
      the reson why this is happening is there is no import parameter to this user exit which gives the "medium of data transfer"  the user has entered. if i get this parameter visible inside the user exit, then i can check this parameter inside the user exit and do the required operation.   i checked up with all the user exits in "me" package and even the other related packages but none of them is getting triggered,
      do u know a user exit or badi which imports this parameter and also gets triggered at the time of creation of purchase order.
      plz give me a solution.
    regards,
    santosh.

  • Display a variable d'user exit as text in the title of a colomn

    Hi, experts,
    I would like to calculate the number of days of a certain month. This calculation would be done in the user exit.
    Then in the report, this number will be displayed in the title of the colomn.
    Is it possible to realise this requirement and what is the configuration regarding as this variable?
    Thanks in advance.

    Hi,
    Yes you can do it.
    Create text variable 'ZNO_MNTH', with processing by Customet Exit.
    Variable Entry = Mandatory
    Length of Input field = 0008
    Uncheck ready for input.
    Note: Here I'm using based on SY-DATUM, for your requirement you can change the LOGIC. Insted of SY-Datum you can pass your Date.
    WHEN 'ZNO_MNTH'.
    *ZDATE = SY-DATUM.
    DATA: NODAYS TYPE INT1.
    LOOP AT i_t_var_range INTO loc_var_range.
            IF sy-subrc = 0.
              CLEAR: l_s_range.
    CALL FUNCTION '/OSP/GET_DAYS_IN_MONTH'
      EXPORTING
        IV_DATE       = SY-DATUM
    IMPORTING
       EV_DAYS       =  NODAYS        .
      L_S_RANGE-LOW    = NODAYS.
      L_S_RANGE-SIGN   = 'I'.
      L_S_RANGE-OPT    = 'EQ'.
      APPEND L_S_RANGE TO E_T_RANGE.
      ENDIF.
    ENDLOOP.
    In Report you just gve text variable and check it, don't give any Alphabets in heading, just give this Text Variable.
    Thanks
    Reddy

  • How to find the ME29N 'USER EXIT' when our save the release PO after.

    How to find the ME29N 'USER EXIT' when our save the release PO after.
    which user exit will be used?
    thanks.
    alex.

    Hi,
      process :
        go to tranx code :   ME29N ,
           System---->Status , here copy the program name (SAPLMEGUI),
         go to abap editor and specify the program name SAPLMEGUI and find the package "ME".
         tranx code : CMOD ,  Utilites--->Sap Enanchement,
                                         specify the package name : ME
                                          and execute, displays a list of exits ,
                                 and find out our suitable exit based on requirement.
    check these :   EXIT_SAPMM06E_021
    reg
    Siva

  • Is there any user exit/ badi to populate the partner bank type for   F-63.

    Is there any user exit/ badi to populate the partner bank type (field name BSEG-BVTYP) in transaction F-63. There is exit ‘ZFI_FOAP_CDITEMS_00001011’ having BKPF and BSEG as only import parameters so I can’t change the value for BSEG-BVTYP.
    So could you please let me know any exit where I can change the value for BSEG-BVTYP for transaction F-63?
    Thanks in Advance,
    Steevan

    hi,
    Below r the user exit related to transaction  F-63.
    Check out if any of them will solve ur Query..
    F050S001            FIDCMT, FIDCC1, FIDCC2: Edit user-defined IDoc segment
    F050S002            FIDCC1: Change IDoc/do not send
    F050S003            FIDCC2: Change IDoc/do not send
    F050S004            FIDCMT, FIDCC1, FIDCC2: Change outbound IDoc/do not send
    F050S005            FIDCMT, FIDCC1, FIDCC2 Inbound IDoc: Change FI document
    F050S006            FI Outgoing IDoc: Reset Clearing in FI Document
    F050S007            FIDCCH Outbound: Influence on IDoc for Document Change
    F180A001            Balance Sheet Adjustment
    FARC0002            Additional Checks for Archiving MM Vendor Master Data
    FEDI0001            Function Exits for EDI in FI
    RFAVIS01            Customer Exit for Changing Payment Advice Segment Text
    RFEPOS00            Line item display: Checking of selection conditions
    RFKORIEX            Automatic correspondence
    SAPLF051            Workflow for FI (pre-capture, release for payment)
    Reward points if helpful,
    Regards,
    Brijesh

  • User exit/BADI for changing the exchage rate type in MIGO

    Dear guru's,
    Please help me in finding the user exit/BADI to change the exchange rate type in MIGO.
    Regards,
    Abdul Rahim

    did you check this one MB_GOODSMOVEMENT?
    also exchange rates needs to be changed at Purchase order level and those will be reflected while creating MIGO.

  • 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/BADI to change the Accntg doc which gets created during Billing

    I am trying to do the following . Is this possible ?
    When a delivery related billing document is created an accounting document is created in the background , I want to modify the line items in the accounting document, Just before posting the accounting document.
    I am using  exit EXIT_SAPLV60B_008  as suggested but I don't see the accounting line items in any of the internal tables in this exit.
    My accounting document when it gets created looks like this. And I want to modify one of these lines before the document is posted.
    Thanks in advance.
    Regards,
    Ankur Bhandari
    1 01 32517 Jaaaa 3,700.83 USD
    2 50 3100000 MERCHANDISE SALES 3,199.96- USD
    3 40 3100000 MERCHANDISE SALES 160.00 USD
    4 50 3200000 DELIVERY INCOME 132.00- USD
    5 50 3200000 DELIVERY INCOME 10.00- USD
    6 50 2170156 SALES TAX COLLECTED 198.87- USD
    7 50 3400000 WARRANTY INCOME 320.00- USD
    8 15 32517 Jaaaa 3,700.83- USD
    9 40 1117217 RECV. VISA/MCARD Sto 3,700.83 USD
    Any answers on how can I delete line 1 8 and 9 and add another line which balances the amount ?
    Need to do this just before the accounting document gets generated.
    Is this possible ?

    Hi Ajay,
    I just want throw a light on your issue.
    There are couple of other user-exits also available here.
    Just check the required data is available or not?
    EXIT_SAPLV60B_001              User Exit AC Interface (Header Line)               
    EXIT_SAPLV60B_002              User Exit AC Interface (Customer Line)             
    EXIT_SAPLV60B_003              User Exit RW Interface (Cost)                      
    EXIT_SAPLV60B_004              User Exit AC Interface (GL Account Item)           
    EXIT_SAPLV60B_005              User Exit AC Interface (Accruals)                  
    EXIT_SAPLV60B_006              User Exit AC Interface (Tax Line)                  
    EXIT_SAPLV60B_007              User Exit AC Interface (Customer Line)             
    EXIT_SAPLV60B_008              User Exit AC Interface Transfer Tables             
    EXIT_SAPLV60B_010              User Exit Item Table for the Customer Lines        
    Thanks,
    Ramakrishna

  • User Exit & BADI for controling the END user in co06

    Hi
    I HAVE SOME 2 DOUBTS
    1.  I  need a user exit /  BADI  for controlling the user to edit a specific document type in co06 (BACKORDER PROCESSING) .
    the control should be actve for specfic order type for specfic users
    2  DEPENDS ON ORDER TYPE I NEED TO CONTROL THE ALLOCATION , AND HOW TO CHECK THE SAFETY STOCK

    Answer cannot be Provided properly , so has to Post more questions . i am jus closing my ques??

  • User exit  for checking  Goods Receipt, Non-Valuated when creat po (ME21N)

    Hi All:
    I want to check the field of Goods Receipt, Non-Valuated when i create PO with ME21N.
    It require as plant and Account assignment category
    For example,  plant A and account assignment  category (K), I want to check it.
    How can I do this?
    Please help me.

    No need for any user exit ,  you can copy the account assignment category "K"  and make your own , in that  account assignment category you can tick "GR-Nonvaluated" ,  then whenever you create a PO with this category "GR-Non Valuated"  will come ticked automatically.
    Regards
    Raviraj

  • User Exits or BAdis' for the Service Order create Transaction

    Hi all,
              I need to Replace a field, "Product" in the "Item Details" area  of the create Service Order Transaction(CRMD_BUS2000116) with some custom field.
    Are there any Exits/BAdi which will help me in doing this..
    Thanks in advance
    Sethu

    Hi Sethu,
    The user exits / BADI's for the Transaction(CRMD_BUS2000116 are not avaliable:
    The following info from one forum to search user exits / BADI's  that you can use: There are multiple ways of searching for BADI.
    • <b>Finding BADI Using CL_EXITHANDLER=>GET_INSTANCE
    • Finding BADI Using SQL Trace (TCODE-ST05).
    • Finding BADI Using Repository Information System (TCODE- SE84).</b>
    1. Go to the Transaction, for which we want to find the BADI, take the example of Transaction VD02. Click on System->Status. Double click on the program name. Once inside the program search for ‘CL_EXITHANDLER=>GET_INSTANCE’.
    Make sure the radio button “In main program” is checked. A list of all the programs with call to the BADI’s will be listed.
    The export parameter ‘EXIT_NAME’ for the method GET_INSTANCE of class CL_EXITHANDLER will have the user exit assigned to it. The changing parameter ‘INSTANCE’ will have the interface assigned to it. Double click on the method to enter the source code.
    Definition of Instance would give you the Interface name.
    2. Start transaction ST05 (Performance Analysis).
    Set flag field "Buffer trace"
    Remark: We need to trace also the buffer calls, because BADI database tables are buffered. (Especially view V_EXT_IMP and V_EXT_ACT)
    Push the button "Activate Trace". Start transaction VA02 in a new GUI session. Go back to the Performance trace session.
    Push the button "Deactivate Trace".
    Push the button "Display Trace".
    The popup screen "Set Restrictions for Displaying Trace" appears.
    Now, filter the trace on Objects:
    • V_EXT_IMP
    • V_EXT_ACT
    Push button "Multiple selections" button behind field Objects
    Fill: V_EXT_IMP and V_EXT_ACT
    All the interface class names of view V_EXT_IMP start with IF_EX_. This is the standard SAP prefix for BADI class interfaces. The BADI name is after the IF_EX_.
    So the BADI name of IF_EX_CUSTOMER_ADD_DATA is CUSTOMER_ADD_DATA
    3. Go to “Maintain Transaction” (TCODE- SE93).
    Enter the Transaction VD02 for which you want to find BADI.
    Click on the Display push buttons.
    Get the Package Name. (Package VS in this case)
    <b>Go to TCode: SE84->Enhancements->Business Add-inns->Definition</b>
    Enter the Package Name and Execute.
    Here you get a list of all the Enhancement BADI’s for the given package MB.
    Also have a look at below report which will list BADIs.
    REPORT  Z_FIND_USER_EXITS.
    TABLES : TSTC,TADIR,MODSAPT,MODACT,TRDIR,TFDIR,ENLFDIR,SXS_ATTRT ,TSTCT.
    DATA : JTAB LIKE TADIR OCCURS 0 WITH HEADER LINE.
    DATA : FIELD1(30).
    DATA : V_DEVCLASS LIKE TADIR-DEVCLASS.
    PARAMETERS : P_TCODE LIKE TSTC-TCODE,
                 P_PGMNA LIKE TSTC-PGMNA .
    DATA wa_tadir type tadir.
    START-OF-SELECTION.
      IF NOT P_TCODE IS INITIAL.
        SELECT SINGLE * FROM TSTC WHERE TCODE EQ P_TCODE.
      ELSEIF NOT P_PGMNA IS INITIAL.
        TSTC-PGMNA = P_PGMNA.
      ENDIF.
      IF SY-SUBRC EQ 0.
        SELECT SINGLE * FROM TADIR
        WHERE PGMID = 'R3TR'
        AND OBJECT = 'PROG'
        AND OBJ_NAME = TSTC-PGMNA.
        MOVE : TADIR-DEVCLASS TO V_DEVCLASS.
        IF SY-SUBRC NE 0.
          SELECT SINGLE * FROM TRDIR
          WHERE NAME = TSTC-PGMNA.
          IF TRDIR-SUBC EQ 'F'.
            SELECT SINGLE * FROM TFDIR
            WHERE PNAME = TSTC-PGMNA.
            SELECT SINGLE * FROM ENLFDIR
            WHERE FUNCNAME = TFDIR-FUNCNAME.
            SELECT SINGLE * FROM TADIR
            WHERE PGMID = 'R3TR'
            AND OBJECT = 'FUGR'
            AND OBJ_NAME EQ ENLFDIR-AREA.
            MOVE : TADIR-DEVCLASS TO V_DEVCLASS.
          ENDIF.
        ENDIF.
        SELECT * FROM TADIR INTO TABLE JTAB
        WHERE PGMID = 'R3TR'
        AND OBJECT in ('SMOD', 'SXSD')
        AND DEVCLASS = V_DEVCLASS.
        SELECT SINGLE * FROM TSTCT
        WHERE SPRSL EQ SY-LANGU
        AND TCODE EQ P_TCODE.
        FORMAT COLOR COL_POSITIVE INTENSIFIED OFF.
        WRITE:/(19) 'Transaction Code - ',
        20(20) P_TCODE,
        45(50) TSTCT-TTEXT.
        SKIP.
        IF NOT JTAB[] IS INITIAL.
          WRITE:/(105) SY-ULINE.
          FORMAT COLOR COL_HEADING INTENSIFIED ON.
    Sorting the internal Table
          sort jtab by OBJECT.
          data : wf_txt(60) type c,
          wf_smod type i ,
          wf_badi type i ,
          wf_object2(30) type C.
          clear : wf_smod, wf_badi , wf_object2.
    Get the total SMOD.
          LOOP AT JTAB into wa_tadir.
            at first.
              FORMAT COLOR COL_HEADING INTENSIFIED ON.
              WRITE:/1 SY-VLINE,
              2 'Enhancement/ Business Add-in',
              41 SY-VLINE ,
              42 'Description',
              105 SY-VLINE.
              WRITE:/(105) SY-ULINE.
            endat.
            clear wf_txt.
            at new object.
              if wa_tadir-object = 'SMOD'.
                wf_object2 = 'Enhancement' .
              elseif wa_tadir-object = 'SXSD'.
                wf_object2 = ' Business Add-in'.
              endif.
              FORMAT COLOR COL_GROUP INTENSIFIED ON.
              WRITE:/1 SY-VLINE,
              2 wf_object2,
              105 SY-VLINE.
            endat.
            case wa_tadir-object.
              when 'SMOD'.
                wf_smod = wf_smod + 1.
                SELECT SINGLE MODTEXT into wf_txt
                FROM MODSAPT
                WHERE SPRSL = SY-LANGU
                AND NAME = wa_tadir-OBJ_NAME.
                FORMAT COLOR COL_NORMAL INTENSIFIED OFF.
              when 'SXSD'.
    For BADis
                wf_badi = wf_badi + 1 .
                select single TEXT into wf_txt
                from SXS_ATTRT
                where sprsl = sy-langu
                and EXIT_NAME = wa_tadir-OBJ_NAME.
                FORMAT COLOR COL_NORMAL INTENSIFIED ON.
            endcase.
            WRITE:/1 SY-VLINE,
            2 wa_tadir-OBJ_NAME hotspot on,
            41 SY-VLINE ,
            42 wf_txt,
            105 SY-VLINE.
            AT END OF object.
              write : /(105) sy-ULINE.
            ENDAT.
          ENDLOOP.
          WRITE:/(105) SY-ULINE.
          SKIP.
          FORMAT COLOR COL_TOTAL INTENSIFIED ON.
          WRITE:/ 'No.of Exits:' , wf_smod.
          WRITE:/ 'No.of BADis:' , wf_badi.
        ELSE.
          FORMAT COLOR COL_NEGATIVE INTENSIFIED ON.
          WRITE:/(105) 'No userexits or BADis exist'.
        ENDIF.
      ELSE.
        FORMAT COLOR COL_NEGATIVE INTENSIFIED ON.
        WRITE:/(105) 'Transaction does not exist'.
      ENDIF.
    AT LINE-SELECTION.
      data : wf_object type tadir-object.
      clear wf_object.
      GET CURSOR FIELD FIELD1.
      CHECK FIELD1(8) EQ 'WA_TADIR'.
      read table jtab with key obj_name = sy-lisel+1(20).
      move jtab-object to wf_object.
      case wf_object.
        when 'SMOD'.
          SET PARAMETER ID 'MON' FIELD SY-LISEL+1(10).
          CALL TRANSACTION 'SMOD' AND SKIP FIRST SCREEN.
        when 'SXSD'.
          SET PARAMETER ID 'EXN' FIELD SY-LISEL+1(20).
          CALL TRANSACTION 'SE18' AND SKIP FIRST SCREEN.
      endcase.
    Hope it will help you.
    Regards,
    Arjun
    <b>Reward points if it helps</b>

  • User exit that runs at the start of VF01

    Hello ABAP gurus,
    Forgive me if this question seems stupid but I'm very new to user exits. In fact this is my first time handling one. I need to find the <b>user exit that runs at the start of VF01</b>. In that user exit I need to put some authorization checks and if they're not met the user won't be allowed to continue to run VF01 (VF01 must exit).
    <i>When user runs billing (transaction code VF01), I need to insert an authorization object V_LIKP_VST. If they have access to that plant (VSTEL), then they can proceed to run the transaction. If not, they should be rejected or forced to exit VF01. So the trick here is find that user exit that runs at the start of VF01.</i>
    Thanks.

    Hi Carl
      Please see if you can use BADI: <b>BAPI_SD_BILLING_ITEM</b>.
      Alternatively, you can try with Routine: <b>USEREXIT_FILL_VBRK_VBRP</b> in include: <b>RV60AFZC</b> to add the authorization check.
    Kind Regards
    Eswar
    Message was edited by: Eswar Rao  Boddeti

  • User exit for checking creation of prod. order reference to sales order?

    Hi all,
    What are user exit suitable for checking creation of prod. order reference to sales order to have the same plant. If plant not the same, an error message should appear.
    thanks.

    Hi,
    user exits:
    PPCO0003  Check exit for order changes from sales order
    PPCO0007  Exit when saving production order
    Regards,
    Vivek

Maybe you are looking for