Enhancement help in ME51n : Extereme urgent  ! Exit + BADI-EX

Hi Experts !
I have added one tab and a field into it in ME51n through screen exit mentioned below :
Calling screen  No.     Area      Called screen     No.   Short Text
SAPLMEGUI   0014   SUB0     SAPLXM02        0111
I need to save the user input value of this field + the PR number generated into my ztable which has only these two fields.
<b>The issue here is that PR no gets generated only when we save and i cud not fetch it in these exits  ( If some has a point that we can fetch it in one of the exits-plz let me know)</b>
Now I've used the exit : EXIT_SAPLMEREQ_003 of enhancement : MEREQ001
to put data from screen field( added ) into a structure 'IM_ITEM' of nature mereq_item  by using methods of interface IF_PURCHASE_REQUISITION_ITEM.
Below is the code i used in the include of above exit:
*&  Include           ZXM02U03
tables  ZTMMP0_PMASTER.
data im_item type mereq_item.
    CALL METHOD im_req_item->get_data
      receiving
        re_data = im_item.
im_item-zpurpose = ZTMMP0_PMASTER-PURPOSE.
CALL METHOD im_req_item->set_data
  EXPORTING
    im_data =  im_item .
Now i found a BADI ->ME_REQ_POSTED which gets triggered at the time of posting the PR.if u r clear about my above code thru methods<i><b> i am tryin to throw data of screen input from my function exit and catch the same in BADI - where PR no is visible and i wud push both from BADI-method into my ztable.</b></i>
Issue is that the data of my new field which i passed thru my exit as shown above is not visible in BADI method and i cant use the get_data method
eagerly waiting for help,
Sachin Soni
Message was edited by:
        Sachin Soni

Hello Sachin,
You are trying to bring data from an Exit to a BADI , but the BADI cannot recieve the DATA as far as i understood since the parameters are restricted,
An option coming to me right now is to :
<b> Use import <--> EXPOT memory</b>
Export from the Exit and Import from the BADI using ABAP export/import statements
EXPORT (OBJ_TAB) to memory ID 'ABCD''.
IMPORT (OBJ_TAB) FROM MEMORY ID 'ABCD'.
OR
IMPORT A = A  B = B_PROG  C = C_PROG FROM MEMORY ID 'ABCD'.
and
FREE MEMORY ID 'ABCD'
Please check for correct syntaxes
Reward if helpful and pls update if problem is solved
Regards
Byju

Similar Messages

  • Pop up screen for stock overview in ME51n through user-exit/BADI

    Hi,
    User wants that at time of  Purchase Requisition creation for any material system should give a pop up window of stock details to provide the status on inventory. 
    For stock summary the t code u201CMMBEu201D for combination of plant and material should run in background and produce output in pop up window. Basically MMBE report output is required for each item line in a pop up window.
    Can this be done through user-exit. I have implemented many user-exits but not sure about the report output in a pop up screen through a user-exit.
    The material stock ia already available under menu enviornment - Material stock(MMBE) but user wants the stock as soon as the material is enetered.
    any inputs.

    Have a look at below link which gives the details abt the user exits related to VA01/VA02.
    http://help.sap.com/saphelp_46c/helpdata/en/1c/f62c7dd435d1118b3f0060b03ca329/content.htm
    Best Regards,
    Vibha
    *Please mark all the helpful answers

  • User exit/ BADI for transaction VF11

    Dear Gurus,
    My requirement is that, When a billing document is canceled using transaction code VF11, while saving the document, a information message needs to be displayed based up on the invoice date which is currently getting canceled.
    Kindly help me out with User Exit / BADI  while saving and the table fields which will have invoice date of the invoice which is getting canceled.
    Thanks,
    Bhupender Dangi

    hi,
    the following user exits are available for tcode VF11
    Exit Name           Description
    SDVFX001            User exit header line in delivery to accounting
    SDVFX002            User exit for A/R line in transfer to accounting
    SDVFX003            User exit cash clearing in transfer to accounting
    SDVFX004            User exit G/L line in transfer to accounting
    SDVFX005            User exit reserves in transfer to accounting
    SDVFX006            User exit tax line in transfer to accounting
    SDVFX007            User exit: Billing plan during transfer to Accounting
    SDVFX008            User exit: Processing of transfer structures SD-FI
    SDVFX009            Billing doc. processing KIDONO (payment reference number)
    SDVFX010            User exit item table for the customer lines
    SDVFX011            Userexit for the komkcv- and kompcv-structures
    V05I0001            User exits for billing index
    V05N0001            User Exits for Printing Billing Docs. using POR Procedure
    V60A0001            Customer functions in the billing document
    V60P0001            Data provision for additional fields for display in lists
    V61A0001            Customer enhancement: Pricing
    J_3RSINV            Customer enhancement: Pricing

  • USER EXIT/ BADI (The price should not be changed in the billing document)

    Hi all,
    We have given manual entry provision for pricing in Sales order level. But as per the company requirement, the price should not be changed in the billing document. Also the point to be considered is, it is a delivery based billing. 
    Kindly help me for finding USER EXIT/ BADI to achieve my requirement.
    Thanks.

    Hi,
    Please refer to OSS notes:
    105621 - Authorization check for the condition screen - you can use following user-exit includes for changing the condition tab to display only:
        USEREXIT_FIELD_MODIFICATION
        USEREXIT_PRICING_CHECK
        USEREXIT_FIELD_MODIFIC_LEER
        USEREXIT_FIELD_MODIFIC_KZWI
        USEREXIT_FIELD_MODIFIC_KOPF
    1165078 - Authorization check for conditions or subtotals - from ECC6.0 EHP4 there is a dedicated BAdI for authorization check, however if the user is not aurhorized to change the conditions, the conditions are not visible for the user as well.
    Regards,
    Marcin

  • User exit / badi for transaction appcreate

    Hi,
      Can nyone help me in getting user exit / badi for transaction appcreate .
    Cheers
    kamlesh

    Hi Kamlesh,
    Try below code to know the userexits for the given trxn code.
    Regards,
    Raj
    *& Report  ZTESTRAJ_USEREXITS
    REPORT  ztestraj_userexits
            NO STANDARD PAGE HEADING
            LINE-SIZE 200
            MESSAGE-ID zz.
           T A B L E    D E C L A R A T I O N S                          *
    TABLES: tftit,
            e071,
            e070.
                  S T R U C T U R E  D E C L A R A T I O N S             *
    TYPES: BEGIN OF x_tstc,
            tcode TYPE tcode,
            pgmna TYPE program_id,
           END OF x_tstc.
    TYPES: BEGIN OF x_tadir,
            obj_name TYPE  sobj_name,
            devclass TYPE devclass,
           END OF x_tadir.
    TYPES: BEGIN OF x_slog,
            obj_name TYPE sobj_name,
           END OF x_slog.
    TYPES: BEGIN OF x_final,
            name TYPE smodname,
            member TYPE modmember,
            include(15),            "Include name
           END OF x_final.
           I N T E R N A L    T A B L E    D E C L A R A T I O N S       *
    DATA: it_tstc  TYPE STANDARD TABLE OF x_tstc  WITH HEADER LINE.
    DATA: it_tadir TYPE STANDARD TABLE OF x_tadir WITH HEADER LINE.
    DATA: it_jtab  TYPE STANDARD TABLE OF x_slog  WITH HEADER LINE.
    DATA: it_final TYPE STANDARD TABLE OF x_final WITH HEADER LINE.
               V A R I A B L E S      D E C L A R A T I O N S            *
                    U S E R   I N P U T S   S C R E E N                  *
                      S E L E C T I O N    S C R E E N                   *
    SELECTION-SCREEN:  BEGIN OF BLOCK blk01 WITH FRAME TITLE text-t01.
    PARAMETERS: p_tcode LIKE tstc-tcode OBLIGATORY.
    SELECTION-SCREEN END OF BLOCK blk01.
                    S t a r t    o f    S e l e c t i o n                *
    START-OF-SELECTION.
      PERFORM get_tcodes.  "Get Tcodes
      PERFORM get_objects. "Get Objects
                    E n d    o f    S e l e c t i o n                    *
    END-OF-SELECTION.
      PERFORM display_results. "Display Results
    *&      Form  get_tcodes
          Get Tcodes
    FORM get_tcodes.
      SELECT tcode
             pgmna
         INTO TABLE it_tstc
         FROM tstc
         WHERE tcode = p_tcode.
      IF sy-subrc = 0.
        SORT it_tstc BY tcode.
      ENDIF.
    ENDFORM.                    " get_tcodes
    *&      Form  get_objects
          Get Objects
    FORM get_objects.
      DATA: l_fname LIKE rs38l-name,
            l_group LIKE rs38l-area,
            l_include LIKE rs38l-include,
            l_namespace LIKE rs38l-namespace,
            l_str_area LIKE rs38l-str_area.
      DATA: v_include LIKE rodiobj-iobjnm.
      DATA: e_t_include TYPE STANDARD TABLE OF abapsource WITH HEADER LINE.
      DATA: l_line TYPE string,
            l_tabix LIKE sy-tabix.
      IF NOT it_tstc[] IS INITIAL.
        SELECT obj_name
               devclass
            INTO TABLE it_tadir
            FROM tadir FOR ALL ENTRIES IN it_tstc
            WHERE pgmid = 'R3TR' AND
                  object = 'PROG' AND
                  obj_name = it_tstc-pgmna.
        IF sy-subrc = 0.
          SORT it_tadir BY obj_name devclass.
          SELECT obj_name
            INTO TABLE it_jtab
            FROM tadir FOR ALL ENTRIES IN it_tadir
            WHERE pgmid = 'R3TR' AND
                  object = 'SMOD' AND
                  devclass = it_tadir-devclass.
          IF sy-subrc = 0.
            SORT it_jtab BY obj_name.
          ENDIF.
        ENDIF.
      ENDIF.
    *- Get UserExit names
      LOOP AT it_jtab.
        SELECT name
               member
           INTO (it_final-name, it_final-member)
           FROM modsap
           WHERE name = it_jtab-obj_name AND
                 typ  = 'E'.
          APPEND it_final.
          CLEAR  it_final.
        ENDSELECT.
      ENDLOOP.
    *- Process it_final contents.
      LOOP AT it_final.
        l_tabix = sy-tabix.
        CLEAR: l_fname,
             l_group,
             l_include,
             l_namespace,
             l_str_area.
        l_fname = it_final-member.
        CALL FUNCTION 'FUNCTION_EXISTS'
          EXPORTING
            funcname           = l_fname
          IMPORTING
            group              = l_group
            include            = l_include
            namespace          = l_namespace
            str_area           = l_str_area
          EXCEPTIONS
            function_not_exist = 1
            OTHERS             = 2.
        IF sy-subrc = 0.
          IF NOT l_include IS INITIAL.
    *- Get Source code of include.
            CLEAR: v_include, e_t_include, e_t_include[].
            v_include = l_include.
            CALL FUNCTION 'MU_INCLUDE_GET'
              EXPORTING
                i_include   = v_include
              TABLES
                e_t_include = e_t_include.
            IF sy-subrc = 0.
              LOOP AT e_t_include.
                IF e_t_include-line CS 'INCLUDE'.
                  CLEAR l_line.
                  l_line = e_t_include-line.
                  CONDENSE l_line NO-GAPS.
                  TRANSLATE l_line USING '. '.
                  l_line = l_line+7(9).
                  it_final-include = l_line.
                  MODIFY it_final INDEX l_tabix TRANSPORTING include.
                ENDIF.
              ENDLOOP.
            ENDIF.
          ENDIF.
        ENDIF.
      ENDLOOP.
    ENDFORM.                    " get_objects
    *&      Form  display_results
          Display Results
    FORM display_results.
      FORMAT COLOR COL_HEADING.
      WRITE:/1(150) sy-uline.
      WRITE:/ sy-vline,
            2(23) 'Extension Name',
            24 sy-vline,
            25(39) 'Exit Name',
            64 sy-vline,
            65(74) 'Description',
            140 sy-vline,
            141(9) 'Include',
            150 sy-vline.
      WRITE:/1(150) sy-uline.
      FORMAT RESET.
      SORT it_final BY name member.
      LOOP AT it_final.
        CLEAR tftit.
        SELECT SINGLE  stext
          INTO tftit-stext
          FROM tftit
          WHERE spras = 'EN' AND
                funcname = it_final-member.
        WRITE:/ sy-vline,
                it_final-name COLOR COL_KEY, 24 sy-vline,
                25 it_final-member, 64 sy-vline,
                65 tftit-stext, 140 sy-vline,
                141 it_final-include, 150 sy-vline.
        WRITE:/1(150) sy-uline.
      ENDLOOP.
    ENDFORM.                    " display_results

  • Valuation price with user exit/BADI/Enhancement Spot (In valuation variant)

    Hi all,
    i am facing problem finding enhancement when creation of sales order of Valuation price with user exit/BADI/Enhancement Spot  (In valuation variant)
    For refferenece:
    When going to t.code VA03, select one item and go to extras in the menu bar and select costing then you find some amounts calculation i.e valuation price automatically.
    So when creation of sales order i am giving material and that material price automatically takes from material master and creating sales order.
    My customer requirement is to get the valuation price of the input material from Z-table during the sales order cost estimate.
    This Z-table contains the material code, plant , grade  of the material.
    Ex:
    Material         Plant   Grade Price
    A                1000    XYZ     25000
    A                1000    PQR     35000
    A                1000    BCD     45000
    Suppose it depends on sales document type and which grade price i have to take.
    So first of all i am unable to find enhancement where to change this code to get change the valuation price.
    Does anybody have any idea , is there any user exit/BADI/enhancement for this.
    So please help me in this issue.
    Thanks & Regards,
    lokeshgoud

    pls allow me to post the questions

  • Exit/BADI/Enhancement to change GL account in SAP

    Hello Gurus ,
    I have requirement to change GL account based on certain valuation class during delivery after PGI is done .
    Can anyone please help me exit/badi/enhancement .
    Thanks
    Tisha

    check this exits
    SAPLKAL1              Allocations: Authorization Check in Cycle Maintenance
    SAPMKAL1             Allocations: Authorization Check in Cycle Maintenance
    SAPMKGA2            Allocation: Execute Authorization Check for Cycle

  • User Exit/BADI/Enhancement Point in VF01 after generating new billingdocno.

    Hi Experts,
    I am looking for a user exit/BADI/Enhancement point which will trigger in VF01 after generating  the new document no (Billing document no assign).  The Billing document no is generating in the FM  RV_INVOICE_DOCUMENT_ADD ( NUMBER_GET_NEXT).
    Now the Billing document no is generating like '0000152', i want to concatenate 'ECR' to the generated Billing document no and it should be updated like ECR0000152 in Billing tables (VBRK, VBRP).
    Kindly let me know is there any EXIT/BADI to achieve this functionality.
    Regards,
    Venu

    Hi Venu,,
        These are the enhancements and badis for vf01, please check which will be helpful to you,,
    <exit farm removed by moderator>
    <points begging removed by moderator>
           Warm Regards
            Zulfikhar Ali
    Edited by: Thomas Zloch on Oct 1, 2011 3:57 PM

  • Plz help me in finding out the BADI or menu exit for IW32

    HI
    in Tcode IW32, based on the user status(ASTTX), the menu items ,EXTRAS -> TASK LIST SELECTION -> all items have to be grayed out.
    Please help me to find out BADI or menu exit which ever is available.
    Thanks,
    Pallavi.

    Hi,
         Please check if the below user exit/BADI is useful.
         Enhancement
         IWO10012                                Maintenance order: Priority handling on central header
         BAdi
         IWO_UI_USEFLEX                     BAdI for Calling Up an Alternative UI
    Regards,
    Srini.

  • QE51N exit / BADi needed URGENTLY

    Hi experts,
    I'm having this following urgent problem, let's see if any1 can be of any assistance and brainstorm with me...
    We have a requirement that when executing the selection-screen of QE51N, a kind of popup screen comes out asking the user for data (this should only come out the first time the selection screen is executed). Once that's done filled and the user fills in the data of QE51N & presses the SAVE button, we should fill in a custom Z table with the data of our Popup screen and some data of QE51N.
    Ok, for the Popup screen we're using exit EXIT_SAPLQEEM_029 (which is one of the first exits that are executed) and as we only want it to be executed the first time, we're using a flag in memory to see if it's marked or not. However, the problem is when we finish with the data and want to go BACK or EXIT, we want to clean the memory flag (so that the Popup can appear again). I can't find any user exit or BADI that is executed when leaving QE51N.
    Another alternative is another exit / BADI which is executed <b>ONCE</b> right at the beginning of the transaction instead of EXIT_SAPLQEEM_029. That way there would be no need for a flag...
    Can anybody <b>PLEASE</b> try to help?
    PS - I tried all QEEM* exits, no luck
    PS2 - EXIT_SAPLQEEM_015 is used for saving the data
    PS3 - Thanks a lot! Points will be rewarded

    QEEM0021  User exit: additional functions for user key +US1
    QEEM0022  User exit: additional functions for user key +US2
    QEEM0023  User exit: additional functions for user key +US3
    QEEM0024  User exit: additional functions for user key +US4
    Does anyone know if any of these could be used to handle the BACK / CANCEL / EXIT buttons?

  • User Exit/BADI/Enhancement Point  in VF01 before new document no assignment

    Hi Expert,
       I am looking for a user exit/BADI/Enhancement point which will trigger in VF01 before the new document no (Billing document no assign).
    I need to cross check few things in Billing via VF01 at billing document save and give error message accordingly. The problem is if new number assign and there is error due to my code then when user save the document next he get a new no. its mean a no skip.
    Example: The invoice no is 1000. User start creating a billing document with Vf01 and he get an error message due to my code at exit , at this point of time the next number assign to billing which is 1001 but document not save due to my error message. Now after applying correction user save data and billing document created with no 1002. So there is no skip.
    I tried BADI BADI_SD_ACCOUNTING but this will trigger after no assignment.  Can someone provide me a user exit/BADI/Enhancement point in VF01 which trigger before no range assignment and contain at least Billing header data to use in my code?
    Regards
    Swati
    Edited by: Swati Namdev on Nov 16, 2010 9:55 PM

    HI Brad and team,
       BRED is right. I check few user exit normally all of us have that list or easily available on net.
    BRED: my question is: I need to check the billing date VBRK-FKDAT of document should not be less than the sales order plan billing date VBAP-Oldate.
    If this check fail then won't allow the user to create billing document. The problem is I used one user exit SDVFX001 already define previously that's work fine but issue is that user exit trigger after the billing no assignment. That's why when user get that error message he correct the document and create billing this time he get a new number which is skip of one no.
    That why I need a User Exit/BADI/Enhancement Point  which trigger at save but before document no assignment.
    Please update more about your comment "Why not use a header level copy requirement routine to perform the checks and log the messages? This is the standard process."  .
    Suggest user exit USEREXIT_FILL_VBRK_VBRP  trigger before save. I need at save the reason is VBRK-FKDAT  this can be change.
    Feel free to contact me back if you need more clarification.
    Regards
    Swati
    Edited by: Swati Namdev on Nov 17, 2010 6:22 PM
    Edited by: Swati Namdev on Nov 17, 2010 6:25 PM
    Edited by: Swati Namdev on Nov 17, 2010 6:32 PM
    Edited by: Swati Namdev on Nov 17, 2010 6:47 PM

  • Exit/BADI/Enhancement for Payroll driver

    Dear Friends,
    When we run transaction pc00_m10_calc for US payroll driver for an employee for a period,we can see the renumeration statement in the output screen.
    I need to modify the internal table xrt to add the similar wage types in one period before it passes to form , which exit / BADI enhancement should for this purpose.
    Pls. advice.
    Thanks..
    Regards,Prashant

    Hi,
        Please check the below.
    Enhancement
    HRUSRCU0                                Enhancement for Customer Exit for RPCTRCU0.
    Business Add-in
    PC10_PAY0001                            User exit for base_wages in a gross up calculation
    PC10_PAY0002                            Exit to determine if negative taxables should be allowed
    PC10_PAY0003                            Exit to determine if distribution calc should be allowed
    PC10_PAY0004                            Work Tax Area Override Add-In: Activation
    PC10_PAY0005                            Work Tax Area Override Add-In: Default proration of wages
    PC10_PAY0006                            User exit for additional ESS W4 (PZ10) fields; before output
    PC10_PAY0007                            User exit for PZ10 and IT0210 fields; after input
    PC10_PAY0008                            More than 99 exemptions for US payroll withholding tax calc
    Regards,
    Srini.

  • Please send material or good lionk on USER-EXIT,BADI and ENHANCEMENT

    Hi All,
    Please send some step by step material or good lionk on USER-EXIT,BADI and ENHANCEMENT which will be usefull for beginners like me.
    Thanks in advance
    Srikanta

    Hi Srikanta,
    Please see the SDN page for ABAP Enhancements and Modifications:
    https://www.sdn.sap.com/irj/sdn/abap?rid=/webcontent/uuid/109f5161-ee76-2910-cb99-db10b559ef4b [original link is broken]
    Cheers,
    Ville

  • Exit/badi for me51n

    Hi Folks,
    My PO ordered quantity is greated than my PR quantity and that's because PR is not set to closed. Is there any way how to close the PR using exit/badi?
    Thanks!

    Dear Friend,
    U r creating PO with Reference to PR.
    if u r  doing like this u can check that at the PO Level itself.
    For this u can use the EXIT or BADI.
    Then Function group for the PO is XMO6 . in this there is one include . Include ZXM06U43
    Please Implement this Exit. this will trigger at the Check function of the PO.
    So u can restrict ur PO at the time of Creation..
    2 BADI for this is ME_PROCESS_PO_CUST.
    This BADI contains some many methods.
    For ur Requirement just implement Process_item method .
    Hope this will Help u.
    With Regards,
    Sumodh.P

  • Help to find user exit/BADI in cj20n to save requisitioner as use name

    Hi,
    I have requirement in cj20n. Please help me to find user exit or BADI for cj20n which saves requisitioner as user name automatically.
    Thanks,
    Roshani.

    Hi,
    Check this BADI :                   WORKORDER_CONFIRM.
    Goto SE18 ---> Give the above BADI name. If you want to create go to SE19 and use the above definition to create.

Maybe you are looking for