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 programming...

Former Member
0 Likes
412

hi...

an urgent help...

a help regarding module pool programming...

i have 2 field inputs...

one field has a f4 search help exit function module which will give inputs for this field on clicking f4..

but this search help takes the value of the other field for its processing...

i ve used set parameter id in the PAI of the screen.

but only if the user clicks enter that gets triggered and parameter value gets set in the function module called…

what should be done so that the parameter is set automatically or the PAI triggered automatically...

3 REPLIES 3
Read only

Former Member
0 Likes
391

Hi,

Try to assign any user command value to the field for which u have set a parameter id so that PAI will trigger immediately after u enter a value in the field with out pressing the enter button.

Regards,

Sankar

Read only

0 Likes
391

i am not able to set the user command value, since the field fcode in the element list is disabled for an input/output box.

Read only

Former Member
0 Likes
391

Hi

for that F4 help that will take all the possible combinations from different tables where this feild is used

so u write a query for that screen field like select required details from so and so table and into so and so table where give proper condition

under that sy-surc = 0

call function module

CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST'

EXPORTING

  • DDIC_STRUCTURE = ' '

RETFIELD = 'OBJID'

  • PVALKEY = ' '

DYNPPROG = SY-REPID

DYNPNR = SY-DYNNR

DYNPROFIELD = 'S_OBJID'

  • STEPL = 0

  • WINDOW_TITLE =

  • VALUE = ' '

VALUE_ORG = 'S'

  • MULTIPLE_CHOICE = ' '

  • DISPLAY = ' '

  • CALLBACK_PROGRAM = ' '

  • CALLBACK_FORM = ' '

  • MARK_TAB =

  • IMPORTING

  • USER_RESET =

TABLES

VALUE_TAB = IT_OBJID_SH

  • FIELD_TAB =

  • RETURN_TAB = RETURN_TAB

  • DYNPFLD_MAPPING =

  • EXCEPTIONS

  • PARAMETER_ERROR = 1

  • NO_VALUES_FOUND = 2

  • OTHERS = 3

.

IF SY-SUBRC <> 0.

  • MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO

  • WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.

ENDIF.

ENDIF.

reward if usefull