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

Function F4IF_INT_TABLE_VALUE_REQUEST with multiple_choice

Former Member
0 Likes
799

Hi All,

I ´m using the function 'F4IF_INT_TABLE_VALUE_REQUEST ' to make a search help, it works, but when the information marked in the checkboxs is verified in the multiple selections, the first position is deleted and is other ones are repeated. I tried to erase the internal tables headers and doesn´t even work.

Here is the code sample to see if somebody can help me:

REPORT YXX .

TABLES: tj30t.

SELECT-OPTIONS: p_status FOR tj30t-txt04 NO INTERVALS.

DATA: progname TYPE sy-repid,

dynnum TYPE sy-dynnr.

DATA: ret_tab TYPE TABLE OF ddshretval WITH HEADER LINE.

DATA: BEGIN OF tab_f4 OCCURS 0,

txt04 TYPE tj30t-txt04,

txt30 TYPE tj30t-txt30.

DATA: END OF tab_f4.

DATA : wa LIKE ddshretval .

AT SELECTION-SCREEN ON VALUE-REQUEST FOR p_status-low.

SELECT txt04 txt30

INTO CORRESPONDING FIELDS OF TABLE tab_f4

FROM tj30t

WHERE stsma EQ 'PM000003'

AND spras EQ sy-langu.

progname = sy-repid.

dynnum = sy-dynnr.

CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST'

EXPORTING

retfield = 'TXT04'

dynpprog = progname

dynpnr = dynnum

dynprofield = 'P_STATUS-LOW'

value_org = 'S'

window_title = 'STATUS'

multiple_choice = 'X'

TABLES

value_tab = tab_f4

return_tab = ret_tab.

loop at ret_tab.

p_status-low = ret_tab-FIELDVAL.

append p_status.

endloop.

START-OF-SELECTION.

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
607

hi,

check this code..

progname = sy-repid.

dynnum = sy-dynnr.

CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST'

EXPORTING

retfield = 'TXT04'

dynpprog = progname

dynpnr = dynnum

<b>dynprofield = 'P_STATUS'</b>

value_org = 'S'

window_title = 'STATUS'

multiple_choice = 'X'

TABLES

value_tab = tab_f4

return_tab = ret_tab.

<b> loop at ret_tab.

p_status-sign = 'I'.

p_status-option = 'EQ'.

p_status-low = ret_tab-fieldval.

append p_status.

endloop.

clear p_status.

read table ret_tab index 1.

p_status-low = ret_tab-fieldval.</b>

Regards

CNU

2 REPLIES 2
Read only

Former Member
0 Likes
608

hi,

check this code..

progname = sy-repid.

dynnum = sy-dynnr.

CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST'

EXPORTING

retfield = 'TXT04'

dynpprog = progname

dynpnr = dynnum

<b>dynprofield = 'P_STATUS'</b>

value_org = 'S'

window_title = 'STATUS'

multiple_choice = 'X'

TABLES

value_tab = tab_f4

return_tab = ret_tab.

<b> loop at ret_tab.

p_status-sign = 'I'.

p_status-option = 'EQ'.

p_status-low = ret_tab-fieldval.

append p_status.

endloop.

clear p_status.

read table ret_tab index 1.

p_status-low = ret_tab-fieldval.</b>

Regards

CNU

Read only

0 Likes
607

Thanks!

Regards,

Roxana