cancel
Showing results for 
Search instead for 
Did you mean: 

Search help in Web Dynpro in ABAP

Former Member
0 Kudos

Hi,

I am starting with WD for ABAP (NW04s). I am using PA0022 table as model and displaying these values on the view. By default most of the fields like country, education centre, Faculty, Branch, Score come with an F4 option. But the value displayed in these fields are always key fields(Numeric), which would not make any sense for the end user. Now I would like the Text/Descriptions to be displayed against each field.

Can anyone help me out.

Regards,

<i><b>Seema.</b></i>

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

Thanks a lot guys,

My Question has been answered.

Regards,

Seema.

Former Member
0 Kudos

Using dropdownby Key select fields is a good option here.

Change the input fields to be Dropdownby key instead.

Where there is a domain, the framework will populate the metadata in the context nicely.

Where the dropdown list isnt poulated as you would like, you can quickly fill the values.

basic code steps:

WD_CONTEXT -> Get_child_node " get the node containing the fields to have dropdowns

lr_child_node->get_node_info " get a reference to the metadata info of a node.

lr_node_info->set_attribute_value_set " to populate with key value / human friendly values

The user now sees descriptions, the context attribute receives the key value.

This is not a search help, and is suitable for small lists only. eg < 100 entries

regards

Phil

Former Member
0 Kudos

Thanks Phil,

I had tried this Method but it is giving me this kind of Error <b> " The ASSERT condition was violated. </b>

Please help me out.

Murali_Shanmu
Active Contributor
0 Kudos

Hi Seema,

I think the values you are trying to populate exceeds 100 entries, and drop downs are not suitable in this scenario. Try doing the same where there are less than 100 entries and test the same.

Regards,

Murali.

Former Member
0 Kudos

Hi Seema

what was the assert condition in the dump ?

My crystal ball is in for service

cheers

Phil

Former Member
0 Kudos

Hi Phil

This is the dump i m getting,

Note

The following error text was processed in the system D35 : Attribut LANGU konnte nicht gefunden werden. ¥&#43970;¦

The error occurred on the application server RETHR6_D35_01 and in the work process 0 .

The termination type was: RABAX_STATE

The ABAP call stack was:

Method: IF_WD_CONTEXT_NODE_INFO~GET_ATTRIBUTE of program CL_WDR_CONTEXT_NODE_INFO======CP

Method: GET_AND_FORMAT of program CL_WDR_DATA_CONTAINER=========CP

Method: IF_WDR_SHLP_CONTEXT_MANAGER~GET_VALUES of program CL_WDR_DEFAULT_SHLP_CONTEXT===CP

Method: CREATE_SEARCH_HELP of program CL_WDR_DDIC_SEARCH_HELP=======CP

Method: CONSTRUCTOR of program CL_WDR_VALUE_HELP_HANDLER=====CP

Method: HANDLE_DD_SHLP of program CL_WDR_VALUE_HELP_HANDLER=====CP

Method: HANDLE_VALUE_HELP of program CL_WDR_VALUE_HELP_HANDLER=====CP

Method: HANDLE_AFTER_UPDATE_DATA of program /1WDA/LSTANDARD===============CP

Method: IF_WDR_CLIENT~AFTER_CLIENT_UPDATES of program CL_WDR_CLIENT_SSR=============CP

Method: DO_AFTER_TRANSPORT of program CL_WDR_WINDOW_PHASE_MODEL=====CP

Plz help me out.

Regards,

Seema

RalfRuth
Employee
Employee
0 Kudos

Hi Seema,

this seems to be a problem in the Web Dynpro ABAP Dictionary Search Help component.

Please open a customer message and provide all necessary information to reproduce the problem (System/Client, Web Dynpro Component/Application and the steps to execute).

Thanks and Greetings,

Ralf

Former Member
0 Kudos

After you have created Message on SMP,

Try the following:

add the attribute LANGU to the node where these fields are located in the context.

May require you to create a structure

with include paXXXX and LANGU.

Then use this structure instead of paxxxx in the context.

Set the context of LANGU to a valid language.

I suspect you will need E and not EN for english.

So trial error while waiting for the SMP response.

regards

Phil.

Former Member
0 Kudos

That was the problem in Web Dynpro ABAP Dictionary Search Help component, So i had created custom search help.

Thanks a lot guys,

Regards,

Seema.