cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

How to Create a Class to populate list box

former_member197475
Active Contributor
0 Likes
225

Hi Experts,

I'm in a need of adding fields STATE and COMPANY to Job Search application as an additional search criteria. I have added those fields in respected webdynpro views.

Now I need to create the classes ZCL_HRRCF_REGION and ZCL_HRRCF_COMPANY, and wanna to add methods to populate STATE list and COMPANY list box respectively.

More over got an idea that for custom class creation, I can use a similar class CL_HRRCF_BRANCH as a reference. But still I'm stuck and don't know from where to start and in which method I want to add data to get populated.

Please help me out.

Accepted Solutions (1)

Accepted Solutions (1)

Ramprabhu_Sukum
Product and Topic Expert
Product and Topic Expert
0 Likes

Hi Ramakrishna,    

You don't have to add this fields in the web dynpro fields directly. You can achieve this through

SPRO E-Recruitment customizing.

Go to SAP E-Recruiting->Requisition Management->Posting search->Search Templates

Create a new Search template elements for Region and Company and yes you can copy CL_HRRCF_BRANCH for your reference.

After creating the Search template elements, you can assign it to search template in order to be visible in Search page.

Hope this helps.

Regards,

Ram

former_member197475
Active Contributor
0 Likes

Hi Ramprabhu,

Thanks for your info.

But still I have a doubt. What I found through SPRO is that, all the application is of type BSP but I'm working in WebDynpro ABAP. So how is it possible, if I added elements to Search Template.

More over from portal I got the respected search view in webdynpro through technical help and stucks at a point, where they are using transparent container.

So please guide me what I can do further. Correct me if I'm wrong.

Ramprabhu_Sukum
Product and Topic Expert
Product and Topic Expert
0 Likes

Hi Ramakrishna,

Search customizing is same for BSP and Web dynpro screens. So don't have to worry about that.

Just do the customizing how you do for BSP.

In search view, Web dynpro UI elements are created dynamically by reading the customizing which belongs to the transparent container.

Regards,

Ram

former_member197475
Active Contributor
0 Likes

Hi Ram,

Wow great. Thanks a lot. Got a clear point from your explanations

Ill try to implement it and CUB.

With Regards,

RAM

Answers (0)