cancel
Showing results for 
Search instead for 
Did you mean: 

Dynamic reverse mapping

Former Member
0 Kudos

Hi,

I have 2 components.

The component 1 (main component) has a node called Experience and the component 2 (component usage) has a node called Columns.

I want to map the Experience node to the Columns node at runtime using reverse mapping like is use in ALV.

Anyone have an idea to make this?

Thanks,

Rodrigo.

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi Rodrigo,

This can be achieved by technique called EXTERNAL Mapping. You need to develop the used component with EXTERNALLY MAPPED node. As first step the NODE thats intended for your reverse mapping in your USED COMPONENT, must have property Input Element ( ext ) as value checked.

Then as in the ALV you can map the data, you can map data here from your USING COMPONENT. Restriction however is, in ALV you define the structure & forget about it. In your custom control you will have to ensure that STRUCTURE of the NODE externally mapped existing in your USED COMPONENT, is binded to the NODE with exactly similar structure from the USING COMPONENT.

[http://help.sap.com/saphelp_nw04s/helpdata/EN/67/cc744176cb127de10000000a155106/content.htm]

Greetings

Prashant

Answers (1)

Answers (1)

Former Member
0 Kudos

Hello,

As you can see in the document [Using ALV with a Dynamic Context Node in Web Dynpro for ABAP|https://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/4c70444a-0801-0010-7688-9e4bd844b783] at page 5 if an ALV table should be used to display a context node, which is built up at runtime, it is not possible to do external context mapping.

But the same document shows how to use the ALV with an dynamic context node via an interface method.

Regards.