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 with POPUP_GET_VALUES

Former Member
0 Kudos

I made a report that uses the POPUP_GET_VALUES FM to input some values to a table.My problem is that in a field i want to put a search help .

I can't do it ....

Can someone give an advise ...Also can i do it if the values are from a list and not from an Z table ...

Points will be rewarded ..

1 ACCEPTED SOLUTION

Former Member
0 Kudos

Hi,

Please find the below code.

CALL FUNCTION 'POPUP_GET_VALUES'

EXPORTING

NO_VALUE_CHECK = 'X'

POPUP_TITLE = POPUP_TITLE

START_COLUMN = '25'

START_ROW = '5'

IMPORTING

RETURNCODE = RETURNCODE

TABLES

FIELDS = FIELDS

EXCEPTIONS

ERROR_IN_FIELDS = 1

OTHERS = 2.

IF SY-SUBRC 0.

MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO

WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.

ENDIF.

IF RETURNCODE = 'A'.

EXIT.

ELSE.

LOOP AT FIELDS.

IF SY-TABIX = 1.

VL_CODE = FIELDS-VALUE.

ENDIF.

ENDLOOP.

Thanks & Regards,

Sudheer

6 REPLIES 6

Former Member
0 Kudos

Create a search help by going to se11.

Search help option is there, click that. and create a search help over there.

It will ask you for the selection-option while creating a search help. give the table name over there and after that field name for which you want to create a search help.

after creating a search help, go to the field in the table name. double click the field, go to further characteristics and write the search help name over there.

Reward if help.

0 Kudos

Hi,

I do not want to use DDIC search help. I want to show runtime data from the program (the way we do in function 'F4IF_INT_TABLE_VALUE_REQUEST') .

Is it possible..

Thanks,

Maharshi

andrea_olivieri
Contributor
0 Kudos

Hi,

POPUP_GET_VALUES supports F4 helps only if there is a value table assigned to the domain/data element you are using in the FIELDS[ ] table.

Regards,

Andrea

Former Member
0 Kudos

POPUP_GET_VALUES_USER_HELP -

You can create your own F4 help sub-routine and pass it as an argument for this FM.

former_member182040
Active Contributor
0 Kudos

Same question you already ask in SDN on 2007 check your thread

Edited by: Krupaji on Oct 8, 2010 11:55 AM

Former Member
0 Kudos

Hi,

Please find the below code.

CALL FUNCTION 'POPUP_GET_VALUES'

EXPORTING

NO_VALUE_CHECK = 'X'

POPUP_TITLE = POPUP_TITLE

START_COLUMN = '25'

START_ROW = '5'

IMPORTING

RETURNCODE = RETURNCODE

TABLES

FIELDS = FIELDS

EXCEPTIONS

ERROR_IN_FIELDS = 1

OTHERS = 2.

IF SY-SUBRC 0.

MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO

WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.

ENDIF.

IF RETURNCODE = 'A'.

EXIT.

ELSE.

LOOP AT FIELDS.

IF SY-TABIX = 1.

VL_CODE = FIELDS-VALUE.

ENDIF.

ENDLOOP.

Thanks & Regards,

Sudheer