on 03-11-2009 4:48 PM
Hi guys,
I´m designing an ALV tree in WDA, and I´m facing a problem that couldn´t solve yet.
I need the Node and the Leaf having different fields. For example:
NODE: A document header data
Doc No./ Status
999 / Released
LEAF: Position data with differente fields
Item No/ Product No.
001 A9987
Can anybody help me? How should I define structures?
Thanks in advance,
Federico Alvarez.
It is not possible. Try another way. I used UI tree to organize hierarchy in WebDynPro. See standart example: WDT_TREE_TABLE_BY_KEY
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hey,
I have the same issue. I need to program different fields for node and leaf. Did you figure out a solution?
Thank you.
Sumit.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Please guys...help!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thanks Jagdish,
But...where do your tell the program thar PARENT and CHILD are gonna have different structure, and the only field in common they´ll have is a single key column?
Regards,
Federico
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
hi ,
you just need to configure your alv
like following code and put into view init method
DATA LO_COMPONENTINTERFACE TYPE REF TO IF_WD_COMPONENT_USAGE.
LO_COMPONENTINTERFACE = WD_THIS->WD_CPUSE_ALV( ).
DATA LO_CMP_USAGE TYPE REF TO IF_WD_COMPONENT_USAGE.
LO_CMP_USAGE = WD_THIS->WD_CPUSE_ALV( ).
IF LO_CMP_USAGE->HAS_ACTIVE_COMPONENT( ) IS INITIAL.
LO_CMP_USAGE->CREATE_COMPONENT( ).
ENDIF.
DATA LO_INTERFACE TYPE REF TO IWCI_SALV_WD_TABLE.
LO_INTERFACE = WD_THIS->WD_CPIFC_ALV( ).
LO_INTERFACE->SET_DATA(
EXPORTING
R_NODE_DATA = LO_ND_READ_TABLE_DETAIL '' your node name
).
WD_THIS->R_TABLE = LO_INTERFACE->GET_MODEL( ).
DATA LR_TABLE_SETTINGS TYPE REF TO IF_SALV_WD_TABLE_SETTINGS.
DATA LR_COLUMN_SETTINGS TYPE REF TO IF_SALV_WD_COLUMN_SETTINGS.
declared the R_TABLE type CL_SALV_WD_CONFIG_TABLE in attributes
LR_TABLE_SETTINGS ?= WD_THIS->R_TABLE.
LR_TABLE_SETTINGS->SET_DISPLAY_TYPE(
IF_SALV_WD_C_TABLE_SETTINGS=>DISPLAY_TYPE_HIERARCHY )
.
DATA : LR_COLUMN_SETTINGS TYPE REF TO IF_SALV_WD_COLUMN_SETTINGS.
DATA : LR_COLUMN1_SETTINGS TYPE REF TO IF_SALV_WD_TABLE_HIERARCHY.
DATA : LR_COLUMN2_SETTINGS TYPE REF TO IF_SALV_WD_COLUMN_HIERARCHY.
LR_COLUMN_SETTINGS ?= WD_THIS->R_TABLE.
LR_COLUMN1_SETTINGS ?= WD_THIS->R_TABLE.
DATA : R_VALUE TYPE REF TO CL_SALV_WD_COLUMN.
*R_VALUE ?= WD_THIS->R_TABLE.
R_VALUE =
LR_COLUMN_SETTINGS->GET_COLUMN(''HQ_NAME''). *'' your root node name*
R_VALUE->IF_SALV_WD_COLUMN_HIERARCHY~SET_HIERARCHY_COLUMN( ABAP_TRUE ).
R_VALUE =
LR_COLUMN_SETTINGS->GET_COLUMN('matnr'). '' as below your leafe names
R_VALUE->IF_SALV_WD_COLUMN_HIERARCHY~SET_HIERARCHY_COLUMN( ABAP_TRUE ).
LR_COLUMN1_SETTINGS->SET_LAST_HIER_COLUMN_AS_LEAF(
ABAP_TRUE ).
LR_COLUMN1_SETTINGS->SET_EXPANDED( ABAP_TRUE ).
.
i think it will definetly help you to solve your problem.
Edited by: jagdish pawar on Mar 13, 2009 1:07 PM
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Manoj,
It seems to be a good template, but where do I find the file that the programs asks to upload? The table without data is not very helpful...
Thank you very much,
Federico
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Federico,
Check this standard component - SALV_WD_TEST_TABLE_HIER regarding your problem.
Hopes this will help you.
Regard
Manoj Kumar
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thanks, but it´s not what I needed.
Regards,
Federico.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
This link will be helpful.
Abhi
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
81 | |
9 | |
9 | |
7 | |
7 | |
6 | |
6 | |
6 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.