Table control in Custom infotype 9008

Hi,
I need to create a custom infotype with table control in it.
Normally after going to PM01 and genetete it will display all the field as individual field.
Here i need to use 4 of those field into table control format.
Is ther any special process to create table control in custom infotypes??
Thanks in advance,
Satyadev

Hi Satyadev,
I dont have a solution for your problem, but am curious about the intent of what you are trying to do .... the purpose of the table control is to store multiple records, so if a user enters multiple records for the four fields, how are you planning to store it in the Database (PA9nnn) table considering the key would be unique .... Unless you have defined 4*X times the number of columns in your P9nnn strcutre and hence need X number of rows in table control?
Just trying to bring up a question - so that it might help realize a solution or prospective future problem!
Cheers,
Aditya

Similar Messages

  • Dynamic tabstrips and table control in custom infotype

    Dear Experts,
    I have a requirement to create a custom infotype using tabstrips and table control. The tabstripes should also be dynamically populated. For example we have infty 8(Basic pay) used table control and 24(Qualifications) for tabstripes.
    Could you please tell me how to do this. Please do the needful ASAP.
    Thanks,
    Chaitanya.
    Moderator message - Please don't just post your requirements and ask the forum to do your work for you...especially ASAP - Thread locked
    Edited by: Rob Burbank on Oct 7, 2009 4:16 PM

    Hi Partha,
    Pls check the threads:
    Best way to store a table control into an infotype
    Re: Custom Infotype with table control - Overview/List  Screen
    Dilek

  • Table Control in Custom Infotype

    Hi Everyone,
    I have created a custom infotype 9200 where i have four field bunching (zband01, zgrade01, zcurrp01, zrmrks01, zbandp02...upto 10 repeations) in PS9200 structure. I have created another structure ZQ9200 with just the above four fields in the structure. This structure field names are assigned to the table control layout fields in the module pool.
    I created another internal table and workarea with the same four field structure in the program. In PAI, in the 'loop with control TC', i am populating the internal table first. Then after the loop ends, i am loopinf the internal table and populating the P9200 structure.
    Problem here is in pa30, if i want to create a record to IT 9200, i am entering the values in the table control but could not hold the values after I press the 'Enter' button.
    PLease do help me.

    Hi
    It would be something like this
    PROCESS BEFORE OUTPUT.
    *         general infotype-independent operations
      MODULE before_output.
      CALL SUBSCREEN subscreen_empl   INCLUDING empl_prog empl_dynnr.
      CALL SUBSCREEN subscreen_header INCLUDING header_prog header_dynnr.
    *         infotype specific operations
      MODULE p9991.
      LOOP AT g_tabla WITH CONTROL g_d_tc INTO g_wa.
        MODULE pbo_tc.
      ENDLOOP.
    ************+
    PROCESS AFTER INPUT.
    *  process exit commands
      MODULE exit AT EXIT-COMMAND.
    *         processing after input
    *         check and mark if there was any input: all fields that
    *         accept input HAVE TO BE listed here
      CHAIN.
        FIELD p9991-begda.
        FIELD p9991-endda.
        MODULE input_status ON CHAIN-REQUEST.
      ENDCHAIN.
    *      process functioncodes before input-checks                      *
      MODULE pre_input_checks.
    *         input-checks:                                               *
      LOOP.
        MODULE pai_tc.
      ENDLOOP.
    *   insert check modules here:
    *&      Module  PBO_TC  OUTPUT
    *       text
    module PBO_TC output.
      MOVE-CORRESPONDING G_WA TO ZQ9991.
    endmodule.                 " PBO_TC  OUTPUT
    *&      Module  PAI_TC  INPUT
    *       text
    MODULE pai_tc INPUT.
      MOVE-CORRESPONDING zq9991 TO g_wa.
      PERFORM tc_update TABLES g_tabla
                          USING  g_wa
                           g_d_tc-current_line.
    ENDMODULE.                 " PAI_TC  INPUT
    *&      Form  TC_UPDATE
    *       text
    *      -->P_G_TABLA  text
    *      -->P_G_WA  text
    *      -->P_G_D_TC_CURRENT_LINE  text
    FORM tc_update  TABLES   p_tabla
                             USING    value(p_datos)
                                      value(p_linea).
      READ TABLE p_tabla
               TRANSPORTING NO FIELDS
               INDEX p_linea.
      IF sy-subrc = 0.
        MODIFY p_tabla FROM p_datos INDEX p_linea.
      ELSE.
        APPEND p_datos TO p_tabla.
      ENDIF.
    ENDFORM.                    " TC_UPDATE

  • Table control in custom infotypes

    Hi,
    I have a requirement to add table control in a custom defined infotype. The fields include two date fields, one icon field, number and name fields. I also need to populate my icon field with three different icons according to the modification in the records of the table control fields.
    Please suggest regarding adding icons as a field of the table control and any suggestions about this are welcome.
    Thanks in advance,
    Saipriya

    Hi,
    I tried out as u said but am gettin a run time error. I had created a tablecontrol and a field by the name of icon1. when i call the function module icon_create am getting a runtime error. please help me.
    This is my coding.
    tables: icon.
    DATA :  icon_name(20) TYPE c,
          icon_text(10) TYPE c.
    DATA : flag TYPE i.
    DATA : icon1 TYPE icon_text.
    in flow logic,
    PROCESS BEFORE OUTPUT.
    MODULE STATUS_0100.
    LOOP AT WI_TABLE1 WITH CONTROL TABLE1.
        ENDLOOP.
    PROCESS AFTER INPUT.
    MODULE USER_COMMAND_0100.
    LOOP AT WI_TABLE1.
        ENDLOOP.
    module icon_pai.
    module icon_pai input.
    if flag = 1.
    icon_name = 'ICON_GREEN_LIGHT'.
          icon_text =  'green'.
    CALL FUNCTION 'ICON_CREATE'
      EXPORTING
        name                        = icon_name
      TEXT                        = icon_text
      INFO                        = 'Status'
       ADD_STDINF                  = 'X'
    IMPORTING
       RESULT                      = icon1
    EXCEPTIONS
       ICON_NOT_FOUND              = 1
       OUTPUTFIELD_TOO_SHORT       = 2
       OTHERS                      = 3
    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.
    endmodule.                 " icon_pai  INPUT
    Please help me out....

  • Problem displaying 4 decimals amount in table control of custom infotype

    Hi friends,
    i have created a custom infotype 9404. In that i have a amount field ZBASERATE(of type CURR 13, 4 decimals).
    When am trying to fill the ZBASERATE with ZOLDRATE(of type CURR 13, 2 decimals).
    For example,
    ZOLDRATE = 25.68
    And am trying to push 25.68 into ZBASERATE, so in my PA9404 table, in the field  PA9404-ZBASERATE value is stored as 25.6800 which is as required and correct.
    But When i go to tcode PA30 and tried to see this value ZBASERATE. It is displaying as 2568.00 instead of 25.6800.
    Which is incorrect.
    Kindly help me with your valuable suggestions.
    Regards
    Anji Reddy

    Solved,Thanks

  • Table type not defined for table control "T_CONTROL" (Custom table)

    Hi All,
    I m facing a problem in ITS mobile service.
    The Table control designed by me in R/3 (Module pool program) is
    not getting displayed in ITS mobile page.
    It is giving me an error "Table type not defined for table control "T_CONTROL" (Custom table) ".
    Can you please let me how this issue can be resolved.
    With Regards,
    Mahesh

    CONTROLS: table_ctr TYPE TABLEVIEW USING SCREEN '0010'.
    try using this....
    Regards
    Vasu

  • Hiding table fields in custom infotype

    HI guyz,
    i have created a custom infotype which has 2 subtypes . certain fields should not be displayed when we select the subtypes. i have used the code below. the screen contains a table.
    MODULE hide_FIELDS OUTPUT.
    IF p9555-subty = '1'.
    LOOP AT SCREEN.
    IF screen-group2 = 'ABC'.
    screen-active = 0.
    MODIFY SCREEN.
    ENDIF.
    ENDLOOP.
    ENDIF.
    IF p9555-subty = '2'.
    LOOP AT SCREEN.
    IF screen-group2 = 'XYZ'.
    screen-active = 0.
    MODIFY SCREEN.
    ENDIF.
    ENDLOOP.
    ENDIF.
    ENDMODULE. " hide_FIELDS OUTPUT
    the fields which are not in the table are not getting displayed as required but the fields in the table still appear on the screen(they are grayed out). i do not want them to appear on the screen. can anyone help me with this. Thanks in advance.

    Hi Madhu Reddy , instead of using screen-invisible = '1' , u can try this .
    MODULE sereen_modify OUTPUT.
    DATA:  COL TYPE CXTAB_COLUMN.
    LOOP AT TC-COLS into COL.      " TC is ur Table Control
      IF col-screen-group1 EQ '007'.     " Modification group1 is say 007.Also u can add other              checks like pnnnn-subty = 1 here .
       col-invisible = '1'.
       col-screen-output = '0'.
       modify TC-COLS from COL index COL-INDEX.
         ENDIF.
    ENDLOOP.
    ENDMODULE.                           " Call this module in ur Flow Loic PBO.
    *Reward Points If Helpful

  • Reg:Table Control in Custom Screen

    Hi All,
    I am having a requirement of adding a custom screen in vendor master,interms of adding field i done it successfully by using BADI's,but now i added a table control in the custom screen,now whenever am trying to create a new vendor its showing vendor successfully created for the company code,but if i try to open any transaction after that am getting an error like "Express document "Update was terminated" received from author "Reference User Development"" , and if i go for transcation code XK03 if i try to open the particular vendor its showing error "Vendor has not been created".
    Regards
    Arpitam

    Hi Suchithra,
    For each and every fields in the screen will have by default properties as Group number which Group1 and Group3 but when u create a table control manually you might have forgot to maintain the the Group number details because of which it is showing in display rather in change.
    Please maintain the Group details in screen field properties and check. I think it will work.
    Regards,
    Aditya.

  • Problem in Tabstrip Control in Custom Infotype Creation

    Hi All,
    Can any body tell me how to process with Tabstrip Control in an Custom Infotype.
    Iam creating Customizing Infotype With Tabstip Control.The Tabstrip Control have 2tabs.Each tab have Custom some fields.
    But iam not able activating the sample Tabstrip control.
    Can u tell me how to approach to create this in Modulepool programming for my Custom Infotype.
    Points wil be rewarded.
    Thanks,
    N.L.Narayana

    Hello Swapna,
    Thanks for your reply.
    This is my code for tabstrip control.
    AT SELECTION-SCREEN.
    CASE SSCRFIELDS-UCOMM.
       WHEN 'BOOK'.
         tabb1-prog = 'ZAXOMM005_V1'.
         tabb1-dynnr = 1.
         tabb1-activetab = 'TABS1'.
         option = '1'.
       WHEN 'SUMM'.
         tabb1-prog = 'ZAXOMM005_V1'.
         tabb1-dynnr = 2.
         tabb1-activetab = 'TABS2'.
         option = '2'.
       WHEN 'POST'.
         tabb1-prog = 'ZAXOMM005_V1'.
         tabb1-dynnr = 3.
         tabb1-activetab = 'TABS3'.
         option ='3'.
    *CH01 start
       WHEN 'RSET'.
         tabb1-prog = 'ZAXOMM005_V1'.
         tabb1-dynnr = 4.
         tabb1-activetab = 'TABS4'.
         option = '4'.
    ENDCASE.
    case option.
      when '1'.
    IF  SSCRFIELDS-UCOMM = 'ONLI'.
       if p1_werks is initial or p1_lgort is initial or
          p1_bstar is initial or p1_gjahr is initial.
         message e000(vz) with text-001.
       endif.
    ENDIF.
      when '2'.
    IF  SSCRFIELDS-UCOMM = 'ONLI'.
       if p2_gjahr is initial.
         message e000(vz) with text-005.
       endif.
    ENDIF.
      when '3'.
    IF  SSCRFIELDS-UCOMM = 'ONLI'.
       if p3_gjahr is initial.
         message e000(vz) with text-005.
       endif.
        ENDIF.
    *CH01 start
      when '4'.
    IF  SSCRFIELDS-UCOMM = 'ONLI'.
      if s4_werks is initial or p4_gjahr is initial.
         message e000(vz) with text-001.
      endif.
      if p4_book is initial and
         p4_summ is initial.
         message e000(vz) with text-022.
      endif.
       ENDIF.
    endcase.
    I can give you some more information.
    If I execute from program it is working fine, if I execute from T.code it is not working properly.
    Regards.
    Krishna.

  • Finding the empty field in table control of the infotype 8

    Hi to all experts,
    MY requirement is to populate a wage type and its value for infotype 8 after some calculations . i have to append the values  to the list box of basic pay at the last . but im facing problem how to determine dynamically which row will be empty and append it to that row. I have written this  code ........... unable to proceed forward.
    data: val type i.
       DO 40 TIMES VARYING <fs_wages>-lgart FROM i0008-lga01 NEXT i0008-lga02
                         VARYING <fs_wages>-betrg FROM i0008-bet01 NEXT i0008-bet02.
       IF  <fs_wages>-lgart IS  INITIAL.
         CONCATENATE '0' sy-index  INTO val.
         i0008-lga04 = '2108'.
         i0008-bet04 = w_tot.
       ENDIF.

    >
    mohammed  abdul hai wrote:
    > Hi to all experts,
    > MY requirement is to populate a wage type and its value for infotype 8 after some calculations . i have to append the values  to the list box of basic pay at the last . but im facing problem how to determine dynamically which row will be empty and append it to that row. I have written this  code ........... unable to proceed forward.
    >

    data: val type i.
    >
    >    DO 40 TIMES VARYING <fs_wages>-lgart FROM i0008-lga01 NEXT i0008-lga02
    >                      VARYING <fs_wages>-betrg FROM i0008-bet01 NEXT i0008-bet02.
    >
    >    IF  <fs_wages>-lgart IS  INITIAL.
    >      CONCATENATE '0' sy-index  INTO val.
    >      i0008-lga04 = '2108'.
    >      i0008-bet04 = w_tot.
    >    ENDIF.
        IF  <fs_wages>-lgart IS  INITIAL.
    *      CONCATENATE '0' sy-index  INTO val.
          <fs_wages>-lgart = '2108'.
          <fs_wages>-betrg = w_tot.
        ENDIF.
    At the enddo statement, these values will be written back, see online help:
    If the processing block is not exited within the loop, the content of the variable dobj at the end of the loop run is assigned to the previously assigned data object dobj1 or dobj2 without conversion.

  • Similar to VA01 Item Data ,based on one field selection,other fields get populated in Table control for Custom table. How Do I do that. Plz suggest

    I\
    Moderator message : Search for available information, discussion locked.
    Message was edited by: Vinod Kumar

    Hi,
    You need to create table events to do so.
    Refer blog
    http://wiki.sdn.sap.com/wiki/display/ABAP/TABLE+MAINTENANCE+GENERATOR+and+ITS+EVENTS

  • Urgent!!!!!  Inserting data in table control of infotype.

    Hi Experts,
    I want to insert data in custom infotype.I am using FM HR_INFOTYPE_OPERATION for this purpose.But custom infotype contains a table control.
    Table control of infotype has 20 rows containing  fields name01 , addr01 upto name20 , addr20.
    How do i insert data in table control fields of infotype if i want to use FM HR_INFOTYPE_OPERATION .
    Pls suggest if there is another way to do it.
    Thanks.

    Thanks for your reply.
    I am Calling FM HR_INFOTYPE_OPERATION in a loop of a table.
    Table contains multiple employee numbers-PERNR.There can be all different PERNR or some records of same PERNR.
    Suppose if there are four records in the table.First two records are of the same PERNR.Then how would name01 or name02 will be assigned.
    Now, third record is  of new PERNR .Again it should be name01.
    So the question is how everytime in a loop i will assign nameNN for different PERNR.
    nameNN and addrNN was an example. I am sending my code here.
    Loop at it_data.
    gs_9000-PERNR = it_data-pernr..
    gs_9000-currentamount03 = it_data-curramt.
    gs_9000-mtdamount03 = it_data-mtd.
    gs_9000-qtdamount03 = it_data-qtd.
    gs_9000-ytdamount03 = it_data-ytd.
    gs_9000-roll12amount03 = it_data-roll.
    CALL FUNCTION 'BAPI_EMPLOYEE_ENQUEUE'
    EXPORTING
    NUMBER = gs_9000-pernr
    IMPORTING
    RETURN = RETURNE.
    CALL FUNCTION 'HR_INFOTYPE_OPERATION'
    EXPORTING
    INFTY = '9000'
    NUMBER = gs_9000-PERNR
    VALIDITYBEGIN = '20080801' 
    RECORD = gs_9000
    OPERATION = 'INS'
    TCLAS = 'A'
    DIALOG_MODE = '0'
    IMPORTING
    RETURN = RETURN
    KEY = KEY.
    IF RETURN IS NOT INITIAL.
    WRITE :/ 'Error Occurred'.
    ENDIF.
    CALL FUNCTION 'BAPI_EMPLOYEE_DEQUEUE'
    EXPORTING
    NUMBER = gs_9000-PERNR
    endloop.
    So in above code...
    gs_9000-currentamount03 = it_data-curramt.
    gs_9000-mtdamount03 = it_data-mtd.
    gs_9000-qtdamount03 = it_data-qtd.
    gs_9000-ytdamount03 = it_data-ytd.
    gs_9000-roll12amount03 = it_data-roll.
    these are table control fields , so how i wud i assign for
    gs_9000-currentamount04 = it_data-curramt.
    gs_9000-mtdamount04 = it_data-mtd.
    gs_9000-qtdamount04 = it_data-qtd.
    gs_9000-ytdamount04 = it_data-ytd.
    gs_9000-roll12amount04 = it_data-roll.
    in loop of a table.
    Thanks

  • Custom infotype - issues with conversion class - making fields display only

    Hi,
    I created the custom infotype 9008 using t-code PM01, created conversion class ZCL_HRPA_UI_CONVERT_9008_XX and assigned it to screen structure ZHCMT_BSP_PA_XX_R9008 in the view V_T588UICONVCLAS. Coded the methods IF_HRPA_UI_CONVERT_STANDARDOUTPUT_CONVERSION and IF_HRPA_UI_CONVERT_STANDARDINPUT_CONVERSION. I'm trying to make some fields display only within the method OUTPUT_CONVERSION dynamically. Coded the check class ZCL_HRPA_INFOTYPE_9008 with business logic.
    Everything seems to be working fine when I test using the test tool through t-code PUIT_UI.
    When I try to create/modify 9008 record through PA30, the code in the methods OUTPUT_CONVERSION  and INPUT_CONVERSION is never getting executed. The control is not coming there at all. The fields are allowing input. Any idea why this is happening.
    We are on ECC 6.0 and at service pack level SAPKE60035. Couldn't find any relevant SAP notes as well.  Appreciate your help in this regard.
    Thanks,
    Kumar.

    Hi Venkata,
    Check this document.
    This explains about custom infotype creation.
    https://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/60a7586d-edd9-2910-68a8-8204303835a1?overridelayout=true
    regards,
    Brinda L

  • Error while trying to change the Column description in Table Control

    Hi,
    I have created a table control using the wizard in Module Pool.
    When i try to change the column description of the table control or adjust any other element which is already available on the screen and not in table control. It gives me an error
    Unable to transfer data. End Program?
    Any help would be appreciated.
    Thanks
    Sarves S V K

    Hi.,
    Check these  [Table Control Change Column Description|Add new columns in table control in custom screen program;
    and  [Add Columns in Table Control|Re: Table control columns]
    else  delete and create Table control Again..!!
    hope this helps u.,
    Thanks & Regards,
    Kiran

  • How to display icon status in table control

    hi, i trying to display icon in table control its not displaying
    i given below statment.
    DATA: BEGIN OF WA_MARA,
            ICON1(4) TYPE C,
             END OF WA_MARA.
         INCLUDE <list>.
    MOVE ICON_GREEN_LIGHT TO IT_MARA-ICON1.
    APPEND IT_MARA..
    when i debugging it display green icon but after run the program its display ' @08@ '   in table control.
    how to display green icon in table control help me.

    Hi,
    check the link:
    Table control in custom infotypes

Maybe you are looking for

  • Grouping compilations no longer works after adding artwork..!

    Until yesterday I had never bothered with adding artwork to my itunes library as I had a gen 3 iPod that would not show it anyway. I have a new ipod so last night I decided to add artwork, this I did by getting what I could from Gracenote, the rest I

  • Minimized messages do not appear under the Window menu

    If I minimize a few messages (yellow button) in Mail, then quit Mail and reopen Mail, the minimized messages don't appear under the Window menu. The only way to retrieve them is to go into Expose one at a time and click on them. This seems like a bug

  • Parsing xml with entity definitions inside it

    Hello All, I am trying to parse an xml file using DOM parser which has entities defined inside it for eg: <!ENTITY sample SYSTEM "sample_data" NDATA sample_ndata > and we are referring to the sample in some tag as value for attribute. When we try to

  • Function module SPELL_AMOUNT

    Hi All,        I am using this function module "SPELL_AMOUNT". But this function module works with the customized tables and it gives amount into Millons and billons but i want in crores. I am not getting how to configure because there is difference

  • Syncing iPod to Selected Playlists: How to collapse the tree

    My iTunes library is much larger than my 60GB iPod, so I have two ways to pare things down when I download to the pod. 1) I can uncheck things in playlists that I don't wish to load on my iPod. This is what I do. 2) I can check the "Selected Playlist