Database Table or T-Code for Substitutes

Hi,
Can anybody help me on the following issue:
in workflow, one user A is receiving email notifications for the workflow. however, we checked and found that he is not authorised for the workflow approvals and nowhere in application he has been defined for workflow approver.
after analysis, we found that user A is receiving emails becaoz somebody has maintained him as his substitute.
I would like to know is there any T-code where i can check who is substitute to whom  or the table name where these entries are maintained. i checked that structure HRWHSUBST is being used and in use by program SAPLRHW2. can somebody help me on this.
i want to know who has defined User A as his substitute.
Regards
Sandy

Hi,
You can use function module u201CRH_SUBSTITUTES_GETu201D to get the substitution profiles for a user ID.

Similar Messages

  • VBA needs to pull from multiple tables, how to code for best efficiency?

    I have one main table, and three other tables that exist in a one to many relationship off of the main table.
    I need data from all 3 tables for my calculation. I'll iteratively run through the recordsets of each of these tables for the record on the main table, to perform my calculation.
    Now I need to run this calculation for each record on the main table. I see two options:
    1. Query the three tables for relevant records, for each individual record on the master table. I suspect this approach would be computationally inefficient.
    2. Create additional logic within my calculation to limit the recordset movement to just the record at hand. I can no longer use end of field, or move first type properties/methods, so this will add a good bit of complexity to already complex code.
    I'll need to run this monthly for approx 3000-5000 records.

    Since you can't include multiple independent 1-many relationships in a single query, I only see two choices.
    You can open a recordset for each of the four tables sorted by the main table's primary key. Use an outer loop to move through the main table row by row. Within that loop you loop on each of the child tables using the condition While child.Fields("FK")
    = parent.Fields("PK").
    Another approach is to define a querydef for each of the child tables including a parameter for the foreign key value. Then within the outer loop you assign the parameter and open a recordset from each of the child querydefs. You're still querying the
    database 3 times for each iteration of the parent table, but I think it saves some time to be able to reuse the querydef instead of creating a new one each time.
    I think either approach should be fast enough for 3-5,000 records done monthly.
    Paul

  • Saving session state in database table rather in websever for Ordering App

    Hi all,
    Ours is a ordering application (telecomm) domain.
    Currently, we are storing user sessions data (Order shopping cart session data) in middle tier (iPlanet web server) which inturn consumes lot of memory resources.
    Shopping cart could be in MBs if order is a huge business order.
    So in order to not to overtax web server (middle tier), we are thinking of storing session data directly in a database table to relieve the overhead on web server and make use of database for storage.
    I read that APEX (html db) is already using this "single metadata table" approach for session data management. But we are not using HTML DB to really look into.
    Can some one advise how to go about storing "user session data" directly in a "database table" for both storage and retrieval purposes instead of storing it in "webserver".
    How does this "metadata table" structure looks like. Is it more generic ?
    Really appreciate your time and help/suggestions.

    Joel,
    Thanks for your response. sorry, i meant to say that "the current application does not use APEX but will look into it".
    To build this is an utterly non-trivial exercise. Oh - it may not be so hard to save session state to a table when you POST a page. But you may want to reference this in many places, and it's a question of can you change all of these references to indirect references from session state in your application.In order to free up the load on webserver, we want to maintain session management in database. Could you please explain the above little more :
    How do we maintain the "user session" with "database table" ?
    Do we need to store "session data" at java object level or by page in database table ? How does the structure of this "metadata table" looks like.
    Thanks for your time.

  • Appending database tables to a form for reference

    Hi Guys,
    I would like to create a form that refers to database tables (not big). I would like to embed these tables in my form so that each form can be referenced directly.
    Can someone point me to any tutorials explaining this or point me to an example?
    Thanks
    Albert

    I don't think that's the sort of thing PDFGenerator would do. What
    software are you working with now, or are you looking for product
    recommendations?
    Aandi Inston

  • How to adjust database table using ABAP code

    Hi Experts,
    There is any function module can use to adjust the db table?
    Because I found that after I modified the database table by using  FM 'DDIF_TABL_PUT' and 'DDIF_TABL_ACTIVATE',
    the table feel like no changes when I check the table in SE11.
    But after I switched to edit mode, then only table changed to the expected properties.
    Hope anyone can some hints,
    Thanks in advance.

    Thanks, your answer is helpful.
    But I found a answer after debug SE14,
    Share the answer if anyone need:
    DD_DATABASE_UTILITY

  • How to find the t-code for table (SM30 or SE16)

    Once I create a t-code though SE93. And I choose type: Transaction with parameters.  Then the Transaction is SM30, 
    But I forget the t-code, how do I find this t-code base on the table name.
    ep:

    Hi
    Use database table TSTCP and search for tcode with below selection criteria.
    Enter *tablename* in param filed and execute.
    Thanks

  • Database tables holding details for a non - released transport request

    Dear All,
    We are implementing SAP ECC 6.0 u2013 ABAP stack, on IBM iSeries / System i, i5/OS V5R4 -
    SAP kernel release 7.00, kernel patch number 173
    Could someone please guide me to the database tables holding the details for a non u2013 released transport request.
    The problem is the following :
    We encountered some data corruption in the database of our development system, so we did a restore from the previous day's backup (RSTLIB  command) for the database library : R3DEVDATA, without restoring the /usr/sap/trans  directory, then we did an APYJRNCHG command for the journal receiver spanning from the previous day's backup until the corruption time (remote journal on a remote system.)
    We are now facing the following conflict :
    One of our programmers is now un-capable of updating an ABAP program, which he previously added in a transport request, which he did not release.
    ( This was done during the day of the data corruption)
    When the programmer is trying to update the ABAP program through the ABAP workbench, he receives the error :
    'Request lock on non u2013 existent task / request DEVK921426'
    No details for the transport request DEVK921426 exist in either of the two directories :
    /usr/sap/trans/data   , /usr/sap/trans/cofiles
    The way I see to solve this conflict (eliminate this lock) is to delete the different entries related to the un-released transport request from the database tables.
    Any clues would be highly appreciated.
    Thank you in advance for your cooperation.
    Best regards.
    Reda Khalifa

    Dear Volker,
    Thank you very much for your interest.
    The transport request of interest did not appear in transaction code SE03
    Eliminating the record from table TLOCK indeed did solve the problem.
    Thank you again.
    Best regards.
    Reda Khalifa

  • Webdynpro abap-method for saving updated values in new database table

    Hi Experts,
    I am creating an ALV  application in weddynpro abap where i have given update button to update fields & save button to save values in mastertable,but whenever i am updating & saving ,it will overwrit previous values. For this,I need  to create a separate method to save the updated values of the fields in a new database table.
    Looking forward for solutions.
    Thank You!

    becuase of the below statement u r getting the error
    insert into ZTAB_CS_ISSSAL values Item_Dates.
    u declared the field Item_Dates as Stru_Issuesal-DATES
    and u were trying to inesrting the record in the table ZTAB_CS_ISSSAL with the field Item_Dates
    the error is related to the compatible.
    so declare work area for updating the table should be of type ZTAB_CS_ISSSAL.

  • Rfc enabled function module for the updating the database table

    Hi,
            I need one rfc enabled function module for the updating the database table from the legacy system.currently i am using the rfc_read_table to read the database table.similarly i need for the update.

    Hi
    I believe you need to create one by yourself
    Max

  • Is table maintenance generator only for custom table?

    hi ,
    i have doubt is table maintenance generator only for custom table?

    hi swamya,
    Table Maintanance Generator is used to create/change/delete table entries in a particular table.
    In the production system, end-users will not be having access to transaction codes like SE11 and SE16. Developers will not be having access to many transaction codes including the above two.To view the contents of the database table, we will use SE16n in Production system. All these authorizations will be maintained by BASIS team, by creating access profiles.So in order to edit or create the contents of a database table, we should go for table maintenance generator. In real time, authorizations will be maintained in production system.
    The second reason is, we can edit or create multiple entries at a time, using tablemaintenance generator.
    Apart from that we have options like 'Enter conditions' in table maintenance screen SM30.
    hope this helps in clearing ur doubt.
    Regards
    Saurabh

  • Displaying data in a tree from database table

    Hi,
    I want to display data from a database table (mara-matnr) in a tree structure. I went through the coding of SBSPEXT_HTMLB. There static data was taken in to wa_tab. But there I want to bring data from a database table into wa_tab. For this I created an internal table without headerline by taking a work area, now how can I move data from this work area to wa_tab record by record.
    I hope some one might have worked on this. Plz help me....
    Thanks in advance,
    Ravindra.

    Hi,
    take a look at this <a href="/people/tomas.altman/blog/2004/12/13/sdn-blog-how-to-do-internal-tables-in-bsp which explains how internal tables work in ABAP OO.
    Furthermore I think you want to do this:
    insert <yourWorkarea> into table wa_tab.
    A complete mara example would be:
    data tab_mara type table of mara.
    data wa_mara type mara.
    select * from mara into table tab_mara.
    *or you can use:
    select * from mara into wa_mara.
       insert wa_mara into table tab_mara.
    endselect.
    regards
    Thomas

  • Database table problem

    hi expert,
    I have one expert routine with insert command in it. While DTP are running I change the status request to green, but after that I run again and the system can not insert record to database table. I wait for along time and system can perform insert command again to this database table. But again if I change the status to green when DTP request have not finished, the system can not perform insert command. Is the database table is lock or what? and How can I perform insert command immediately after stopping process.

    Hi bwaugh06      
    You may use a text edit control instead od table control and store the content in a field of type STRING: No space wasted if no data is there but you have unlimited length.
    Regards,
    Clemens

  • How can I Insert data into my msaccess Database table

    Hello all,
    I am new to Java programming and I have problem that how can i insert name into my database table.
    The code which i have written is following:
    String filename = "d:/test.mdb";
    String database = "jdbc:odbc:Driver={Microsoft Access Driver (*.mdb)};DBQ=";
    database+= filename.trim() + ";DriverID=22;READONLY=true}";
    Connection con = DriverManager.getConnection(database,"","");
    String s = String.valueOf(text.getText());
    int k =10;
    Statement st = con.createStatement();
    st.execute("create table Test123(name text)");
    st.execute("INSERT INTO Test123 values" +s);
    on the INSERT program throws exception???
    can any one help me how to insert data into tabel.
    Thanks

    he INSERT program throws exception???
    can any one help me how to insert data into tabel.I have never used the jdbc driver to access, but what do you think that the flag READONLY=true means? An insert is not a read.
    Kaj

  • Need exact code for this

    In the transformation between 0FIGL_O02(table1) and ZSPM_D01(table2), delete records in 0FIGL_O02(table1), if 0AC_DOC_NO AND 0FISCPER AND 0COMP_CODE do not exists in 0FIAP_O03(table 3).
    need code for this...i have to implement it in BW.pls give me necessary code.
    Moderator message: please do more research before asking, show what you have done when posting, use meaningful titles when posting, read the rules of engagement.
    Edited by: Thomas Zloch on Feb 24, 2012

    Hai Pavan
    Check the following Code
    tables : mara.
    data : begin of itab occurs 0,
           matnr like mara-matnr,
           mbrsh like mara-mbrsh,
           mtart like mara-mtart,
           meins like mara-meins,
           end of itab.
    select-options : S_matnr for mara-matnr.
    initialization.
    clear s_matnr.
    refresh : s_matnr.
    s_matnr-low    = '0001'.
    s_matnr-high   = '0010'.
    s_matnr-Sign   = 'I'.
    s_matnr-Option = 'BT'.
    append s_matnr.
    start-of-selection.
    select matnr
           mbrsh
           mtart
           meins
           from mara
           into table itab
           where matnr in s_matnr.
    if sy-subrc = 0.
       sort itab by matnr.
    endif.
    if not itab[] is initial.
      loop at itab.
          if itab-matnr NOT  BETWEEN s_matnr-high AND s_matnr-low.
         if sy-subrc = 0.
           write :/ 'OK'.
         else.
           write :/ 'Not OK'.
         endif.
       endif.
      endloop.
    endif.
    Thanks & regards
    Sreenivasulu P
    Message was edited by: Sreenivasulu Ponnadi

  • Dynamic reading from database table

    Hi Experts,
    While reading from a database table the below statement for deletion works:
    DELETE (p_table) FROM <fs_wadbtab>.
    p_table: name of database table which is entered as a selection screen parameter
    <fs_wadbtab> : workarea of line type P_table
    However, the below statement does not work:
    READ (p_table) FROM <fs_wadbtab>.
    My requirement is to read a record from p_table with contents in a dynamic structure.
    Kindly suggest.
    Thanks.

    Just misunderstood you.
    Edited by: Karri Kemppi on Jun 23, 2010 10:00 AM

Maybe you are looking for