cancel
Showing results for 
Search instead for 
Did you mean: 

a problem about webdynpro

Former Member
0 Kudos

Hi everyone,

I am doing some task about webdynpro. and I encounter a problem . that is the detail below.

First I need to create a webdynpro , and I need pass some parameters to the PDF form, but the interface of the PDF form needs a type of internal table. and I want to know how to get the internal table in the webdynpro .

data:

Node_Et_Pricelist type ref to If_Wd_Context_Node,

Elem_Et_Pricelist type ref to If_Wd_Context_Element,

Stru_Et_Pricelist type Wd_This->Element_Et_Pricelist .

  • navigate from <CONTEXT> to <ET_PRICELIST> via lead selection

Node_Et_Pricelist = wd_Context->get_Child_Node( Name = wd_This->wdctx_Et_Pricelist ).

  • @TODO handle not set lead selection

if ( Node_Et_Pricelist is initial ).

endif.

  • get element via lead selection

Elem_Et_Pricelist = Node_Et_Pricelist->get_Element( ).

  • get all declared attributes

Elem_Et_Pricelist->get_Static_Attributes(

importing

Static_Attributes = Stru_Et_Pricelist ).

I use this one to return a Structure. it is not correct. I need to deserve a internal table.

thanks in advance.

Nick

Accepted Solutions (1)

Accepted Solutions (1)

shwetars
Advisor
Advisor
0 Kudos

Hi Nick,

try using the method GET_STATIC_ATTRIBUTES_TABLE of the interface IF_WD_CONTEXT_NODE, however this will return attribute values for all the elements under a node. Thus, once you get this table you will need to filter it further based on the lead selected element.

Regards,

Shweta

Answers (0)