Problem in getting HR data .... in declaring Infotype 9205

i want to save some HR data using an FM
so i am calling FM HR_infotype_operation in my method
this require a 4 char infotyp as exporting parameter
which I have to declare using INFOTYPES statement
inside the method
the issue is the environment is not allowing me to use this statement inside the view method .
infotype is 9205
now how can i define it.
this is the required parameter

Hi naval,
U can pass infotype name like this : Declare a constant of type prelp-infty and pass it to the function module.
Constants:   c_inftyp_9205    TYPE prelp-infty   VALUE  '9205'.
  CALL FUNCTION 'HR_INFOTYPE_OPERATION'
          EXPORTING
            infty             = c_inftyp_9205
            number            = v_pernr
            subtype           = ls_p9205-subty
            validityend       = ls_p9205-endda
            validitybegin     = ls_p9205-begda
            record             = ls_p9205
            operation         = c_op_ins
          IMPORTING
            return             = ls_return.
Regards
Vishal kapoor
Message was edited by:
        vishal kapoor

Similar Messages

  • Problem in getting EXCEL data using I_OI_SPREADSHEET

    Hello All,
    My requirement is to read data from Excel document having multiple worksheets. I am successful in getting all worksheets in the excel using the method spreadsheet->select_sheet.
    Now I face problems while using spreadsheet_get_ranges_data. I dont have any range to select from the worksheets. When my program executes contents internal table which is importing paramater from get_ranges_data method is not getting me data from EXCEL.
    Can you please give me hint or solution to solve this issue.
    Best Regards,
    Krishna
    [email protected]

    Hello Norman,
    Thanks for your response. But the solution is not really working for my case.
    Step1: call class method spreadsheet->select_sheet
    Step2: call class method spreadsheet->get_active_sheet
    Step3: call class method i_oi_document_proxy->select_all
    Step4: call class method spreadsheet->get_selection
    Step5: Call class method spreadsheet->insert_range_dim
            passing parameters selected from step 2.
    But the problem is parameters (top,left,rows,columns) values supplied in step 3 is not giving me correct rows,columns that is in my EXCEL worksheet.
    I have 3 rows and 3 columns, but I get 1 row and 1 column and 26 as top.
    Let me know whether I am doing anything wrong in my calls to class?!.
    Best Regards,
    Nagendra Krishna
    [email protected]

  • Problem in changing end date of PA-Infotype using HR_INFOTYPE_OPERATIONS .

    Hi All,
    I am trying to change the end date of an active record in an infotype using HR_INFOTYPE_OPERATIONS FM. But am getting an error, 'Infotype does not exist'.
    I am using operation as 'MOD' and passing appropriate parameters as required.
    it would be great if someone can help me out to understand, why could that error be coming?

    Hi Santosh,
    With this FM you cannot change the enddate as enddate is a key field and used to determine the exact record in the database.
    Why don't you use PA30 to change end date of an infotype record?
    Or else delete the row first w. HR_INFOTYPE_OPERATION DEL and insert it again with INS operation and new end date.
    Regards,
    Dilek
    Edited by: Dilek Ersoz Adak on Jan 8, 2010 7:54 AM

  • RFC to get the data from HR Infotypes

    Hi,
    We have a requirement to get the data from infotypes for a particular personnel number. Can anybody tell me the RFC for extracting the data from the infotypes?
    Thanks in advance

    Hi Shaikh,
    Here are few more which got missed out:-
    BAPI_EMPLCOMM_GETDETAIL - Communication infotype - infotype 0105
    BAPI_INTCONTROL_GETDETAIL - Internal cont - infotype 32
    BAPI_PDOTYPES_GETDETAILEDLIST - PD infotypes
    BAPI_ABSENCE_GETDETAIL   - infotype 2001
    BAPI_W4W5INFOUS_GETDETAIL - W4/W5 info of an emp - infotype 210
    BAPI_DATESPECS_GETDETAILEDLIST - Date specifications -infotype  41
    RFC_ABSENCETYPES_READ - RFC which Lists absence types
    HR_BEN_READ_CREDIT_PLANS - RFC for reading credit plans
    HR_BEN_READ_INSURE_PLANS - RFC for reading insurance plans.
    HR_BEN_READ_HEALTH_PLANS_RFC     RFC for Reading Health plans
    Hope this helps.
    Kindly reward if useful.
    Regards & Thanks,
    Darshan Mulmule

  • Problem in getting current Date at runtime and parsing into my own format

    Hi all,
    In my program....I want to get the Date(current Date).......
    How can I get it....
    And also I want it to change it to my own format.....
    I should get this at runtime....
    Plz tell me which class and method to use....
    Any help will be greatly appreciated...
    Thanks,

    Try looking at some of these articles:
    http://www.javaworld.com/javaworld/javaqa/2001-10/01-qa-1005-dateformat.html
    http://www.javaworld.com/jw-12-2000/jw-1229-dates.html
    http://www.javaworld.com/javaworld/jw-03-2001/jw-0330-time.html

  • Problem with getting current date and time using oracle.jbo.domain.Date

    I`d like to get current date and time using oracle.jbo.domain.Date method getCurrentDate(), but it always return current date and 12:00:00. I also need to get the current time.

    I think you should use java.sql.Timestamp domain.
    (And set database type to TIME or DATETIME.)
    Jan

  • Problem in getting the Date object based on the TimeZone

    Hi,
    I need to create a Date object that holds the time of the specified TimeZone.
    I am using TimeZone and Calendar object for that, but when I call the Calendar object's getTime() method, it returns
    a Date object that holds the local time.
    Can somebody let me know what why?
    Here is what I uses in my code.
    TimeZone tz = TimeZone.getTimeZone("IST");
    Calendar cal = new GregorianCalendar(tz);
    System.out.println("Date of "IST" TimeZone = " + cal.getTime());
    Instead of cal.getTime, if I do the following I am getting the values correctly.
    int month = cal.get(Calendar.MONTH); // 0..11
    int day = cal.get(Calendar.DATE); // 0..11
    int hour12 = cal.get(Calendar.HOUR); // 0..11
    int minutes = cal.get(Calendar.MINUTE); // 0..59
    Can somebody let me know why I am not able to assign the Date of the TimeZone specified.
    Is there anything wrong with the code?
    Seb

    Is there anything wrong with the code?No, only with your understanding of the Date class. From the API:
    The class Date represents a specific instant in time, with millisecond precision.
    The different time displayed for different TimeZones around the world are just that: a display format for the same instant in time.
    To display the "instant in time" in a different TimeZone, use DateFormat. Here's a small sample:TimeZone tz = TimeZone.getTimeZone ("GMT");
    Calendar c = Calendar.getInstance (tz);
    System.out.println(c.getTime ()); // prints Tue Mar 18 02:56:53 IST 2008
    DateFormat dtf = DateFormat.getTimeInstance ();
    dtf.setTimeZone (tz);
    System.out.println(dtf.format (c.getTime ())); // prints 9:26:53 PMIt's no different from formatting the same number in various ways: 10 decimal == 0xA hexadecimal == 012 octal == 1010 binary. Same value, different representation. Same intant in time, different local time for each zone.
    Savvy?
    cheers, db

  • Getting the data for the infotype 0006 and Subtype 4 in HR ABAP

    Hi All,
       I need to get the data from the info type 0006 and the subtype 4 , only i need to fetch the data in communications . Could you any one tell me best way to fetch that data.
    Thanks,
    SAP SAR.

    Write a select single on PA0006 for the given pernr begin and end dates and for subtype 4 ...
    select single * from PA0006
               where pernr = p_pernr
               and SUBTY = '0004'
               and ENDDA >= s_date-low
               and BEGDA <= s_date-high.

  • HR-abap problem in getting wage type in 0008 infotypes

    i am creating sap scripts for appointment letters in that i am coolecting data from table pa0008,
    for that i am using field bet01 , bet02, etc for the diff. allowances .
    if the order of allowances are changed in 0008 infotype then field form which i am getting amount is also getting changed.
    E.G :- i am using perticular order in 0008
                then it gives me wage type in lga02 and corresponding amount in bet02 for first allowance
                                        wage type in lga03 and corresponding amount in bet03 for second allowance
    and now if i interchange order of allowances in pa008  then t gives me
                                   wage type in lga02 and corresponding amount in bet02 for first allowance
                                    wage type in lga03 and corresponding amount in bet03 for second allowance
    i hope you understnad my problem .
    Thanks in advance

    Hi,
    please check thiscode
    call function 'RP_FILL_WAGE_TYPE_TABLE_EXT'
           exporting
                appli                        = 'P'
                pernr                        = p0467-pernr
                infty                        = pinfty
              SUBTY                        = PSUBTY
              OBJPS                        = POBJPS
              SEQNR                        = PSEQNR            "QEAK100596
              waers                        = sy-waers          "XYMK097435
                begda                        = datum
                endda                        = datum
           tables
                pp0001                       = p0001        "input
                pp0007                       = p0007        "input
                pp0008                       = p0008        "input
                ppbwla                       = ppbwla       "output
           exceptions
                error_at_indirect_evaluation = 1.
      check sy-subrc eq 0.
      loop at ppbwla.
        if ppbwla-waers ne q0467-waer2.
          perform convert_to_local_currency using
                  ppbwla-betrg ppbwla-waers
                  q0467-waer2 ppbwla-betrg
                  datum.
          modify ppbwla.
        endif.
      endloop.
    Ref program
    MP046740
    Thanks and regrds
    Durga.K

  • Problem with getting actual data from Detail in Master/Detail

    Hi.
    I'm using master-detail tables (based on Read-Only view objects connected with view link).
    In those tables some columns are inputText, so that user can change data for the use of stored procedure only (I don't want to change data showed in tables, just need a possibility to modify it before passing arguments to procedure)
    The problem is when I get data from rows from detail view (Read Only with attributes set to "updatable always") it's not the data user entered in the table (there is no problem in master table) but the data fetched from database.
    This is the way I do it in backing been:
    Row[] masterRows = view.getAllRowsInRange();
    for (int i = 0; i < masterRows .length; i++){
      MasterRowImpl row = (MasterRowImpl )masterRows;
    System.out.println("Group name:" + row.getGroup())
    RowIterator rowIterator = row.getDetailsView();
    while(rowIterator.hasNext()){
    DetailsViewRowImpl detailRow = (DetailsViewRowImpl )rowIterator.next();
    System.out.println("User name: " + detailRow.getName())
    So if (for example) in database I have Group1, with 3 detail rows: John1,John2,John3;
    and user in Tables displayedon page changes it like this:
    Group1_changed, John1, John2_blah, John333
    After executing the code above I get:
    Group name: Group1_changed
    User name: John1
    User name: John2
    User name: John3
    Is it a normal behaviour?
    ps. When I use entity based view objects there is no problem, but I want to use ReadOnly View Objects.

    this is my function that reads the data:
    while( ( ch = dis.read() ) != -1 ){
    mess.append((char)ch);
              licz++;
              if(licz>prog){
                   licz=0;
                   //gauge.setValue();
    when i use just mess.append(dis.readUTF()))
    i get en exception:
    java.io.EOFException
         at java.io.DataInputStream.readFully(+45)
         at java.io.DataInputStream.readUTF(+32)
         at java.io.DataInputStream.readUTF(+4)
         at KConnection.KConnector.connect(+137)
         at SerwisMain.download(+25)
         at SerwisMain.ok(+415)
         at KGUI.KInput.commandAction(+209)
         at javax.microedition.lcdui.Display$DisplayAccessor.commandAction(+152)
         at com.sun.kvem.midp.lcdui.EmulEventHandler$EventLoop.run(+459)

  • ALV - Maybe a NEW problem to get changed data, after input from ALV

    Hi all,
    I have tried to search an existing post to solve this ALV problem, with key words 'ALV' and 'refresh', but I don't find the good one... so sorry if the problem have already been solved.
    <u>An example of the problem and process should be more clear than words :</u>
    1) CALL ALV
    CALL METHOD grid1->set_table_for_first_display
         EXPORTING
                   is_layout        = gs_layout
                   is_variant       = gs_variant "&see below
                   i_save           = x_save     "&see below
                   I_BYPASSING_BUFFER = 'X'
         CHANGING
                   it_outtab        = t_zppegam[]
                   it_fieldcatalog  = GT_field_cat_entete[].
    2) User edit values from cells from ALV.
    For example, insert a new line with '+' button, and <u>fills each cells</u>.
    3) The problem is that at the beginning of the PAI
    there is a blank line into internal table t_zppegam,
    instead of the line with the data filled into cells ALV by user
    3') Internal table t_zppegam have the good data only if user clik on the button refresh of ALV, before go throw PAI.
    Have any suggestions? Thank you for your help.
    Best Regards,
    Tony.

    Hi all,
    I have just solved my problem...
    I have found this one into SE38 / BCALV_GRID_EDIT fifth program.
    data: l_valid(1) type c.
    call method grid1->check_changed_data importing e_valid = l_valid.
    Tony

  • Problem in getting MM data into CM

    Hi
    I have configured Cash Management module and integrated MM, SD with forecasting. I am able to get the SD data into the forecast but not able to see the MM data in the forecast
    I created PR but its level "M1" is not getting reflected in the forecast.
    Please advice
    Thanks

    Beside the "Logistic level" (OT47), you must configure the "Structure" - OT17.
    The Payment term must be filled in the Purchase order.

  • Problem in getting the data from a cache in hibernate

    I am storing data inside a cache. When i am geeting the data from a cache its showing null.
    How can i retrieve the data from a cache.
    I am using EHCache

    Hi ,
    You have done one mistake while setting the input parameters for BAPI..Do the following steps for setting input to BAPI
    Bapi_Goodsmvt_Getitems_Input input = new Bapi_Goodsmvt_Getitems_Input();
    wdContext.nodeBapi_Goodsmvt_Getitems_Input().bind(input);
    Bapi2017_Gm_Material_Ra input1 = new Bapi2017_Gm_Material_Ra();
    wdContext.nodeBapi2017_Gm_Material_Ra().bind(input1);
    Bapi2017_Gm_Move_Type_Ra input2 = new Bapi2017_Gm_Move_Type_Ra();
    wdContext.nodeBapi2017_Gm_Move_Type_Ra().bind(input2);
    Bapi2017_Gm_Plant_Ra input3 = new Bapi2017_Gm_Plant_Ra();
    wdContext.nodeBapi2017_Gm_Plant_Ra().bind(input3);
    Bapi2017_Gm_Spec_Stock_Ra input4 = new Bapi2017_Gm_Spec_Stock_Ra();
    wdContext.nodeBapi2017_Gm_Spec_Stock_Ra().bind(input4);
    input1.setSign("I");
    input1.setOption("EQ");
    input1.setLow("1857");
    input2.setSign("I");
    input2.setOption("EQ");
    input2.setLow("M110");
    input3.setSign("I");
    input3.setOption("EQ");
    input3.setLow("309");
    input4.setSign("I");
    input4.setOption("EQ");
    input4.setLow("W");
    wdThis.wdGetWdsdgoodsmvmtcustController().execute_BAPI_GOODSMOVEMENT_GETITEMS();
    Finally inavidate your output node like
    wdContext.node<output node name>.invalidate();
    also put your code inside try catch to display any exception if any
    Regards,
    Amit Bagati

  • Problem in getting updated data of VO

    I have a jspx page which have one ADF input LOV alongwith other controls. I have also a valueChangeListener attached with it so that whenever, user changes value, i want to process that value along with other values in VO which are set by LOV in the background. Now the problem is that in valueChangeListener when i access VO and currentRow of that VO, It shows previous values i.e. VO is not updated at the moment and ValueChangeListener is called first. How i can refresh VO first before calling ValueChangeListener.

    Now the problem is that in valueChangeListener when i access VO and currentRow of that VO, It shows previous values i.eThis is expected. The new value you expect to see will only be available in event.getNewValue().
    The valueChangeListener is invoked in Process Validations and Apply Request Values phases.
    Values are set in the datacontrols/VO row in a later phase (Update model phase)...
    Ref: http://download.oracle.com/docs/cd/E12839_01/web.1111/b31973/af_lifecycle.htm#insertedID2

  • Problem in getting Item data using RLE_DELNOTE

    Hi everyone,
    I am using RLE_DELNOTE as print program. This print program is not populating item level details in its structure ls_dlv_delnote. Can anyone help me?
    Thanks and Regards,
    Jai

    Hi,
    Are you using the standard SMARTFORM or Custom developed?
    Look into the OSS note 944762.
    See this:
    http://www.sapfans.com/forums/viewtopic.php?f=14&t=271216
    Problem with standar smartform ( Program RLE_DELNOTE)

Maybe you are looking for