Dynamic table for infotype 2010 in HCM form

Hi,
I have a project requirement for a form that has got me stuck for days now, so I was wondering if anyone could help.
The form in question is a statement of allowances (recording overtime), which ideally will allow the user to enter in any overtime within a fortnight. For each day in the fortnight, they are to be able to enter in any number of infotype 2010 records. As such, the layout requires a table with the columns being the 14 days, and the rows being the 2010 records (based on wagetypes).
As the user is able to enter in any amount of 2010 records for each day, the table needs the ability to grow dynamically. I have no problem doing this in the Adobe form itself, but my issue right now is defining the fields for the form.
As I understand it, there are some infoypes (such as 0041 and 0008) that are able to be defined in the form scenario fields as a line type. This will allow multiple instances of that infotype to be created/updated. However, since 2010 does not have this option, I am only able to define a single instance of that infotype.
I am still fairly new to this framework, and I did play around with generic services to see if I could define my structure there and map it across to the form, but so far I have not been successful. I was hoping to be able to define a table of type p2010 and pull it across to be used in the form.
My issues in summary are as follows:
1. Need to define a table/structure of type p2010 to be used in the form
2. As the number of rows in the table will only be specified at runtime, how do I map the cells to the corresponding fields?
Any ideas or suggestions would be very helpful.
Joanna

See you will manually get the relevant data from IT2010 and save it an internal table.
now this data for eg contains 3 line items whcih you need to show in the form in a table.
itab-fld1         itab-fld2               itab-fld3
val1                  val2                     val3
val4                  val5                     val6
val7                  val8                     val9
Now you must have defined the fields in the generic service. add the fields in the service_dataset not the standard service fields.
in the get field info method
DATA ls_field_info TYPE hrasr00gs_field_info .
  DATA ls_service_field TYPE fieldname.
  CLEAR field_infos.
  LOOP AT service_fields INTO ls_service_field.
    CASE ls_service_field.
      WHEN c_fieldname1.
Reason
        CLEAR ls_field_info.
        ls_field_info-fieldname = c_fieldname1.
        ls_field_info-field_data_element_name = c_dtel_reason.
        ls_field_info-supports_value_help = true.
        ls_field_info-supports_default_value = true.
        APPEND ls_field_info TO field_infos.
endcase.
endloop.
IN method get operations
DATA ls_operation TYPE hrasr00gs_operation.
  CLEAR operations .
operation GET 2010
  CLEAR ls_operation.
  ls_operation-operation = c_oper_get_reason.
  ls_operation-fieldnames = get_fields_of_operation( ls_operation-operation ).
  APPEND ls_operation TO operations.
in method get fields of operation
  CASE operation.
    WHEN c_oper_get_reason.
      APPEND c_fieldname1          TO fieldnames.      
Now in the initization method you will find your fields in service_field_values. Now for table entry fields increase the index value as mentioned before.

Similar Messages

  • How to maintain Dynamic Action for Infotype 2 .

    Hi SAP-HR Experts .
    I want to maintain Dynamic Action for Infotype 2 .
    If Employee's No. of Children exceeds then System immediately ask for maintenence of IT-21 also at the same time .
    How to maintain code in table V_T588Z .
    Please elaborate it .
    Thanks & Regards : rajneesh .

    Hi kanupriya .
    your reply was Very helpful for me u2026But i unable to achieve the desired result . I maintained the entries in View V_T588Z like this .My Objective is when some body update the Infotype 2 for a employee , and his/her no. of Childrens exceeds by 2 then system should jump into IT-21 for
    updation of IT-21 at the same time . I think this what Dynamic Actions work out .
    ==========================================================
         ANZKD 04 500 P PSPAR-TCLAS='A'
         ANZKD 04 175 P T001P-MOLGA='40'
         ANZKD 04 176 P P0002-ANZKD>='2'
         ANZKD 04 177 I INS,0021,2,01
         ANZKD 04 178 I INS,0021,2,02
    ==========================================================
    Please suggest me what to do , as the above entries are not workout .
    Your help will be very appreciated.
    Regards ,
    rajneesh(9873607039)

  • Dynamically table for sapscript

    hi expects,
    how could i create dynamical table for form in script.

    hi,
      to pass the table to script means passing a field sting to script by using function module write_form.
    example program,
    TABLES: SPFLI,SFLIGHT.
    DATA: BEGIN OF FS_SFLIGHT,
            CARRID TYPE SPFLI-CARRID,
            CONNID TYPE SPFLI-CONNID,
            FLDATE TYPE SFLIGHT-FLDATE,
            CITYFROM TYPE SPFLI-CITYFROM,
            CITYTO TYPE SPFLI-CITYTO,
          END OF FS_SFLIGHT.
    TABLES SCARR.
    DATA T_SCARR LIKE STANDARD TABLE OF SCARR.
    DATA: W_LINES TYPE I,
          W_P TYPE I,
         W_TEMP  TYPE I  .
    DATA T_FLIGHT LIKE STANDARD TABLE OF FS_SFLIGHT.
    SELECT SPFLI~CARRID
           SPFLI~CONNID
           SFLIGHT~FLDATE
           SPFLI~CITYFROM
           SPFLI~CITYTO
      INTO CORRESPONDING FIELDS OF TABLE T_FLIGHT
      FROM SPFLI AS SPFLI JOIN SFLIGHT AS SFLIGHT
      ON   SPFLICARRID = SFLIGHTCARRID AND
           SPFLICONNID = SFLIGHTCONNID
    CALL FUNCTION 'OPEN_FORM'
    EXPORTING
      APPLICATION                       = 'TX'
      ARCHIVE_INDEX                     =
      ARCHIVE_PARAMS                    =
      DEVICE                            = 'PRINTER'
      DIALOG                            = 'X'
       FORM                              = 'YH648_060104'
      LANGUAGE                          = SY-LANGU
      OPTIONS                           =
      MAIL_SENDER                       =
      MAIL_RECIPIENT                    =
      MAIL_APPL_OBJECT                  =
      RAW_DATA_INTERFACE                = '*'
      SPONUMIV                          =
    IMPORTING
      LANGUAGE                          =
      NEW_ARCHIVE_PARAMS                =
      RESULT                            =
    EXCEPTIONS
       CANCELED                          = 1
       DEVICE                            = 2
       FORM                              = 3
       OPTIONS                           = 4
       UNCLOSED                          = 5
       MAIL_OPTIONS                      = 6
       ARCHIVE_ERROR                     = 7
       INVALID_FAX_NUMBER                = 8
       MORE_PARAMS_NEEDED_IN_BATCH       = 9
       SPOOL_ERROR                       = 10
       CODEPAGE                          = 11
       OTHERS                            = 12
    IF SY-SUBRC <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
            WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.
    DESCRIBE TABLE T_FLIGHT LINES W_LINES.
    LOOP AT T_FLIGHT INTO FS_SFLIGHT.
      ADD 1 TO W_TEMP.
    IF W_LINES NE W_TEMP.
      CALL FUNCTION 'WRITE_FORM'
       EXPORTING
         ELEMENT                        = 'BOXES'
        FUNCTION                       = 'SET'
         TYPE                           = 'TOP'
        WINDOW                         = 'MAIN'
      IMPORTING
        PENDING_LINES                  =
      EXCEPTIONS
        ELEMENT                        = 1
        FUNCTION                       = 2
        TYPE                           = 3
        UNOPENED                       = 4
        UNSTARTED                      = 5
        WINDOW                         = 6
        BAD_PAGEFORMAT_FOR_PRINT       = 7
        SPOOL_ERROR                    = 8
        CODEPAGE                       = 9
        OTHERS                         = 10
      IF SY-SUBRC <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
            WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
      ENDIF.
    ELSE.
    IF W_TEMP NE W_LINES.
    AT NEW  CONNID.
        CALL FUNCTION 'WRITE_FORM'
           EXPORTING
             ELEMENT                        = 'DATA'
            FUNCTION                       = 'SET'
             TYPE                           = 'BODY'
            WINDOW                         = 'MAIN'
          IMPORTING
            PENDING_LINES                  =
           EXCEPTIONS
             ELEMENT                        = 1
             FUNCTION                       = 2
             TYPE                           = 3
             UNOPENED                       = 4
             UNSTARTED                      = 5
             WINDOW                         = 6
             BAD_PAGEFORMAT_FOR_PRINT       = 7
             SPOOL_ERROR                    = 8
             CODEPAGE                       = 9
             OTHERS                         = 10
          IF SY-SUBRC <> 0.
        MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
                WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
          ENDIF.
    ENDIF.
    ENDAT.
      CALL FUNCTION 'WRITE_FORM'
           EXPORTING
             ELEMENT                        = 'DATA1'
            FUNCTION                       = 'SET'
             TYPE                           = 'BODY'
            WINDOW                         = 'MAIN'
          IMPORTING
            PENDING_LINES                  =
           EXCEPTIONS
             ELEMENT                        = 1
             FUNCTION                       = 2
             TYPE                           = 3
             UNOPENED                       = 4
             UNSTARTED                      = 5
             WINDOW                         = 6
             BAD_PAGEFORMAT_FOR_PRINT       = 7
             SPOOL_ERROR                    = 8
             CODEPAGE                       = 9
             OTHERS                         = 10
          IF SY-SUBRC <> 0.
        MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
                WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
          ENDIF.
    ELSE.
      SELECT CARRID CARRNAME
      FROM SCARR
      INTO TABLE T_SCARR.
      LOOP AT T_SCARR INTO SCARR.
      CALL FUNCTION 'WRITE_FORM'
           EXPORTING
             ELEMENT                        = 'PROTECT1'
            FUNCTION                       = 'SET'
            TYPE                           = 'BODY'
             WINDOW                         = 'WINDOW2'
          IMPORTING
            PENDING_LINES                  =
           EXCEPTIONS
             ELEMENT                        = 1
             FUNCTION                       = 2
             TYPE                           = 3
             UNOPENED                       = 4
             UNSTARTED                      = 5
             WINDOW                         = 6
             BAD_PAGEFORMAT_FOR_PRINT       = 7
             SPOOL_ERROR                    = 8
             CODEPAGE                       = 9
             OTHERS                         = 10
          IF SY-SUBRC <> 0.
        MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
                WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
          ENDIF.
         ENDLOOP.
    ENDIF.
    ENDLOOP.
    IF W_LINES NE W_TEMP.
      CALL FUNCTION 'WRITE_FORM'
       EXPORTING
         ELEMENT                        = 'LAST'
        FUNCTION                       = 'SET'
        TYPE                           = 'TOP'
        WINDOW                         = 'MAIN'
      IMPORTING
        PENDING_LINES                  =
      EXCEPTIONS
        ELEMENT                        = 1
        FUNCTION                       = 2
        TYPE                           = 3
        UNOPENED                       = 4
        UNSTARTED                      = 5
        WINDOW                         = 6
        BAD_PAGEFORMAT_FOR_PRINT       = 7
        SPOOL_ERROR                    = 8
        CODEPAGE                       = 9
        OTHERS                         = 10
      IF SY-SUBRC <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
            WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
      ENDIF.
    CALL FUNCTION 'CLOSE_FORM'
    IMPORTING
      RESULT                         =
      RDI_RESULT                     =
    TABLES
      OTFDATA                        =
    EXCEPTIONS
       UNOPENED                       = 1
       BAD_PAGEFORMAT_FOR_PRINT       = 2
       SEND_ERROR                     = 3
       SPOOL_ERROR                    = 4
       CODEPAGE                       = 5
       OTHERS                         = 6
    IF SY-SUBRC <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
            WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.
    to draw boxes on script the syntax will be
    Boxes, Lines, Shading: BOX, POSITION, SIZE
    Use the BOX, POSITION, and SIZE commands for drawing boxes, lines, and shading to print particular windows within a form or passages of text within a window in a frame or with shading.
    The SAP printer drivers that are based on page-oriented printers (the HP LaserJet driver HPL2, the Postscript driver POST, the Kyocera Prescribe driver PRES) employ these commands when printing. Line printers and page-oriented printers not supported in the standard ignore these commands. You can view the resulting printer output in the SAPscript print preview.
    Syntax:
    /: BOX [XPOS] [YPOS] [WIDTH] [HEIGHT] [FRAME] [INTENSITY]
    /: POSITION [XORIGIN] [YORIGIN] [WINDOW] [PAGE]
    /: SIZE [WIDTH] [HEIGHT] [WINDOW] [PAGE]
    BOX Command
    Syntax
    /: BOX [XPOS] [YPOS] [WIDTH] [HEIGHT] [FRAME] [INTENSITY]
    Effect: draws a box of the specified size at the specified position.
    Parameters: For each of XPOS, YPOS, WIDTH, HEIGHT, and FRAME, you must specify both a measurement and a unit of measurement. Specify the INTENSITY parameter as a percentage between 0 and 100.
    XPOS, YPOS
    Upper left corner of the box, relative to the values of the POSITION command.
    Default: Values specified in the POSITION command.
    The following calculation is performed internally to determine the absolute output position of a box on the page:
    X(abs) = XORIGIN + XPOS
    Y(abs) = YORIGIN + YPOS
    WIDTH
    Width of the box. Default: WIDTH value of the SIZE command.
    HEIGHT
    Height of the box. Default: HEIGHT value of the SIZE command.
    FRAME
    Thickness of frame.
    Default: 0 (no frame).
    INTENSITY
    Grayscale of box contents as %.
    Default: 100 (full black)
    Measurements: You must specify decimal numbers as literal values (like ABAP numeric constants) by enclosing them in inverted commas. Use the period as the decimal point character. See also the examples listed below.
    Units of measurement: The following units of measurement may be used:
    TW (twip)
    PT (point)
    IN (inch)
    MM (millimeter)
    CM (centimeter)
    LN (line)
    CH (character).
    The following conversion factors apply:
    1 TW = 1/20 PT
    1 PT = 1/72 IN
    1 IN = 2.54 CM
    1 CM = 10 MM
    1 CH = height of a character relative to the CPI specification in the form header
    1 LN = height of a line relative to the LPI specification in the form header
    /: BOX FRAME 10 TW
    Draws a frame around the current window with a frame thickness of 10 TW (= 0.5 PT).
    /: BOX INTENSITY 10
    Fills the window background with shading having a gray scale of 10 %.
    /: BOX HEIGHT 0 TW FRAME 10 TW
    Draws a horizontal line across the complete top edge of the window.
    /: BOX WIDTH 0 TW FRAME 10 TW
    Draws a vertical line along the complete height of the left hand edge of the window.
    /: BOX WIDTH '17.5' CM HEIGHT 1 CM FRAME 10 TW INTENSITY 15
    /: BOX WIDTH '17.5' CM HEIGHT '13.5' CM FRAME 10 TW
    /: BOX XPOS '10.0' CM WIDTH 0 TW HEIGHT '13.5' CM FRAME 10 TW
    /: BOX XPOS '13.5' CM WIDTH 0 TW HEIGHT '13.5' CM FRAME 10 TW
    Draws two rectangles and two lines to construct a table of three columns with a highlighted heading section.
    POSITION Command
    Syntax
    /: POSITION [XORIGIN] [YORIGIN] [WINDOW] [PAGE]
    Effect: Sets the origin for the coordinate system used by the XPOS and YPOS parameters of the BOX command. When a window is first started, the POSITION value is set to refer to the upper left corner of the window (default setting).
    Parameters: If a parameter value does not have a leading sign, then its value is interpreted as an absolute value, in other words, as a value that specifies an offset from the upper left corner of the output page. If a parameter value is specified with a leading sign, then the new value of the parameter is calculated relative to the old value. If one of the parameter specifications is missing, then no change is made to this parameter.
    XORIGIN, YORIGIN
    Origin of the coordinate system.
    WINDOW
    Sets the values for the left and upper edges to match those of the current window (default setting).
    PAGE
    Sets the values for the left and upper edges to match those of the current output page (XORIGIN = 0 cm, YORIGIN = 0 cm).
    /: POSITION WINDOW
    Sets the origin for the coordinate system to the upper left corner of the window.
    /: POSITION XORIGIN 2 CM YORIGIN '2.5 CM'
    Sets the origin for the coordinate system to a point 2 cm from the left edge and 2.5 cm from the upper edge of the output page.
    /: POSITION XORIGIN '-1.5' CM YORIGIN -1 CM
    Shifts the origin for the coordinates 1.5 cm to the left and 1 cm up.
    SIZE Command
    Syntax
    /: SIZE [WIDTH] [HEIGHT] [WINDOW] [PAGE]
    Effect: Sets the values of the WIDTH and HEIGHT parameters used in the BOX command. When a window is first started, the SIZE value is set to the same values as the window itself (default setting).
    Parameters: If one of the parameter specifications is missing, then no change is made to the current value of this parameter. If a parameter value does not have a leading sign, then its value is interpreted as an absolute value. If a parameter value is specified with a leading sign, then the new value of the parameter is calculated relative to the old value.
    WIDTH, HEIGHT
    Dimensions of the rectangle or line.
    WINDOW
    Sets the values for the width and height to the values of the current window (default setting).
    PAGE
    Sets the values for the width and height to the values of the current output page.
    /: SIZE WINDOW
    Sets WIDTH and HEIGHT to the current window dimensions.
    /: SIZE WIDTH '3.5' CM HEIGHT '7.6' CM
    Sets WIDTH to 3.5 cm and HEIGHT to 7.6 cm.
    /: POSITION WINDOW
    /: POSITION XORIGIN -20 TW YORIGIN -20 TW
    /: SIZE WIDTH +40 TW HEIGHT +40 TW
    /: BOX FRAME 10 TW
    A frame is added to the current window. The edges of the frame extend beyond the edges of the window itself, so as to avoid obscuring the leading and trailing text characters.

  • Here's how to use DYNAMIC tables for almost any structure (4.6C onwards)

    Hi guys
    I'm describing a  feature  here that has been around since 4.6C that is not really well known but can really simplfy programming where you need to get data into some sort of internal table and then display it either as a classical list or as al ALV grid.
    This feature is RTTI which allows you to retrieve your structure, build a dynamic FCAT (Field catalog) and a Dynamic table.
    Here's a really quick little program which reads 200 entries from VAPMA into a dynamic table. Any structure will work if you use the code sample shown.
    To pass it to an ALV GRID  is then really simple as you've already got the Field Catalog, Table and Data.
    The method I'm showing below will work for almost ANY structure you care to name whether or not the fields are in the data dictionary.
    I create a dynamic FCAT and dynamic table based on the FCAT and then populate it.
    You can create field catalogs dynamically quite simply by using the new RTTI facility available from 4.6C onwards.
    (From here it's only a small step to dynamic tables and EASY ALV grid displays)
    Example to create dynamic FCAT and table and populate it with 200 entries from VAPMA
    PROGRAM ZZ_BUILD_FLDCATALOG.
    tables: vapma.
    Define any structure
    types: begin of s_elements,
    vbeln type vapma-vbeln,
    posnr type vapma-posnr,
    matnr type vapma-matnr,
    kunnr type vapma-kunnr,
    werks type vapma-werks,
    vkorg type vapma-vkorg,
    vkbur type vapma-vkbur,
    status type c,
    end of s_elements.
    end of your structure
    data lr_rtti_struc type ref to cl_abap_structdescr .
    data:
    zog like line of lr_rtti_struc->components .
    data:
    zogt like table of zog,
    wa_it_fldcat type lvc_s_fcat,
    it_fldcat type lvc_t_fcat ,
    dy_line type ref to data,
    dy_table type ref to data.
    data: dref type ref to data.
    field-symbols: <fs> type any,
    <dyn_table> type standard table,
    <dyn_wa>.
    *now I want to build a field catalog
    *First get your data structure into a field symbol
    create data dref type s_elements.
    assign dref->* to <fs>.
    lr_rtti_struc ?= cl_abap_structdescr=>describe_by_data( <fs> ).
    zogt[] = lr_rtti_struc->components.
    Now build the field catalog.  zogt has the structure in it from RTTI.
    loop at zogt into zog.
    clear wa_it_fldcat.
    wa_it_fldcat-fieldname = zog-name .
    wa_it_fldcat-datatype = zog-type_kind.
    wa_it_fldcat-inttype = zog-type_kind.
    wa_it_fldcat-intlen = zog-length.
    wa_it_fldcat-decimals = zog-decimals.
    wa_it_fldcat-coltext = zog-name.
    wa_it_fldcat-lowercase = 'X'.
    append wa_it_fldcat to it_fldcat .
    endloop.
    Let's create a dynamic table and populate it
    call method cl_alv_table_create=>create_dynamic_table
    exporting
    it_fieldcatalog = it_fldcat
    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 vbeln posnr matnr kunnr werks vkorg vkbur
    up to 200 rows
    from vapma
    into corresponding fields of table <dyn_table>.
    from here you can pass your table to a GRID for display etc etc.
    Cheers
    Jimbo

    Thanks for the info.
    I went to their web site and also Googled.
    I found a great review on their photographer's books on nikonians.org
    They use an HP/Indigo Ultrastream 3000 digital offset press for all hardcover books, which is GREAT!
    I did sign up and requested the 45 day trial "photographer" account.
    I am curious if Shared Ink offers a size that matches the ONLY current book size from Aperture, the odd 8.5x11.
    In the above review, I saw that Shared Ink offers a 12x12 book.. very nice! Except you will need to design that one in CS2
    So then, all that Apple really needs to do is simply add the ability to select/create custom book sizes. Then we don't need a printing service from Apple, as there are plenty of options out there, and more arriving on the market each month!

  • Alternatives to dynamic tables for displaying dynamic data

    What methods are available for displaying data from MySQL
    with PHP on a web page? Is there any alternative to a dynamic table
    when the the quantity of data will vary? anything CSS based?
    Many Thanks

    On 27 May 2006 in macromedia.dreamweaver, Pingus mum wrote:
    > so i could just output to a div for example?
    Or a paragraph, or an <h4>, or an unordered list, or
    any other container
    tag, or the src attribute on an <img> tag, or any
    combination of the
    above. Consider the case where the database consists of press
    releases -
    date, headline, body. You could, say, make the repeat region
    like this:
    <h1>Press Releases</h1>
    <!-- start of repeat region -->
    <h2><& headlineFromDatabase &></h2>
    <p><& dateFromDatabase &> - <&
    bodyFromDatabase &></p>
    <!-- end of repeat region -->
    <address>Contact Information</address>
    Joe Makowiec
    http://makowiec.net/
    Email:
    http://makowiec.net/email.php

  • Where can I find Tables  for Infotype 24 (Skills) & 34 Subtype 3 (Awards)

    Hi I've been looking for these tables for almost a week.
    I'm trying to look for transparency tables of Infotype 24 and 34. I already have the structure HRPE-PROFQ of PA30. Here are my requirements.
    STRUCTURE: HRPE_PROFQ
    COMPONENT:COMPTYPE
    CLASS_TEXT : HRPDV_STEXT_QK : Name of Qualification Group
    TTEXT : STEXT
    PROFC_TEXT : PROFC_TEXT
    STRUCTURE: RP50M
    COMPONENT : COMPTYPE
    TEXT1 : ITXTZ
    TEXT2 : ITXTZ
    TEXT3 : ITXTZ

    Here's what I did>>>
    Get Skills
      DATA: BEGIN OF lt_skills OCCURS 0.
              INCLUDE STRUCTURE zhr_bapi_pd_skills.
      DATA: END OF lt_skills.
      LOOP AT lt_skills.
    Qualification Name                 - QID, QNAME
    READ TABLE lt_skills.
    IF lt_skills-qid IS NOT INITIAL.
        SELECT SINGLE x~objid
                        y~stext
                        x~adatanr
           INTO (lt_skills-qid,
                 lt_skills-qname,
                 lt_skills-adatanr)
          FROM HRP1001 as x JOIN HRP1000 as y
                 ON xobjid = yobjid
                 AND xotype = yotype
          WHERE y~langu = 'E'
            AND x~sobid = employee_no
            AND x~subty = 'B032'
            AND x~otype = 'Q'.
    Qualification Group                - QKID, CHARA
        IF lt_skills-qid IS NOT INITIAL.
          SELECT SINGLE x~objid
           INTO lt_skills-qkid
          FROM HRP1001 as x JOIN HRP1000 as y
                 ON xobjid = yobjid
                 AND xotype = yotype
         WHERE y~langu = 'E'
            AND x~sobid = lt_skills-qid
            AND y~otype = 'QK'.
    SCALE                         -  SCALE
          IF lt_skills-qkid IS NOT INITIAL.
            SELECT SINGLE scale
            INTO lt_skills-scale_id
            FROM HRP1033
            WHERE objid = lt_skills-qkid
              AND  otype = 'QK'.
    RATING                               - RATING
            IF lt_skills-scale_id IS NOT INITIAL.
              SELECT SINGLE chara
              INTO lt_skills-rating
              FROM HRPAD31
              WHERE adatanr = lt_skills-adatanr.
    PROFICIENCY                      - PROFICIENCY TXT
              IF lt_skills-rating IS NOT INITIAL.
                SELECT SINGLE pstext
                INTO lt_skills-pstext
                FROM T77TP
                WHERE scale_id = lt_skills-scale_id
                AND rating = lt_skills-rating.
                IF sy-subrc ne 0.
                  APPEND lt_skills.
                  CLEAR lt_skills.
                ENDIF.
              ENDIF.
            ENDIF.
          ENDIF.
        ENDIF.
    ENDIF.
      ENDLOOP.
    Move Internal Table to SKILLS
    skills[] = lt_skills[].

  • Table for infotype 2011

    Hi Experts,
    In which table data for infotype 2011 stored (Time Event)?
    Im looking that table PA2011, but table is empty.
    Thanks
    RR

    Hi,
    Check out table TEVEN.
    Clock in & out info is there.
    Regards,
    Dilek

  • How to Unlock a Locked Recoed for Infotype 2010..

    Dear Expert,
    How can I unlock a locked record from Infotype 2010. When I am using BDC how should I decide which record to select in PA30 once I have passed the date and Employee Number details on the screen.
    If on the same date if there are more than one record and if the first one is not locked then the BDC is locking them insted of unlocking it.
    Is there any function module which can help me. The Code I have used is as below.
    The field SPRPS is coming during recording but bdc gives error stating this field is not there on the screen so could not use this one as well..
    IF T_REPORT-INFOTYPE = '2010'.
              PERFORM BDC_DYNPRO USING 'SAPMP50A' '1000'.
              PERFORM BDC_FIELD  USING 'BDC_OKCODE' '=LIST'.
              PERFORM BDC_FIELD  USING 'RP50G-PERNR' T_REPORT-PERNR.
              PERFORM BDC_FIELD  USING 'RP50G-TIMR6' 'X'.
              PERFORM BDC_FIELD  USING 'RP50G-BEGDA' TEMP_BEGDA.
              PERFORM BDC_FIELD  USING 'RP50G-ENDDA' TEMP_BEGDA.
              PERFORM BDC_FIELD  USING 'RP50G-CHOIC' '2010'.
              PERFORM BDC_FIELD  USING 'RP50G-SUBTY' T_REPORT-LGART.
             PERFORM BDC_FIELD  USING 'P50G-SPRPS' 'X'.
              PERFORM BDC_DYNPRO USING 'MP200000' '3450'.
              PERFORM BDC_FIELD  USING 'BDC_CURSOR' 'P2010-BEGDA(01)'.
              PERFORM BDC_FIELD  USING 'BDC_OKCODE' '=EDQ'.
              PERFORM BDC_FIELD  USING 'RP50M-BEGDA' TEMP_BEGDA.
              PERFORM BDC_FIELD  USING 'RP50M-ENDDA' TEMP_BEGDA.
              PERFORM BDC_FIELD  USING 'RP50M-PAGEA' ' 1'.
              PERFORM BDC_FIELD  USING 'RP50M-SELE2(01)' 'X'.
              PERFORM BDC_DYNPRO USING 'MP200000' '2450'.
              PERFORM BDC_FIELD  USING 'BDC_OKCODE' '/00'.
              PERFORM BDC_DYNPRO USING 'MP200000' '2450'.
              PERFORM BDC_FIELD  USING 'BDC_CURSOR' 'P2010-LGART'.
              PERFORM BDC_FIELD  USING 'BDC_OKCODE' 'UPD'.
    Unlock the Details to the R/3 using Tcode PA30.
              CALL TRANSACTION 'PA30' USING BDCDATA MODE 'P' MESSAGES INTO MESSTAB.
    Regards,
    Vidya..

    first of all, use a BAPI instead of BDC.. HR_MAINTAIN_MASTERDATA
    you may have to do some up-front logic to determine which records to unlock, if necessary.
    EDIT: that is a FM, not BAPI.
    Edited by: robert phelan on Mar 16, 2009 8:57 PM

  • Domain Digital Signature for InfoPath 2010 browser enabled Form

    We have developed InfoPath 2010 browser enabled Form and added sections to be signed. The form is full Trust form and admin published to the server. I need to know if it is possible to use a Digital certificate from our organization to sign it this form.
    We cannot Install ActiveX on the clients machines. This is DOD.
    Ebenezer

    Hi,
    Please check this
    http://blogs.msdn.com/b/infopath/archive/2010/02/18/digital-signature-support-in-infopath-2010.aspx
    http://social.technet.microsoft.com/Forums/sharepoint/en-US/ff61da19-5ee1-425c-88f6-46732166cf14/does-infopath-2013-support-digital-signature-in-the-browser-based-form?forum=sharepointcustomization
    Please remember to click 'Mark as Answer' on the answer if it helps you

  • Dynamic Tables will not push rest of form down

    Hi,
    I have created a dynamic form with the following layout
    SubForm1
    button(addrow)
    Table1
    Table Header
    Table Row (grows when new button is added)
    SubForm2
    button(addrow)
    Table2
    Table Header
    Table Row (grows when new button is added)
    SubForm3
    button(addrow)
    Table3
    Table Header
    Table Row (grows when new button is added)
    All three as seen above are created identically but subform2 is the only one that pushes the form down when another row is added. The other two tables (subform1 and 3) simply generate the row over top of whatever is there (ie. rows from table 1 would overlap table2 if you keep clicking add).
    Thanks in advance for the help

    Wrap all the parts of the form that you want positioned into subforms and make sure the subform content is set to positioned. After that set your Page1 as content as flowed.

  • Cost center (KOSTL) is not updating in HR master table for infotype 0001

    Hi ABAP gurus,
    We have one interface where we are posting the HR master data using the IDOC (IDOC_INPUT_HRMD) into SAP.
    While updating cost center, We have one issue regarding infotype 0001.
    It is working fine for all the fields except: KOSTL, ORGEH, STELL.  Surprisingly the created IDOC contains the value in these fields but it is not getting updated in master table PA0001. I have tryied inserting the value manually and it is working fine and tried with BDC Programming and no issues. Only we have this issue while we want to use the IDOC. This is mandatory in our interface.
    While debugging the IDOC function module I found that one condition is there for these three fields.
    CHECK NOT inte IS INITIAL. where inte value is being fetched from table t77s0 based on
    GRPID = PLOGI
    SEMID = ORGA
    In this condition I see no value for this combination and hence it is not getting further. I am not sure how this condition does exist for only these three fields and not for others.
    Can any please provide the reasona and solution for this.
    Appreciate the help in advance.
    Thanks,
    Jitender

    Dear Mohan,
    Try assigning your cost center to position it will default both your org unit and cost center.
    Cheers!

  • Dynamic table for popup_menu

    I'm trying to attach some dynamic information to a popup_menu (pulldown) object in the export dialog.
    I'm retrieving the data through an asynchronous task such as:
    SYPNEventResults = '';
    local LrDialogs = import "LrDialogs"
    local LrHttp = import "LrHttp"
    import "LrTasks".startAsyncTask( function()    
        SYPNEventResults, hdrs = LrHttp.get( "http://dev.seeyourphotos.net/cgi-bin/lightroom-event-list.cgi?photographer_id=20060207")
    end )
    This does succcessfully query the server and place a chunk of values in the SYPNEventResults variable like this:
    { title = "Lab Event", value = "Lab Event" },
    { title = "Karsten", value = "Karsten" },
    When I try to use this to populate the contents of the pulldown object (below), what is shown is all of the
    values as one long string rather than a list of events to choose from.  I'm presuming I'm missing a setp to
    bind this somehow differently.
    viewFactory:popup_menu {
            items = {
                SYPNEventResults
           value = LrView.bind('eventname2'),
           width_in_chars = 40,
    In summary, I'm trying to popuulate a custom dialog pulldown where the user selects from an event list retrieved from the server where that value can in turn be used in other parts of the dialog/ftp upload.
    I'm new to Lightroom, so please take that into account in your answer.
    Thanks in advance for any help.

    I've never used dynamically changing popup items variable before, and I'm not sure it will work(?)
    But, if it's displaying a long string, it does not sound like 'items' is being assigned a proper table yet.
    I don't know what you mean by a  "chunk" of values. I assume you mean table.
    In any case, if SYPNEventResults[1].title is a string, then SYPNEventResults[1].value can be any legal lua type.
    Likewise for SYPNEventResults[2], SYPNEventResults[3], ...
    If you can index/display the title with this syntax, e.g. LrDialogs.message( SYPNEventResults[1].title ), then the popup should be initialized thusly:
    viewFactory:popup_menu {
           items = SYPNEventResults,
           value = LrView.bind('eventname2'),
           width_in_chars = 40,
    if a function is returning multiple values, then to get it into a table "array", do this:
    local tableArray = { myTableArrayFunc( myTableArrayParameters ) }
    Does this help?
    Rob

  • HFM tables for WDEF (Web Data Entry Form)

    Hi all,
    is there a way for understanding which tables are used by the HFM for storing the member selections of the WDEF (Web Data Entry Form)?
    I was able to find only the table <application>_RPTS which contains the list of reports and folders I creted into the application.
    Now, I would like to retreive the tables where the info related to the member selections are stored.
    Can someone help me on this topic?
    Thanks in advance
    Christian

    Payous999 wrote:
    Dear All,
    I have created simple Web Data Entry Form in Planning 11.1.2 and not able to load the data through it (cells are read only)
    1. I have selected all the base level members for all the dimensions
    2. In Scenario version selection of Start Year End Year as well as Start Period and End Period is OK
    3. It is Bottom up version
    4. Is Evaluation Order any issue?
    5. Few days back while refreshing the database I receive the error 1060051 toi resolve that we need to delete the duplicate members from Oracle Table. We also deleted Essbase database and recreated the same
    Thanks
    PayousAre you logging in as admin, are they definitely all stored/never share level 0 members, is it a currency application.
    Evaluation Order should not be an issue.
    Point 5 is a little worrying, what did you do to resolve the issue? does it refresh without any issues now?
    Cheers
    John
    http://john-goodwin.blogspot.com/

  • How to create table for XML schema-based Interface form

    Hi All,
    With tcode SFP to crate  a XML schema-based Interface form, how to create a defined table can be listed in "Data View"?
    Just like APAP Dictonary- Based Interface form, that we can drag  a defined table from data view to the panel.

    Hi,
    Just follow these steps:
    1. Create interactive form UI element in your view.
    2. Now provide Datasource and PDFSOURCE to it in form properties.
    3. Now give a template name prefix with 'Z' or 'Y'.
    4. Double click on it. It will prompt for interface name.
    5. Provide interface name prefixed with 'Z' or 'Y'.
    6. Click on Context button in the Pop up window and provide the node you have selected as DATASOURCE.
    7. Click ok and it will open the form designer.
    8. In this way you can create a XML Schema based Form.
    9. Activate the interface and design the form providing layout type and other details.
    Hope it will help.
    Regards,
    Vaibhav

  • BADI, User Exit or Dynamic Action for Infotype 24

    Hello,
    in PA30, our HR admin team want me to write an Infotype 19 record when a user amends or creates an Infotype 24 record.
    I spent all day yesterday trying to find a solution to this.
    Can anyone please tell me:
    1) Do dynamic actions work for IT0024? - our HR admin suggest that they don't as there is no 'subtype'.
    2) Should user exit PBAS0001 (function EXIT_SAPFP50M_002) work for IT0024? I have tried putting in a test display which should appear on save of IT0024 and this does not appear to work.
    3) Will BADI HRPAD00INFTY work? If so, does anyone have an example of code that tests the 'old' IT0024 record before modification - the documentation does not help too much with a good example. I'm planning to use this as a last resort due to the need for an access key.
    Many thanks in advance,
    Keiron.

    The BADI is probably the best way to go.  You should not need an access key - you do not put your code in the BADI, but instead create an implementation of it in a Z name range.  Go to SE18 for the BADI and display it, and select menu option implementation--->create.  Give a Z name and then you will have a place to put your code.  You can double click on the methods shown in your implementation to get to the ABAP code editor.
    Exit PBAS0001 should also work - put a breakpoint in it to see if it is called.
    Both the BADI and Exit are called at almost the same point in the SAP PA30 code - however the BADI is called in some cases when the exit is not.  It is outside an additional IF test in the SAP code.
    Andrew

Maybe you are looking for