Screen Modification i Table Control

Hi all,
   we have a requirement on modifying the screen field attributes for a table control.
  scenario : f1  f2   f3   f4
now when the user enters the input for field f1 a pop-up  appears wherein you will have to make a selection. the selected one will copy to field f2.
now for a particular input of f1 the field f2 for that particular row has to be greyed out.
we are trying this by looping at <b>screen</b> table , but this is greying out  the entire column instead of that particular cell.
Thanks in Advance.
Kishore Kumar Yerra.

HI,
look at the code below write this code in the PBO flow logic, in the module of loop endloop of table control.
check for the fields are initial or not.
if fields contains value then make them disable other wise make them enable.
<b>
  LOOP AT SCREEN.
    IF screen-name = 'F1'.
      IF grid_itab-F1 IS INITIAL.
        screen-input = 1.
      ELSE.
        screen-input = 0.
      ENDIF.
      MODIFY SCREEN.
    ENDIF.
  ENDLOOP.
</b>
Regards,

Similar Messages

  • Screen painter or table control problem

    Hi All,
    I have created two maintenance views for two custom tables , and two views has been created .
    in one view when i excuting sm54 and display i could able to see all the fields in the table control ,
    but in the other view i could see only one field very in the table control.
    Is this the problem of screen painter with table control , shall i need to intall screen painter again
    i am using  4,7 version  os sap ,
    Regards
    subba

    Hi  Chandra,
    Thanks for yorr prompt reply  and i tried so many times , can i go that particular screen and change
    the screen and include all the fields , actually the system proposes the screen when we are creating
    the table maintenance generator.
    i selected one step and screen proposed by sap in the overview screen as  1 and i have created table maintenance.
    Regards
    subba

  • How to display a table data on Screen having a Table control

    Hi ,
    I am new to ABAP.I would like to display a table data (Eg: ZDemo) on a screen at run time.I have defined a Table control in screen. Now I want to populate data from ZDemo to table control.How can I do that?Please help moving forward in this regard.

    Hi Gayatri,
      After creating table control do the following steps.
    1. In the flow logic section write the following code:
    PROCESS BEFORE OUTPUT.
    MODULE STATUS_0200.
    LOOP AT I_LIKP WITH CONTROL LIKP_DATA CURSOR LIKP_DATA-CURRENT_LINE.
      MODULE ASSIGN_DATA.
    ENDLOOP.
    PROCESS AFTER INPUT.
    MODULE USER_COMMAND_0200.
    LOOP AT I_LIKP.
    ENDLOOP.
    I_LIKP is the internal table which is used to display table data in the table control.
    2. In Process Before Output, in the module STATUS_0200 write the following code:
      DESCRIBE TABLE I_LIKP LINES FILL.
      LIKP_DATA-LINES = FILL.
      In Process After Input, in the module USER_COMMAND_0200 write the following code:
      CASE SY-UCOMM.
       WHEN 'LIPS'.
        READ TABLE I_LIKP WITH KEY MARK = 'X'.
        SELECT VBELN
               POSNR
               WERKS
               LGORT
               FROM LIPS
               INTO TABLE I_LIPS
               WHERE VBELN = I_LIKP-VBELN.
        IF SY-SUBRC = 0.
         CALL SCREEN 200.
        ENDIF.
       WHEN 'BACK'.
        SET SCREEN 200.
      ENDCASE.
    In Process Before Output and in the module ASSIGN_DATA which is there inside the loop write the following code:
    MOVE-CORRESPONDING I_LIKP TO LIKP.
    So, Totally your flow logic code should be like this.
    TABLES: LIKP, LIPS.
    DATA: BEGIN OF I_LIKP OCCURS 0,
           VBELN LIKE LIKP-VBELN,
           ERNAM LIKE LIKP-ERNAM,
           ERZET LIKE LIKP-ERZET,
           ERDAT LIKE LIKP-ERDAT,
           MARK  TYPE C VALUE 'X',
          END OF I_LIKP,
          BEGIN OF I_LIPS OCCURS 0,
           VBELN LIKE LIPS-VBELN,
           POSNR LIKE LIPS-POSNR,
           WERKS LIKE LIPS-WERKS,
           LGORT LIKE LIPS-LGORT,
          END OF I_LIPS,
          FILL TYPE I.
    CONTROLS: LIKP_DATA TYPE TABLEVIEW USING SCREEN 200,
              LIPS_DATA TYPE TABLEVIEW USING SCREEN 300.
    DATA: COLS LIKE LINE OF LIKP_DATA-COLS.
    *&      Module  USER_COMMAND_0100  INPUT
          text
    MODULE USER_COMMAND_0100 INPUT.
    CASE SY-UCOMM.
      WHEN 'LIKP'.
       SELECT VBELN
              ERNAM
              ERZET
              ERDAT
              FROM LIKP
              INTO TABLE I_LIKP
              WHERE VBELN = LIKP-VBELN.
       IF I_LIKP[] IS INITIAL.
         CALL SCREEN 200.
       ENDIF.
      WHEN 'EXIT'.
       LEAVE PROGRAM.
    ENDCASE.
    ENDMODULE.                 " USER_COMMAND_0100  INPUT
    *&      Module  assign_data  OUTPUT
          text
    MODULE ASSIGN_DATA OUTPUT.
    MOVE-CORRESPONDING I_LIKP TO LIKP.
    ENDMODULE.                 " assign_data  OUTPUT
    *&      Module  STATUS_0200  OUTPUT
          text
    MODULE STATUS_0200 OUTPUT.
      DESCRIBE TABLE I_LIKP LINES FILL.
      LIKP_DATA-LINES = FILL.
    ENDMODULE.                 " STATUS_0200  OUTPUT
    *&      Module  USER_COMMAND_0200  INPUT
          text
    MODULE USER_COMMAND_0200 INPUT.
      CASE SY-UCOMM.
       WHEN 'LIPS'.
        READ TABLE I_LIKP WITH KEY MARK = 'X'.
        SELECT VBELN
               POSNR
               WERKS
               LGORT
               FROM LIPS
               INTO TABLE I_LIPS
               WHERE VBELN = I_LIKP-VBELN.
        IF SY-SUBRC = 0.
         CALL SCREEN 200.
        ENDIF.
       WHEN 'BACK'.
        SET SCREEN 200.
      ENDCASE.
    ENDMODULE.                 " USER_COMMAND_0200  INPUT
    Save and Activate the program along with the screen in which you have included table control.
    Hope this will help you.
    Regards
    Haritha.

  • Screen Resolution in table control bdc

    Hi ,
    Im working on bdc table control using call transaction method for vk11 and mek1.While uploading data for vk11 for the first time it is taking all the records of the input file and if i do the same for the second time by changing the amount value it is taking only 24 records .(i.e if the input file contains only 24 records it wil update else if it has 25 records or more it not updating even single record and it is showing error " No batch input data for screen sapmv13A ..)...this issue is with the production server......................whereas in development and quality servers there is no problem....................
    what migh be the problem and how to solve it?
    can anyone plz help me on this

    if its a problem in screen resolution then while recording through SHDB mark the check box default size
    or
    to make the bdc execute in standard screen size check the code below
    data x_ctuparams type ctu_params.
    x_ctuparams-defsize = 'X'. " This would freeze the resolution in any system
    x_ctuparams-dismode = 'N'.
    x_ctuparams-updmode = 'S'.
    call transaction <TCODE> using it_bdcdata options from x_ctuparams.
    So whatever is the screen size of the users front-end, the BDC will execute in standard screen size

  • Screen enhancement with table control

    Dears,
    I'm using enhancement IWO10018 to add a new tab on IW32 screen. I've added a table control to this tab. The problem is that retreived data from database do not appear on the table and it is appeared as empty fields. When tring to add any other input/output field on the same subscreen the data appear correctly on it! Please advise
    PROCESS BEFORE OUTPUT.
      MODULE fill_req_itab.
      LOOP AT req_itab
        WITH CONTROL serv_req_tab.
        MODULE move_to_screen.
      ENDLOOP.
    MODULE fill_req_itab OUTPUT.
      CLEAR: req_itab[].
      SELECT * FROM zcs_serv_req
        INTO CORRESPONDING FIELDS OF TABLE req_itab
        WHERE aufnr = order_no.
      DESCRIBE TABLE req_itab LINES serv_req_tab-lines.
    ENDMODULE.                 " FILL_REQ_ITAB  OUTPUT
    MODULE move_to_screen OUTPUT.
      MOVE-CORRESPONDING req_itab TO zcs_serv_req.
    ENDMODULE.                 " MOVE_TO_SCREEN  OUTPUT
    *&  Include           ZXWOCTOP
    DATA: mark TYPE c LENGTH 1.
    CONTROLS: serv_req_tab TYPE TABLEVIEW USING SCREEN '0900'.
    DATA: req_itab TYPE TABLE OF zcs_serv_req WITH HEADER LINE,
          zcs_serv_req LIKE LINE OF req_itab,
          order_no TYPE aufnr.

    Thanks a lot for your reply...
    I've added the below code on the mentioned include and I've commented it on the PBO but I still have the same problem. On debug mode I can see that required data retreived correctly till end.
    *&  Include           ZXWOCU15
    order_no = sap_caufvd_imp-aufnr.
    CLEAR: req_itab[].
      SELECT * FROM zcs_serv_req
        INTO CORRESPONDING FIELDS OF TABLE req_itab
        WHERE aufnr = order_no.

  • Screen Variant for table control in FB60

    Hi ,
    I need to create variant to show Quantity and Base Unit of Measure columns in the table control which is available at the first screen of FB60 . I tried using the option screen variant - > create variant. i couldnt see the options of colmuns properties for table control on click that small icon available at the right conner. Pls guide.
    Thanks

    In transaction SHD0 you need to create a new variant.
    After that you will be taken into FB60.
    Press Enter as if you are trying to process vendor invoice. It will take you to a screen "Screen values    1100 Program  SAPMF05A"
    There you will have 3 columns Output only, Invisible and Mandatory.
    Select as you want.
    Just try out carefully, you will be able to get the desired result.
    It is very difficult to guide you in details.
    Please let me know if you face any problems.
    Rgds,
    Harmees

  • In BDC we need to read screen value of table control

    Dear All,
    I was doing a feasibility analysis. One BDC is there where we will have to insert records in table control based on some records of 1st column of table control already populated. We are unable to find a way for reading table control. The BDC is generating batch input session. Can you please suggest on this?
    Best wishes,
    Atanu

    Hi Atanu,
    with BDC, the only possibility is to do as Klaus suggested: you must replicate the SAP's logic in your program, you must know in advance how SAP fills this field. This is a very well known drawback of BDC. You may use the SQL trace to help you to know which tables are read. Ask functional people to help you.
    You may also use SAP GUI scripting, that's another technology (slower I think, and it can only work in dialog). It allows to do different actions between 2 screens. You must program it using OLE, or using external software (VBA for example).
    Sandra

  • How to find  dynamic value(screen value) in table control for current row .

    hi to all,
    i used table control in my screen. for column no 2 field i was used serrch help. and for column number 3 i used a dynamic help.
    in change mode you can change any row for table control.
    when i was using search help for a row which was already entered in column no 3 i cannot get any value.
    how i can get value of row no 3 and column no 2 value.
    thanks

    Try using like index for the serarch the TC-current_line

  • Change screen input in table control

    Hi Expert Abapers,
    Hope everybody is in good health and state.
    Well my problem is that i am taking data in itab in a table control and i want to display the data in it only.
    only if we select and line and click modify, 2 fields of it should be enabled for writing.
    here's the code but is not working,
    case OK_CODE.
    WHEN 'EDIT'.
    IF MARK = 'X'.
    LOOP AT SCREEN.
    IF SCREEN-NAME <> 'ITAB-CHQ_NO' OR SCREEN-NAME <> 'ITAB-DD_NO'.
    SCREEN-INPUT = '0'.
    MODIFY SCREEN.
    ENDIF.
    ENDLOOP.
    ENDIF.
    ENDCASE.
    Pls suggest as to where am I wrong.
    Regards , Neetu

    Hi Neetu,
    Try to assign fields to a group , the fields which u don't want to be editable keep
    it in single group for eg, 'GP1'. And now write the code like this
    LOOP AT SCREEN.
    IF SCREEN-GROUP EQ 'GP1'
    SCREEN-INPUT = '0'.
    MODIFY SCREEN.
    ENDIF.
    ENDLOOP.
    Regards ,
    Vivek

  • How to implement screen enhancements with table control in sales document

    I want to add a table control in sales document head and items, is there a good solution for this, thanks

    Hi Zhang Jie,
    There are some reserved screen for you in sales order.
    screen enhancement: for header is SAPMV45A 8309 and 8310.
                                    for item is SAPMV45A 8459 and 8460.
    you can add your table control in those screen.
    regards,
    Archer

  • Variant for selection screen with the Table control entries in another Tab

    Hi Guys,
      The requirement is to create a variant for the two tabs on a selection screen.
      First tab contains the select options and the second contains table control for making entries.
      So will it be possible to create a variant when the user makes entries in the fields in one tab and the table on other tab?

    You wrote
    Utilizing the "Save as variant" option from the selection screen itself works out perfectly, but this variant cannot be transported.
    But, give the variant a name beginning with "CUS&" and this variant will be transported. Variant beginning with "CUS&" or "SAP&" are so-called "system variant" and are  transported automatically. You can then copy the transaction code and use this new variant in the new transaction.
    Regards,
    Raymond

  • Invalid field format (screen error) on Table Control

    Hello,
    When selecting a line or multiple lines on a screen made by me(using a Table Control), I get Invalid field format (screen error). Debugging the code it sends the message when looping the internal table on PAI to check if there were values changed. Is there a reason why this error appears on this?
      loop at it_values.
        chain.
          field pvalues-BEGDA.
          module CHANGE_QUEUE.
        endchain.
      endloop.
    Thanks.

    No need to loop to check whether data is changed after PBO, just check System Field SY-DATAR, it will be set to 'X' if any field was changed.
    So the following code is enough;
    IF SY-DATAR EQ 'X'.
       PERFORM SAVE_DATA.
    ENDIF.
    Regards
    Karthik D

  • Screen enhancement with table control IW31, IW32, IW33.

    Hi Gurus,
    I am facing issues with enhancement implementation for Maintenance Orders transaction IW31, IW32, IW33. (SAP basis version 4.7)
    1) I have implemented enhancement IWO10018 for creating an Enhancement tab in transactions Iw31/ 32/ 33. This tab has got a table control which has 4 columns: -Operations, Operation short text, Estimated Cost and Currency Unit.
    First two fields are non editable and are populated for all the Operations in Operations tab. Last two columns are editable and value entered in these are stored in the database on saving. Now the issue is I am able to fetch all the operations from  AFVC table but these are the one which have been saved. Suppose I navigate between the tabs Operations and Enhancement and enter a new operation in Operations tab, I should get the same in my Enhancement tab table control field as well.
    Though we can obtain one value from structure (SAPLCOIH)AFVGD but this gives only one value. If we need to get the table of values, is their any option ???
    P.S. Assumption in this requirement was that there can be at max 50 operations in an order and 200 new fields are created for this in include CI_AUFK in table AUFK.
    2) In standard report transction IW39 to display the orders and operations, if we need to display additional columns for displaying Estimated Costs and Units per order, how do we need to implement enhancement IWOC0004. Do we need to add all custom fields in structure RIHAUFK_LIST as well. If you could please elaborate its implementation, it would be helpful.
    3) In standard report transaction IW49N, is there any enhancement available to add new fields in ALV display. (SAP basis version 4.7).
    I would be grateful if i can get a quick response as I am stuck in middle of something important.
    Edited by: shreya tagra on May 12, 2010 8:32 PM

    Hey All,
    To my questions further, I had found the runtime internal table where Operations are stored before saving.
    It is AFVGD_BT and its main program is SAPLCOBO. So it can be accessed through (SAPLCOBO)AFVGD_BT[].
    Also for 2 and 3 question, the given enhancement would work and we need to update fieldcatalog with custom fields.
    For this add our fields in RIHAUFK_LIST.
    Now, I am facing another issue. Since the enhancement tab is a subscreen, i am not able to get its okcodes. eg: When I click enhancement tab, sy-ucomm is 'CUK', when I scroll up or down again it is 'CUK', if I press enter again it is '+CUK'. To enable scrolling functions I need to get correct okcodes and differentitaed ones because on each user command, a different action is required. Any pointers how can this be achieved.
    Will post my solution once i m completly done with it. Till then your pointers are awaited..
    Thanks,
    Shreya

  • Screen value of table control in ME21N tcode condiions tab

    Hi ALL,
    I have a problem in ME21 Tcode .I want to read screen field value of net price  of Screen ME21N tcode conditions tab.
    when I change tax code in delivery tab then condition tab values changes according to price procedure.I want to read that conditions tab  Net price value  nothing but unit price (amount field in screen) and need to do validation .
    i used the BADI but could not able to find the screen value using DYNP_VALUES_READ fm.
    kindly sugest the  solution.
    regards,
    padmaja.

    Hi
    In BADI ME_PROCESS_PO_CUST, method PROCESS_ITEM or in method CHECK, for interface IF_PURCHASE_ORDER_MM, use method GET_CONDITIONS.
    For instance in method CHECK
      include mm_messages_mac.
      data: header       type mepoheader,
            items        type purchase_order_items,
            po_line      type mepoitem,
            line_item    type purchase_order_item,
            po_condition type mmpur_tkomv,
      header = im_header->get_data( ).
      items  = im_header->get_items( ).
      loop at items into line_item.
        po_line = line_item-item->get_data( ).
        call method line_item-item->get_conditions
          importing
            ex_conditions = po_condition.
      endloop.
    I hope don't forget anything.
    I hope this helps you
    Regards
    Eduardo

  • Selection-screen pushbutton & Table Control

    Hi Everyone
    In my program i have a pushbutton in my selection-screen; this button call a screen with a table control, the problem is when i run my report and return to the first screen, the data in the TC is cleared.
    It's possible to save the information of my TC if i run my report and return to the first screen??
    Thanks & Regards
        David

    Hi,
    Write the logic for putting data from an internal table into table control in the PBO of the called screen & not in the PAI of the calling screen. Also, when you exit that screen, retrieve data into the internal table.
    For e.g. if Screen 9002 contains table control then
    PBO of Screen 9002:
    loop at it_itab into x_itab with control table_control_name.
    module put_data.
    endloop.
    PAI of screen 9002:
    loop at it_itab into x_itab.
    module get_data.
    endloop.
    Reward points if the answer is helpful.
    Regards,
    Mukul

Maybe you are looking for

  • Another question concerning Context Expired and Can No Longer be Used error

    I know this has been covered many times before - each time with essentially the same recommendations: Make sure the time zone is set for the web applications, make sure the clocks are synchornized between the hosts, adjust the timeouts (I've done def

  • Crashed while updating from 10.6.8 to 10.7 and didn't import anything.

    Hi all, I have just updated my Mac pro from 10.6.8 to 10.7.5 and it crashed during the last minute of the install. I left it for a few hours, hoping that it would complete the install, but eventually was forced to restart it by holding down the power

  • IdeaPad S205 Operating System:Win​dows 7 Home Premium can't connect to wifi router

    Hi I have set up laptops at home before, the brand new lenovo ideapad tells me "connections are available" and i can see my wifi has 3 bars - all good however after enering the the network security key and click ok  it says connecting then a second l

  • How can I calculate disk space/DB space and storage spaces.

    Hi all, How can I calculate space clauses and memory related parameters for tables and table spaces? Updation is not allowed in these tables. I have to create a database also. I expect a reply with examples. [email protected] [email protected] Thanks

  • Wierd Itunes issue

    Hello everyone, I had something very wierd just happen to me. I was checking my emials via computer and I had one from an old aquaintance that said FWD: Social Security No., so I opened it. It had an attachment, so I opened that and downloaded it. I