Skip to Content
0
Former Member
Feb 18, 2006 at 12:13 PM

Selection screen

8 Views

hi,

i found this somewhat strange. I m using FM F4IF_INT_TABLE_VALUE_REQUEST for F4 help.

consider the code below

CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST'

EXPORTING

retfield = 'ORGUNIT'

dynpprog = sy-repid

dynpnr = sy-dynnr

dynprofield = 'ORGUNIT'

value_org = 'S'

TABLES

value_tab = T_IN_HELP

RETURN_TAB = t_return

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.

IF sy-subrc = 0.

READ TABLE T_IN_HELP INDEX <b>sy-tabix.</b>

IF sy-subrc = 0.

P_VBELN = T_IN_HELP-VALUE.

ENDIF.

ENDIF.

while checking in debugging mode, i found out that sy-tabix is always 1 irrespective of which line i select from the pop-up. also P_VBELN value is always the first line value because of that. But then, on the screen the value that appears is <b>the line that i had clicked</b>. Now, i didnt understand how this cud happen. P_vbeln is the parameter i have declared for the field and i believe the value stored in it is passed to the selection-screen. But its not happening like that.

This doesnt happen when i use P_VBELN = T_RETURN-FIELDVAL though. But nevertheless i want to know wats causes this

Please share ur inputs if u have come across a thing like this.

Thanks & Regards,

Bikash