Skip to Content
avatar image
Former Member

Problem with ALV for subnodes

Hi,

1. We have following hierarchy in conext of componentcontroller

Context

---Flight(Subnode under Context node)

-


Meal( Subnode under Flight Node)

2. Two ALV component usage (ALV_FLIGHT and ALV_MEAL)

3. In a view there are two view container ui element

4. In Window each view container ui element contains corresponding alv table for ALV_FLIGHT and ALV_MEAL

5. Both Flight and Meal nodes of componentcontroller are bounded to interface data node of corresponding alv table.

6. When application is executed---> Flight ALV is coming properly while Meal ALV is not visible.

7. If i take Meal node out of flight and put directly under Context node then ALV for meal is visible.

Why Meal alv is not visible as mentioned in step6 ? Please help.

Thanks,

Rahul

Edited by: Rahul Yadav on Feb 25, 2010 6:00 PM

Edited by: Rahul Yadav on Feb 25, 2010 6:15 PM

Edited by: Rahul Yadav on Feb 25, 2010 6:16 PM

Edited by: Rahul Yadav on Feb 25, 2010 6:16 PM

Edited by: Rahul Yadav on Feb 25, 2010 6:17 PM

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

1 Answer

  • Feb 25, 2010 at 12:59 PM

    You shouldn't use an ALV for parent nodes with subnodes. From the online help:

    If your application has created subnodes for the context node, (master-detail scenario), these subnodes are lost as soon as the ALV component invalidates the context node. If the application then tries to access the subnodes, a runtime error occurs.

    http://help.sap.com/saphelp_nw70ehp1/helpdata/en/42/b9ea094f4a3118e10000000a1553f7/frameset.htm

    Add comment
    10|10000 characters needed characters exceeded