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 required

Former Member
0 Likes
465

Hi Experts,

I need to implement F4 help for fields on the screen of a custom infotype. These fields do not have a data elemnt in the PS structure. Pointers on how to give and where to give the code for F4 help will be a great deal of help.

TIA.

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
443

Hi,

if there is no data element, then you can write code for your f4 help in your program.

for example :

process on value-request.

field zprod_sheet_st-cpgew module f4_cpgew. where zprod_sheet_st-cpgew is field in your screen.

and f4_cpgew is module.

module f4_cpgew input.

if it_cpgew is initial.

wa_cpgew-cpgew = '1.50'.

append wa_cpgew to it_cpgew.

wa_cpgew-cpgew = '1.80'.

append wa_cpgew to it_cpgew.

wa_cpgew-cpgew = '0.00'.

append wa_cpgew to it_cpgew.

clear wa_cpgew.

endif. " of you can select the data into table it_cpgew from database

program = sy-repid.

dynnum = sy-dynnr.

call function 'F4IF_INT_TABLE_VALUE_REQUEST'

exporting

retfield = 'CPGEW'

dynpprog = program

dynpnr = dynnum

dynprofield = 'ZPROD_SHEET_ST-CPGEW'

value_org = 'S'

tables

value_tab = it_cpgew[]

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.

Hope this will solve tour problem

Thanks & regards

3 REPLIES 3
Read only

Former Member
0 Likes
443

Hi,

Please refer the link below:

https://www.sdn.sap.com/irj/scn/advancedsearch?query=f4Helpimplementation&cat=sdn_all.

hope u'l get an idea in detail.

Regards,

rahul

Read only

Former Member
0 Likes
444

Hi,

if there is no data element, then you can write code for your f4 help in your program.

for example :

process on value-request.

field zprod_sheet_st-cpgew module f4_cpgew. where zprod_sheet_st-cpgew is field in your screen.

and f4_cpgew is module.

module f4_cpgew input.

if it_cpgew is initial.

wa_cpgew-cpgew = '1.50'.

append wa_cpgew to it_cpgew.

wa_cpgew-cpgew = '1.80'.

append wa_cpgew to it_cpgew.

wa_cpgew-cpgew = '0.00'.

append wa_cpgew to it_cpgew.

clear wa_cpgew.

endif. " of you can select the data into table it_cpgew from database

program = sy-repid.

dynnum = sy-dynnr.

call function 'F4IF_INT_TABLE_VALUE_REQUEST'

exporting

retfield = 'CPGEW'

dynpprog = program

dynpnr = dynnum

dynprofield = 'ZPROD_SHEET_ST-CPGEW'

value_org = 'S'

tables

value_tab = it_cpgew[]

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.

Hope this will solve tour problem

Thanks & regards

Read only

Former Member
0 Likes
443

Hi Kumar,

For Custom infotypes you attach search help to screen fields.

Go to SE51 and give program and screen name and go to the layout editor.

Double click on the field on the screen for which search help is required Under "Attribute" "Dictionary tab" you can find search help field

Regards

Rajvansh