Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Get column Disable

Former Member
0 Likes
618

Dear All,

I have created table control field wa_itmdtls-ebeln with input field posible. when user is entring single po no and he press enter then below wa_itmdtls-ebeln column gets disable. I want User can enter multiple PO number and pressing multiple time enter.

I have tried with

READ TABLE tabl_ctrl-cols INTO wa_col INDEX 4.

wa_col-screen-input = 1.

MODIFY tabl_ctrl-cols FROM wa_col INDEX 4.

under PROCESS AFTER INPUT, MODULE user_command_9010.

Please provide appropriate solution.

Thanks

Regards,

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
587

Try rewriting this way:


READ TABLE tabl_ctrl-cols INTO wa_col INDEX 4.
MODIFY tabl_ctrl-cols FROM wa_col INDEX 4.
wa_col-screen-input = 1

Just formatting the field after update. I doubt the formatting is overwritten by the update statement.

Lemme know if it works!

--Shiny

4 REPLIES 4
Read only

Former Member
0 Likes
587

whay r u raeding index 4?

Do u need only 4the records?

Read only

0 Likes
587

YES.

Read only

Former Member
0 Likes
588

Try rewriting this way:


READ TABLE tabl_ctrl-cols INTO wa_col INDEX 4.
MODIFY tabl_ctrl-cols FROM wa_col INDEX 4.
wa_col-screen-input = 1

Just formatting the field after update. I doubt the formatting is overwritten by the update statement.

Lemme know if it works!

--Shiny

Read only

Former Member
0 Likes
587

Hi try this way...


PROCESS BEFORE OUTPUT.
* Module screen GUI-Screen&Status and Screen Logic
  MODULE status_1020.

* Table control for OUTPUT
  LOOP AT <table name>
       WITH CONTROL <table control>.
    MODULE screen_modify.
  ENDLOOP.

MODULE SCREEN_MODIFY OUTPUT.

* Table control reading values from input screen & displaying on screen
if <tablecontro>-current_line = 4.  
 READ TABLE tabl_ctrl-cols INTO wa_col INDEX 4.
IF sy-subrc = 0.
    LOOP AT SCREEN.
      IF screen-name = 'WA_ZCXREF_CLASSES-ATWRT'.
        screen-input = 0.
      ENDIF.
      MODIFY SCREEN.
    ENDLOOP.
  ENDIF.
endif.
ENDMODULE.

Prabhudas