cancel
Showing results for 
Search instead for 
Did you mean: 

ALV - How to add a field that is not in the dictionary structure?

danilo_henriques
Explorer
0 Kudos

Hello everyone,

I have an ALV component and a dictionary structure assignet to it.

Lets say that this structure has one field called customer_code.

What i want to do is to create a method to search the table where i have the customer_name and display it in my ALV component.

But the problem is that i can only assign one structure to my ALV component and the structure assigned doesnt have the field customer_name.

Is it possible to display a field which is not in the dictionary structure?

Regard

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

After creating your node using the DDIC structure, edit it to hold the customer_name also. To do this, you need to clear the value in context Node structure, and add one more attribute to it. Do a move-corresponding to the context structure after getting the data from your APIs. Loop through the internal table and fill in the customer_name for each row, corresponding to the customer_no.

Hope that was clear enough, revert for any clarification.

Regards,

Nithya

Answers (2)

Answers (2)

danilo_henriques
Explorer
0 Kudos

Thanks Tamilselvan and Nithya,

both were very helpfull answers.

Regards

Former Member
0 Kudos

Yes you can

Just create an attribute which you want additionally to the context node which contains the fields that needs to be displayed in the alv,and update the mapping with the ALV component.

Hope this helps u

Edited by: Tamilselvan K on Jun 3, 2008 3:31 PM