‎2007 Mar 14 4:47 AM
Hi Experts,
I am using the function F4IF_INT_TABLE_VALUE_REQUEST in my code as follows :
&----
*& Report ZTESTER
*&
&----
*&
*&
&----
REPORT ZTESTER.
DATA : begin of VALUE_TAB occurs 0,
matnr like marc-matnr,
werks like marc-werks,
pstat like marc-pstat,
end of value_tab.
data: Lt_fields type table of dfies,
lt_return LIKE ddshretval OCCURS 0 WITH HEADER LINE.
PARAMETERS : P_WERKS LIKE MARC-WERKS.
AT SELECTION-SCREEN ON VALUE-REQUEST FOR P_WERKS.
SELECT matnr werks pstat INTO CORRESPONDING FIELDS OF TABLE
VALUE_TAB
FROM MARC WHERE MATNR LIKE 'SH%'.
CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST'
EXPORTING
DDIC_STRUCTURE = 'MARC'
retfield = 'WERKS'
PVALKEY = ' '
DYNPPROG = SY-REPID
DYNPNR = SY-DYNNR
DYNPROFIELD = 'P_WERKS'
STEPL = 0
WINDOW_TITLE =
VALUE = ' '
VALUE_ORG = 'S'
MULTIPLE_CHOICE = 'X'
DISPLAY = 'X'
CALLBACK_PROGRAM = ' '
CALLBACK_FORM = ' '
MARK_TAB =
IMPORTING
USER_RESET =
tables
value_tab = VALUE_TAB
FIELD_TAB = LT_FIELDS
RETURN_TAB = LT_RETURN
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.
LOOP AT LT_RETURN.
P_WERKS = LT_RETURN-fieldval.
ENDLOOP.
The code is working fine and when we execute the report and press F4 on the Field, there is an option for User Input also in the search help. The F4 Help shows the values for Material, Plant and Maintenance Status. Also, the user-input options contain the same fields.
My question is Can we give user an additional field say, MARC-MMSTA to enter the value in but dont display it in the value-list.
Please help. Points will be rewarded to useful answers.
Thanks.
‎2007 Mar 14 5:22 AM
This is not possible.... when ever you give an additional field as user input, these values are definitely reflected when you call for F4 help... So its not possible to avoid the additional field to be displayed...
Regards,
Pavan P.
‎2007 Mar 14 5:22 AM
This is not possible.... when ever you give an additional field as user input, these values are definitely reflected when you call for F4 help... So its not possible to avoid the additional field to be displayed...
Regards,
Pavan P.