Creating Hierarchy in BW !!!
Hi Gurus,
How can I create a hierachy with one person reports to two managers. my client has this scenario where One team member reports to two managers. I heard it is not possible. Please advise.!!!!
Thanks,
AC..
Hi AC,
The only way it is possible is using time-dependent attributes and make the hierarchy time-dependent where for one duration you report to one manager and for another duration another manager.
Bye
Dinesh
Similar Messages
-
Hello SAP Guru,
Please any one can giv me procedure to create hierarchy in BPC Report using Report & Analysis.
Thanks.
With regards,
Anand KUmarHi Anand,
I believe, you want a structure like this:
Acc1
Acc2
Acc3
Acc4
Acc5
Acc6
Acc7
If this is the case, then you need to setup a hierarchy in the dimension sheet first. You need to use the property ParentH1, etc. I hope you are aware of this. If this has been setup in the member sheet, then the system will automatically create a property called HLEVEL and then you can use the formula which I had specified earlier. It will definitely work. For the above example, you need to specify the formula only for Acc1, and then expand. You will get the display like above.
Hope this helps. -
How to Create Hierarchy From Flat file Structure
Hi Gurus,
There is a scenario for me regarding the Hierarchy.
Required Hierarchy structure - Region>Director>Manager-->Sales id
I have flat file which gives the info like user id , sales id , manager id, director id.
But the transaction data Flat file has structure with sales id, region id, sales amt, sales qty.
Note : Region id is another Master Data.
How i can create hierarchy from the first flat file which doesnot have region info in that but it is available in the transaction data Flat file.
Is there anyway we can create hierarchy based on the first Flat file structure which contains more that 1,00,000 records.
Try to Suggest me in this regard .
This is urgent.
Regards,
ManoHi Mano,
Defining the source system from which to load data
Choose the source system tree File ® Create.
2. Defining the InfoSource for which you want to load data
Optional: choose InfoSource Tree ® Root (InfoSources) ® Create Application Components.
Choose InfoSource Tree ® Your Application Component ® Other Functions ® Create InfoSource 3.x ® Direct Update.
Choose an InfoObject from the proposal list, and specify a name and a description.
3. Assigning the source system to the InfoSource
Choose InfoSource Tree ® Your Application Component ® Your InfoSource ® Assign Source System. The transfer structure maintenance screen appears.
The system automatically generates DataSources for the three different data types to which you can load data.
○ Attributes
○ Texts
○ Hierarchies (if the InfoObject has access to hierarchies)
The system automatically generates the transfer structure, the transfer rules, and the communication structure (for attributes and texts).
4. Maintaining the transfer structure / transfer rules
Select the DataSource for uploading hierarchies.
IDoc transfer method: The system automatically generates a proposal for the DataSource and the transfer structure. This consists of an entry for the InfoObject for which hierarchies are loaded. With this transfer method, the structure is converted to the structure of the PSA during loading, which affects performance.
PSA transfer method: The transfer methods and the communication structure are also generated here.
5. Maintaining the hierarchy
Choose Hierarchy Maintenance, and specify a technical name and a description of the hierarchy
Hope this helps
Regards
Karthik
Assign points if Helpful -
How to create hierarchy across more than one dimesion
Hi experts,
How to create hierarchy on more than one dimension in SSAS.please guide me.
ThanksHi ,
This is not Possible without making changes in the cube design .i.e;
Using Join for have to create one dimension with all attributes that you require in dimension .
Lets say you have
Dim1
att1
att2
att3
Dim2
F1
F2
You need Hierarchy as below;
Hier
att1
att3
F2
1. Add one Table in DSV using Join between both the tables.
2.Create Dimension using this newly added table.
3. Create hierarchy
https://www.simple-talk.com/sql/reporting-services/implementing-user-defined-hierarchies-in-sql-server-analysis-services/
Thanks
Please Mark This As Answer or vote for Helpful Post if this helps you to solve your question/problem. http://techequation.com -
Created "Hierarchy Field" not saved in Import Mapping File
Hello experts,
I want to save the mapping created after having imported categories via MDM Import Manager.
Everything works fine as I execute an initial import (In "Map Field" tab, I create a "hierarchy field" based on the three fields "Categorie Name, Categorie Name 2, Category Parent" and mapp the Split Hierarchy field consequently ).
My problem is as I save the Mapping and try to reuse it for a new Categories import, the former "hierarchy field" does not appear anymore. I assume Saving Mapping does not save created hierarchy fields...
Can anyone help me on this?
Thanks in Advance
Stephane NaigeonFrom XML, with fields "Category Name, Category Parent".
Then in MDM Map Tab, I clone the Field "Category Name" and create the Hierarchy Field with name "Categories", parent field "Category Parent", Child Field "Category Name", and Node name field "Category Name Clone".
Then I map the Split Hierarchy field with the destination field "Category Name [DF]", and the source field "Category Name" with the Remote Key.
The matching field in Match Record Tab is "Category Name [DF]".
I save then the mapping file but am not able to reuse it : as I said, the Hierarchy field disappears ! -
How to create hierarchy on bi7 by using dtp
how to create hierarchy on bi7 by using dtp
Hi Deba,
Procedure to create Hierarchies:
1. In the Data Warehousing Workbench under Modeling, choose the InfoObject tree.
2. If you have assigned the hierarchy basic characteristic to an InfoObject catalog, select the corresponding InfoObject catalog for an InfoArea.
If the hierarchy basic characteristic does not belong to an InfoObject catalog, choose the InfoArea Non-Assigned Nodes and the InfoObject Catalog Non-Assigned Characteristics.
3. Select the characteristic for which you want to create a hierarchy and choose Create Hierarchy from the context menu. The Create Hierarchy dialog box appears. The InfoObject name appears by default.
4. Enter a hierarchy name and description (short, medium, long). Other fields may be displayed, depending on which hierarchy properties were selected for the hierarchy basic characteristics
Fields used to enter the Validity (valid to, valid from) for the hierarchy property Total Hierarchy Time-Dependent
Fields used to specify the Hierarchy Version for the hierarchy property Hierarchies Version-Dependent.
5. Confirm your entries. The Maintain Hierarchy screen appears. You can define the structure of a hierarchy here.
6. To create a hierarchy node, you first need to choose an insertion mode: Insert as First Child or Insert As Next Neighbor (see Hierarchy Editing Functions).
7. Choose the type of node you want to create: Text Node, Characteristic Node, <Hierarchy Basic Characteristic Node> or Interval (see Hierarchy Nodes)
8. Repeat this procedure until the hierarchy structure has been set. For more information, see Modeling Nodes and Leaves.
A hierarchy can contain 50,000-100,000 leaves at most. If your hierarchy is larger, you should insert a level that is used as a navigation attribute or preferably as a separate characteristic in the dimension table.
9. You can use Level Maintenance and Hierarchy Attributes to set how the hierarchy is to be displayed and processed in reporting (see Level Maintenance and Hierarchy Attributes).
10. Save the hierarchy.
11. Activate the hierarchy. See Editing Hierarchies.
For more info
[http://help.sap.com/saphelp_nw70/helpdata/EN/80/1a6736e07211d2acb80000e829fbfe/content.htm]
[http://help.sap.com/saphelp_nw70/helpdata/EN/e6/951d102a6c11d5b2e40050da4c74dc/content.htm]
Regards,
Rajkandula -
Dear Experts!!!!!!!!!!
Can some one explain me in detail, how to create hierarchy.
both internal and external hierarchy,methodology,steps.................
Thanks in advance......
Regards,
Suman.TExplain the steps to load master data hierarchies from R/3 system.
A summary of the steps are as follows:
1) Goto Hierachy tab in infobject on to which your loading Hierachy data.
2) Select With Hierarchies.
3) Select Hierarchy Properties ( Time Dependent or not time depen..etc..)
4) Click on External Chars in Hierarchies, in that select the characterstics on which this Hierarchy is depending.
5) Then Create Infosource, assign Datasource.
6) Create Infopackage, to load Hierarchies.
7) Hierarchy section tab in Infoapackage select load Hierarchy and refersh the Available Hierarchies from OLTP, If it is Time dependent select time interval in update tab.
8) Then start the load.
If you want to load from Flat file, some what different way to do it.
It is normally done by the following:
Transferring the master datasources in RSA5 to RSA6 and then replicating the DS into BW and assignment of DS to Infosource and cretaion of Infopackage and load it into the master tables.
Generally, the control parameters for data transfer from a source system are maintained in extractor customizing. In extractor customizing, you can access the corresponding source system in the source system tree of the SAP BW Administrator Workbench by using the context menu.
To display or change the settings for data transfer at source system level, choose Business Information Warehouse --> General Settings --> Maintaining Control Parameters for Data Transfer.
Note: The values for the data transfer are not hard limitations. It depends on the DataSource if these limits can be followed.
In the SAP BW Scheduler, you can determine the control parameters for data transfer for individual DataSources. You can determine the size of the data packet, the number of parallel processes for data transfer and the frequency with which the status IDocs are sent, for every possible update method for a DataSource.
To do so, choose Scheduler --> DataSource --> Default Settings for Data transfer.
In this way you can, for example, update transaction data in larger data packets in the PSA. If you want to update master data in dialog mode, smaller packets ensure faster processing.
Thanks,
Praveen Yagnamurthy,
SAP BI Consultant,
Blue Marlin Systems-INDIA.
http://bluemarlinsys.com/bi. -
Problem while creating hierarchy
I have 3 zones viz., East, Midwest and West. Under each zone I have few cities like Atlanta and New York in East zone.
Now my goal is to create sales representatives for each city.
I've two ways one is I can right click on a city and select Sales rep ID Insert. But when I am doing so I am getting the following screen:
Create Sales representative: Multiple selection.
with 2 columns Sales repr and short description
Under Sales repr there is # and under Short description column there are the words Not assigned.
However the fact is I've entered all the sales representatives names by right clicking on the characteristic Sales Representative name and selecting "maintain master data".
Now my question is why am I not able to view the names of the sales representatives when right click on a city and select Sales rep ID Insert.
However I am able to find the names of all the sales reps when I do it manually i.e.
1. Rt click on a city name and select Insert Characteristic node.
2. Select the info object IO_SREPNM
3. Here I am able to see the list of all the sales reps and also put the sales reps under their respective cities.
But the next problem is arising when I proceed to the next step which is
<b>To save the screen "Maintain Hierarchy 'IO_SREP hierarchy': 'Modified Version'.
I am getting a dump error when I save the screen. The dump error says Error in ABAP application program AND
If I perform a check on the screen i.e. click on the button Hierarchy Consistency Check (Ctrl+F10) then I am getting the error</b>
<b>Screen name: Error log for consistency check of the hierarchy for InfoObject IO_SREP
Node SAM already exists. </b>
The reason why its giving this error is because there is a rep SAM whose name occurs twice. Now in my data I've Denver city in Midwest region and also in West region. So sales rep SAM's name also comes once in Midwest and West region.
What I want is
<b>How to avoid the dump error when I save the screen? AND1
What should I do to avoid the error Node SAM already exists. </b>
Please advice.
Thank you.
TR.Hi San,
Thank you for your suggestion. As per your advice this is what I've done. please go through this and let me know if I am doing it right or where I am going wrong?
Thank you.
As per your suggestion I clicked on
1. InfoObjects under modeling tab.
2. Right clicked on IO_SREP and selected CHANGE option.
3. Clicked on the Hierarchy tab.
4. Selected the check box with hierarchies.
5. Selected the radio button Time-Dependent Hierarchy Structure [Please note that on my screen it appears as Time-Dependent Hierarchy Structure and not as "Hierarcy structure time-dependent".
6. Now I clicked on the Maintain Hierarchies button.
7. A screen called Initial Screen Hierarchy Maintenance has opened.
should I click on the button Maintain Hierarchies because there is also another button called External Chars. In hierarchies.
Because when I clicked on the Maintain Hierarchies button in the screen Initial Screen Hierarchy Maintenance I found a text box called Restriction on hierarchy basic char. With IO_SREP in the box and with an option to select other InfoObjects.
I didnt find any characteristics on the right panel as the screen was not divided into two panels.
But when I clicked on the button External Chars. In Hierearchies a screen called External Characteristics in Hierarchies opened with 2 pannels the left one is Characteristics Template and the right one being External charactereistics. I think this is what you were referring to. So I selected IO_SOFF and IO_SREP from the Characterisitics Template and put it in the External Characteristics window.
8. I hit the continue button and I was back to the screen Change Characteristic IO_SREP: Detail.
9. When I hit the Check All button I got the message Characteristics o.k. and when I hit the Activate button I got the message InfoObject IO_SREP is active.
10. Now I am back to the Administrator Workbench: Modelling screen.
11. I selected IO_SREP and hit the Hierarchies icon. The screen Initial Screen HierarchyMaintenanc opened.
12. I selected IO_SREP and hit the Create Hierarchy button. The Create Hierarchy screen opened.
13. Now I entered the Hierarchy Name as IO_SREP_HIER and short description as IO_SREP hierarchy
14. Now I am in the screen Maintain Hierarchy IO_SREP_HIER: Modified Version.
15. I right clicked on the IO_SREP hierarchy and selected the option Insert Characteristic Node
16. Create Char. Node: Char. Selection Screen opened. I selected the InfoObject IO_SREG and hit the continue button.
17. From the Create Sales region: Multiple selection screen I selected all the three regions East, Midwest and West and hit the continue button.
18. I right clicked on each region and repeated steps 15 and 16 but selected IO_SOFF and entered the appropriate offices for each region.
19. Now I had entered Denver in both Midwest and West region as it was in Midwest before 1.1.2000 and in West from 1.1.2000.
20. Similarly I have also entered the employees in each city office by right clicking on each city and selecting the option Sales representative Insert .
21. Finally when I save it I am getting the dump error. Ive tried so many times till now and always I am getting the same dump error. Is there something wrong with my system or am I going wrong somewhere? Kindly advice.
While creating the hierarchies, I have noted that all the names of the cities and the regions are in yellow triangle whereas the names of the sales reps under each city are in green color triangle. Is it something that yellow color means the hierarchy is not activated and green color means the hierarchy is activated? Please advice.
In the dump error notes under How to correct the error its given as:
The work area used to hold values passed for the work area operation must be at least as wide as the database table you are accessing.
Now can you please explain me how to create this hierarchy without getting a dump error? -
Problem creating hierarchy in BMM layer
Hi,
We are trying to create hierarchy for one of the dimension which contains 10 LTSs, each LTS represents Bridge-->Dimension join in physical layer. So, each LTS contains inner join between Bridge and Dimension tables.
We performed the following.
Right click on Dimension and select Create logical dimension--> Dimension with Level-Based hierarchy.
The error is "Admintool is unable to create the structure for the dimension <<Dim name>> "
Can anybody help..
Thanks,
AnileshHi,
Here we have created 10 LTSs for supporting 10 bridge tables. We are joining same dimension table with multiple bridge tables in physical layer. And each bridge is joined with corresponding fact table. when id comes to BMM layer, we created single dimension which contain LTSs for each bridge table, and we joined the dimension to fact.
Thanks,
Anilesh -
Error while creating hierarchy through " Create Hierarchy field" option
Hi All,
while trying to create hierarchy through Create Hierarchy field option i am facing the following error
I am giving the following inputs
Hierarchy field name : XYZ
Parent field : Level1
Child Field : Level2
Node name field : Level3
Cannot find the parent ID value "abc" in Field ID Level2 of Table " Hierarchy"
FYI
The source hierarchy is in Columns format with Level1(Parent)---->Lever2(Child of Level1) and Level3(Child of level2)
Kindly guide me where i am going wrong
Thanks in Advance
Regards
SharmaHi Sharma,
Your input file should have 3 columns for hierarchy one which will store level 1 information,2nd will have corresponding level 2 information and 3rd will have corresponding level 3 info.
Now in Import Manager go to Partition,select 1st ,2nd and 3rd column.Donot combine the fields. Now map the partition fields with the target hierarchy field.Perform the value mapping and import.
Or
YOu can have one column in the excel file.with values L1>L2>L3(split by some delimiter).
In import manager go to source hierechy pany select the Column and from context menu select option split into hierechy as per the delimiter.
Now map the parttion field and target field ,do value mapping and import.
Regards,
Neethu Joy -
Create Hierarchy using listitems
Hi all
I need Some help From anyone
I want to create Hierarchy for list items in Forms6i using add_list_element and Delete_List_element OR any other alternative
.....Your Help will be appreciated
HTH
RangaReddycreate a table and populate the table
Create Table MyTreeData
(INITIAL_LEVEL NUMBER,
NODE_DEPTH NUMBER,
NODE_LABEL VARCHAR2(10),
NODE_ICON VARCHAR2(30),
NODE_DATA VARCHAR2(40),
NODE_PARENT VARCHAR2(10),
NODE_EXPAND_FLAG NUMBER);
Insert Into MyTreeData Values (-1,2,'Car','','CAR','TRANSPORT',0);
Insert Into MyTreeData Values (-1,2,'Plane','','PLANE','TRANSPORT',0);
Insert Into MyTreeData Values (0,2,'Bike','','BIKE','TRANSPORT',0);
Insert Into MyTreeData Values (1,1,'Transport','','TRANSPORT','',1);
Insert Into MyTreeData Values (0,3,'Honda','','HONDA','CAR',0);
Insert Into MyTreeData Values (0,3,'Boeing 747','','747-400','PLANE',0);
Insert Into MyTreeData Values (0,3,'Mazda','','MAZDA','CAR',0);
Insert Into MyTreeData Values (1,1,'Food','','FOOD','',0);
Insert Into MyTreeData Values (-1,2,'Fruit','','FRUIT','FOOD',0);
Insert Into MyTreeData Values (-1,2,'Vegetable','','VEGETABLE','FOOD',0);
Insert Into MyTreeData Values (0,3,'Spinach','','SPINACH','VEGETABLE',0);
Insert Into MyTreeData Values (0,3,'Carrot','','CARROT','VEGETABLE',0);create a form and a data block and named it as MYTREE
create a base item with item type as hierarchical tree and named is as MYTREE
on the base item property enter the code at the Data Query property
SELECT initial_level, node_depth, node_label, node_icon, node_data
FROM MyTreeData
START WITH node_parent IS NULL CONNECT BY node_parent = prior node_datacreate a data block trigger WHEN-NEW-BLOCK-INSTANCE and create the code as follows:
Declare
vTree Item;
Top_Node FTREE.NODE;
Find_node FTREE.NODE;
Begin
vTree := FIND_ITEM('MyTreeBlock.MyTree');
FTREE.POPULATE_TREE(vTree);
End; run the form. hope this helps. -
My source file is in the format -
<b>Parent</b> <b>Child</b>
Valve Belt
Belt Conveyor
The expected hierarchy in MDM is -
<b>Valve</b>
|_______<b>Belt</b>
|________<b>Conveyor</b>
How do we create this hierarchy from the flat source file?Hi Tejas,
The Taxonomy table is created in Console, however, creation of hierarchy within the Taxonomy is done through Import Manager. There is no need to create/select two columns in Console.
You might be having a soure file containing the hiearachy and a destination Taxonomy in table in MDM with atleast one filed. (Created by default)
Follow following steps:
1. Open Import Manager by specifying the location of Source File. Your cource file should be a updatable data source (e.g. XML, Excel file is not a updatable souce - for more info on this see the Data Manager Reference Documentation).
2. Select appropriate Source and Deatination from drop down box.
3. In Source Hierarchy, Select both the columns(parent and child) > right click > select 'Create Hierarchy filed' and select the parent and child fields.
4. Click on create. This will generate 2 new fields in the Field Mapping Source Fields containing the Hierarchy.
5. Map the Source to Destination and complete other usual steps.
Hope this helps. If you have any further difficulties, give the details of source file format.
Regards,
Anoop
PS: Do give point if found helpful. -
hi all
I want to createa hierarchy with 3 levels as
Level1-Reasongroup
Level2--Reason Class
Level3--Reason ID
I am creating mannually(Not flat file load).i created the first level .To create the second level ,I clicked insert Info object---gave the Reasonclass But the values for reason class is not coming ..The masters are present in reason Id...
can anybody help me out
Thanks
rgds
pradeepHi pradeep,
it looks like that you want to build a hierachy with external infoobjects. Before creating the hierarchy, find the related button (External chars. in Hierarchies) in the Hierarchy tab of RSD1. Over there, you should place the other 2 charactericts in the External Characteristics area (e.g., the Reasongroup and Reason Class objects given that you are building your hierarchy in the Reason ID infoobject).
Regards,
-- Theodoros -
How and where will we create " hierarchy "variables?-urgent
hi,
how to create hierarchy variables?
where they will be seen while creating a query?
plz tell in detail..
Message was edited by:
neeraja deviHi,
Refer this
http://help.sap.com/saphelp_nw04/helpdata/en/5c/8db07d555411d189660000e829fbbd/frameset.htm
When you maintain a local variable for a hierarchy node, you only need to enter the replacement type. If you want, you can also enter an identifier for the variable. For variables for hierarchies, you can only maintain an identifier, since replacement is automatically mandatory.
When you maintain global hierarchy variables and choose replacement type "2" (replacement by manual entry), be sure to enter "3" (Mandatory variable which is not blank (technical)) in the field Optional entry.
Hope this helps
Regards
Karthik -
Creating Hierarchy Report..
Hi I am new to the ABAP Development and I am facing a problem. I want to create a hierarchy between tables ZSICM2 and Infostructure S961E. I have not Idea how to create a report of this. Could someone please help me in creating a report of creating hierarchy. This is the documentation provided to me by the client.
<b>For each new record of ZSICM2, we must ensure hierarchies exist in S961E.
1- Creation of hierarchy:
Select * from ZSICM2 where ZNEW = X.
Submit report RMCA961H (This program should automatically be created when creating infostructure) with all necessary parameters.
Endselect.</b>
Also The report RMCA961H, I have no idea where this report will come from because I am not finding it in Library and also It is not being created automatically while creating infostructure.
Please help me in creating this report.
Thanks and regards,
RaviHi,
This is the sample report for HIERARIHIAL SEQUENTIAL LIST report.
REPORT YMS_HIERSEQLISTDISPLAY .
Program with FM REUSE_ALV_HIERSEQ_LIST_DISPLAY *
Author : Michel PIOUD *
Email : [email protected] HomePage : http://www.geocities.com/mpioud *
TYPE-POOLS: slis. " ALV Global types
CONSTANTS :
c_x VALUE 'X',
c_gt_vbap TYPE SLIS_TABNAME VALUE 'GT_VBAP',
c_gt_vbak TYPE SLIS_TABNAME VALUE 'GT_VBAK'.
SELECTION-SCREEN :
SKIP, BEGIN OF LINE,COMMENT 5(27) v_1 FOR FIELD p_max. "#EC NEEDED
PARAMETERS p_max(02) TYPE n DEFAULT '10' OBLIGATORY.
SELECTION-SCREEN END OF LINE.
SELECTION-SCREEN :
SKIP, BEGIN OF LINE,COMMENT 5(27) v_2 FOR FIELD p_expand. "#EC NEEDED
PARAMETERS p_expand AS CHECKBOX DEFAULT c_x.
SELECTION-SCREEN END OF LINE.
TYPES :
1st Table
BEGIN OF ty_vbak,
vbeln TYPE vbak-vbeln, " Sales document
kunnr TYPE vbak-kunnr, " Sold-to party
netwr TYPE vbak-netwr, " Net Value of the Sales Order
erdat TYPE vbak-erdat, " Creation date
waerk TYPE vbak-waerk, " SD document currency
expand TYPE xfeld,
END OF ty_vbak,
2nd Table
BEGIN OF ty_vbap,
vbeln TYPE vbap-vbeln, " Sales document
posnr TYPE vbap-posnr, " Sales document
matnr TYPE vbap-matnr, " Material number
netwr TYPE vbap-netwr, " Net Value of the Sales Order
waerk TYPE vbap-waerk, " SD document currency
END OF ty_vbap.
DATA :
1st Table
gt_vbak TYPE TABLE OF ty_vbak,
2nd Table
gt_vbap TYPE TABLE OF ty_vbap.
INITIALIZATION.
v_1 = 'Maximum of records to read'.
v_2 = 'With ''EXPAND'' field'.
START-OF-SELECTION.
Read Sales Document: Header Data
SELECT vbeln kunnr netwr waerk erdat
FROM vbak
UP TO p_max ROWS
INTO CORRESPONDING FIELDS OF TABLE gt_vbak.
IF NOT gt_vbak[] IS INITIAL.
Read Sales Document: Item Data
SELECT vbeln posnr matnr netwr waerk
FROM vbap
INTO CORRESPONDING FIELDS OF TABLE gt_vbap
FOR ALL ENTRIES IN gt_vbak
WHERE vbeln = gt_vbak-vbeln.
ENDIF.
PERFORM f_display.
Form F_DISPLAY
FORM f_display.
Macro definition
DEFINE m_fieldcat.
ls_fieldcat-tabname = &1.
ls_fieldcat-fieldname = &2.
ls_fieldcat-ref_tabname = &3.
ls_fieldcat-cfieldname = &4. " Field with currency unit
append ls_fieldcat to lt_fieldcat.
END-OF-DEFINITION.
DEFINE m_sort.
ls_sort-tabname = &1.
ls_sort-fieldname = &2.
ls_sort-up = c_x.
append ls_sort to lt_sort.
END-OF-DEFINITION.
DATA:
ls_layout TYPE slis_layout_alv,
ls_keyinfo TYPE slis_keyinfo_alv,
ls_sort TYPE slis_sortinfo_alv,
lt_sort TYPE slis_t_sortinfo_alv," Sort table
ls_fieldcat TYPE slis_fieldcat_alv,
lt_fieldcat TYPE slis_t_fieldcat_alv." Field catalog
ls_layout-group_change_edit = c_x.
ls_layout-colwidth_optimize = c_x.
ls_layout-zebra = c_x.
ls_layout-detail_popup = c_x.
ls_layout-get_selinfos = c_x.
IF p_expand = c_x.
ls_layout-expand_fieldname = 'EXPAND'.
ENDIF.
Build field catalog and sort table
m_fieldcat c_gt_vbak 'VBELN' 'VBAK' ''.
m_fieldcat c_gt_vbak 'KUNNR' 'VBAK' ''.
m_fieldcat c_gt_vbak 'NETWR' 'VBAK' 'WAERK'.
m_fieldcat c_gt_vbak 'WAERK' 'VBAK' ''.
m_fieldcat c_gt_vbak 'ERDAT' 'VBAK' ''.
m_fieldcat c_gt_vbap 'POSNR' 'VBAP' ''.
m_fieldcat c_gt_vbap 'MATNR' 'VBAP' ''.
m_fieldcat c_gt_vbap 'NETWR' 'VBAP' 'WAERK'.
m_fieldcat c_gt_vbap 'WAERK' 'VBAP' ''.
m_sort c_gt_vbak 'KUNNR'.
m_sort c_gt_vbap 'NETWR'.
ls_keyinfo-header01 = 'VBELN'.
ls_keyinfo-item01 = 'VBELN'.
ls_keyinfo-item02 = 'POSNR'.
Dipslay Hierarchical list
CALL FUNCTION 'REUSE_ALV_HIERSEQ_LIST_DISPLAY'
EXPORTING
i_callback_program = sy-cprog
i_callback_user_command = 'USER_COMMAND'
is_layout = ls_layout
it_fieldcat = lt_fieldcat
it_sort = lt_sort
i_tabname_header = c_gt_vbak
i_tabname_item = c_gt_vbap
is_keyinfo = ls_keyinfo
TABLES
t_outtab_header = gt_vbak
t_outtab_item = gt_vbap
EXCEPTIONS
program_error = 1
OTHERS = 2.
IF sy-subrc <> 0.
MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
ENDIF.
ENDFORM. " F_LIST_DISPLAY
Form USER_COMMAND *
FORM user_command USING i_ucomm TYPE sy-ucomm
is_selfield TYPE slis_selfield. "#EC CALLED
DATA ls_vbak TYPE ty_vbak.
CASE i_ucomm.
WHEN '&IC1'. " Pick
CASE is_selfield-tabname.
WHEN c_gt_vbap.
WHEN c_gt_vbak.
READ TABLE gt_vbak INDEX is_selfield-tabindex INTO ls_vbak.
IF sy-subrc EQ 0.
Sales order number
SET PARAMETER ID 'AUN' FIELD ls_vbak-vbeln.
Display Sales Order
CALL TRANSACTION 'VA03' AND SKIP FIRST SCREEN.
ENDIF.
ENDCASE.
ENDCASE.
ENDFORM. " USER_COMMAND
END OF PROGRAM Z_ALV_HIERSEQ_LIST ******************
Thanks,
Sankar M -
Issues involved when creating hierarchy
Hi all,
I have a infoobject named YIO_SREP. When i m trying to add YIO_SREG as a characterstic node under YIO_SREP it is giving me
an error stating that
infoObject YIO_SREG is not entered for YIO_SREP as a foreign hierarchy characteristic.
Moreover i have also added YIO_SREP as a external characterstic in YIO_SREP using the EXTERNAL CHARACTERSTIC IN HIERARCHY tab (infoobject maintenance-> tabpage : heirarchy-> pushbutton:EXTERNAL CHARACTERSTIC IN HIERARCHY).
please help!!!Hi Shivani,
Go to infoobject YIO_SREP (for which you want to create hierarchy) and in external char in Hierarchies add YIO_SREG info object, after doing this you can use YIO_SREG as a characterisitcs node in YIO_SREP hierarchy. Do not forget to activate the info object YIO_SREP.
Regards,
Kams
Maybe you are looking for
-
Petstore 1.0 as shipped and packaged with WL 6.0
Why is there so much overlap b/w petStore_EJB.jar and petStore.war? Was this just laziness? In my mind petStore_EJB.jar should only contain the ejb related classes. But it contains every class including the web control layer, their beans, everything.
-
Cluster 3.2 failure retry time
Dear All, I have messaging sever 7 in a cluster, however, for some reasons after so many watcher crashes, the cluster didn't restart the messaging resource. I am wondering if there is a retry timeout, or retry number of times. Would anyone please let
-
Hi there... I have a project that will be using well over 100 audio clips. I have done a little previous work with audio in flash but not to this extent. I am wondering if anyone out there has some ideas or favorites they have used regarding Audio in
-
Transport deleted row in custom table
I have a custom table with maintenance view. I have no problem adding/changing rows in table and transporting. But, how do I capture the deleted rows in a transport?? There's nothing there to select and 'add to transport request'!
-
Hi All, I originally posted this and accidentally clicked that my question was "solved" (thanks Russ). I am an aspiring filmmaker who is wanting to shoot independent movies and short films that have as much of a "flim/cinema" look as I can muster usi