09-11-2008 1:14 PM
Dear Friends,
I have create a search help for SELECT-OPTIONS with
AT SELECTION-SCREEN ON VALUE-REQUEST SO_RMSZE-LOW.
PERFORM F4HELP_SO_RMSZE.
FORM F4HELP_SO_RMSZE .
*
BREAK ITNR.
* SELECT DISTINCT RMSZE
* FROM ZPP025_SPEC
* INTO TABLE IT_RMSZE
* FOR ALL ENTRIES IN it_TSIZE
* WHERE TSIZE eq it_TSIZE-TSIZE.
SELECT DISTINCT RMSZE
FROM ZPP025_SPEC
INTO TABLE IT_RMSZE
WHERE TSIZE IN SO_TSIZE.
*
V_RETFLD = 'SO_RMSZE-LOW'.
V_DYNPROFLD = 'SO_RMSZE'.
*
PERFORM F4VALUES_DISPLAY USING IT_RMSZE V_RETFLD V_DYNPROFLD.
*
ENDFORM. " F4HELP_SO_RMSZE
FORM F4VALUES_DISPLAY USING IT_TABLE2 TYPE STANDARD TABLE
P_V_RETFLD
P_V_DYNPROFLD.
CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST'
EXPORTING
RETFIELD = P_V_RETFLD
DYNPROFIELD = P_V_DYNPROFLD
DYNPPROG = SY-CPROG
DYNPNR = SY-DYNNR
VALUE_ORG = 'S'
TABLES
VALUE_TAB = IT_TABLE2.
ENDFORM. " F4VALUES_DISPLAY
data populating properly
so my problem is, that itab (SO_RMSZE) not filled in selected data. but after select if i press ENTER button then that itab(SO_RMSZE) filled.
in this case i want to use this itab data for my next Search help that's why i looking for this data.
what should i do for this?
can you understand my problem?
Thanks in Advance
09-11-2008 1:28 PM
Hi Nelson,
You have to change your FM. You have not used RETURN_TAB table in your function module.. that is the problem..check the below code
DATA: lt_returntab LIKE ddshretval OCCURS 1 WITH HEADER LINE,
lv_dynprofield LIKE help_info-dynprofld.
CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST'
EXPORTING
retfield = 'USR01'
dynprofield = lv_dynprofield
dynpprog = sy-repid
dynpnr = sy-dynnr
value_org = 'S'
TABLES
value_tab = lt_usr01
return_tab = lt_returntab.
Now the return_tab will contain the selected value which you can use for next search help
Cheers,
Kothand
09-11-2008 1:28 PM
Hi Nelson,
You have to change your FM. You have not used RETURN_TAB table in your function module.. that is the problem..check the below code
DATA: lt_returntab LIKE ddshretval OCCURS 1 WITH HEADER LINE,
lv_dynprofield LIKE help_info-dynprofld.
CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST'
EXPORTING
retfield = 'USR01'
dynprofield = lv_dynprofield
dynpprog = sy-repid
dynpnr = sy-dynnr
value_org = 'S'
TABLES
value_tab = lt_usr01
return_tab = lt_returntab.
Now the return_tab will contain the selected value which you can use for next search help
Cheers,
Kothand
09-11-2008 1:42 PM
Dear Kothand,
thanks you so much for your reply,
but i tired to use that
CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST'
EXPORTING
RETFIELD = P_V_RETFLD
DYNPROFIELD = P_V_DYNPROFLD
DYNPPROG = SY-CPROG
DYNPNR = SY-DYNNR
VALUE_ORG = 'S'
TABLES
VALUE_TAB = IT_TABLE2.
RETURN_TAB = lt_returntab.
but program said "the field RETUN_TAB is unknown, but there is a field with the similar name "LT_RETURNTAB".
i used that also
so it syntactically correct. but when i run it data not come to the the * lt_returntab*
what can i do?
09-11-2008 1:57 PM
Hello Nelson,
I think you have an extra '.' after IT_TABLE2
Olivier
09-11-2008 2:09 PM
Yes Oliver
That is the case thank you so much,
Problem solved
Dear Kothand Thank you so much.