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

screen program

Former Member
0 Likes
393

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

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
370

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

2 REPLIES 2
Read only

naveen_inuganti2
Active Contributor
0 Likes
370

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

Read only

Former Member
0 Likes
371

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