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: 

Issue with Parameter in Selection-Screen

Former Member
0 Kudos

Hi All,

I have a issues with PARAMETER display in Selection-Screen.

I had declared one of my parameter field as below:

<b>PARAMETERS: p_int LIKE z100-int.</b>

Here in Selection-SCreen output it is not displaying <b>F4</b> help, So that i can select INT value from list of Z100-INT.

Can anybody tell me how can we do this.

here we have to use <b>ZTable</b> only.

But if declare another Field parameter as below:

<b>PARAMETERS: P_BSARK LIKE VBKD-BSARK DEFAULT 'EDI'.</b>

It is giving <b>F4</b> Help.

Can anybody give the solution!

Thanks in advance.

Thanks & Regards,

Prasad.

13 REPLIES 13

Former Member
0 Kudos

Hello,

Forz100-int please check any search help is attached at data element level or any fixed values are given in the domain in order to get F4 help.

Other wise you have to handle

At selecetion-screen value request for z100-int.

Reward points if helps.

Thanks,

krishna

Message was edited by: Krishnakumar

Former Member
0 Kudos

Hi,

VBKD-BSARK is standars table field and for this we have standars search help.

for you case you need to create a search help or match-code object .

If you are using match code the syntax will be

SELECT-OPTIONS <field name> FOR z100-int MATCHCODE OBJECT <match code obj name>.

regards,

Sumit.

Former Member
0 Kudos

If you have search help attached at the DATA ELEMENT level then it will automatically come at the selection screen also. Looks like your ZTABLE field is referring to a DATA ELEMENT that does not have search help.

A work around, is to provide the search help yourself using PROCESS ON VALUE REQUEST.

Regards,

Ravi

Former Member
0 Kudos

u need to create a serach help and attach it in the table z100-int or attach the search help in the parameter using match code object.

Former Member
0 Kudos

Hi Prasad'

Have u assign search help in ztable????????

former_member181962
Active Contributor
0 Kudos

It is meaning less to have a search help for integers.

If you have a set of possible values, the you can create a domain with some fixed values, attach it to a data element and use that as a reference for the parameter.

or you can code for it in the

at selection-screen on value request for p_int.

Regards,

ravi

Former Member
0 Kudos

Hi,

Parameter P_BSARK is of type VBKD-BSARK, which has check table attached to it in the table VBKD.

So , the search help will appear only , if the field has check table or search help attached to it.

Since it is ztable and i fell the field int does not have check table or search help , the f4 help is not apperaing

Former Member
0 Kudos

Hi Prasad,

I think in the first case, there is no search help assigned to it....You can verify it by calling the FM F4IF_FIELD_VALUE_REQUEST and uncommenting the exceptions..You can obtain the error message as "no search help assigned".

I suppose z100 is your own table.

What you can do is to go with a listbox to select the values.You can give the values into the internal table and call the FM VRM_SET_VALUES to display the values in the listbox.

Or another method is to create a search help in SE11 and attach the search help to the parameter by using the addition MATCHCODE OBJECT to the parameter section.

Just go through this link.....

http://help.sap.com/saphelp_nw04/helpdata/en/41/f6b237fec48c67e10000009b38f8cf/content.htm

Regards,

SP.

Former Member
0 Kudos

Hi

U have to create a search help in SE11

transaction before expecting f4 help to pop

up for your Ydataelement, the process is very

simple, please follow the steps given in the following link

http://help.sap.com/saphelp_47x200/helpdata/EN/cf/21ee2b446011d189700000e8322d00/frameset.htm

after creating a search help just declare

your parameter in your se38 editor as follows

parameter: p_para type 'something' matchcode object 'search help name'(as given in the se11 transaction).

Former Member
0 Kudos

Suppose I want to declare parameter for LFA1-LIFNR ,LFA1-NAME1 MATCCODE OBJECT ZSH.

PARAMETER p_prog LIKE LFA1-LIFNR MATCHCODE OBJECT ZSH.

PARAMETER p_prog1 LIKE LFA1-NAME1 MATCHCODE OBJECT ZSH.

But in selection-screen when I choose the name for LFA1-NAME1 ONLY LIFNR i.e.

vendor no. gets populated in the block for parameter p_prog1 and i want name to be populated there.

Former Member
0 Kudos

Suppose I want to declare parameter for LFA1-LIFNR ,LFA1-NAME1 MATCCODE OBJECT ZSH.

PARAMETER p_prog LIKE LFA1-LIFNR MATCHCODE OBJECT ZSH.

PARAMETER p_prog1 LIKE LFA1-NAME1 MATCHCODE OBJECT ZSH.

But in selection-screen when I choose the name for LFA1-NAME1 ONLY LIFNR i.e.

vendor no. gets populated in the block for parameter p_prog1 and i want name to be populated there.

Former Member
0 Kudos

Suppose I want to declare parameter for LFA1-LIFNR ,LFA1-NAME1 MATCCODE OBJECT ZSH.

PARAMETER p_prog LIKE LFA1-LIFNR MATCHCODE OBJECT ZSH.

PARAMETER p_prog1 LIKE LFA1-NAME1 MATCHCODE OBJECT ZSH.

But in selection-screen when I choose the name for LFA1-NAME1 ONLY LIFNR i.e.

vendor no. gets populated in the block for parameter p_prog1 and i want name to be populated there.

Former Member
0 Kudos

Hi,

Since VBKD is a standard table it would have been assigned with search helps but yours is a customized table so u have to assign search helps or handle the event At selection-screen value Request for the table u defined.

Regards,

Ravi