Skip to Content

Requirement : The F4 help of tax category should be filtered dynamically based on the country selected by the user in supplier self registration page in SRM 7 .

Solution         : 

   Step  1: Create a search help for tax category in SE11.

   Step 2 : Enter all the fields in “Search help parameter” which you want to be displayed in the search help pop up.    

                 Lpos : List position – > Enter the sequence in which you want the fields to be displayed in the F4 popup. (e.g 1,2,3,….)

                 Spos : Selection position – > Enter the sequence in which you want the parameters to be displayed in the F4 selection screen(when you execute

                             search  help independently ) (e.g 1,2,3,….).     

   Step 3 : Now for the data selection there can be two possible ways

                1.Selection method : you can enter the name of the table here from which data needs to be fetched .

                                                      But this is not useful since we need to have values dynamically based on user selection in other field .so we will use the second

                                                      option.

                2.Search help exit    : Here you can enter the name of exit (Function module which will retrieve data based on user selection )  .

  Step 4 : inside the exit (FM) we can use the FM “F4UT_PARAMETER_VALUE_GET” to get the country value selected by user if and only if both the attributes

               are 

               in same node (country and tax category).

               Since in our case both are in different nodes, so we have to use the concept of SET/GET PARAMETER ID.

           

               Write a SET PARAMETER statement in the WDDOMODIFYVIEW statement so that when ever the user select any country , its values will be stored in

               SAP  memory.

               SET PARAMETER ID ‘CNT’ FIELD lv_country.

  Step 4:  Now in the exit we will first get the value of country selected by user with the help of GET PARAMETER ID statement.

              GET PARAMETER ID ‘CNT’ FIELD

  Step 5 : Now you can select the tax category from the database with where condition country = selected by user and keep it in a internal table

               lets say IT_TAXTYPE

  Step 6 : After all this we can show the values in IT_TAXTYPE with the help of FM“F4UT_RESULTES_MAP”

  Step 7 : finally attached the search help created in step 1 , either to the type of the UI element in the “Entry help/check” as a explicit search help or directly

               attache it with the UI element by specifying it to “Dictionary search help” property.

Hope the document was useful to you.

Please let me know if you need more clarification.

Thanks,

Gejo john

Lnt Infitech Pune

To report this post you need to login first.

Be the first to leave a comment

You must be Logged on to comment or reply to a post.

Leave a Reply