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: 

filling a field with different values depends on the country by value help

Former Member
0 Kudos

dear experts,

Could any body help me out ?

i do have a requirement that in the Screen, iam having a field say Tshirt size, which have to be populated differntly according to the country in the value help. how can i do that.

iam mentioning what i have done:

1. defined field and selected From Dictionary Attribute in the screen.

2.maintained

Field ztab-fieldname in the chain endchain.

please do the needful as hoe come the filedname is populated with value help for different countries?

Edited by: Murthy Ganti on Dec 17, 2008 12:00 PM

6 REPLIES 6

Former Member
0 Kudos

Hi Murthy,

try FM F4IF_INT_TABLE_VALUE_REQUEST

In a dynpro ist has to be calles like this:

PROCESS ON VALUE-REQUEST.

FIELD a_field MODULE some_module.

kind regards

Miro

Former Member
0 Kudos

Hi Murty,

There are two ways in which you can approach this problem.

1. Data Dictionary Level where you can create a Search help and can associate it to the field. Based on the selected Input the value of the other fields will get populated.

2. You can program it manually in the code in Process On Value Request. You need to use the following function module Function Module F4IF_INT_TABLE_VALUE_REQUEST. This should be handled in

PROCESS ON VALUE-REQUEST.

You can have a look at the demo code which starts with DYNPRO in SE38.

Hope this will help.

Thanks,

Samantak.

0 Kudos

Hi samantak,

I do not have the access key for calling FM in the program and accomidate it as it was migrated from 4.7 to ECC already. could you explain me how can i maintain different values for different conditions using Search help only.

Regards,

Murthy.

0 Kudos

Hi Murty,

You need to create a View on the different field set which might be composed across different Tables. Once the view is created you need to create a Search Help using that View by selecting the fields that will come in the Help. Below is the step by step Documentation for the Search Help Creation.

Link 1

http://help.sap.com/saphelp_nw04/helpdata/EN/cf/21ee2b446011d189700000e8322d00/content.htm

Link 2

http://help.sap.com/saphelp_nw04/helpdata/en/9f/dbaa5435c111d1829f0000e829fbfe/content.htm

But after going through your statement, I have one concern. As you mentioned that you don't have any access for the calling FM in a Report Program, then I doubt whether you will have authorization for the Data Dictionary Object creation also. Just check the Roles and Authorization assigned to your user. You need the S_DEVELOP Authorization Object for any new create.

Hope this helps.

Thanks,

Samantak

0 Kudos

hi samantak,

what view i need to create? help view?

Regards,

Murthy.

0 Kudos

HI Murty,

You need a Help View to create a Search Help. Below is the link which will tell you how to create the View and to associate it with the Screen Fields.

Help View

http://help.sap.com/saphelp_webas620/helpdata/en/cf/21ecd2446011d189700000e8322d00/frameset.htm

Linking the View to Screen

http://help.sap.com/saphelp_webas620/helpdata/en/cf/21ee93446011d189700000e8322d00/frameset.htm

Hope this will help.

Thanks,

Samantak.