Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

Hierarquical List with OO.

Hi Abapers.

I've been trying to develop a hierarquical list using as a reference the example program BCALV_TREE_SIMPLE_DEMO given by any of you in furthers threads. The problem is that, adjusting it to my settings, I cannot distinguise between header data and item data.

In order to adapt it, I've created a DDic Structure with both data of header and pos, which looks like:

Estructura         ZSD_ORDERLIST                  activo                                                                       
Descripción breve  Carga Pedidos Excel - Estructura de Listado                                                                                
1 / 17                                                 
   Componente      TpReTp.componentes  Tipo de daLong. DecimaDescripción breve                                           Grupo 
   REFERENCIA          ZREFERENCE      CHAR          10     0Referencia de Creación de Pedido                                  
   FECHA_TRAT          DATUM           DATS           8     0Fecha                                                             
   KUNNR               KUNNR           CHAR          10     0Nº de cliente 1                                                   
   DOC_TYPE            AUART           CHAR           4     0Clase de documento de ventas                                      
   SALES_ORG           VKORG           CHAR           4     0Organización de ventas                                            
   DISTR_CHAN          VTWEG           CHAR           2     0Canal de distribución                                             
   SALES_OFF           VKBUR           CHAR           4     0Oficina de ventas                                                 
   SALES_GRP           VKGRP           CHAR           3     0Grupo de vendedores                                               
   PURCH_NO_C          BSTKD           CHAR          35     0Número de pedido del cliente                                      
   PURCH_DATE          BSTDK           DATS           8     0Fecha del pedido de compras efectuado por el cliente              
   TRATADO             ZTRATADO        CHAR           1     0Status de Tratamiento del Pedido                                  
   NUM_PEDIDO          VBELN           CHAR          10     0Número de documento comercial                                     
   POSICION            POSNR           NUMC           6     0Número de posición del documento comercial                        
   MATERIAL            MATNR           CHAR          18     0Número de material                                                
   REQ_QTY             DZMENG          QUAN          13     3Cantidad prevista en unidad de medida de venta                    
   UNIDAD              DZIEME          UNIT           3     0Unidad de medida para la cantidad prevista                        
   BONIFICADO          FLAG            CHAR           1     0Indicador general                                                                                

So, 'til field named num_pedido, the data belongs to header; the rest is for positions.

So, how could I make a "header line" and the "pos" lines (with corresponding data), in a hierarquical tree -using OO (it's a requiriment) cause need to insert that list in a screen with many others objects.

Thanks a lot.

Former Member

Helpful Answer

by
Not what you were looking for? View more on this topic or Ask a question