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

require user specific F4 functionality for a field in a program output

Former Member
0 Likes
876

Dear all,

My requirement is i am using a field for ex: bukrs, name1 for an output. when iam using this two field in a program, if that program executes, i need F4 functionality for user specific. f4 functionality should show depends upon the name1.

In a template i have these two variables, when i give name1 as 'ABCD' and press f4 for the bukrs it should display only bukrs which are mapped to ABCD. Lets assume one table is there for name1 mapper to bukrs.

How it is possible. if so please let me know.

Regards

Arani Bhaskar

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
844

Hi,

Use At selection-screen for value-request for bukrs.

PARAMETERS: Bukrs TYPE spfli-carrid,

name1 TYPE spfli-carrid.

AT SELECTION-SCREEN ON VALUE-REQUEST FOR name1.

CALL SCREEN 100 STARTING AT 10 5

ENDING AT 50 10.

MODULE value_list OUTPUT.

SUPPRESS DIALOG.

LEAVE TO LIST-PROCESSING AND RETURN TO SCREEN 0.

SET PF-STATUS space.

NEW-PAGE NO-TITLE.

select single bukrs from <Databasetable> into <ITAB>-BUkrs

where name1 = name1.

Write : / Itab-bukrs.

hide bukrs.

Endselect.

ENDMODULE.

AT LINE-SELECTION.

CHECK NOT name1 IS INITIAL.

LEAVE TO SCREEN 0.

Regards,

Gurpreet

8 REPLIES 8
Read only

Former Member
0 Likes
845

Hi,

Use At selection-screen for value-request for bukrs.

PARAMETERS: Bukrs TYPE spfli-carrid,

name1 TYPE spfli-carrid.

AT SELECTION-SCREEN ON VALUE-REQUEST FOR name1.

CALL SCREEN 100 STARTING AT 10 5

ENDING AT 50 10.

MODULE value_list OUTPUT.

SUPPRESS DIALOG.

LEAVE TO LIST-PROCESSING AND RETURN TO SCREEN 0.

SET PF-STATUS space.

NEW-PAGE NO-TITLE.

select single bukrs from <Databasetable> into <ITAB>-BUkrs

where name1 = name1.

Write : / Itab-bukrs.

hide bukrs.

Endselect.

ENDMODULE.

AT LINE-SELECTION.

CHECK NOT name1 IS INITIAL.

LEAVE TO SCREEN 0.

Regards,

Gurpreet

Read only

0 Likes
844

Hi,

I should appreciate your immediate response. But my requirement not solved with your reply.

Regards

Arani Bhaskar

Read only

Former Member
0 Likes
844

Hi ,

Make use of the search help exit functionality and update the 'record tab' based on your requirement. The modified values in the 'record tab' will serve your purpose.

Regards,

Praveen N

Read only

0 Likes
844

Hi,

Thanks for your response, but i didnt clear picture of urs, please explain little bit in detailed way.

Regards

Arani Bhaskar

Read only

Former Member
0 Likes
844

This message was moderated.

Read only

Former Member
0 Likes
844

Hello Arani,

I think solution to your problem lies in using MATCHCODE addition to parameters and select-options as well.


(This is from SAP F1-Help)

... MATCHCODE OBJECT search_help 


*Effect* 
This addition links the input field of the parameter to a search help search_help from the ABAP Dictionary. The name of the search help must be entered directly. For the input field of the parameter on the selection screen, the input help key is displayed. When the input help (F4) is requested, the user is displayed the hit list from the search help. When an entry is selected, the respective value is placed into the input field. If no search help for the specified name exists in the ABAP Dictionary, a message is displayed in the status line when the input help is requested. 

The addition MATCHCODE OBJECT cannot be used together with the additions AS CHECKBOX or RADIOBUTTON. 



*Note* 
The predecessors of search helps in the ABAP Dictionary were socalled matchcode objects. This is why you have the name MATCHCODE OBJECT for this addition. Matchcode objects that have not yet been replaced by search helps continue to be supported by this addition. 



*Example* 
Linking the parameter p_carrid with a suitable search help. When you choose the input help on the selection screen, a list with the names of the airline carriers is displayed. If a name is selected, the corresponding abbreviation is placed in the input field. 

PARAMETERS p_carrid TYPE s_carr_id 
           MATCHCODE OBJECT demo_f4_de.

Moreover, please read about using MATCHCODE, hope it helps you, Arani.

Thanks: Zahack

Read only

Former Member
0 Likes
844

Well Arani,

Please read about it:

That would add to your basket.

[Match Code|http://help.sap.com/erp2005_ehp_04/helpdata/EN/4f/71e09b448011d189f00000e81ddfac/frameset.htm]

Thanks: Zahack

Read only

Former Member
0 Likes
844

Thanks