PD Read Infotype Record - BEGDA/ENDDA format issue

Hi experts,
I'm calling IF_HRBAS_PLAIN_INFOTYPE~READ method in my business object class in an attempt to read a custom infotype on a postion:
When debugging or consuming this method from my main model class, the format of the dates in the returned table (lt_hrp9500) are as follows:
The dates are correctly formatted in the standard code until:
If I were to manually select the records from the tables it would appear normally.
Is there some form of conversion needed, a bug or user error?
Can anyone suggest a better interface to utilse for PD infotype actions?
Cheers,
Sam

Looks like you have wrongly defined <pnnnn> or <ls_hrtnnnn>.  When you assign, the date field is spread across several columns.
Also, try  if_hrbas_read_infotype instead.

Similar Messages

  • Read infotype records using the classes

    Hi All,
    In my system i can see many classes with cl_hrpa*
    Here i want to read a infotype record using these classes. I want finally the data in PA0008 or a record in P0008 format.
    i tried using the various classes like
    cl_hrpa_masterdata_factory
    if_hrpa_infty_bl
    hrpad_infty_container_tab
    I tried using the sevaral calsses passing one class type to other. finally i get is the class cl_hrpa_infotype_0008_in.
    can any one suggest how i should be reading the data for any infotype.
    Pls do not suggest the function module HR_READ_INFOTYPE. I want to use these classes to read the data.
    Pls suggest
    Regards,
    Umesh Chaudhari.

    Hi,
    Did you get any replies to this or have you found an answer on your own?
    Regards,
    LC

  • Adding read infotype records to payroll

    Dear ,
    i 've used the code mentioned in this link to read the infotype records .
    Use SAP defined methods instead of Logical Database(LDB)
    now i want to add this record to the tree in the payroll . could u plz tell me how to add it to a node in the additional payment tree node.
    Edited by: Kathy_Adam on May 22, 2010 3:40 PM

    Hi,
    1. Create new payroll function code in payroll driver exist. Starts with FU<custom name>.
    2. Create new function via PE04 with custome name.
    3. Add custom function to payroll schema.
    Custom name should start with special character, e.g. %, &, :, etc.
    User exit is special for every country driver, check payroll driver program and figure out its name.
    Cheers

  • Read Infotype with BEGDA as range

    Hi Experts,
    I have a requirement to read HR infotype data with Begda as range (low-high ex. 01.01.2008-01.06.2008) and Endda (Fixed 12319999).
    I am using PNP LDB and Get pernr Event.
    Any relevant suggestions will be appreciated..
    Thanks,
    Achyut

    Hi,
    Try this:
    loop at PXXXX where begda GE 20080101
                                 and begda LE 20080601
                                 and endda EQ 99991231
    endloop.
    Regards,
    Dilek

  • Formatting issues: when I open a msg, the font is sooo small you need a magnifier to read it. How can I set the font size to one I can easily read?

    == Issue
    ==
    I have another kind of problem with Firefox
    == Description
    ==
    I have various formatting issues:
    a. When I open a msg from my web browser (Cablevision), the font is sooo small I need a magnifier to read it. How can I set the font to a size I can easily read?
    b. When I forward msgs, the text gets all distorted and I need to clean it up (some symbols, lots of spaces between words). How can this be fixed?
    c. When I want to tell someone about a website, I cannot type the URL in so that all they have to do is click on it. How can this be fixed?
    d. When I open messages, the text opens in a small window and covers the "Show Images" button. Why?
    == This happened
    ==
    Every time Firefox opened
    == Ever since I started using Firefox (a few months ago)
    ==
    '''Troubleshooting information'''
    I didn't find any results
    == Firefox version
    ==
    3.6.3
    == Operating system
    ==
    Windows 7
    == User Agent
    ==
    Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US; rv:1.9.2.3) Gecko/20100401 Firefox/3.6.3
    == Plugins installed
    ==
    *-nphpclipbook
    *Office Plugin for Netscape Navigator
    *The QuickTime Plugin allows you to view a wide variety of multimedia content in Web pages. For more information, visit the QuickTime Web site.
    *Default Plug-in
    *Adobe PDF Plug-In For Firefox and Netscape "9.3.2"
    *NPRuntime Script Plug-in Library for Java(TM) Deploy
    *The Hulu Desktop Plugin allows Hulu.com to integrate with the Hulu Desktop application.
    *Shockwave Flash 10.0 r45
    *Adobe Shockwave for Director Netscape plug-in, version 11.5
    *iTunes Detector Plug-in
    *3.0.40624.0
    *NPWLPG
    *Next Generation Java Plug-in 1.6.0_20 for Mozilla browsers

    The text editor is the text area that you use on the webmail (Yahoo, Hotmail) website to create a new mail.
    You can compare that with the ''Post new message'' text area that you use to create a new post on this forum.
    Just above the text area that you use to enter the message text there is usually a button bar with buttons that allows some text formatting like Bold and Italic and can also include a button to make a clickable hyperlink.
    Check the tooltip of each button by hovering with the mouse over each button.
    Make Link - https://addons.mozilla.org/firefox/addon/142

  • What DVD formats can read iMac recorded DVDs?

    Hello All,
    I have a new intel based 20 inch iMac. When I record a video to a DVD with my iMac I'm I safe in assuming that everyone I send it to will be able to view it on their players? Is there a list someone that lists the formats that will read iMac recorded DVDs? Are they universal?
    Thanks for your help.
    Mike

    If you are talking about DVD video format (i.e. using iDVD)...
    It's not so much a function of the Mac, or the DVD recorder as much as what media you use. Most recent DVD players should be able to handle just about anything, but some older ones don't handle all formats well. For instance, some may like +R disks, and others may like -R disks. Others may not like RW disks. Some very old players may not properly play any burned media.
    If there's one or two particular models you are going to be using to play your disks, visit their company's website and read the specs for that drive. You can usually get user manuals for the older drives. If you can't find any specs, then you will have to experiment with different media, testing them in your target players.

  • HR_INFOTYPE_OPERATION - Need help w/Deleting infotype records

    Hello all,
    We have an issue where infotype records got created where the ENDDA is less than the BEGDA (ENDDA = 06/30/2006 and BEGDA = 07/01/2006).  We are trying to delete these using HR_INFOTYPE_OPERATION but we are getting message PG-009 (No data stored for 9001 in the selected period) returned in our tests. 
    BTW, 9001 is one of our customer infotypes. 
    I know I can remove these records using a direct SQL statement, but I would prefer to remove them more gracefully if possible.  Is there a way around this error?  I actually think function module HR_READ_INFOTYPE is raising the error.
    Any suggestions would be greatly appreciated.
    Thanks,
    Al

    You can check report RHRHDC00, I think it can help you with custom infotype too.
    Otherwise you might need to delete the records forcefully using DELETE statement, which is not suggested since all the  standard FM consider BEGDA and ENDDA and in your case they will always return blank.
    You can also check FM -
    HR_ECM_DELETE_INFOTYPE
    Regards,
    Amit
    Reward all helpful replies.

  • RP-READ-INFOTYPE

    Hi ,
      i need to delete all the records  with subty X1 for infotype  p0019 . I should n't use the logical database instead i am using  macro RP-READ-INFOTYPE to retrieve the valid data  but  here in case of P0019 the begda and endda of a record will be same and i need to delete the records even if they are in past . But the macro RP-READ-INFOTYPE  is not going to work in this case as it checks against dates and the records are in past so it will not retrieve any data . So any thoughts on how to get the data for P0019  with subty X1 without using the logical database PNP. 
    Thanks,
    Latha.

    Use HR_READ_INFOTYPE FM to retreive the desired result.........
    Pass begda 01/01/1800 endda = '12/31/9999' and subtype you want.......
    Not your infotype table will fill with all the data now you manipulate as you desired
    Let me know if you need any further help!!!
    Sas

  • Why we can't use provide to retrieve Time Infotypes records?

    Hi experts,
    I read some meterials that in HR report we can not use provide statement in LDB to fetch time infotypes records,
    use Loop instead,can anybody explain why and give a example.
    Thanks.

    Hi
    For time infotype records use RP_READ_ALL_TIME_ITY
    (RP_READ_ALL_TIME_ITY beg end)
       DATA: BEGDA LIKE P2001-BEGDA, ENDDA LIKE P2001-ENDDA.
       INFOTYPES:  0000, 0001, 0002, ...
                         2001 MODE N, 2002 MODE N, ...
         GET PERNR.
       BEGDA = '19900101'. ENDDA = '19900131'.
       RP_READ_ALL_TIME_ITY BEGDA ENDDA.
       IF PNP-SW-AUTH-SKIPPED-RECORD NE '0'.
          WRITE: / 'Authorization for time data missing'.
          WRITE: / 'for personnel number', PERNR-PERNR. REJECT.
       ENDIF.

  • FM for delimit the infotype record

    Hi
    I'm new to HR-ABAP.I need to develop function modules to delimit the some infotype records (eg: 0167,0168,0014,2006 etc)
    Presently i developed the function module that has following source code.
    CALL FUNCTION 'BAPI_EMPLOYEE_ENQUEUE'
        EXPORTING
          number        = empno
    CALL FUNCTION 'HR_READ_INFOTYPE'
        EXPORTING
         tclas                 = 'A'
          pernr                 = empno
          infty                 = '0167'
          begda                 = delimitdate
          endda                 = delimitdate
      BYPASS_BUFFER         = ' '
      LEGACY_MODE           = ' '
    IMPORTING
      SUBRC                 =
        TABLES
          infty_tab             = itab "itab is of the structure p0167
    enddate = itab-endda.
    MOVE delimitdate TO itab-endda.
    CALL FUNCTION 'HR_INFOTYPE_OPERATION'
        EXPORTING
          infty                  = '0167'
          number                 = empno
          subtype                = itab-subty
          objectid               = itab-objps
          lockindicator          = itab-sprps
          validityend            = enddate
          validitybegin          = itab-begda
          recordnumber           = itab-seqnr
          record                 = itab
          operation              = 'LIS9'
          tclas                  = 'A'
          dialog_mode            = '0'
      NOCOMMIT               =
      VIEW_IDENTIFIER        =
      SECONDARY_RECORD       =
       IMPORTING
         return                 = return
      KEY                    =
    CALL FUNCTION 'BAPI_EMPLOYEE_DEQUEUE'
        EXPORTING
          number        = empno
    when i use 'MOD' operation in FM 'HR_INFOTYPE_OPERATION' that FM runs perfectly.it changes the enddate to delimit date in the table PA0167.
    But, when i use 'LIS9' (delimiting) operation FM is throwing following error message
    "E PG  428 A complex application error has occurred".
    I need help regarding this error statement.can i use 'MOD' operation to delimit the records (time constraint of most of the infotype record to be delimited is 2).In which case we use 'LIS9'??
    Also any SAP function modules for delimiting IT2006 infotypes????
    Pls suggest.
    Thank u,
    shrinivas
    Message was edited by: Shrinivas

    For 167 & 168 have you looked at HR_BEN_TERMINATE_HEALTH_PLAN & HR_BEN_TERMINATE_INSURE_PLAN?
    The error message you got is actually mapped to (00)344 ie "No batch input data for screen & &"
    For the delimit operation, you probably,need to pass the delimit date separately..
    I have a feeling this function call cannot be used for the delimit operation le 'LIS9'.AS the delimit date is usually entered on a pop-up box when you do it via PA30.
    ~Suresh

  • Problem in creating 0027 infotype record in background

    Hi Experts,
    I am facing the problem in creating 27(Costs distribution) infotype record in back ground.
    Whenever there is a change in position of the employee or when we hire a new employee (Through PA40)
    i have to ctreate 0027 infotype record in background.For that i am using IN_UPDATE method of BADI
    HRPAD00INFTY.
    Here i am getting 2 problems.
    1. I am unable to get the latest positions that is assigned to the employee.
       Through NEW_IM AGE structure we can get the latest position but if a person is assigned to multiple   positions for the same period then i am getting only one position from NEW_IM AGE but not all.can any body help me?
    2. I am calling HR_INFOTYPE_OPERATION FM to create the IT0027 record in background in the above method (IN_UPDATE). but it is not updating the PA0027 table. any idea?
    Full points will be rewarded.
    Regards,
    Sai.

    I am sending a sample program , which is on infotype 0105 (communication). I hope that this program will help u out............
    REPORT ZSAPHR_SAMP.
    tables: pa0105.
    infotypes: 0105.
    DATA : I_RETURN TYPE BAPIRETURN1,
    I_KEY TYPE BAPIPAKEY,
    PERNR TYPE P0001-PERNR,
    I_P0105 TYPE TABLE OF P0105 WITH HEADER LINE,
    ENDDA TYPE P0105-ENDDA,
    BEGDA TYPE P0105-BEGDA.
    MOVE '00000010' TO PERNR.
    BEGDA = SY-DATUM + 1.
    ENDDA = SY-DATUM + 1.
    i_p0105-pernr = PERNR.
    i_p0105-infty = '0105'.
    i_p0105-subty = '0002'.
    i_p0105-endda = ENDDA.
    i_p0105-begda = BEGDA.
    I_P0105-USRTY = '0002'.
    I_P0105-USRID = '[email protected]'.
    APPEND i_p0105.
    CALL FUNCTION 'DEQUEUE_ALL' .
    CALL FUNCTION 'BAPI_EMPLOYEE_ENQUEUE'
    EXPORTING
    NUMBER = PERNR.
    IF SY-SUBRC = 0.
    WRITE 'Employee Locked Successfully'.
    ENDIF.
    CALL FUNCTION 'HR_INFOTYPE_OPERATION'
    EXPORTING
    INFTY = '0105'
    NUMBER = PERNR
    SUBTYPE = '0002'
    VALIDITYEND = BEGDA
    VALIDITYBEGIN = ENDDA
    RECORD = i_p0105
    OPERATION = 'INS'
    TCLAS = 'A'
    DIALOG_MODE = '0'
    NOCOMMIT = 'X'
    IMPORTING
    RETURN = I_RETURN
    KEY = I_KEY.
    IF SY-SUBRC = 0.
    WRITE : 'FM returns sy-subrc 0'.
    ENDIF.
    CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'.
    CALL FUNCTION 'BAPI_EMPLOYEE_DEQUEUE'
    EXPORTING

  • XSU: Reading each record at a time

    I am using XSU12 to retrieve database contents in XML format. I am passing the Connection and ResultSet objects to create OracleXMLQuery object. I want to read each record at a time and so setting the maxRows to 1 and then getting the xmlstring.
    code looks like...
    qry =new OracleXMLQuery(connection,resultset);
    qry.setMaxRows(1);
    xmlString = qry.getXMLString();
    I keep this in a loop and read each record at a time. The problem is whenever getXMLString() method is called, the application is hitting the database, which will be a performance issue.
    Is there any way to read contents of a table at once and then loop each record at a time without hitting the DB everytime?
    Kishore
    null

    public static char readChar() {
    int ch;
    char r = '\0';
    boolean done = false;
    while (!done) {
    try {
    ch = System.in.read();
    r = (char) ch;
    if (r == '\r') {
    System.out.println("Not a character. Please try again!");
    System.in.skip(1);
    done = false;
    } else {
    System.in.skip(2);
    done = true;
    } catch (java.io.IOException e) {
    done = true;
    return r;
    Try this as an method and then use it..
    This code will read will be in response untill you hit the return key but will take only the first character....

  • To read Infotype 0025

    Friends i'm writing a report. Which give employees qualification and desired and assessed profeciencies. I'm unable to read infotype 0025. Data is there, but pa0025 table is showing empty status.

    Hi u wont find any entries in PA0025.
    Try using this FM
    HRWPC_RFC_QUALIFICATION_STAFF
    In this FM U have to pass the Qualification ID
    U can also have a look at
    CALL FUNCTION 'RHPP_Q_PROFILE_READ'
       EXPORTING
         BEGDA                  = sy-datum
         ENDDA                  = sy-datum
         WITH_STEXT             = 'X'
         WITH_QK_INFO           = 'X'
      CHECK_NOTE             = ' '
        TABLES
          OBJECTS                = IT_P_OBJECTS
      ERR_OBJECTS            =
          PROFILE                = IT_QUALIFICATION_TAB
    EXCEPTIONS
       NO_AUTHORITY           = 1
       WRONG_OTYPE            = 2
       OBJECT_NOT_FOUND       = 3
       UNDEFINED              = 4
       OTHERS                 = 5
      IF SY-SUBRC <> 0.
        raise nothing_found.
      ENDIF.
    ~ BiSu
    Message was edited by:
            Biswajit Das
    Message was edited by:
            Biswajit Das

  • Custom Domain Causing site formatting issues

    I have designed my site in Adobe Muse. It was working perfectly with the BC trial domain: sarahruby2014.businesscatalyst.com
    I have added my custom domain: www.sarahrubydesign.com
    When you view the site with the custom domain, the formatting on several pages, including the home page is messed up. However, the formatting remains pristine when sarahruby2014.businesscatalyst.com is used.
    To add the custom domain, I had to delete it from a legacy website, which I did.
    Then I went into my GoDaddy records (via Google, since I registered my domain through Google). I changed the name servers:
    I added the domain to my current site:
    I have no doubt there's something I missed.
    Thanks for any help.

    Thanks Liam.
    I was actually able to fix the majority of the formatting issues by republishing the site from Muse and selecting "upload all files" option (instead of "upload only modified files").
    The only place I'm now having issues is on the BC backend. Everything with stylesheets on the backend (news module, login block) and the url for the blog have still not updated. 
    I suppose I should wait that out a little longer to see if it all updates.

  • Crystal for VS 2010 - formatting issues in viewer (extra space) again

    We're having the same problem as the one in this thread link:[Crystal 2008 for VS 2010 - Report formatting issues in viewer (extra space);. There's no resolution in the thread and it's been closed. I'm hoping that creating a new thread may cause someone to answer this problem.
    We have a Windows App that we just converted to .NET 4.0 and updated the viewer to the Crystal Reports Viewer in VS 2010. When we open a report that has a large block of static text in paragraphs left-aligned the spacing around punctuation is awful - there's almost a tab's worth of space between the last letter and the period. U.S. looks like US. This happens both with reports that were created in VS2008 and ones that were created in VS2010. It is only a problem in the viewer's display - if we print to a printer or export to PDF the spacing around punctuation is fine. It's also not a problem on our development workstations which are running Windows 7, but is a problem on our test servers which are running Windows 2003 Server. I ran the modules tool and found that the version of usp10.dll does match what the previous thread said it should be and it's coming from the c:\program files\sap businessobjects\crystal reports for .net framework 4.0\common\sap businessobjects enterprise xi 4.0\win32_x86\ folder. On my development machine when I run the modules tool I notice that a second instance of usp10.dll is called which is the version installed with Windows 7. We've tried changing fonts but none of the ones we've tried (originally in Times New Roman, 12, tried Arial, Times and various sizes) have made a difference. We also tried changing the print options with no improvement. The only thing that makes it slightly better is full-alignment but our customer insists that it be left-aligned.

    Re. the other thread. I never did receive a sample of the report to test with. Perhaps I can get one from you? I need you to ensure that the issue occurs with a "saved data" report. If it does, let me know if you can share it and I'll contact you via email. My comment in the other thread re. available time, priorities, etc., still applies. Also, just to be clear. Service Pack 2 for CRVS2010 is closed now. Thus if I am able to reproduce the issue the fix will be targeted for October \ November time frame - no guarantees though...
    Ludek
    Follow us on Twitter http://twitter.com/SAPCRNetSup
    Got Enhancement ideas? Try the [SAP Idea Place|https://ideas.sap.com/community/products_and_solutions/crystalreports]

Maybe you are looking for

  • Printing from OSX Lion Client to Windows Server 2008

    I have tried these methods: ============= via System Preferences IP Printer (Line Printer Daemon - LPD) Address (both Server Name and IP Address) e.g.  lpd://servername/queue Queue Print Using (HP LaserJet P4010 Series) Result:   After a test print i

  • Can files that were on my ipod be recovered?

    My Ipod was stolen and I was able to get it back. I did not have icloud. Seeing that 90% of apps were deleted and that it had been updated, I thought that it was wiped, but found out that it wasn't. All of my music was on it still. But over a thousan

  • How to embed servlet filter to an existing website

    I want to make an application using java servlet filters and I want to know the possibility of making this application as an add-on where anyone could take this application as it is and attach it to his website without knowing anything about servlete

  • Transient Properties in atg

    Hi what is the main use of transient properties in repository why we have to use transient properties in atg please give me clear picture on it Is it possible to see trasient properties in acc or bcc?

  • Making all Filters work as Smart Filters

    In CS3 you could change something to make all filters act like smart filters, even though they won't. I found this worked very well, now I have CS4 and would like to do the same but can't remember what to do to make it work. Anyone remember what to d