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

Similar Messages

  • Adding new fields in Custom Infotype

    Hi,
    I need to change some fields of Custom Infotype. But project is already gone live for 1 country. will making changes to infotype affect for existing live country?
    Safe side....We are thinking Adding new fields in Custom Infotype. & displaying corresponding fields for countries in another tab
    & hiding the old tab.
    Please let me know procedure for  Adding new fields in Custom Infotype for displaying in new tab.
    Edited by: Sachin Thigale on Aug 23, 2010 7:04 PM
    Edited by: Sachin Thigale on Aug 23, 2010 7:05 PM

    Please search. Lot of Threads on this.
    Follow these steps.
    Go to Transaction PM01.
    2) Enter the custom Infotype number which you want to create (Should be a 4 digit number, start with 9).
    3) Select the u2018Employee Infotypeu2019 radio button.
    4) Select the u2018PS Structure Infotypeu2019.
    5) Click on Createu2026 A separate table maintenance window appearsu2026
    6) Create a PS structure with all the fields you want on the Infotype
    7) Save and Activate the PS structure
    8) Go back to the initial screen of PM01.
    9) Click on u2018Allu2019 push button. It takes a few moments.
    10) Click on u2018Technical Characteristicsu2019. Infotype list screen appears
    11) Click on u2018Changeu2019(pencil) button
    12) Select your Infotype and click on u2018Detailu2019 (magnifying glass) button
    13) Give u2018T591Au2019 as subtype table
    14) Give u2018T591Su2019 as subtype txt tab
    15) Give your subtype field as subtype field
    16) Save and come back to PM01 initial screen
    17) Click on u2018Infotype Characteristicsu2019 u2026 Infotype list screen appears
    18) Click on u2018Changeu2019 (pencil) button
    19) Click on u2018New Entriesu2019
    20) Enter your Infotype number and short text
    21) Here we have to set different Infotype Characteristics as per the requirement. (Better open another session with some standard Infotypeu2019s infotype characteristics screen and use as the reference to fill yours)
    22) Save your entries.
    23) Now the Infotype is created and ready to use.
    24) If you want to change the layout of the Infotype as per your requirementu2026
    25) In the PM01 initial screenu2026Select u2018Screenu2019 radio button and give 2000 as the screen name, then click on edit.
    26) In the next screen.. Select u2018Layout Editoru2019 and click u2018Changeu2019.
    27) Screen default layout appearsu2026here you can design/modify the screen..change the attributes of the fields..etc.
    28) Save and activate. (Donu2019t forget to u2018Activate at every level
    i think u have to select CI_INCLUDE while enhanceing the Standrad Infotype
    The above details are from the following link
    Re: How to add fields in custom infotype and update its screens

  • 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

  • Adding field from Custom Infotype in Screen Header-PA30

    Hi all,
    Can we add the fields from custom infotype to the screen header in PA30? When I tried through Change Screen Modifications, I could not see the custom infotype in the Infotype column, so I could not select the required field.
    Please guide.
    Thanks in advance.

    Hi,
    When you take a drop down from the infotype column, you will see a window with infotypes. By default, it is restricted to 500 entries. To change that, click on the narrow bar under u201Crestrictionsu201D (has a downward arrow) and change the maximum number of hits to 999. You will then get all the infotypes including the custom ones.
    Hope this helps.
    Donnie

  • Showing fields of Custom infotype in standard infotype screen

    Hi Experts
      I have created a custom infotype 9xxx. Now when I go to the PA30 maintenance screen for a standard infotype 0795, i should also see the fields from custom infotype 9xxx. Can you please let me know how I can enhance the standard infotype 0795, since SAP does not allow me to change it directly.
    Thanks
    Neo

    Hi,
    I'm gonna be an *ss and ask why you wanna see the fields of your 9xxx - infotype in SAP IT0795.
    If this is for information purposes, I believe this should be incorporated in reporting and not within master data infotypes.
    Wilfred.

  • Description for value help field for custom infotype field

    Hi,
       I`ve got to include a field in custom infotype. This field has got a value help attached to it. The values to be displayed in the value help are stored in the domain of the field(in the dictionary).
    The requirement is that once I select a value from the F4 help, the description for that value should be fetched and be dispalyed on the screen.
      I`m using the FM "<b>AM_READ_TEXT_ON_DOMAIN_VALUE</b>" to read the description from the domain ,but unable to make it display it on the screen.
      Can anyone suggest me as what should I do for displaying the description in the custom infotype screen.
    Regards,
    Farhana

    Hi anji,
       While using the "GET_DOMAIN_VALUES", I do get all the values from the domain. But I want only description to be displayed when I select a Value for that field.Kindly help out..
    Eg:
    1-Individual
    2-Family
    Then the description should be displayed as Family when I select the value 2 from the value help.
    Regards,
    Farhana.

  • Module pool F4-Help problem for a field in custom Infotype(HR).

    Dear Gurus,
    I have created a custom Infotype and fields are like
    P9015-NAM01.
    P9015-NAM02.
    P9015-NAM03.
    all are fields for name.
    I want F4 help for these fields with values same as  Family Members-First name  given in 21 Infotype .
    for all 3 fields same f4 help values.
    But when i see in the screen for first field the values are populating as selected but for second field the selected value is not picking..
    DATA: BEGIN OF it_val1 OCCURS 7,
        nam01 LIKE p9015-nam01,
        rel01 LIKE p9015-rel01,
       END OF it_val1.
      SELECT *  FROM t591s INTO TABLE it_t591s WHERE
         sprsl = 'EN' AND
         infty = '0021'.
    *SUBTY
    *STEXT
      SELECT * FROM pa0021 INTO wa_21 WHERE pernr = p9015-pernr .
        READ TABLE it_t591s WITH KEY subty = wa_21-famsa.
        it_val1-rel01 = it_t591s-stext.
       CONCATENATE wa_21-favor wa_21-fanam INTO it_val-nname SEPARATED BY space.
        it_val1-nam01 = wa_21-favor.
        APPEND it_val1.
        CLEAR : it_val1, it_t591s.
      ENDSELECT.
      CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST'
        EXPORTING
        DDIC_STRUCTURE         = ' '
          retfield               = 'NAM01'
        PVALKEY                = ' '
         dynpprog               = sy-cprog
         dynpnr                 = sy-dynnr
        dynprofield            = 'P9015-NAM01'
        STEPL                  = 0
        WINDOW_TITLE           =
        VALUE                  = ' '
         value_org              = 'S'
         multiple_choice        = ' '
         display                = 'F'
        CALLBACK_PROGRAM       = ' '
        CALLBACK_FORM          = ' '
        MARK_TAB               =
      IMPORTING
        USER_RESET             =
        TABLES
          value_tab              = it_val1[]
         field_tab              = t_fields[]
         return_tab             = t_return[]
         DYNPFLD_MAPPING        = t_DYNPFLD_MAPPING
      EXCEPTIONS
        PARAMETER_ERROR        = 1
        NO_VALUES_FOUND        = 2
        OTHERS                 = 3
    In the same way i am calling for P9015-NAM02. & P9015-NAM03.
    Is there any wrong in calling this FM...kindly help.....

    Write the FM inside,
    at selection-screen on value-request for <nam1>.
    It seems that you are calling the funtion module for only first field. Repeat it for other two fields also-
    at selection-screen on value-request for <nam2>
    call FM.
    at selection-screen on value-request for <nam3>
    call FM.
    Sumit

  • How to add fields in custom infotype and update its screens

    Hi Experts
        I want to enhance a custom infotype ( Add some new fields, and add special function on its screen). This custom infotype is created in previous release.   is there any way to add fields in infotype? and let system automatcailly modify corresponding screens to add new fields

    Go to Transaction PM01.
    2) Enter the custom Infotype number which you want to create (Should be a 4 digit number, start with 9).
    3) Select the u2018Employee Infotypeu2019 radio button.
    4) Select the u2018PS Structure Infotypeu2019.
    5) Click on Createu2026 A separate table maintenance window appearsu2026
    6) Create a PS structure with all the fields you want on the Infotype
    7) Save and Activate the PS structure
    8) Go back to the initial screen of PM01.
    9) Click on u2018Allu2019 push button. It takes a few moments.
    10) Click on u2018Technical Characteristicsu2019. Infotype list screen appears
    11) Click on u2018Changeu2019(pencil) button
    12) Select your Infotype and click on u2018Detailu2019 (magnifying glass) button
    13) Give u2018T591Au2019 as subtype table
    14) Give u2018T591Su2019 as subtype txt tab
    15) Give your subtype field as subtype field
    16) Save and come back to PM01 initial screen
    17) Click on u2018Infotype Characteristicsu2019 u2026 Infotype list screen appears
    18) Click on u2018Changeu2019 (pencil) button
    19) Click on u2018New Entriesu2019
    20) Enter your Infotype number and short text
    21) Here we have to set different Infotype Characteristics as per the requirement. (Better open another session with some standard Infotypeu2019s infotype characteristics screen and use as the reference to fill yours)
    22) Save your entries.
    23) Now the Infotype is created and ready to use.
    24) If you want to change the layout of the Infotype as per your requirementu2026
    25) In the PM01 initial screenu2026Select u2018Screenu2019 radio button and give 2000 as the screen name, then click on edit.
    26) In the next screen.. Select u2018Layout Editoru2019 and click u2018Changeu2019.
    27) Screen default layout appearsu2026here you can design/modify the screen..change the attributes of the fields..etc.
    28) Save and activate. (Donu2019t forget to u2018Activate at every level
    i think u have to select CI_INCLUDE while enhanceing the Standrad Infotype

  • 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 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

  • Different dropdowns for different fields in custom infotype

    Hi All,
    I created a new infotype in HR and for the different fields, I need different dropdowns.
    Example: Infotype 9XXX
    field 1          -   dropdown values (A,B,C)
    field 2          -   dropdown values (D,E,F)
    field 3          -   dropdown values (A,D,F)
    Right now, I am getting the values for the dropdown based on a custom search help.
    The table used in the search help is a custom table, which has all the possible values  A,B,C,D,E,F.
    Is there a way I can have different dropdowns for the different fields in the infotype?
    Or is there is a way I can set different default values in the search help dynamically based on the field in the infotype.
    Is using a search help exit a solution? If so please let me know how i can use it and what code needs to go in it.
    Your inputs are greatly appreciated.
    Thanks!
    Sandeep

    Hi All,
    I created a new infotype in HR and for the different fields, I need different dropdowns.
    Example: Infotype 9XXX
    field 1          -   dropdown values (A,B,C)
    field 2          -   dropdown values (D,E,F)
    field 3          -   dropdown values (A,D,F)
    Right now, I am getting the values for the dropdown based on a custom search help.
    The table used in the search help is a custom table, which has all the possible values  A,B,C,D,E,F.
    Is there a way I can have different dropdowns for the different fields in the infotype?
    Or is there is a way I can set different default values in the search help dynamically based on the field in the infotype.
    Is using a search help exit a solution? If so please let me know how i can use it and what code needs to go in it.
    Your inputs are greatly appreciated.
    Thanks!
    Sandeep

  • Adding Fields to Custom Infotype Using Custom Infoset in SAP QUERY

    Hi All,
    We have a requirement to add fileds to a custom infotype for querying Custom Infoset in SAP Query.
    We are facing problem as the added field is not getting displayed in the Query set so that we can select and display it in the Basic List along with the other filds.
    Kindly suggest a solution.
    Full points will be rewarded.
    Thanks in Advance
    Kumar

    Hi Salman,
    Thank you for your valuable information. I haven't Configured Dynamic Actions yet. Is it simple to write the Logic for Dynamic Actions. Is this the only way to solve this Issue?
    I tried by adding the standard fields, but they are not populating the values; but just appearing as Input Fields with Input help option.
    Please let me know if you have any suggestion in this direction?
    Regards,
    Hems.

  • 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

  • Add new loop field in custom infotype - error field .. not assigned to loop

    Hi,
    I have a task of adding a new loop field in a custom infotype screen 3000. Here, in the past there have only been the fields begin date and end date. I need to add a new field, so this is how I proceeeded:
    1) I modified the screen 3000 in SE38, adding the field where I wanted and defining a loop.
    Now, I get the syntax error : Field P9500-field is not assigned to a LOOP. LOOP...ENDLOOP must appear in PBO and PAI.
    There must be something wrong in what I'm doing, can you please let me know a quick fix on this or how I can accomplish this in PM01? Please keep in mind that this is a custom infotype for SAP TEM, I can't see it in PA.
    Best regards,
    George

    Not a nice solution but I had to do this quick and I'll correct it in the next days:
    The old flow logic PBO code was:
      LOOP.
        MODULE FILL_DYNPRO.
      ENDLOOP.
    If I wanted to insert here something like:
      FIELD whatever
        MODULE dummy.
    , I'd get stupid error messages like this other field is not in loop, endloop, then if I put that other field I'd get the error that the fields are in the same loop...
    Wanting just to get this over with, I added the following code (after the initial loop):
      LOOP.
        FIELD whatever
          MODULE FILL_DYNPRO."same module as above
      ENDLOOP.
    This was repeated in PAI.
    This pretty much works out fine for the moment, I'll look for finer solutions in the week to come.
    Thanks for the help, guys.
    Best regards,
    George

  • Adding few new fields to Custom infotype already developed

    Hi
    I have a requirement to add new fields to already available custom infotype.  I have to edit the PS structure and add few fields there and activate it. My question is, when I tick on "Generate Objects" after maintaining the PS structure, it will show pop up boxes asking whether to overwrite those objects already exists, shall I tick it or exit? Because the code is already written in the module pool for some validations,if I regenerate the objects, will the complete code will be erased?
    Please guide me in this regard.
    Thanks,
    Pallavi.

    Hi,
    Yes you need to regenerate objects, for changes to reflect.
    Since the objects are regenrated, the custom validation codes should get overwritten.
    To be on safe side, you can copy this infotype to a dummy infotype and regenerate the code and check.

Maybe you are looking for