Table control - validate column

Dear VC Experts,
we are using VC with a RFC Data Service. On the output port we create a table control with following columns for example:
- Amount /MENGE (mandatory field)
- Checkbox type /BOOL1 (mandatory field) - true,false
- Expression Box / STATUS2 (validate amount and Checkbox) --> true, false
For the expression box we use the formula:
BOOL(@BOOL1==true AND @MENGE==0 OR @BOOL1==false AND @MENGE<>0)==true
This seems to work. Result: true, false
Further we have a button, which has to be disabled if the Expression Box has the status "false".
I dont know how to check all the values in the expression box. The button only gets disabled, if i select a specific row with the status 'false'. I would like to check all the valus in my table control, not only the selected one.
On the properties tab for my button i use the formula:
CONTAINS(#ID[ACC153]@STATUS2,'false')==true
Maybe any suggestions to check all the values in my table column? How can i check all the values in my column 'STATUS2' which contains true or false?
Moderator message - Please do not offer points or rewards
Edited by: Rob Burbank on Aug 3, 2010 11:32 AM

Hello,
I think you need to attach the output of your table to the input of the form that contains your button, so that this form "is aware" that you have changed the selected line.
Then you assign an action to the mapping and to the column so that when you click on a line of the table it "calls" the form.
You can give it a try, but I'm not sure of this.
Fabien.

Similar Messages

  • Table Control + last column

    Hello Friends,
    i am facing a strange problem. I have created a table control using table control wizard. when I enter the values in table control select the entry and press okey button everything works fine. then I gave the program to user for test, and he came back with following issue:
    He entred the data in the table control, and then he press the enter button. then he went to the last column and change the value, press again enter button, the value overwrite again ( which he has entered before ).
    I went in debug mode to see what is going on, and surpringly while entring the value in the last column I press enter the control did not went to my module "Z_TAB_CTRL_modify input." rather it went in user_command. module.... and that's why it did not updated the value after user change in last column....
    Any idea what I can do to fix this issue...
    Regards,

    Hi,
    CHAIN.
    ENDCHAIN. 
    Effect
    The statements CHAIN and ENDCHAIN of the dynpro flow logic define processing chains. Between CHAIN and ENDCHAIN, the statements FIELD and MODULE can be executed. The statements between CHAIN and ENDCHAIN form a processing chain. Processing chains cannot be nested. The CHAIN statement can be specified in the event blocks at PAI and PBO , however, in the event block at PBO it has no effect.
    <b>A processing chain allows the joint processing of all the screen fields stated between CHAIN and ENDCHAIN after FIELD statements:</b>
    The contents of all screen fields combined to a processing chain by the FIELD statements can be checked in the shared conditions ON CHAIN-INPUT and ON CHAIN-REQUEST of the MODULE statement.

  • Table control change column position or number

    Hi Guys,
    I need to move a column from position 10 to position 5 in the standard program. I did change the table control position in screen painter by doing cut and past of columns at required positions and it does change there but it does not show column positions in the actual screen. Is there config for table control in the standard program?
    In the attributes the position number is disable. Is there some other way that I can move the columns.
    Please advise.
    Thanks,
    FS

    Thanks Manesh,
    I am using travel overview transaction PR05. Can you recommend any config area where the table column positions are maintained. Thanks.
    Regards,
    FS

  • Faces Read-Only Table control - reset column sorting?

    In an ADF Faces Read-Only Table control at runtime, once the user has clicked on a column to resort the table entries based on the clicked column, is there any way to unclear the sort?
    CM.

    In an ADF Faces Read-Only Table control at runtime, once the user has clicked on a column to resort the table entries based on the clicked column, is there any way to unclear the sort?
    CM.

  • Table control layout column positions are different with dislay positions

    Hello All,
               I added one column to standard table control at the 13th position,but at the display of that table control its showing at
    96th position.please suggest me how to set that to 13th position at dislay.
    Thanks in advance

    Hi,
    You can do this using a single table control.
    There is a option in the screen parameters to hide the column of the table control.
    So based on the list value, you loop at screen containing the table control, and set the option to make the column invisible.. Try this.
    Hope it helps..
    Regards,
    Sekar

  • DS1.3 : SDK UI5 Table Control with Column Grouping

    Hello,
    Have anybody successfully implemented the "grouped" property of "sap.ui.table.Column" in Design Studio 1.3? This property seems to fail the complete page load.
    We are on Design Studio 1.3 SP01.
    Thanks
    Arun

    Hello,
    I think you need to attach the output of your table to the input of the form that contains your button, so that this form "is aware" that you have changed the selected line.
    Then you assign an action to the mapping and to the column so that when you click on a line of the table it "calls" the form.
    You can give it a try, but I'm not sure of this.
    Fabien.

  • How to optimize the column width in Table Control

    Hi all,
          When I am displaying fields in Table Control, the columns are displayed in full length, and I am unable to see all the fields at once.
    So as in grid , where we optimize the column width using layout, do we had any property for TC to do so.
    thanks for your help.
    Points would be awarded .
    Regards,
    Anil .

    Hi,
    In Se51, you can do this one, ust open your table control and resize the TC, there is no direct option to do this for entire TC, you need to do this field by field, and arrage the TC to adjust in a Single screen. In the field parameters, you have the field lenghts, there you can minimize the length of a field
    Regards
    Sudheer

  • 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

  • Merging columns in Table control

    Hi all,
    Iam developing a module pool.
    I want that Column March to be merged....
    How to do in Module pool
    Sorry if Iam not clear...
    Cheers
    Christina

    hi
    select the strucutre (either from program or datadictonary) for the table control in screen painter..this will automatically combine your structure with the table control field columns
    loop through the control in the PBO and PAI
    in the pbo read the data from your internal table and pass it to table control structure
    this will populate the data for table control..

  • Table Control: Disabling editing for a column

    Hi everyone. Greetings from Buenos Aires, Argentina.
    First of all, I want to apologize for this question in case of it has already been made. The forum is too large to read it completely and I really need the answer, if any, to my trouble.
    I have a table control inside a screen. In it's PBO, I coded a module to change the table control attributes. I declared a work area like the line of the table control's control in order to loop it. I mean this:
    In the TOP of Table Control (I made it by using the wizard) I have this:
    CONTROLS: TC_1 TYPE TABLE VIEW USING SCREEN dynpro_number)
    And in the PBO module I have typed the following:
    MODULE control_change_attrs OUTPUT.
    DATA: wa_tc_1 LIKE LINE OF TC_1-COLS.
    LOOP AT TC_1-COLS INTO wa_tc_1.
    ENDLOOP.
    ENDMODULE.
    In the (...), I have put code with such a logic that, depending of the contents of certain fields in the dynpro, it will hide (or not) some columns of the Table Control. This part is made correctly.
    This logic, also makes (or should make) the table control to disable the input of a column, depending wether a flag is active or not. This flag is activated in other screen's PAI, which is called depending on the contents of the sy-ucomm field of this screen (the one with the table control).
    The (...) is something like this (I'll omit some parts):
    IF wa_tc_1-screen-name = 'COLUMN_TO_HIDE'.
       IF gv_flag = 'X'.
          wa_tc_1-screen-input = 0.
       ENDIF.
       MODIFY TC_1-COLS FROM wa_tc_1.
    ENDIF.
    In a PAI module of this screen, I have coded the following:
    MODULE user_command INPUT.
    CASE gv_ok_code.
       WHEN 'RUN'.
          PERFORM RUN.
        WHEN ...
    ENDCASE.
    END MODULE.
    And in the RUN subroutine, obviusly among other things, I have this:
    CALL SCREEN 0150 STARTING AT XX YY.
    In a module in the PBO of the screen 0150, I clear gv_ok_code. In a PAI module, this is what I have put:
    CASE gv_ok_code.
       WHEN 'ACCEPT'.
          gv_flag = 'X'.
          CLEAR gv_ok_code.
          LEAVE TO SCREEN 0.
      WHEN ...
      WHEN ...
    ENDCASE
    The thing is, when the contents of gv_ok_code is 'ACCEPT' and therefore the flag is activated, then the 0150 screen's PAI finishes and the previous screen's PBO is processed, I know for sure (by the mean of the debugging mode) that the table controls's atrributes are correctly modified, and the most important thing, they stay like that... But, the column desired does not gets disabled, at least not until the NEXT PBO (I mean, it gets disabled when I press the Enter key).
    Why is happening this?

    Thanks a lot for the response, Max.
    I' ve been testing your answer. When I implemented the code that you suggested, after the first PAI, the table control's columns appear as I want.
    The thing is, in order to test if the changes in the columns are reflected in the screen after the call of the dynpro no. 0150 (and the obvious return to the first one), I need to be able to select one or more table control's rows (since when I followed the table control wizard, I made it with selection column, and with multiple selection). But, after implementing your code, I'm not able any longer to select any rows.
    I click on them, but they don't turn yellow. I commented the call of the module inside the LOOP AT itab... of the PBO and I was able to select them once again, so we're sure the problem is caused because of the call to this new module. But why?
    Note: you should know, since the table control is with multilpe selection, the LOOP sentence in the PBO is like this:
    LOOP AT itable
           INTO work_area
           CONTROL tc_1
           WITH CURSOR tc_1-current_line.
    MODULE change_attribs.
    ENDLOOP.
    Does that give a hint to you?

  • Developing table control...

    hi,
    i have read posts on creating the table control by program rather than using the wizard. i want to try that.. can anyone point me to some good material or let me know the steps or sampl code ??
    all i need is
    1. a table control to display data from my internal table.
    2. user must be able to select/deselect multiple rows
    3. there can be a button to sort in ascending and descending order, but then which column ?? can he choose the column ?
    4. i need scrollbars in that table control.
    5. provision to validate those selected lines. if they dont match the criteria then they must be allowed to select to deselect the rows again !!
    pretty much a simple expectation...any help ? thks

    hey,
    one question..how are the table control's columns built ??
    i have dragged a table control on my screen. how do i speciy the columns it has to display ??
    i am not able to follow the logic to populate the table. any help ?
    in table control wizard we will have a link between the ITAB and the table control automatically. here how do i do that manually ?
    thks

  • Regarding Table Control in screen Painter

    hi,
      In my table control, one column is aceepting the UV Rate of the Material. But that particular column did not accept the Decimal Value . when i enter the decimal,
    'Please enter the Numeric value' error is coming.
      I am declared as Curr Data type for my table zuvrate-dmbtr.
       how can i enter decimal value in that column?

    Neptune,
    Lets start from the beginning -
    Your custom table has a field called DMBTR (domain WERT7). The reference value for this field is T001-WAERS.
    Hope its correct so far.
    In the table control, your field DMBTR is called <customtablename>-DMBTR.
    In the screen attributes of this field, you have the 'From Dict' ticked, Format is CURR and the reference field is specified. Correct?
    If this is the case then the table control should not throw any errors, do let me know if there is any change.
    Update: I just figured, probably the reason for your errors is that you have not used the domain in your custom table and have specified the CURR type as a direct type. The problem with this is that 2 decimal places will always be required by the system. Whereas if you use the data element (eg: DMBTR), the output length is 16, which would work fine.
    Sudha
    Message was edited by: Sudha Mohan

  • Marking block of rows in table control

    Hi All,
    I have an requirement to mark block of rows (Like 2 to 5, 7 to 11 or 3 to 15 ) in table control to delete from the table control. This functionality is available in SM30 (Table maintenance generator) and my users want same functionality for customized dialog program.
    Can any one any have an idea how to write the code for marking block of entries in table control.
    Thanks in advance,
    Chandra

    Hi,
    Assign a internal table field to table control place holder , whenever you select a row in the table control , internal table field value set to 'X'.
    so delete the rows from the internal table where row value set to 'X'.
    Sample code :
    CASE OK_CODE.
    WHEN 'DELETE'.
      DELETE I_TAB WHERE CHK = 'X'.
    ENDCASE.
    check these demo programs:
    RSDEMO_TABLE_CONTROL
    DEMO_DYNPRO_TABLE_CONTROL_1
    DEMO_DYNPRO_TABLE_CONTROL_2
    RSDEMO_TABLE_CONTROL
    RSDEMO02
    if you want to mark the records through code , first assign a internal table field to table control first column (say buttons which we will use to select a row)
    then do like this :
    case sy-ucomm.
    when 'MARK'.
    loop at i_tab.
      i_tab-chk = 'X'.
      modify i_tab.
    endloop.
    endcase.
    Regards
    L Appana
    Message was edited by:
            L Appana

  • Is Table Control's default size is 13 always in all resolutions?

    Hi Experts,
    Pls. let me clarify that, " Is Table Control is always possess the DEFAULT # of records as 13? Is it SAP's  standard feature? or Is it purely depends on the machine (windows) resolution? Particularly, am interested in BDC scenarios?
    Is any body is hving the SAP Documentation, about the above specific issue?
    thanq.
    Message was edited by:
            Srikhar

    If you use below code for your VA42 ,then table controls number columns will not vary from pc to pc :
    data: f_option type ctu_params,
    f_option-updmode = 'S'.
    f_option-defsize = 'X'.
    f_option-dismode = 'N'.
    call transaction 'VA42' using bdcdata options from f_option messages into bdcerror.
    I know your requirement ,screen resolution will not solve your problem
    Check the below link :
    http://web.mit.edu/sapr3/dev/newdevstand.html
    http://web.mit.edu/ist/org/admincomputing/dev/abapstds/current/devstand8.html
    Thanks
    Seshu

  • How to Make a Table control Field Editable but input disabled

    Hi All,
        I got a requirement that in table control one column should be in edit mode (i.e. input enabled) but user should not be able to type anything in that field or column rather he can select the value from F4 help (or pick list) associated with that field or column. How to do this ? Please dont say make sceeen-input = 0 for that field.
    Experts please help me out...........
    Thankx in Advance
    Rizwan Ahmad Siddiqui

    Hi,
    I suggest you to go for a drop down instead of a search help.
    Regards,
    Charumathi.B

Maybe you are looking for

  • Please help cant install iTunes 7.7

    i was using the previous version and just started off an update when prompted for iTunes 7.7, but the update then failed (sadly it didnt really give any info about the failure). I have tried downlaoding and installing manualy but still no joy the ins

  • Itunes freezes when synced to windows itunes

    It's been a long time since I've synced my phone and when i did it today it freezes up. I'm using an iphone 5 and i've updated my phone and my itunes but it still freezes everytime i tried to sync my photos or my music. The itunes backs up my files b

  • Marketing docs including item remarks in the printed form?

    On the PO window you will see all items the user has added including text rows. When you print the document it is including the IMD remarks for parts that have that populated. I have not found why this being included. As far as I can see the text row

  • Error While importing third party certificate

    Hi, In my application I'm using HTTPS for secure connectivity.For that purpose I signed my midlet using a third Party certificate (GoDaddy's Certificate).But when I'm hitiing the url it is not working. I've done this with generating my own certificat

  • IPod shuffle first gen won't charge or sync with iTunes

    When I connect my shuffle to the mac, iTunes won't recognize my it anymore. No light even comes on to show that it was charging, as if it wasn't connected. I decided to charge it to an outlet, but still, there was abolutely no light on the iPod. I kn