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

F4 help

Former Member
0 Likes
764

Hi,

I have created some fields as select-option fields from LFA1 table.But I am not getting F4 help for those fields.How can i get F4 help for those fields?

Thanks and Regards,

Hema

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
707

Use

<b>F4_IF_FIELD_VALUE_REQUEST </b>- Use values from a DDIC table to provide a list of possible values. TABNAME and FIELDNAME are required fields, and when MULTIPLE_CHOICE is selected, more than one value can be returned.


 call function 'F4IF_INT_TABLE_VALUE_REQUEST'
exporting
retfield = 'BEGRU'
value_org = 'S'
tables
value_tab = t_values
return_tab = t_return
exceptions
parameter_error = 1
no_values_found = 2
others = 3.

Message was edited by:

Santosh Kumar Patha

6 REPLIES 6
Read only

Former Member
0 Likes
707

HI..

Change your code with this ref.

DATA: BEGIN OF wa_locid ,

enttyp LIKE zmd_blend_tsw-locid,

END OF wa_locid.

DATA:it_locid LIKE TABLE OF wa_locid WITH HEADER LINE.

AT SELECTION-SCREEN ON VALUE-REQUEST FOR p_locid .

SELECT DISTINCT locid FROM zmd_blend_tsw INTO TABLE it_locid.

AT SELECTION-SCREEN ON VALUE-REQUEST FOR p_tswloc .

PERFORM f0600_locid.

  • CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST'

  • EXPORTING

    • DDIC_STRUCTURE = ' '

  • retfield = 'P_LOCID'

    • PVALKEY = ' '

  • dynpprog = 'ZMDU_BLEND_TBL'

  • dynpnr = '1000'

  • dynprofield = 'P_LOCID'

    • STEPL = 0

  • window_title = 'TSW Location'

    • VALUE = ' '

  • value_org = 'S'

    • MULTIPLE_CHOICE = ' '

    • DISPLAY = ''

    • CALLBACK_PROGRAM = ' '

    • CALLBACK_FORM = ' '

    • MARK_TAB =

    • IMPORTING

    • USER_RESET =

  • TABLES

  • value_tab = it_locid

    • 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.

Reward all helpfull answers.

Regards.

Jay

Read only

Former Member
0 Likes
708

Use

<b>F4_IF_FIELD_VALUE_REQUEST </b>- Use values from a DDIC table to provide a list of possible values. TABNAME and FIELDNAME are required fields, and when MULTIPLE_CHOICE is selected, more than one value can be returned.


 call function 'F4IF_INT_TABLE_VALUE_REQUEST'
exporting
retfield = 'BEGRU'
value_org = 'S'
tables
value_tab = t_values
return_tab = t_return
exceptions
parameter_error = 1
no_values_found = 2
others = 3.

Message was edited by:

Santosh Kumar Patha

Read only

Former Member
0 Likes
707

Hi Hema,

Use foll. statement in ur code for the field u need F4 help..

AT SELECTION-SCREEN ON VALUE-REQUEST FOR field

for more details, check out this link,

http://help.sap.com/saphelp_nw2004s/helpdata/en/79/34a246d9b511d1950e0000e8353423/frameset.htm

Hope it helps

Read only

Former Member
0 Likes
707

hi

put the fields that u have taken from LFA1 into any custom table.then create foreign key relationship for those fields. then u will get search help.

foreign key -

select a field(complete row- click on key symbol. it will display the check table. genarate proposal--click on copy) save and activate.

reward if useful..

Read only

Former Member
0 Likes
707

What are those fields. Can you please let me know.

Regards

Vijay

Read only

Former Member
0 Likes
707

hi

good

check out your select-options statement properly,the syntax might be wrong otherwise it must come if there is value for that field in the TABLE LFA1.

THANKS

MRUTYUN^