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

restricting values in selection screen

Former Member
0 Likes
1,915

hi Experts

I have created one ztable with fields cost center and division fields and created matchcode objects for that.

Now i need to restrict cost center parameter based on division parameter in the selection screen.

Hari

5 REPLIES 5
Read only

Former Member
0 Likes
1,133

hi,

you can restrict this under

AT selection-screen output

hope this helps

Regards

RItesh

Read only

Former Member
0 Likes
1,133

Hi,

My exact requirement is "The cost center field should show the only cost centers of the selected division only. (System should not accept any other cost center other than which are maintained in the table)"

Please help me out.

Regards

Hari

Read only

Former Member
0 Likes
1,133

Hi,

I hope the user will first enter the division. Then user will look for input help for cost center.

If my understanding is correct:

Use the function module DYNP_VALUES_READ to read the values of the selection-screen after user has entered the division.

While calling the function module, pass the DYNAME = report name, DYNUMB = 1000 and then the DYNPFIELDS = <int_table1>.

Before calling the function module, you should populate the internal table <int_table1> with fieldname = <selection_screen_field_name_for_division>.

This function module call should be in the AT SELECTION-SCREEN ON VALUE REQUEST FOR <cost_center>.

After the function module call, you can find the user input value of division in the field FIELDVALUE of the internal table <int_table1>.

Then based on the FIELDVALUE, then you can restrict the F4 values for cost center by populating those values in the function module F4IF_INT_TABLE_VALUE_REQUEST.

Thanks,

Sakthi.

Read only

Former Member
0 Likes
1,133

Hi,

then u can write the validatin for tha field in AT SELECTION-SCREEN.

thanks

Read only

Former Member
0 Likes
1,133

Hi Hari,

The below link provides a code snippet for your requirement. Have a look at it.

http://www.divulgesap.com/blog.php?p=Njk=

Regards,

Ravikiran