‎2010 Aug 11 12:01 PM
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,
‎2010 Aug 11 3:16 PM
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
‎2010 Aug 11 12:15 PM
‎2010 Aug 11 12:37 PM
‎2010 Aug 11 3:16 PM
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
‎2010 Aug 11 3:23 PM
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