Show TOC Entering content frame

Background documentation SET_DATA Locate the document in its SAP Library structure

Use

You use the method SET_DATA for two reasons:

·        To transfer the context of your application to the ALV component instead of using Structure linkexternal context mapping

·        To display the data from dynamically generated context nodes in the ALV output

Note

You also use the method SET_DATA if you want to specify another structure for your ALV output at a later date or time.  In this case, however, you cannot use the method in the WDDOINIT method or another standard method. If the ALV output has already been displayed once, you can only define the data for the ALV component in an event handler.

Prerequisites

The context nodes that you transfer to the method SET_DATA as parameters must already exist. It does not matter, however, whether you generated the context node for design time in the Web Dynpro Explorer or Structure linkadded it using the program during runtime.

Syntax

Signature

methods SET_DATA

importing

    R_NODE_DATA type REF TO IF_WD_CONTEXT_NODE

Parameter

(Importing)

    R_NODE_DATA

Name of context node that is to be transferred to ALV component

Return values

-

 

Exceptions

-

 

 

 

Leaving content frame