Reading infotype 2050 ( No database table )

Hi to all experts,
I have a requirement to display the details exactly as in infotype 2050. When you check 2050 how it is displayed the annual calender i need to display exactly as it is .I tried using LDB, Macro, FM but the database table for 2050 doesnt exist.The p2050 is there but there is no pa2050. There is no underlying database table for that infotype 2050 (annual calender display). 
I check some related fm
like  module      HR_PERSONAL_WORK_SCHEDULE
any information regarding this will be greatly appreciated.
THanks

Actually this information is retrieved based on the data of Planned Working Time, Infotype (0007) and Absences, Attendances and Substitutions (2001, 2002, 2003), there's no specific Infotype DB Table.
You were using the Correct FM to read the Employee's work schedule (Relevant data is retrieved in PERWS parameter)
    CALL FUNCTION 'HR_PERSONAL_WORK_SCHEDULE'               "XOQK064687
         EXPORTING                                          "XOQK064687
              PERNR             = PSPAR-PERNR               "XOQK064687
              BEGDA             = FIA_BEGDA                 "XOQK064687
              ENDDA             = FIA_ENDDA                 "XOQK064687
              SWITCH_ACTIV      = 1                         "XOQK064687
              READ_CLUSTER      = READ_CLUSTER            "YMMAHRK037395
         TABLES                                             "XOQK064687
              I0000             = M0000                     "XOQK064687
              I0001             = M0001                     "XOQK064687
              I0002             = M0002                     "XOQK064687
              I0007             = M0007                     "XOQK064687
              I2001             = M2001                     "XOQK064687
              I2002             = M2002                     "XOQK064687
              I2003             = M2003                     "XOQK064687
              PERWS             = PSP2050                   "XOQK064687
         EXCEPTIONS                                         "XOQK064687
              ERROR_OCCURED     = 1                         "XOQK064687
              ABORT_OCCURED     = 2                         "XOQK064687
              OTHERS            = 3.                        "XOQK064687
If you need to do something similar you'll have to check the IT2050 code

Similar Messages

  • Help needed in reading text file to database table

    Hello experts,
    i have to insert the values from the column of this text file and insert them in my database table.
    I have done a few file to table insertions but i'm having some trouble with this one.
    Any suggestions plz
    thanks
    liab_report      1.00                                                                                                                              Page: 1
    CDC:00537 / Mon Jun-21-2010                           LIABILITY REPORT                               Mon Jun-21-2010 22:06:26
    DRAW    1; SET    1;  November 7, 2009
                         TOTAL       PAID ON         TOTAL    EXPIRED ON         TOTAL    FRAC   OUTSTANDING
                       WINNERS      06/21/10          PAID      06/21/10       EXPIRED   ROUND
      DIVISION          AMOUNT        AMOUNT        AMOUNT        AMOUNT        AMOUNT  AMOUNT        AMOUNT
        Div1              0.00          0.00          0.00          0.00          0.00    0.00          0.00
        Div2         701040.00          0.00     660146.00          0.00      40894.00    0.00          0.00
        Div3        1444128.00          0.00    1330056.00          0.00     114072.00    0.00          0.00
        Div4        4711900.00          0.00    3889700.00          0.00     822200.00    0.00          0.00
                    6857068.00          0.00    5879902.00          0.00     977166.00    0.00          0.00
    DRAW    2; SET    1;  November 14, 2009
                         TOTAL       PAID ON         TOTAL    EXPIRED ON         TOTAL    FRAC   OUTSTANDING
                       WINNERS      06/21/10          PAID      06/21/10       EXPIRED   ROUND
      DIVISION          AMOUNT        AMOUNT        AMOUNT        AMOUNT        AMOUNT  AMOUNT        AMOUNT
        Div1              0.00          0.00          0.00          0.00          0.00    0.00          0.00
        Div2         817817.00          0.00     817817.00          0.00          0.00    0.00          0.00
        Div3        1687405.00          0.00    1611742.00          0.00      75663.00    0.00          0.00
        Div4        3402100.00          0.00    3034200.00          0.00     367900.00    0.00          0.00
                    5907322.00          0.00    5463759.00          0.00     443563.00    0.00          0.00
    DRAW    3; SET    1;  November 21, 2009
                         TOTAL       PAID ON         TOTAL    EXPIRED ON         TOTAL    FRAC   OUTSTANDING
                       WINNERS      06/21/10          PAID      06/21/10       EXPIRED   ROUND
      DIVISION          AMOUNT        AMOUNT        AMOUNT        AMOUNT        AMOUNT  AMOUNT        AMOUNT
        Div1              0.00          0.00          0.00          0.00          0.00    0.00          0.00
        Div2         779933.00          0.00     769804.00          0.00      10129.00    0.00          0.00
        Div3        1605548.00          0.00    1525104.00          0.00      80444.00    0.00          0.00
        Div4        4891700.00          0.00    4256800.00          0.00     634000.00    0.00        900.00
                    7277181.00          0.00    6551708.00          0.00     724573.00    0.00        900.00

    Plz clarify whether u want to load text file as a file into database or value of this text file into database. If values are to be loaded from this text file, U can better format the text file and use SQL loader to load the file into database. By formatting the database, i mean remove the unnecessary headings and characters, kee only the values to be loaded idelimited by ' '(space) or ','(comma). Create a control file and load it into the target table.

  • Values not read from database table.

    Hi experts,
    I have an issue reading values from the database table. In my custom table I have a KUNAG field. The Sold-to partyis a 10 character field. I have saved a record with KUNAG = '0000694012'.
    But when i read the values in a program using KUNAG= '0000694012' no records are read. Kindly help
    Regards,
    Girish

    Hi,
         This field has conversion exit.
         Pass the appropriate value after converting.
    Regards,
    Srini.

  • Using the Borland Database Engine to read AND write SHARED Paradox Database Tables

    I need to read and write Paradox database tables with a C# AT THE SAME TIME AS people using the Paradox tables with legacy Paradox programs interactively.
    I think the only way to do that reliably without corrupting the tables is to use the BDE Borland Database Engine.
    Does anyone know how to do that? I found this c++ program... But I don't know how to integrate this into c#
    http://www.codeproject.com/KB/database/bdedatabase.aspx
    Is there another way to do this? Again, most important, I don't want to corrupt the paradox database.
    I can read the paradox records all day long, that is no problem, it is updating at the same time as the legacy program users..
    I also know that the whole thing needs to be updated, but that can not be done overnight.
    Thanks in advance
    Dave

    Being pretty new to programming, I am trying just to read info from Paradox tables with C#. Info is actively being updated from another program at the same time. The program I am trying to write only needs to read data. The other program does use the BDE,
    so it is already present running on the computer.
    I've been looking at code but just haven't found quite the right combination.
    Thanks. Any help is greatly appreciated.

  • Database table for Workflow Container values

    hi,
    I am on SAP ECC 6.0
    I am trying to find workflow id number starting from document number
    I try to find database table which has containe values of the workflow instances so that I can get workflow/workitem instance numbers for the document
    this is custom workflow and it is not based on business object type. so checking container values is the onlyway I can get the workflows
    but I am not able to find any table for it
    I have checked following
    SWW_CONT
    SWW_CONTOB
    SWWVCONTWI
    SWXML_CONT
    SWJ_CONT
    SWJPCONT
    SWJSCONT
    SWPCMPCONT
    SWU_CONT1
    SWUOCONT1
    almost all the SWCONT tables
    Morever I put St05 trace to see all the tables in database operations while triggering the workflow
    but the only tables seen here are
    SWWHRINDEX
    SWD_CONT  
    SWWWIHEAD
    SWWCNTP0  
    SWWLOGHIST
    SWWWIRET  
    SWWCNTP0  is Workflow Container: XML Database (P0)
    but it is XML structure data. so its of new use to query container fields.
    is this reason because of any workflow design or system config ?
    how to read container values from database tables in such case?
    thanks
    bhakti

    Hi,
    >i need to display an ALV list with list of invoices and whether the workflow is awaiting / approved / rejected for review / approval. and who did the approval / rejection action
    This you should be able to read from container now, if you have FIPP instance.
    >the workflow has two steps - review and approve and so i would query table swwwihead for the parent id of workflow and then based on task number see which is ready status task and find if its awaiting approval or rejection
    Don't do any selects to SWWWIHEAD unless you have some really specific reason. Just use SAP_WAPI* functions. You should be able to get each depended work item etc. easily with the standard functions.
    >apart from this, several data like amount values, reference document, creation date and whole lot of invoice item and header level data is required which needs to be taken from workflow container
    Why would you read this data from container? This data is in the SAP tables VBKPF, etc. There should be even functions to get all data related to an invoice - try to search for example with READPRELIMINARY* (read preliminary invoice).
    In general:
    1) if you have invoice number, get all related work items with a SAP_WAPI* function
    2) if you have only the top WI ID, use SAP_WAPIDEPEND function to get the depended work items
    3) with above function you probably will get also the status of the tasks / work items, so you don't need select in SWWWIHEAD
    4) Now you have the "status" and the workflow data for the invoice
    5) read the invoice data from standard FI tables (unless there is some specific reason to get it from WF container, and if there is, then I think that you might be having some fundamental problems in your design)
    Regards,
    Karri

  • 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

  • Oracle DB: How to read data from a corrupted database table.

    Hi All,
    Wanted to know if there is a way I could read data from a corrupted Oracle database table?
    Are there any tools that I can use? Or does Oracle provides any mechanism to do that?
    Any pointers in this regard would be helpful.
    Thanks in Advance.

    user10600611 wrote:
    Table shows inconsistent data.You are going to have to be more specific. Inconsistent in what sense? A correct data model should not allow for inconsistencies to crop up.
    However, you may be able to use one of the many FLASHBACK features of Oracle to look at the table at a prior point in time before the corruption.
    HTH!

  • Difference between Infotype and Database table

    Hi all,
    in SAP ABAP-HR we have the concept of INFOTYPE. will anybpdy please tell me , in simple word, what exactly is it? and what are the difference of INFOTYPE with DATABASE TABLE.
    Anirban Bhattacharjee

    hi,
        infotypes contains group of logically related fields on a single screen (just like TABLE) and which is bounded by TIME CONSTRIANT (no time constrint for table).
    main diffarence is TIME CONSTRAINT, means validity period of data records in infotypes based on time constrint only.
    for more information on time constrint follow this link.........
    http://help.sap.com/saphelp_erp2005/helpdata/en/48/35c9f24abf11d18a0f0000e816ae6e/content.htm
    each infotype contains, its corresponding database table.
    ex: 0002---> personal information.
         its database table: pa0002.
        the table pa0002 contains four strctures pakey, pshd1, ps0002 and ci_p0002.
        pakey-->contains key fields information.
        psdh1--->contains last logon detils (usename....)
        ps0002--->contains infotype specific fields.
        ci_p0002--> for furthur addinf an any extra fields
    Edited by: Ashok Reddy on Jun 25, 2008 2:12 PM

  • Regarding database table to infotype

    hi experts,
                    sorry i m going to ask a typical question i m working on hr-abap ,i have developed a module pool in which the database table is updating with some data,what i want that after updation i want to store that data in a infotype,,so plz tell me how to create infotype and how to store the data into it from a database table...thnx in advance.i know it is a configuration part but rt nw my company doesnt have hr consultant.....plz help me.

    Hi
    <b>Creating an Infotype</b>
    Using the TCODE PM01 you can create an Infotype. As per SAP standard you can use only 9000 series. The below procedure explains you how to create an Infotype.
    1.Go the transaction PM01 and give the Infotype Number lets say 9999 and press  button. It will ask you a messaging window,
    2.Press create button to continue further. It will take you to create the structure.
    3.Give the components and SAVE & ACTIVATE the structure and come back.
    An Infotype attributes window will appear; you create a new entry with the Infotype No and give the appropriate description.
    and give the data and press ENTER key. The Technical data will appear automatically, here you have to maintain the Single screen as ‘2000’ and List screen as ‘3000’ and then SAVE the info and press BACK button, you will reach the main screen.
    After that using the Menu option Infotype 
    4.Generate the structure, dialog module and include. 
    Click the  button from application tool bar to check the Infotype attributes. Select the 9999 Infotype and check the data.
    If every thing is error free, you can use the Infotype using PA30 transaction.
    5.Use the Create button you can create New Entries for the Infotype.
    You can view the entries in table PA9999 using the TCODE SE11/SE16.
    Validating Code in Module pool: - If you want to validate the user inputs,
    You need to write the validate code procedure in the module program MPXXXX00 screen 2000 (here XXXX is user Infotype, in our case 9999).
    In PAI.
      MODULE P9999.
      MODULE HIDDEN_DATA.
      FIELD P9909-PRATE MODULE PRATE. “ Create a module routines. 
    In PBO
      MODULE PRE_INPUT_CHECKS.
            input-checks:                                               *
      insert check modules here:
      CHAIN.
       FIELD P9909-PRATE MODULE PRATE.
      ENDCHAIN.
    Double click on PRATE it will ask you the include name, SELECT the include MP999930 from the input window.
    *&      Module  PRATE  OUTPUT
          text
    MODULE prate OUTPUT.
      IF NOT p9909-prate IS INITIAL.
        PERFORM check_prate.
      ENDIF.
    ENDMODULE.                 " PRATE9  OUTPUT
    Again check_prate subroutine, write down the below code in MP999940 include.
    *&      Form  check_prate
    FORM check_prate .
    CLEAR zprate_t.
      SELECT SINGLE * FROM zprate_t WHERE prate = p9909-prate.
      IF sy-subrc > 0.
        CLEAR zprate_t.
        MESSAGE e016(rp) WITH 'Entry does not exist in ZPRATE_T table'.
      ENDIF.
    ENDFORM.                    " check_prate
    After that check the module, if it is error free then ACTIVATE the same. You can check the Infotype validations using the PA30 transaction.
    Regards
    Raj

  • Give user Read-Only access to one table in a database.

    Does anyone know how to give a user account Read-only access to 1 table within a SQL Server Database using SQL Server Management Studio? I don't want the account to be able to access any other tables in the database, just the one table. I'm not a sql programmer,
    so if there is a way to do it in Sql Server Managment Studio settings that would be the best.

    Using Management Studio, I assume you already have a login and user for that person. If not,
    How to: Create a SQL Server Login http://msdn.microsoft.com/en-us/library/aa337562.aspx
    How to: Create a Database User
    http://msdn.microsoft.com/en-us/library/aa337545.aspx
    1. Then, in Object Explorer, expand the Database, expand
    Tables, right-click the table you want, and then click
    Properties. 
    2. On the Permissions page, under Users or Roles, click
    Search, then Browse, etc, until you find the user. Click
    OK until you are back to the Permissions page.
    3. In the Permission for <user>section, find the
    SELECT (that's the read permission) and click the Grant
    box. Then click OK.
    Rick Byham, Microsoft, SQL Server Books Online, Implies no warranty

  • Read the last record in the database table..

    Hi..
    I am new to ABAP. So i have one condition to read the address number field in the last record from database table by using the person number where clause field.
    But the person number is same for some the records.
    So can any tell me the logic for to read the addressnumber field in the last record of selected records from database where personnumber is equal to some thing.
    Please help me..
    Thanks
    venki

    Hi Venkat ,
    u mean to say
    person number  addressnumber
    aa1            0000000000001
    aa1            0000000000002
    aa1            0000000000003
    aa1            0000000000004
    aa2            0000000000021
    aa3            0000000000110
    if i have to read the addressnumber 00000000000004
    of the person number aa1
    u can go like
    data v_address number like addressnumber.
    sort itab by personnumber addressnumber
    loop at itab .
    at end of personnumber.
    move addressnumber to v_addressnumber ..
    endat.
    endloop.
    so using control break statements i can fetch the last record of my person number if at all the same person number is having more than one address number ..
    hope this helps,
    Regards,
    Vijay
    Message was edited by: Vijay

  • Reg. reading database tables.

    Hi,
    I have stored some database table names in a custom table. In my custom report, I have to read those database tables depending on certain criteria.
    For ex: I have the table names 'MARA' , 'MARC' stored in my custom table ztables.
    In my report, if a flag is set to 'X', I have to read MARA otherwise MARC...(these entries in ztables can change in future..so i can not read directly from MARA or MARC)..How to achieve this? Once the table names are stored in a variable, how to read data from this table name? if i say 'read' it will try to read this variable and not the table.
    Thanks in advance for your input.

    you can try this approach
    data : ref_table_des type ref to cl_abap_structdescr.
    data:tabname like dd02l-tabname.
    data : idetails type abap_compdescr_tab,
           xdetails type abap_compdescr,
        xfc type lvc_s_fcat,
        ifc type lvc_t_fcat.
    data: dy_table type ref to data,
        dy_line  type ref to data,
    field-symbols: <dyn_table> type standard table,
                 <dyn_wa>.
      ref_table_des ?=
          cl_abap_typedescr=>describe_by_name( tabname ).
      idetails[] = ref_table_des->components[].
      loop at idetails into xdetails.
        clear xfc.
        xfc-fieldname = xdetails-name .
        xfc-datatype = xdetails-type_kind.
        xfc-inttype = xdetails-type_kind.
        xfc-intlen = xdetails-length.
        xfc-decimals = xdetails-decimals.
        append xfc to ifc.
      endloop.
      call method cl_alv_table_create=>create_dynamic_table
                     exporting
                        it_fieldcatalog = ifc
                     importing
                        ep_table        = dy_table.
      assign dy_table->* to <dyn_table>.
      create data dy_line like line of <dyn_table>.
      assign dy_line->* to <dyn_wa>.
    select *
    into table <dyn_table>
    from  (tabname).
    where variable tabname stores the name of the table stored in your custom table.

  • FM to read Database table

    Hi,
    Is there any FM to read values from database table. I can do it by writing select query but I want to do it through an FM .
    Please help me.
    Thanks,
    Sravanthi

    >
    Sravanthi Palepu wrote:
    > Is there any FM to read values from database table. I can do it by writing select query but I want to do it through an FM .
    Why do you want to do so? Is it like you hate SELECT statements?
    @Mahesh: Is it easy(& also performance efficient) to write a SELECT stmt or use RFC_GET_TABLE_ENTRIES(where you have no filter to select data) to select data ?
    Suhas

  • Problem while updating a database table

    Hi experts,
                         I've used the FM 'HR_INFOTYPE_OPERATION' to update the database table. In that i used the MOD operation to update the Infotype PA0315.  But it return an error message like "Infotype does not exist". What could be the reason for this error?.
    regards,
    Shanthi.

    Hi,
          Here is my code for updation.
    CALL FUNCTION 'BAPI_EMPLOYEE_ENQUEUE'
    EXPORTING
    NUMBER = P0315-pernr
    IMPORTING
    RETURN = wf_returne.
    Update Mode
    CALL FUNCTION 'HR_INFOTYPE_OPERATION'
    EXPORTING
    INFTY = '0315'
    NUMBER = P0315-PERNR
    SUBTYPE = P0315-SUBTY
    OBJECTID = P0315-OBJPS
    LOCKINDICATOR = P0315-SPRPS
    VALIDITYEND = P0315-ENDDA
    VALIDITYBEGIN = P0315-BEGDA
    RECORDNUMBER = P0315-SEQNR
    RECORD = P0315
    OPERATION = 'MOD'
    TCLAS = 'A'
    DIALOG_MODE = '0'
    IMPORTING
    RETURN = wf_return.
    Dequeue
    CALL FUNCTION 'BAPI_EMPLOYEE_DEQUEUE'
    EXPORTING
    NUMBER = P0315-PERNR.

  • HR database table--emp code & work schdeule--shift

    i want to know the database table which is havin EMPLOYEE CODE & DAILY WORK SCEDULE--SHIFTS.....can any one help me...

    hi Dheeraj,
    tables - PA2003 (OR PA2004) & T550A
    The daily work schedule shifts are maintained using infotype 2003/2004; Correspondingly you get thye employee code and daily work schedule shifts from
    1.PA2003(SUBSTITUTION)->PERNR (Employee code)
    2.PA2004 (AVAILABILITY)
    Get MOTPR TPROG VARIA from PA2003/2004 and read table T550A for the daily work schedule shifts.
    hope this helps
    Sajan.

Maybe you are looking for

  • Installation problem on XP EXCEPTION_ACCESS_VIOLATION

    Attempting to install on windows XP I get a "crash" incriminating ntdll.dll. The same installation file works OK on my professional laptop which is windows NT. Se logfile below An unexpected exception has been detected in native code outside the VM.

  • Error Message downloading CS5: A problem occurred while extracting the archive..

    After dowloading the CS5 Design Premium, I get an error messagin stating "A problem occurred while extracting the archive. Please try downloading the Adobe CS5 Design Premium again." I repeated this process multiple times to no avail. I am trying to

  • Payment is not going to the permitted payee address

    Hi, I have assigned permitted payee in the vendor master record of vendor. After that i executed payment program and i am finding that payment is going to the headoffice instead of permitted payee and also in the proposal and payment list it is not r

  • Can't Importing iPhoto '11 (version 9) into Aperture 3

    I have Aperture 3 and iPhoto '09. My father recently upgraded to iPhoto '11. I've successfully imported iPhoto '09 libraries in the past. But now my father has iPhoto '11 and gave me a small iPhoto library to import into my Aperture 3 collection (2 e

  • Overpayment for Skype number

    I am looking at my bank statement and am seeing where I was charged twice for my Skype number. This may have happened when I click to confirm twice when ordering the number. How could I correct this?