on 05-24-2007 3:46 AM
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
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
95 | |
11 | |
11 | |
10 | |
9 | |
8 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.