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

Problem with F4 help.

Former Member
0 Likes
2,626

Hi experts,

The values selected using the F4 help for a parameter is not being copied into the field. Please help.

Thanks.

hi,

use FM 'F4IF_INT_TABLE_VALUE_REQUEST'

Please check this link

thanks

23 REPLIES 23
Read only

Former Member
0 Likes
2,587

Hi,

you should check the EXP field in the search help.

Hope this helps.

Best Regards,

Benedict

Read only

Former Member
0 Likes
2,587

hi,

use FM 'F4IF_INT_TABLE_VALUE_REQUEST'

Please check this link

thanks

Read only

Former Member
0 Likes
2,587

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.

Read only

Former Member
0 Likes
2,587

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.

Read only

Former Member
0 Likes
2,587

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.

Read only

0 Likes
2,587

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

Read only

Former Member
0 Likes
2,587

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

Read only

0 Likes
2,587

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.

Read only

Former Member
0 Likes
2,587

Hi Sunny,

The problem is in the standard tcodes. Not with user developed programs.

Thanks

Dhasarathy.

Read only

0 Likes
2,587

Hi,

Which field it is not taking?

Edited by: sunny desai on Jul 6, 2009 2:12 PM

Read only

Former Member
0 Likes
2,587

Hi Benedict,

The same problem I have in MM01 and MM02 also.

Regards,

Dhasarathy.

Read only

0 Likes
2,587

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

Read only

Former Member
0 Likes
2,587

Hi Sunny,

It is not takin values for matnr(material Number) field.

Dhasarathy.

Read only

Former Member
0 Likes
2,587

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

Read only

RaymondGiuseppi
Active Contributor
0 Likes
2,587

Is the field editable, if no, using the F4 will not change the value even if it executes a search help, no data will be sent back.

Also press F1/F9 to get the name of the search help and execute some test via SE11.

Regards,

Raymond

Read only

Former Member
0 Likes
2,587

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.

Read only

0 Likes
2,587

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

Read only

0 Likes
2,587

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.

Read only

0 Likes
2,587

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

Read only

0 Likes
2,587

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

Read only

0 Likes
2,587

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

Read only

Former Member
0 Likes
2,587

Please check note number 358305.

Hope it helps,

Raj

Read only

Former Member
0 Likes
2,587

Thanks for all.

Edited by: dhasarathyk on Jul 14, 2009 11:45 AM