‎2008 Aug 28 12:16 PM
Hi gurus,
In table control, I want a field to be in display mode and should give me f4 help. But the field should not be populated with the data. I want the field with F4 b'coz depending on the condition it will be in change mode and vice versa.
Please help.
Thanks in advance
Regards,
Kasuladevi
Edited by: Kasuladevi Srinivas on Aug 28, 2008 1:16 PM
‎2008 Aug 28 12:57 PM
you set the table control field as display mode using
table control structure
like
tbcontrol-cols-SCREEN-OUTPUT = 1.
this deep structure
for f4 help
PROCESS ON VALUE-REQUEST.
FIELD D_BGNO MODULE VAL_BGNO.
MODULE VAL_BGNO INPUT.
REFRESH I_BGNO.
SELECT ZBANKGUAR_NO INTO TABLE I_BGNO
FROM ZBANK_GUARANTEE .
CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST'
EXPORTING
RETFIELD = 'ZBANK_GUARANTEE'
DYNPPROG = SY-REPID
DYNPNR = SY-DYNNR
DYNPROFIELD = 'D_BGNO'
VALUE_ORG = 'S'
TABLES
VALUE_TAB = I_BGNO
RETURN_TAB = I_RETURN_NO
EXCEPTIONS
PARAMETER_ERROR = 1
NO_VALUES_FOUND = 2
OTHERS = 3.
IF SY-SUBRC EQ 0.
D_BGNO = I_RETURN_NO-FIELDVAL.
REFRESH I_RETURN_NO.
ENDIF.
ENDMODULE. " VAL_BGNO INPUT
Edited by: murali papana on Aug 28, 2008 7:58 AM
‎2008 Aug 28 12:26 PM
Hi....
You can make your field in display mode with OUTPUT ONLY screen attribute..
or...
loop at screen... modify variable coding in PBO module...
&
You can create F4 for screen element with function module F4_IF_INT... in POV event.
Get back if you got any problem with this procedure..
Thanks,
Naveen.I
‎2008 Aug 28 12:57 PM
you set the table control field as display mode using
table control structure
like
tbcontrol-cols-SCREEN-OUTPUT = 1.
this deep structure
for f4 help
PROCESS ON VALUE-REQUEST.
FIELD D_BGNO MODULE VAL_BGNO.
MODULE VAL_BGNO INPUT.
REFRESH I_BGNO.
SELECT ZBANKGUAR_NO INTO TABLE I_BGNO
FROM ZBANK_GUARANTEE .
CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST'
EXPORTING
RETFIELD = 'ZBANK_GUARANTEE'
DYNPPROG = SY-REPID
DYNPNR = SY-DYNNR
DYNPROFIELD = 'D_BGNO'
VALUE_ORG = 'S'
TABLES
VALUE_TAB = I_BGNO
RETURN_TAB = I_RETURN_NO
EXCEPTIONS
PARAMETER_ERROR = 1
NO_VALUES_FOUND = 2
OTHERS = 3.
IF SY-SUBRC EQ 0.
D_BGNO = I_RETURN_NO-FIELDVAL.
REFRESH I_RETURN_NO.
ENDIF.
ENDMODULE. " VAL_BGNO INPUT
Edited by: murali papana on Aug 28, 2008 7:58 AM