Screen exit MEREQ001- for Transactions ME51N/Me52N/ME53N

Hi,
  I have implemented the Enhancement MEREQ001 to add a new tab for Purchase Requistion screen.
Requirement for me is to show the same data in the newly added tab for all line items and also to save the same data in EBAN table.
I am facing a problem while saving the data. In EBAN table, the data was saved for all line items. But the custom added field values are saved for only the line item displayed.
I ll explain with an example for better understanding.
I have created a PR with 2 line items ITEM1 and ITEM2
When i saved the data when ITEM1 is displayed, EBAN have custom added field values for ITEM1 but not for ITEM2.
The same way, if I save data when ITEM2 is displayed, EBAN has custom added field values for ITEM2 but not for ITEM1.
  Now, my requirement is to get the both line items ITEM1 & ITEM2 updated with custom added field values in EBAN.
Has anyone faced this kind of issue.
Please reply back.
Regards,
Sreekanth.G

Hi,
Use BADI 'ME_PROCESS_REQ_CUST' to copy item 1 custom fields data to item 2 custom fields data.
Regards,
Hemanth

Similar Messages

  • Looking for a sort of "activity code" in transactions ME51N/ME52N/ME53N

    Hi all experts, got an - I hope - interesting question to ask you.
    I have an user exit that is executed on every step done in creation/modify of a Purchase requisition. In this code (custom), executed from the transactions ME51(n)/ME52(n) and ME53(n) there's something like:
    GET PARAMETER ID 'BAN' FIELD r_banfn. "Purchase Requisition number
    GET PARAMETER ID 'BFC' FIELD r_frgab. "Release strategy
    r_banfn should contain the number of the purchase requisition I'm working on. So far, so good.
    The problem is that if in ANY transaction I press the New Document button, I can notice in debug that r_banfn contains the number of the purchase requisition that WAS active before pressing the "create new" button.
    That's not good because that r_banfn value is then used to some checks, and should then be blank in case of creation of a new purchase requisitions.
    I'm then asking you if there's a way in my user exit to distinguish between the two cases, which are:
    -1- I'm modifying an existing purchase requisition (so, the field in r_banfn IS correct);
    -2- I'm CREATING a new document (so, r_banfn value is NOT correct and should be set to blank).
    This distinction must be coded into the previously cited user exit and should affect ME51(n), ME52(n) and ME53(n), from which the user can either create a new RdA or modify an existing one.
    We tried to manage the situation as follow, but without success:
    IF NOT r_banfn IS INITIAL.
      CALL FUNCTION 'ENQUEUE_EMEBANE'
           EXPORTING
                banfn          = r_banfn
           EXCEPTIONS
                foreign_lock   = 1
                system_failure = 2
                OTHERS         = 3.
      IF sy-subrc NE 0.
    * Can't lock --> means I'm actually working in modify mode on it
    * leave it as is
      ELSE.
    * locked --> that means I'm not working on this purchase requisition
    * first dequeue the locked purchase req, then set r_banfn to blank.
        CALL FUNCTION 'DEQUEUE_EMEBANE'
             EXPORTING
                  banfn = r_banfn.
    *   clear the variable -> I'm in CREATE mode.
        CLEAR r_banfn.
      ENDIF.
    ENDIF.
    The code is quite self-explaining but doesn't work because it seems that the "enqueue" phase goes ok even tho we're working on modification on the purchase requisition.
    I'm guessing if there's a sort of "activity code" (create? modify? view?) I can catch @ runtime to solve this task.
    Thanks in advance, as usual
    Matteo
    Edited by: Matteo Montalto on Mar 19, 2009 5:15 PM
    Sorry, I edited the title in order to make it more explicative. :-P

    >
    Hi Sandipan, sorry for the late, I tried to manage this task but without success.
    The user exit I'm working on in EXIT_SAPLBBPK_001.
    FUNCTION EXIT_SAPLBBPK_001.
    *"*"Lokale Schnittstelle:
    *"  IMPORTING
    *"     VALUE(IM_BBPDECDATA) LIKE  BBPDECDATA STRUCTURE  BBPDECDATA
    *"     VALUE(IV_MANU_PROF) TYPE  MANPRC OPTIONAL
    *"  CHANGING
    *"     VALUE(CH_PROFILE) LIKE  T160EX-EPROFILE
      INCLUDE ZXBBPU04.
    ENDFUNCTION.
    It includes ZXBBPU04, in which I have to understand if I'm working on a Purch. requisition in MODIFY mode or in CREATE mode.

  • Change the name of custom tab in me51n / me52n / me53n

    Hi,
    I have to add a few custom fields in PR item of  transactions me51n / me52n / me53n. I have used the enhancement MEREQ001 for adding the custom fields. The sytem automatically creates a custom tab with the name Customer Tab for the additional fields that I have added using the enhancement MEREQ001 while displaying in me51n / me52n / me53n.
    Now I have a requirement to change the name of the custom tab created for transactions me51n / me52n / me53n from Customer Data to Others.
    Can anyone suggest me how to go about doing this???
    Thanks in advance.
    Abhisek.
    P.S.:- Points will be be duly awarded 4 helpfull answers.

    Hi,
    I tried doing whatever you had suggested but it seems that it is not working.
    Could you suggest some other way to do this?
    Thanks and regards.
    Abhisek.

  • User Exit ME51N/ME52N/ME53N  when save purchase requisition

    Hi,
    I want to validate purchase requisition  data for release startegy. If there is no value for release startegy .Then ME51N/ME52N/ME53N populate a custom message before saving.
    I have found the Enhancement MEREQ001.Can anyone help me to find the exit because there are 10 user exit for this enhancment.
    Thanks in advance,
    Harinder

    Hi,
    Follow the following steps to find the EXIT
    1. Open transaction SE24.
    2. Now open the object CL_EXITHANDLER in display mode.
    3. Go to the method tab and double click on the method GET_INSTANCE.
    4. Put a break point on cl_exithandler=>get_class_name_by_interface.
    5. Now execute the transaction you want to find EXIT for, it will take you to the above method.
    6. Write EXIT_HANDLER in fieldnames and hit enter, it will tell you the EXIT used for your transaction.
    7. Hit F8 and it will tell you all the EXITu2019s for your transaction.
    Now put break points in each user exit and check which one gets triggered for your transaction.
    Regards,
    Manish

  • USER EXIT for TCODE ME51N,ME52N

    Hi Expers,
    I have one requirement, If you go to TCODE ME51n, ME52N, ME53N,  we will get one ALV grid . So user will change the layout according to his intrests & will save that layout.
    While saving that layout we will get 2 checkboxes
    1>User specific
    2>Default setting.
    So here my requirement is to disable "default setting" check box, sice users are not allowed to set default setting because it affects other users.
    Please help me to solve this issue & provide me user exit for the same
    Regards,
    Santhosh

    Hi,
    AMPL0001  User subscreen for additional data on AMPL
    LMEDR001  Enhancements to print program
    LMELA002  Adopt batch no. from shipping notification when posting
    LMELA010  Inbound shipping notification: Transfer item data from
    LMEQR001  User exit for source determination
    LMEXF001  Conditions in Purchasing Documents Without Invoice Rece
    LWSUS001  Customer-Specific Source Determination in Retail
    M06B0001  Role determination for purchase requisition release
    M06B0002  Changes to comm. structure for purchase requisition rel
    M06B0003  Number range and document number
    M06B0004  Number range and document number
    M06B0005  Changes to comm. structure for overall release of requi
    M06E0004  Changes to communication structure for release purch. d
    M06E0005  Role determination for release of purchasing documents
    ME590001  Grouping of requsitions for PO split in ME59
    MEETA001  Define schedule line type (backlog, immed. req., previe
    MEFLD004  Determine earliest delivery date f. check w. GR (only P
    MELAB001  Gen. forecast delivery schedules: Transfer schedule imp
    MEQUERY1  Enhancement to Document Overview ME21N/ME51N
    MEVME001  WE default quantity calc. and over/ underdelivery toler
    MM06E001  User exits for EDI inbound and outbound purchasing docu
    MM06E003  Number range and document number
    MM06E004  Control import data screens in purchase order
    MM06E005  Customer fields in purchasing document
    MM06E007  Change document for requisitions upon conversion into PO
    MM06E008  Monitoring of contr. target value in case of release orders
    These are all the user exits you have in the ME Package. Identify the exit which is suitable to fulfill your requirement.

  • Transactions ME51N & ME52N user exits - saving requisitions

    Hi all. 
    I have a new requirement for disallowing transactions ME51N & ME52N from saving purchase requisition records that have more than one line items associated with each of them.
    Basically upon the user clicking on the 'Save' icon I have to first check the purchasing group screen field (MEREQ3211GRID-EKGRP) of the captured purchase requisition at each event instance.  If the purchasing group matches the one I check for (i.e. the configured one) and the purchase requisition also has more than one line item associated to it then I should skip the posting functionality for this specific purchase requisition and then issue an error dialog message to the user telling him/her that such a transaction is not alllowed.
    Please help me to find the following:
    1) The user exit/BADI to use in order to implement such a change.
    2) The data objects or internal table/(s) that I may use in order to count the number of captured line items for each purchase requisition (e.g. via the 'DESCRIBE' command).
    Thanks in advance!

    Hi Venkatesan,
    I have looked at the definition of this BADI via se18.  The interface has a few parameters which also reference other types higher up in the hierachy.
    Which method do you think would be ideal in order to do the following:
    1) Get the item data count as captured by the user via the transaction ME51N?
    2) Get the item data count as collected from the database (i.e. as previously captured) and changed by the user via transaction ME52N?
    I have to then make changes exactly at these points.
    Thanks again!
    Edited by: L J Langa on Apr 16, 2009 3:00 PM

  • Activate text for Cost Center for ME51N, ME52N, ME53N

    Hi, experts
    As a requirement on T/C ME51N, ME52N, ME53N is needed to activate on "Account assignment" tab, the text for Cost Center field, how can I do this?
    Thanks in advance.
    Is there any path or exit could help with it?

    I need to add on Tabstrip "Account assignment" for fields
    CO Area and Cost Center text field description ( right side ) for each one.
    How can I do this? Thanks in advance.

  • Enhancement in ME51n, ME52n, ME53n,

    Hi experts,
    I want to add one tab in Purchase requisition screens(, ME51n,ME52n,ME53n). In that tab i need to add some fields. i need to do using  MEREQ001 . Can any one tell me how to do it? please......
    Thanks
    siva
    Moderator message: please do more research before asking, show what you have done when posting.
    Edited by: Thomas Zloch on Feb 14, 2012

    Hi,
    You can't use the BADI " ME_PROCESS_REQ_CUST.
    The main purpose of this badi is use to validate the PR at different levels. If you see the methods of that BADI  for eg :
    1. Process_header : This for validating the header part.
    2. Process_item : This for validating the line item details.
    Like that there are so many methods are there inside this BADI.
    You mentioned that you deactivated the Existing Project of PR and i want to know in which package you have mentioned.
    If that existing project is not needed you can delete the old one and incoporate the new logic and the old logic in the new project.
    Hope you got some idea now.
    With Regards,
    Sumodh.P

  • ABAP runtime error while doing ME21N, ME22N, ME23N, ME51N,ME52N, ME53N

    Dear All Expert,
    I am facing problem while doing ME21N, ME22N, ME23N, ME51N,ME52N, ME53N,
    Please find the below ABAP Runtime Error.
    Runtime Errors         LOAD_TYPE_VERSION_MISMATCH
    Date and Time          10.02.2011 11:13:07
    Short text
         Change of a Dictionary structure at runtime of a program.
    What happened?
         Runtime error
         The current ABAP program "CL_IM_WRF_MM_PROC_PO==========CP" had to be
          terminated because one
         of the statements could not be executed at runtime.
    What can you do?
         Restart the program.
         If the error persists, contact your SAP administrator.
         You can use the ABAP dump analysis transaction ST22 to view and manage
         termination messages, in particular for long term reference.
    Error analysis
         The ABAP runtime system detected that the Dictionary-type "WRF_POHF_KOMP_STY"
          changed
         during the flow of the transaction.
         As the type was already used in the old version
         and in the new type should be used in the same transaction in the new
          version, the transaction had to be cancelled to avoid inconsistencies.
    How to correct the error
        Try to restart the program.
    System environment
        SAP-Release 700
        Application server... "iqe"
        Network address...... "172.25.0.85"
        Operating system..... "Linux"
        Release.............. "2.6.9-55.ELsmp"
        Hardware type........ "x86_64"
        Character length.... 16 Bits
        Pointer length....... 64 Bits
        Work process number.. 0
        Shortdump setting.... "full"
        Database server... "iqe"
        Database type..... "ORACLE"
        Database name..... "IQE"
        Database user ID.. "SAPSR3"
        Terminal................. "MUMJML5727"
        Char.set.... "C"
        SAP kernel....... 700
        created (date)... "Dec 26 2010 20:17:07"
        create on........ "Linux GNU SLES-9 x86_64 cc3.3.3"
        Database version. "OCI_102 (10.2.0.2.0) "
    Patch level. 285
    Patch text.. " "
    Database............. "ORACLE 10.1.0.., ORACLE 10.2.0.., ORACLE 11.2...*"
    SAP database version. 700
    Operating system..... "Linux 2.6"
    Memory consumption
    Roll.... 16192
    EM...... 25139088
    Heap.... 0
    Page.... 40960
    MM Used. 8038136
    MM Free. 4528408
    User and Transaction
    Client.............. 600
    User................ "JKMM"
    Language key........ "E"
    Transaction......... " "
    Transactions ID..... "4D524AD1FD7A42F9E1000000AC190055"
    Program............. "CL_IM_WRF_MM_PROC_PO==========CP"
    Screen.............. " "
    Screen line......... " "
    Information on where terminated
        The termination occurred during generation of the ABAP/4 program
         "CL_IM_WRF_MM_PROC_PO==========CP".
        The termination occurred in line 213
        of the source code of program "CL_IM_WRF_MM_PROC_PO==========CM007" (when
         calling the editor 2130).
    Source Code Extract
    Line  SourceCde
      183   DATA: l_flag TYPE wrf_pbas_boolean.
      184
      185   CALL FUNCTION 'WRF_POHF_MSG_READ_PREVIEW_FLAG'
      186     IMPORTING
      187       e_preview_flag = l_flag.
      188
      189   IF NOT l_flag IS INITIAL.
      190
      191     DATA: l_header TYPE REF TO cl_po_header_handle_mm.
      192
      193     MOVE im_header ?TO l_header.
      194
      195     CALL METHOD l_header->if_output_mm~preview( ).
      196
      197     CALL FUNCTION 'WRF_POHF_MSG_RESET_PREV_FLAG'.
      198
      199 ***$ Widening Cast for printing information.
      200 **    CALL FUNCTION 'WRF_POHF_STORE_PRINT_INFO_SET'
      201 **      EXPORTING
      202 **        im_header = l_header.
      203
      204 * Printing Preview
      205 * IF NOT gv_preview IS INITIAL.
      206 *    CALL METHOD l_header->if_output_mm~overview( ).
      207 *    CALL METHOD l_header->if_output_mm~preview( ).
      208 * clear gv_preview.
      209   ENDIF.
      210
      211 *  ENDIF.
      212
    >>>>> ENDMETHOD.
    Internal notes
        The termination was triggered in function "ab_RxDdicStruShareFailed"
        of the SAP kernel, in line 2539 of the module
         "//bas/700_REL/src/krn/runt/abtypload.c#11".
        The internal operation just processed is " ".
        Internal mode was started at 20110210111306.
        Name of the changed type......: "WRF_POHF_KOMP_STY"
        New version of the type.......: 20070508193207
        Old version of the type.......: 20070508193207
        New user......................: "Type" "WRF_POHF_KOMP_STY"
        Version of the new user.......: 20070508193207
        Old user......................: "???" "???"
        Version of the old user.......: "???"
    Active Calls in SAP Kernel
    Lines of C Stack in Kernel (Structure Differs on Each Platform)
    (CTrcStack2+0x78)[0x6cbb78]
    (CTrcStack+0xb)[0x6cc17b]
    (ab_rabax+0x3be5)[0xb8d985]
    (_Z24ab_RxDdicStruShareFailedPKtm4RUDIS0_S1_S0_+0x163)[0xb16823]
    (_Z19ab_GetDdicTypeIndexPKtm4RUDI+0x1f6)[0xb0dbb6]
    (_Z11ab_LoadViewPtjPKtPK11PROGRAMHEADPj+0x27e)[0xb16ede]
    (_Z18ab_GetDdicTypeLoad4RUDI+0x6e)[0xb1705e]
    (ab_GetView+0xc1d)[0xb0ee1d]
    (_Z20CompressInitRcByDatajPK6CG_DIRjjS1_jj4RUDIPKhj+0x60d)[0xe32b2d]
    (_Z21cg_CompressStackFrameP4TRIGjj+0x169)[0xe33399]
    (_Z8cg_blkleP3ENV+0x75f)[0xe4779f]
    (_Z9sc_cblklePKt8ENV_KINDP7SC_INFO+0x394)[0xe90024]
    (sc_blkle+0xdd)[0xec6e4d]
    (rs_oper_abap1729+0x37)[0x10eb237]
    (rs_expan_abap+0xa1996)[0xfd7a2a]
    (_Z8sc_expanj+0x76d)[0xe1d55d]
    (_Z5parsejPi+0x258)[0xe19998]
    (sc_check+0xb9c)[0xe1857c]
    (sc_inclu+0x5fa)[0xe0d50a]
    (rs_oper_abap2160+0x3a)[0x1115d6a]
    (rs_expan_abap+0xcd41d)[0x10034b1]
    (_Z8sc_expanj+0x76d)[0xe1d55d]
    (_Z5parsejPi+0x258)[0xe19998]
    (sc_check+0xb9c)[0xe1857c]
    (sc_checkStart+0x41)[0xe1ac51]
    (cg_generate+0xb65)[0xe57755]
    (ab_gabap+0x14a)[0xb01a5a]
    (dy_gen_abap+0x63c)[0x74428c]
    (ab_genprog+0x13d3)[0xb03d13]
    (_Z17ab_LoadProgOrTrfoPKtjPj+0xb56)[0x8f9ab6]
    (_Z11ab_LoadProgPKtj+0x11)[0x8f9ca1]
    (_Z15LoadGlobalClassPKtjjj9ClasState+0x24c)[0x958c2c]
    (_Z11FillCfixIntPK4CREFP4CFIXjj9ClasState+0x214)[0x957404]
    (_Z11ab_FillCfixtj+0x65)[0x957ae5]
    (_Z26ab_CrefToCladId_ActivateOKtPh+0x7d)[0x957b6d]
    (_Z8ab_jaboov+0x623)[0x959793]
    (_Z8ab_extriv+0x607)[0x8ba9c7]
    (_Z9ab_xeventPKt+0x1c1)[0xa1c021]
    (_Z8ab_triggv+0x9c)[0xa1c77c]
    (ab_run+0x97)[0xbde5c7]
    (N_ab_run+0x9)[0x736359]
    (dynpmcal+0x669)[0x7333b9]
    (dynppai0+0x8eb)[0x734d9b]
    (dynprctl+0x3e9)[0x733db9]
    (dynpen00+0x4a5)[0x726eb5]
    (Thdynpen00+0x359)[0x541bd9]
    (TskhLoop+0xc49)[0x54d999]
    (ThStart+0x20f)[0x55b29f]
    (DpMain+0x2da)[0x4bd49a]
    (nlsui_main+0x9)[0x4910c9]
    (main+0x33)[0x491103]
    /lib64/tls/libc.so.6(__libc_start_main+0xdb)[0x3cde51c3fb]
    Please help me to resolve the issue.
    Thanks & Regards
    SKK

    read this part again:  The ABAP runtime system detected that the Dictionary-type "WRF_POHF_KOMP_STY" changed during the flow of the transaction. As the type was already used in the old version and in the new type should be used in the same transaction in the new version, the transaction had to be cancelled to avoid inconsistencies. How to correct the error Try to restart the program
    how often had you restarted ME21N before you posted this message?
    In best case this message appears only once, because the program / or dictionary was changed while you executed ME21N
    If many times, then contact your ABAPer, because then he probably did not transport all objects that were changed, or the objects have to be regenerated in your system.

  • Availability Overview in ME51N, ME52N, ME53N

    Hi,
    When I go to the menu path Environment -> Availability in transactions ME51N, ME52N or ME53N, nothing happens. The expected behaviour is the display of availability overview as in transactions ME21N, ME22N, ME23N.
    I found the same thing to happen in several SAP systems. What is the reason behind this strange behavior?
    Thank you.
    Helpful answers will be rewarded.

    Availability check only possible for stock transfer items

  • Display descriptions of cost center and G/L account in ME51N/ME52N/ME53N

    Hi Experts,
    Can any one suggest that how to display descriptions of cost center and G/L account in account assignment subscreen- ME51N / ME52N / ME53N.
    Thanks in Advance...
    Siva

    hi
    if the field is required then u have to enter them manually
    so if this are not required then goto OKB9 here give the default cost center for the Gl acct

  • Screen exit - LM46 RF transaction

    Hi,
    This is related to the screen exit of RF transaction LM46.
    We have created a screen exit for logical screen 0212 of SAPLLMOB for the RF transaction LM46 and added this screen in the screen management config.
    The custom sub screen 1212 for the user exit was created in SAPLXLRF as a copy of screen 2212 of SAPLLMOB.
    The issue we are facing is: the sub screen SAPLXLRF 1212 gets called but no data is being passed from SAPLLMOB screen to the SAPLXLRF sub screen as expected, so the screen appears without any values.
    Thanks and Regards,
    Simmi

    Hi
    You can find Exits and BADI from SPRO. Just identify the area where you want to enhance and go to that area by SPRO , then you can see system enhancement that are available. This is the good way to find enhancement because you can find the documentation related to enhancement.
    Like  SPRO > Material Management > Purchasing > Develop enhancement for purchasing (Exits)
    or see Business add ins for purchasing.  Read the documentation.
    Else you can search exits and badi by the package name like find the package of a transaction where you want to put enhancement. SE93 > Transaction name > Display > Package.
    then go to SE80 and open the package then see function group start with X. this are exits  that are available. you can find enhancement also.
    Else to find BADI related to a transaction just put break point to class method cl_exithandler->get_instance in SE24.
    and run the transaction , then you can find the BADI as exit name in this function call.
    These are the way you can find enhancement  , but the way which is describe 1st is the best way.
    hope it will solve ur problem.
    Thanks

  • Implementation:Enhancement using screen exit:QQMA0001 for Tcode:QM01

    Dear Abaper,
      I am implementing the Enhancement for Quality notification using screen exit:QQMA0001 for the transaction code :QM01,QM02,QM03.
    when i was creating the subscreen in function group:XQQM and after saving that subscreen(for example 100) , it is automatically stored in local object, that mean local package or development class. it is not transporable.
    my requirement is , i want to transport that Project. how to do that.
    if you have a any idea, please help me.
    advance thanks.
    with best regards,
    Velmurugan.S

    Dear ravi,
    yes of course , I have created already customer enhancement in CMOD.but my requirement is ,
    when i save that subscreen after creation of subscreen, it is not ask Package or development class.but it is taking local object(local package) automatically . what is reason, i donot know .
    if you have a any idea, please help me.
    thank you.
    with best regards,
    velmurugan.S

  • 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

  • BAPI for Transaction ME51N?

    How to devlop Purchase Requisition BAPI for Transaction ME51N?

    Hi vamshi,
    We have BAPI
    BAPI_REQUISITION_CREATE
    BAPI_PR_CREATE
    BAPI_REQUISITION_CHANGE
    BAPI_PR_CHANGE
    Please check this link
    FOR CREATING:
    http://www.erpgenie.com/abap/bapi/example.htm
    http://www.****************/Tutorials/BAPI/CustomBAPICreation2/page1.htm
    Best regards,
    raam

Maybe you are looking for

  • Viewing FCP on NTSC MONITOR

    In my days with PC I used to watch my timeling in Premier Pro on my NTSC monitor. I had a Matrox card with an outbox and connected the svideo out on the box to my monitor. Now in the Mac Pro I have dual outputs on my ATI Raden card and all I get on m

  • Oracle 8.1.7.4 + JDBC Driver 10.2.0.3.0=invalid or unknown NLS parameter...

    I'm having an issue trying to update the jdbc driver from 10.1.0.2.0 to 10.2.0.3.0 to access an Oracle 8.1.7.4 instance. Using this code I'm getting the following exception, any ideas how to fix it? Thanks, Johann Connection c = null; try {      Driv

  • Oracle linux 6.5 - yum update

    Hello, my update is ending by following error: Transaction Check Error:   file /lib/firmware/isci/isci_firmware.bin from install of kernel-firmware-2.6.32-431.29.2.el6.noarch conflicts with file from package kernel-uek-firmware-2.6.32-100.35.1.el6uek

  • Clearing out archivelogs from Flash_recovery_area after applied on Standby.

    I set up a standby database using data guard in 11g. I used the flash_recovery_area to store archivelogs, but really the true destination of all my archivelogs should and is my standby database. I didnn't have any other backup(s) setup yet. After few

  • VBN1 Multiple bundling alternative solution

    Good afternoon sir/ma'am May I know what's the alternative solution or development to solve this problem of the standard 1:1 relationship