2009 Jul 06 9:08 AM
Hi experts,
The values selected using the F4 help for a parameter is not being copied into the field. Please help.
Thanks.
2009 Jul 06 9:12 AM
Hi,
you should check the EXP field in the search help.
Hope this helps.
Best Regards,
Benedict
2009 Jul 06 9:12 AM
2009 Jul 06 9:26 AM
Hi,
for f4 helphould use FM 'F4IF_INT_TABLE_VALUE_REQUEST'.
If you hav eused it then paste the code .may be some mistake with the export parametrs.
2009 Jul 06 9:27 AM
Hi Sarathy,
Check the Below Sample Code,
*Checking the customer is initial
IF t_customer[] IS INITIAL.
SELECT pspid FROM proj
INTO t_customer-pspid.
APPEND t_customer.
ENDSELECT.
Function module for appending the customer in the customer listbox
CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST'
EXPORTING
retfield = 'WA_CUSTOMER'
value_org = 'S'
TABLES
value_tab = t_customer
return_tab = return2.
IF sy-subrc = 0.
t_customer-pspid = return2-fieldval.----
>you have to pass to the internal table or workarea field accordingly.
ENDIF.
ENDIF.
2009 Jul 06 9:31 AM
Hi again,
The EXP field is checked.
The problem is for the standard transaction code(mm03). For the material number the search help doesn't pick the value i click.
The same problem is there in all the tcodes where matnr is used.
Regards,
Dhasarathy.
2009 Jul 06 9:35 AM
Hi,
If I have understood it right... you are using MM03 transaction. Which is only for viewing... Did you try in MM01 or MM02?
Hope this helps.
Best Regards,
Benedict
2009 Jul 06 9:33 AM
Hi,
Which function module are u using?
if you are using F4IF_INT_TABLE_VALUE_REQUEST then provide value for return_tab to capture the retrieved data.
Regards,
Sunny
2009 Jul 06 9:37 AM
Try using this code snippet.
DATA: BEGIN OF dynpfields OCCURS 0.
INCLUDE STRUCTURE dynpread.
DATA: END OF dynpfields.
CLEAR dynpfields.
REFRESH dynpfields.
dynpfields-fieldname = '<field name>'. " For whch the F4 is clicked
APPEND dynpfields.
CALL FUNCTION 'DYNP_VALUES_READ'
EXPORTING
dyname = sy-repid
dynumb = sy-dynnr
TABLES
dynpfields = dynpfields.
IF sy-subrc = 0.
READ TABLE dynpfields WITH KEY fieldname = <field name>'.
IF sy-subrc = 0.
<screen field name> = dynpfields-fieldvalue.
ENDIF.
ENDIF.
2009 Jul 06 9:35 AM
Hi Sunny,
The problem is in the standard tcodes. Not with user developed programs.
Thanks
Dhasarathy.
2009 Jul 06 9:41 AM
Hi,
Which field it is not taking?
Edited by: sunny desai on Jul 6, 2009 2:12 PM
2009 Jul 06 9:40 AM
Hi Benedict,
The same problem I have in MM01 and MM02 also.
Regards,
Dhasarathy.
2009 Jul 06 10:25 AM
Hi,
1. If you run your search help, are the values to be exported in darker color (BLUE)?
2. Check your data element if it is the same with the MATNR used by MM* tcodes.
Hope this helps.
Best Regards,
Benedict
2009 Jul 06 9:44 AM
Hi Sunny,
It is not takin values for matnr(material Number) field.
Dhasarathy.
2009 Jul 06 10:05 AM
hi,
try this..
CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST'
EXPORTING
* DDIC_STRUCTURE = ' '
retfield = 'AREA'
* PVALKEY = ' '
dynpprog = 'Z_F1F4' " program name
dynpnr = '1010' " screen number
dynprofield = 'AREA' " firld name
* STEPL = 0
* WINDOW_TITLE =
* VALUE = ' '
value_org = 'S'
* MULTIPLE_CHOICE = ' '
* DISPLAY = ' '
* CALLBACK_PROGRAM = ' '
* CALLBACK_FORM = ' '
* MARK_TAB =
* IMPORTING
* USER_RESET =
TABLES
value_tab = itab " internal table name
* FIELD_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.
ENDMODULE. " GET_F4_HELP INPUT
hope this helps
Regards
Ritesh J
2009 Jul 06 10:28 AM
2009 Jul 06 10:54 AM
Hi Benedict,
I checked the search help. the material number (matnr) is nt shown in dark blue color. What should be done to make it blue.
Regards,
Dhasarathy.
2009 Jul 06 11:01 AM
Hi,
What I meant in dark blue was - it should be darker than the fields that are not to be exported.
I have tried creating a new search help, and when the EXP field is ticked, it will be automtically have a darker blue color (compared to those fields - EXP column not ticked).
Best Regards,
Benedict
2009 Jul 06 11:09 AM
Hi Benedict,
I got what you meant. Actually the export parameter is checked.
If the same field is used as elementary search help, it works fine. The problem nw is when it is used as collective search help.
The collective search help used in the standard is MAT1_A.
Regards,
Dhasarathy.
2009 Jul 06 11:44 AM
Hi,
Have you tried putting the parameter assignment - in the included search helps tab.
Also, what selection method are you using? Is it coming from the standard?
Check if your collective search help Imp field is ticked. It should be ticked so that it will import the values coming from your elementary search help.
Best Regards,
Benedict
2009 Jul 07 9:01 AM
hi,
Yeah the EXP field is checked in the collective search help. But its nt takin from the elementary search help.
The selection is comin from the standard search help MAT1.
Regards,
Dhasarathy.
Edited by: dhasarathyk on Jul 7, 2009 10:01 AM
2009 Jul 10 9:29 AM
Hi,
Is the issue solved?
IMP field for the collective search help should be ticked. EXP field in the elementary search help should also be ticked so that the collective will import the value and the elementary will export the values.
hope this helps.
Best Regards,
Benedict
2009 Jul 10 9:48 AM
2009 Jul 14 10:45 AM
Thanks for all.
Edited by: dhasarathyk on Jul 14, 2009 11:45 AM
| User | Count |
|---|---|
| 3 | |
| 2 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |