Skip to Content
author's profile photo Former Member
Former Member

unable to enable input after displaying a line in table control

HI Folks,

Here is my requirement:-

All fields of my table control are input enabled.

When I enter the field values and press enter I am generating the item no ()sequence no).

After executing pbo,field values along with item nos are displayed but the table control is getting disabled for the below empty rows.

I want to input enable them to enter values for second, third....rows,

I used the following code in a module inside PBO. It doesnot work.

This code works only for the first row. How do I make it work for the entire coloumns

DATA wa_tabctrl TYPE cxtab_column .

LOOP AT table_pp_cr-cols INTO wa_tabctrl.

IF wa_tabctrl-index = '2'.

wa_tabctrl-screen-input = '1'.

MODIFY table_pp_cr-cols

FROM wa_tabctrl.

ENDIF.

ENDLOOP.


Thanks and Regards,

Kawish

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

2 Answers

  • Best Answer
    Posted on Dec 13, 2014 at 04:47 AM

    Hi,

    You can try the following:

    PROCESS BEFORE OUTPUT.

    LOOP WITH CONTROL table_pp_cr.

    MODULE show_data_(your internal table).

    ENDLOOP.

    MODULE show_data_(your internal table) OUTPUT.

    READ TABLE (your internal table) INDEX table_pp_cr-current_line.

    IF sy-subrc = 0.

    (transfer your internal table field values to screen field here)

    ELSE.

    CLEAR your internal table.

    ENDIF.

    ENDMODULE.

    Module PAI

    MODULE modify_(your internal table) INPUT.

    (transfer screen values to internal table)

    MODIFY (your internal table) INDEX table_pp_cr-current_line.

    IF sy-subrc <> 0.

    CHECK (your internal table field) <> ' '.

    APPEND (your internal table).

    ENDIF.

    ENDMODULE.

    Hope this will help you to solve the issue. Please let us know.

    Regards,

    Anubhab

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Dec 12, 2014 at 10:22 PM

    In the PBO, add some blank lines to your table.

    Rob

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.