In Dialog Programming Table Control,how to make only one row
editable?
Answers were Sorted based on User's Feedback
Answer / rinzy deena mathews
DATA : ok_code TYPE sy-ucomm,
lines TYPE i.
DATA : t_sflight TYPE STANDARD TABLE OF sflight.
DATA : x_sflight TYPE sflight.
CONTROLS : tbl_sflight TYPE TABLEVIEW USING SCREEN 9000.
START-OF-SELECTION.
CALL SCREEN 9000.
*&--------------------------------------------------------*
*& Module STATUS_9000 OUTPUT
*&--------------------------------------------------------*
* text
*---------------------------------------------------------*
MODULE status_9000 OUTPUT.
* SET PF-STATUS 'xxxxxxxx'.
* SET TITLEBAR 'xxx'.
IF t_sflight IS INITIAL.
APPEND INITIAL LINE TO t_sflight.
MODIFY t_sflight FROM x_sflight INDEX 1.
DESCRIBE TABLE t_sflight LINES lines.
tbl_sflight-lines = lines.
ENDIF.
ENDMODULE. " STATUS_9000 OUTPUT
*&------------------------------------------------------*
*& Module USER_COMMAND_9000 INPUT
*&------------------------------------------------------*
* text
*-------------------------------------------------------*
MODULE user_command_9000 INPUT.
IF ok_code EQ 'INSERT' AND ok_code NE ' '.
v_code = 'INSERT'.
INSERT INITIAL LINE INTO t_sflight INDEX lines.
tbl_sflight-lines = tbl_sflight-lines + 1.
ENDIF.
CLEAR ok_code.
ENDMODULE. " USER_COMMAND_9000 INPUT
*&-----------------------------------------------------*
*& Module MODIFY INPUT
*&-----------------------------------------------------*
* text
*------------------------------------------------------*
MODULE modify INPUT.
MODIFY t_sflight FROM x_sflight INDEX tbl_sflight-
current_line.
DESCRIBE TABLE t_sflight LINES lines.
ENDMODULE. " MODIFY INPUT.
Is This Answer Correct ? | 5 Yes | 2 No |
Double click on the field which u want to edit a properties
window is displayed on the right side of the screen, in that
window look for Attributes portion -> goto Programs tab->
and select the input as input possible. and if u want the
field to be greyed out. select not possible.
Is This Answer Correct ? | 3 Yes | 14 No |
Can a transparent table exist in data dictionary but not in the data base physically?
what is the difference table type and structure?
8 Answers IBM, Reliance, Tech Mahindra,
how to modify the standard method as per your requirement
in bdcsome times we get the ok code for "enter" wrongly instead of '/00'.what is the reason.how we can exceed this problem.
Explain what are the events in screen programming?
can we transfer variants from development to Quality?how can we transfer?is it necessary?
How many types of tables exists and what are they in data dictionary?
What is BAPI ? & its used & functionality.
give example of sap memory and abap memory
How To Debug Ale ....
Explain about workbench request and customization requests?
1.Which of the following is not an EXIT command? options: BACK, CANCEL, STOP, EXIT? 2.To write certain contents in sap script without skipping to the next page, which command is used? Options: ADDRESS...ENDADDRESS, PROTECT...ENDPROTECT, AT...ENDAT 3. When using a table control in module pool, which statement has to present in both PAI and PBO. options : FIELD, LOOP..ENDLOOP, CHAIN...ENDCHAIN 4. Lock objects are : options : FUNCTION MODULES, PROGRAMS, TABLES