HR ABAP:  table/infotype relationships

Hi.
I'm experienced in doing ABAP programming for all the rest of the modules, but with ABAP HR, I am new and doing one for the first time.  I need your help regarding how to find tables/infotypes and relationships to each other.
Specific work example/scenario: 
From selection criteria of requisition information, I am supposed to have an output report with application and candidacy information.
1.) How can I relate Infotype 5125 with info type 5132 and 5102? 
I am more comfortable with select statements hence I prefer explanation using the transparent tables HRP5125, HRP5132, etc.
2.) How can I make use of the table HRP1001 to establish relationships between different tables/infotypes of HR?
Also, kindly send any links and documents that can give an at-a-glance summary of what I can use when doing ABAP for HR for the first time. 
Thanks for your help and expertise and may God bless us all!
Celeste

More exactly look at tables
- [HRP1000 |https://www.sdn.sap.com/irj/sdn/advancedsearch?query=hrp1000+&cat=sdn_all]: org. units, positions, etc.
- [HRP1001|https://www.sdn.sap.com/irj/sdn/advancedsearch?cat=sdn_all&query=hrp1001&adv=false&sortby=cm_rnd_rankvalue] : links between org. units, positions, etc.
Look at this thread Tables for ORG model  and FM [RH_STRUC_GET|https://www.sdn.sap.com/irj/sdn/advancedsearch?query=rh_struc_get&cat=sdn_all]
Regards

Similar Messages

  • Hr abap custom infotype  updatation

    hiii frnds,
        i creatred custom inotype 9910 and i enterded some data for  this infotype in pa30 when i click on the save it is noty saving in the pa9910 table...... can any one send sample code to save the data into table

    Did you read [Developing an Infotype in Personnel Administration|http://help.sap.com/printdocu/core/print46c/en/data/pdf/PAXX/PYINT_INFOTYP.pdf] (or more recent documentation) and a guide like [Steps to Customize infotypes|http://wiki.sdn.sap.com/wiki/display/ABAP/StepstoCustomize+infotypes]
    Regards,
    Raymond

  • ABAP-HR:Infotype

    Hi,
    I am working with ABAP-HR.
    In Personal Administration, while defining Infotypes , they say 'each infotype requirs at least 2 structures and atleast 1 internal table'.
    Will any body please help me to get the idea.
    Thanks in advance.
    Anirban Bhattacharjee

    hi
    Each infotype has two structures and One associated table.
    PSnnnn - this structure contains all of the infotype data fields.
    Pnnnn - this structure contains infotype key fields and all the data fields from the structure PSnnnn.
    Here nnnn is the infotype number.
    PAnnnn PBnnnn etc are actual database tables hoilding the data.
    In ABAP-HR Infotype are grouped in INfoGroups. They have Screens associated with it. And a user has to fill those screens and it is possible that user might chane a value many times before actually saving it.
    So these structures acts as a temporary storage for thise values.
    Hope this wil help.
    Reward if useful.
    Sumit Agarwal

  • Table-infotypes

    What are table-infotypes?
    I am not sure about this term and how it is different from infotypes as such.
    Please suggest.

    First of all lets keep in mind that: in order to pass data to and from screen fields, they must have the same name as a global variable. Having said that we must define a global array containing our data and a global table view control that will be used to program the data transfers.
    Let us start with the data. Assuming that the table you wish to work with corrsponds to an ABAP dictionary structure named ZMY_STRUCT, then the table definition might look something like the following:
    Basic ITAB
    DATA  BEGIN OF tbl_mydata OCCURS 0.
    DATA:  sel TYPE c.
           INCLUDE STRUCTURE zmy_struct.
    DATA:  END OF tbl_mydata.
    One can reasonably ask why a table with a header line and again why an ABAP dictionary structure. The answer to both questions will be given shortly afterwards but for now let's just say that things work much easier this way, or otherwise they don't work at all :-). The table control definition should be something like
    CONTROLS :
    tc_mydata TYPE TABLEVIEW USING SCREEN 0200.
    Make sure that the screen number corresponds to the actual screen number of your program. Next move to the screen and press the layout button to invoke the screen painter. Inside the screen drop a table control item and name it TC_MYDATA. Size it so that it fits your screen according to your needs. Double click on the table control to bring up the properties dialog box.
    The sel field of the tbl_mydata table will mark the user selected lines. Getting a field symbol to point at the selected line is as easy as writing something like :
    FIELD-SYMBOLS
       <fs> LIKE LINE OF tbl_mydata.
    READ TABLE tbl_mydata ASSIGNING <fs> WITH KEY sel = 'X' .
    IF NOT <fs> IS ASSIGNED.
       MESSAGE s888(sabapdocu) WITH text-e01. " No Selection
    ELSE.
      Do what ever you want with -...
    ENDIF.
    Now press F6 to invoke the screen painter Dict.Program Fields window. In the field named Table field Name enter a search patter like like TBL_MYDATA-* and press the button labeled Get from program to display the matching table entries. Select the ones you wish to add to you screen and press the green ok button at the bottom. Then click inside the table view control to create the appropriate columns. Had the tbl_mydata table been declared any other way -- i.e. using a TYPES section or without the header line, then the process or field selection through F6 would not work.
    Note: At this point just save the screen and exit screen painter without performing any kind of syntax check or activation.
    Moving back to the screen properties, the basic flow logic should at least contain the following
    PROCESS BEFORE OUTPUT.
    MODULE status_0200.
    LOOP AT tbl_mydata WITH CONTROL tc_mydata
                            CURSOR tc_mydata-current_line.
       MODULE read_tbl_line.
    ENDLOOP.
    PROCESS AFTER INPUT.
    MODULE exit_screen_0200 AT EXIT-COMMAND.
    LOOP AT tbl_mydata.
       MODULE write_tbl_line.
    ENDLOOP.
    MODULE user_command_0200.
    The basic idea is that during PBO the contents of the entire table are copied from the table to the table control. Then during PAI the contemns of the table control will be copied from the control back to the table.
    Before copying any data though, we must first set the size of the table control. The best place to do this is probably at the status module. Now, although my mother told me never to use global variables, the usual approach to setting the table size during PBO, starts by declaring a global field named somthing liketotal_entries or table_size being of type i. Having done that your status_XXX module should at least contain the following.
    MODULE status_0200 OUTPUT.
    SET TITLEBAR 'TB_200'.
    SET PF-STATUS 'SCREEN-0200'.
    DESCRIBE TABLE tbl_istat LINES total_entries.
    tc_mydata-lines = total_entries.
    ENDMODULE.                 " status_0200  OUTPUT
    To create the read_tbl_line module, double click on the read_tbl_line inside the screen flow editor. A message will pop up asking if the a module named read_tbl_line should be created. Answer yes and depending on the type of program you are creating select the appropriate file. After you press ok, change the text in the editor so it looks like this.
    MODULE read_tbl_line OUTPUT.
    MOVE-CORRESPONDING tbl_mydata TO tc_mydata.
    ENDMODULE.                 " read_tbl_line  OUTPUT
    Finally the write_tbl_line PAI module does the exact opposite. It moves the data from the table control back to the internal table.
    MODULE write_tbl_line INPUT.
    MODIFY tbl_mydata INDEX tc_mydata-current_line.
    IF sy-subrc <> 0.
       APPEND tbl_mydata.
    ENDIF.
    ENDMODULE.                 " write_tbl_line  INPUT
    From now on any code executing during the user_command_XXX module will get a consistent copy of the data.
    Screen programming in ABAP is a complex subject. This post provides only the basic template for minimal operations. More post will follow explaining how to respond to data changes, sort tables based on selected columns and dynamically changing your screen.
    Regards,
    Muneesh.

  • Dynamic configuration- Is file name stored in any abap table in PI

    Hi.
    Is there any ABAP table in XI containing the dynamic configuration's xml of a message.
    For any file scenario Can I get the file name from any of the abap table in PI
    Regards,
    Deepak

    Interesting ABAP tables in XI
    Interesting ABAP tables in XI – Part I
    Regards,
    Phani

  • Dynamic configuration in ABAP tables

    Hi,
    is there any ABAP table in XI containing the dynamic configuration's xml of a message (or an equivalent information in any format)?
    Thanks,
    Daniele

    hi
    Dynamic configurations will be a part of the xi message header
    chk these tables
    1.SXMSPMAST: (Integration Engine: Message Queue (Master)) The table is the master table for the monitoring information. You can get the timestamp, interface status, message id, and many more information.
    2.SXMSPEMAS: (Integration Engine: Enhanced Message Queue (Master)) The table provides the namespaces, the business systems and message interfaces involved in the interface.
    3.SXMSMSTATT: (Exchange Infrastructure: Message Status Description) This table provides a message status description.
    4.SXMSMSTAT: (Exchange Infrastructure: Message Status) This table is helpful if you want to show the process status icon for the corresponding message state.
    refer this for code sample
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/909760cb-0ec8-2a10-4a96-ee8417acfbc9
    rgds
    arun

  • How to handle BLOB field in receiver JDBC adapter into ABAP table

    Dear Experts,
    I am working in a synchronous scenario with Sender ABAP Proxy to Oracle Database as receiver via SAP PO 7.4.I will be calling a stored procedure view with fields ID, NAME,Age,*** and BLOB (Image binary).
    1. The response from Oracle Database field BLOB is to be stored in ABAP table.Would I have to write any JAVA program to read the BLOB or the receiver JDBC adapter will handle it and store in a table by using ABAP proxy once it reaches ECC.
    2. If yes, would the JAVA program have to deal with other 4 fields.
    3. Can I use a UDF mapping to this BLOB field.
    Regards
    Rebecca...

    Dear Praveen,
    Thanks for your response...
    Please correct me if I am wrong.
    1. For 1-1 response mapping for BLOB field, I will use just use the below UDF code.
    public static byte[] hexStringToByteArray(String s) { 
                int len = s.length(); 
                byte[] data = new byte[len / 2]; 
                for (int i = 0; i < len; i += 2) { 
                            data[i / 2] = (byte) ((Character.digit(s.charAt(i), 16) << 4) 
                                                                                         + Character.digit(s.charAt(i+1), 16)); 
                return data; 
    2. ===Using the byte data, create binary attachment in mapping for abap proxy response===
    Could you please share how to create the binary attachment.. I am not clear
    Regards...

  • HR ABAP Tables

    Hi
    are there HR abap tables in the trial version of sap netweaver
    Thanks,
    Bala.

    No. Module tables doesn't exist.

  • Access ABAP Table using Java (NWDS/JCO)

    All,
    I am trying to setup a jco connection from java program through NWDS to ECC abap table.
    However I am getting the following error in NWDS:
    Exception in thread "main" java.lang.ExceptionInInitializerError: JCO.classInitialize(): Could not load middleware layer 'com.sap.mw.jco.rfc.MiddlewareRFC'
    JCO.nativeInit(): Could not initialize dynamic link library sapjcorfc [C:\Program Files\Java\jdk1.6.0_45\bin\sapjcorfc.dll: Access is denied]. java.library.path [C:\Program Files\Java\jdk1.6.0_45\bin;.]
    and a parity error on my system:
    "Parity blocked an attempt by javaw.exe to run sapjcorfc.dll because the file is not approved.  If you require access to this file, please contact your system administrator.  Scroll down for diagnostic data."
    Here is the Java code...per the SAP website:
    package com.sap.pi.updateAbapSxmbAdminParams;
    import com.sap.mw.jco.*;
    public class ReadPiAbapTables {
      private static JCO.Client theConnection;
      private static IRepository theRepository;
      public static void main(String[] args) {
       createConnection();
       retrieveRepository(); 
       try {
        JCO.Function function = getFunction("RFC_READ_TABLE");
        JCO.ParameterList listParams = function.getImportParameterList();
        listParams.setValue("BSAUTHORS", "QUERY_TABLE");
        theConnection.execute(function);
        JCO.Table tableList = function.getTableParameterList().getTable("SXMSCONFVLV");
        if (tableList.getNumRows() > 0) {
         do {
          for (JCO.FieldIterator fI = tableList.fields();
          fI.hasMoreElements();)
           JCO.Field tabField = fI.nextField();
           System.out.println(tabField.getName()
             + ":t" +
             tabField.getString());
          System.out.println("n");
         while (tableList.nextRow() == true);
       catch (Exception ex) {
        ex.printStackTrace();
      private static void createConnection() {
       try {
        theConnection = JCO.createClient("aaa", "aaa", "aaa", "aa", "aa", "aa");
        theConnection.connect();
       catch (Exception ex) {
        System.out.println("Failed to connect to SAP system");
      private static void retrieveRepository() {
       try {
        theRepository = new JCO.Repository("saprep", theConnection);
       catch (Exception ex)
        System.out.println("failed to retrieve repository");
      public static JCO.Function getFunction(String name) {
       try {
        return theRepository.getFunctionTemplate(name.toUpperCase()).getFunction();
       catch (Exception ex) {
        ex.printStackTrace();
       return null;

    Hi Vicky,
    You need authorization to the S_TABU_DIS object, talk with the ABAP basis team about this to find the more restrictive role.
    It's not a good idea to use the RFC_READ_TABLE, for the wide permissions needed. You could think to develop a Z RFC for this.  You can check pros/cons in this document: http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/a83ec690-0201-0010-14ac-bd1d75e24a7d?overridelayout=t…
    Regards.

  • XI / PI Alert Framework to Populate an ABAP table

    We are sending an outbound proxy to PI, and if an error occurs in PI, we want to populate an abap table in the source system.  SAP has told us this could only be done via the PI alert framework.  Could someone tell me if there is one or many user exits (and what they are) in the PI alert framework that abap code could be inserted in?

    BAPI- Implementation of interface IF_EX_ALERT_MODIFY_TEXT.

  • How to capture username in ABAP table

    Hi experts,
    I have this case:
    A webdynpro application calling a BAPI throught adaptive RFC.
    The problem is the last updated username captured in my ABAP tables is the one supplied when i created the logical system names. (JCO)
    What i actually want to capture is username of the user who login.
    What am i missing ?
    Thanks a lot.
    Regards,
    Daniel

    Hi Daniel
    Use the foll. code to get the user id
    IWDClientUser clientUser = WDClientUser.getCurrentUser();
    Pass this is as a parameter to RFC. Your ABAPer will have to do a change in RFC to capture and insert this User id in the respective table.
    Regards
    Nikhil Bansal
    xxxxxxxxxxxxxxxxxxxxxxxxxx
    Edited by: Armin Reichert on Feb 18, 2008 7:24 PM

  • Access ABAP table in Webdynpro Java application

    Hi All
    Is it possible to access ABAP table in Webdynpro Java application
    Please provide your input
    Thanks
    Karthi D.

    Hi you will connect to the remote SAP system, the
    backend, using an Adaptive RFC MOdel. To access database tables, you can make use of existing functions in terms of RFC function modules. For each function module you need, the system generates a corresponding Java proxy class. All the generated proxy classes and interface are bundled together in the RFC model and treated as part
    of your Web Dynpro project
    In WebDynpro java you RFC by using Model :
    Adaptive RFC Model
    1. automatically adapts to changes in function module signature
    2 provides support for data types and extensibility
    3.support for different structure definitions in different backend
    systems (release dependent structures, custom adaptation)
    Basic principles and guidelines
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/11c3b051-0401-0010-fe9a-9eabd9c216de
    See this blog
    https://www.sdn.sap.com/irj/sdn/wiki?path=/display/wdjava/faq%2b-%2bmodels%2b-%2badaptive%2brfc
    http://help.sap.com/saphelp_nw04s/helpdata/en/6a/11f1f29526944e8580c5e59333d96d/frameset.htm
    Thanks,
    Tulasi

  • ABAP Table for DynamicConfiguration details of XML message in SXMB_MONI

    Dear All
    I have a requirement where I have to read the value from DCJMSCorreleationID property of message which is recorded in SXMB_MONI based on the SAP PI message ID.
    I have 2 interfaces as below
    Interface one (INT1) : JMS-PI-ECC --->Inbound interface to ECC when message is received on PI it will have DCJMSCorreleationID populated with some ID as shown below
    Go to SXMB_MONI -->Inbound Message ---> SOAP Header --->DynamicConfiguration
    <?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
    <SAP:DynamicConfiguration SOAP:mustUnderstand="1" xmlns:SAP="http://sap.com/xi/XI/Message/30" xmlns:SOAP="http://schemas.xmlsoap.org/soap/envelope/">
    <SAP:Record namespace="http://sap.com/xi/XI/System/JMS" name="DCJMSCorreleationID">
    a26c4276-9d5e-11e3-ba87-000004238292
    </SAP:Record>
    <SAP:Record namespace="http://sap.com/xi/XI/Message/30/general" name="senderAgreementGUID">dd3fb7c6b983314293e14ba59df1ad45</SAP:Record></SAP:DynamicConfiguration>
    Interface Two (INT2):-ECC-PI-JMS----> Outbound from ECC where I am passing a SAP PI Message ID for INT1 in one of the field
    Can I read this DCJMSCorreleationID for INT1 when INT2 is executed and have message ID for INT1 ?
    Where are these SOAP hearder porperties like DCJMSCorreleationID are stored on ABAP table?

    Thanks Jörg for your reply
    I have a back up plan for ZTable approach but the only concern there is RFC calls for read and write
    we have implemented a FM which gives the original payload using a std SAP functional modules FM SXMB_GET_XI_MESSAGE_INT and  ECATT_CONV_XSTRING_TO_STRING
    But I am looking for the SOAP Header information for DCJMSCorreleationID
    So if there is anything which will help to read this DCJMSCorreleationID property easily form existing message SOAP header is really helpful

  • Data model - is tables and relationships between them are graph or tree

    Hello
    I want to ask if tables in database are nodes of graph what should this graph looks like - like real graph (with
    cycles) or tree ?
    Let the tables are nodes of graph and the relationships between the tables are edges in the graph.
    10x all
    Edited by: user10860289 on Apr 2, 2009 1:37 PM
    Edited by: user10860289 on Apr 2, 2009 1:37 PM
    Edited by: user10860289 on Apr 2, 2009 1:39 PM
    Edited by: user10860289 on Apr 2, 2009 2:04 PM

    You can put the \ tag before and after text to preserve white space.  That likely makes things easier to read if you're trying to post ASCII graphs.
    I wouldn't hesitate to use the proper set of tables and relationships for the entities I was trying to model.  Would I be concerned if my data model were full of loops?  Sure, that might cause me to double-check that I hadn't done something silly.  Would I be concerned if my data model had a loop if that was the best way to model something?  Not at all.
    There is no theoretical answer because the quality of a data model has nothing to do with whether it is more tree-like or more graph-like. 
    Justin                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       

  • ABAP Table - Invoice number & accounting doc date

    Hi ,
    In which ABAP Table i can get invoice number and Accounting document date ?
    Srini

    Hi Srini,
    I guess what you're really asking is "How can I find the tables that contain certain fields".  So, if that is really your question you should check out a blog like this;
    /people/martin.english/blog/2010/01/13/finding-what-tables-and-fields-lie-behind-an-sap-transaction
    Otherwise, every time you need to find a table for a field you don't know you'll have to ask the forum.
    Regards,
    Nick

Maybe you are looking for

  • Can't install creative suite 5.5

    I can't install Creative Suite 5.5 on a PC running Windows 7.  Have tried twice but keep getting "Your installation encountered errors".  The most recent time shows 2 error messages: ERROR: DS011: No media information provided for removable source lo

  • Consistent use of ProRes422LT

    I have had no issues using ProRes 422 throughout FCP (7.0.3) wherever presets are required. I now want to use ProRes422LT but I still end up with ProRes422 in Item>properties on the timeline. If I say "yes" or "no" to "Change sequence settings to mat

  • Error message 403 when trying to scan

    Hi  I have never had this error message before but all of a sudden when I am trying to scan to email i am getting error message 403 server connection - I have checked and printer is connected to internet? Hope you can help!

  • Added Approver is merging in ASM approver level

    Hi Experts, We are in SRM5.0 version, when a PO is being ordered, if i add a valid approver at the preliminay approver level, i.e before the preliminary approver it will go for the approval to his inbox and then the preliminary approver. Suppose I ha

  • How to print the output string in inverted commas

    hi all, my question is like i have a string "welcome to java" using println statement i need to print the above statement in inverted commas like the output should appear as "welcome to java"