Application Development 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: 

Search help in dialog

Former Member
0 Kudos

Hi , I have created a search help for a I/o field in dialog program for material number. Now , the search help appears as an arrow with the IO field and when I click on it it also shows the range of possible values , but double clicking on the value does not automatically copy it to the field ,, how to do this

Thank you

1 ACCEPTED SOLUTION

ferry_lianto
Active Contributor
0 Kudos

Hi,

Please check the I/O field attribute (SE41) and ensure the possible entries option was checked.

Regards,

Ferry Lianto

4 REPLIES 4

Former Member
0 Kudos

Check this example which is working fine.

Check this example.

**In Top include

DATA: BEGIN OF help_item OCCURS 0,

posnr TYPE vbap-posnr,

matnr TYPE vbap-matnr,

arktx TYPE vbap-arktx,

END OF help_item.

DATA: dynfields TYPE TABLE OF dynpread WITH HEADER LINE.

    • In POV Module

dynfields-fieldname = 'P_VBELN'.

APPEND dynfields.

**Read the Values of the SCREEN FIELDs

CALL FUNCTION 'DYNP_VALUES_READ'

EXPORTING

dyname = sy-cprog

dynumb = sy-dynnr

translate_to_upper = 'X'

TABLES

dynpfields = dynfields

EXCEPTIONS

invalid_abapworkarea = 1

invalid_dynprofield = 2

invalid_dynproname = 3

invalid_dynpronummer = 4

invalid_request = 5

no_fielddescription = 6

invalid_parameter = 7

undefind_error = 8

double_conversion = 9

stepl_not_found = 10

OTHERS = 11.

**Find out the Value of P_VBELN

READ TABLE dynfields WITH KEY fieldname = 'P_VBELN'.

p_vbeln = dynfields-fieldvalue.

**Convert the Value into internal format

CALL FUNCTION 'CONVERSION_EXIT_ALPHA_INPUT'

EXPORTING

input = p_vbeln

IMPORTING

output = p_vbeln.

**Fetch the correponding itemnos from VBAP

SELECT posnr matnr arktx INTO TABLE help_item

FROM vbap

WHERE vbeln = p_vbeln.

**Generate the F4 help with internal table values

CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST'

EXPORTING

retfield = 'POSNR'

dynprofield = 'P_POSNR'

dynpprog = sy-cprog

dynpnr = sy-dynnr

value_org = 'S'

TABLES

value_tab = help_item.

Can you check your code with this and make sure where it is going wrong?

ashish

Former Member
0 Kudos

How you added search help in dialog programming ?

Make sure that you can add search help if you go layout,double click on field(Material).

Look at attributes ,here you can see search help,just enter serach help name here.

Please activate the dialog programs properly other wise output will not come as you expected.

Thanks

Seshu

0 Kudos

Yes Seshu

that is exactly how I added the search help to the IO field. Now when I run the program , I can see the searchhelp arrow and when I click on it , it also pops the list of possible values. The problem is that when I double clikc on the possible value , it doesnt get copied to the IO field. Do I have to make some change to the search help itself ?

ferry_lianto
Active Contributor
0 Kudos

Hi,

Please check the I/O field attribute (SE41) and ensure the possible entries option was checked.

Regards,

Ferry Lianto