‎2010 Mar 11 11:24 AM
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
‎2010 Mar 11 11:32 AM
hi,
you can restrict this under
AT selection-screen output
hope this helps
Regards
RItesh
‎2010 Mar 11 11:42 AM
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
‎2010 Mar 11 11:46 AM
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.
‎2010 Mar 11 11:54 AM
Hi,
then u can write the validatin for tha field in AT SELECTION-SCREEN.
thanks
‎2010 Mar 11 3:49 PM
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