Bayern Munich partners with SAP to power analytics and enterprise software | http://t.co/0nsvIko3hS SAPFiori
How to check SAP ME and SAP MII Componets version http://t.co/JTU32ll3PU #SCN via @SAPCommNet
How to check SAP ME and SAP MII Componets version http://t.co/JTU32ll3PU via SCNLibrary
5 More Reasons Why More Data Doesn’t Guarantee Better Decisions via @kaanturnali http://t.co/zYXI
5 More Reasons Why More Data Doesn’t Guarantee Better Decisions via http://t.co/zYXIHLw27U MediataAPAC
RT @SCNblogs: The RTM has been released http://t.co/0Ncal0YjN5 #SCN via @SAPCommNet
The RTM has been released http://t.co/0Ncal0YjN5 via ozyind
RT @olssi: 5 More Reasons Why More Data Doesn’t Guarantee Better Decisions http://t.co/xLj7zYSTAD
5 More Reasons Why More Data Doesn’t Guarantee Better Decisions http://t.co/xLj7zYSTAD via … clickmediauk
Good Read >> SAP HANA : Idea List – Legal Latest Ideas in Legal http://t.co/8Uc1ibRs3o
Good Read >> SAP HANA : Idea List – Legal Latest Ideas in Legal http://t.co/8Uc1ibRs3o ozyind
RT @SAPCommNet: SAP Business One 9.1 PL01 version for SAP #HANA: http://t.co/hccecGPrxh #SAPB1
SAP Business One 9.1 PL01 version for SAP : http://t.co/hccecGPrxh ashikch
SAP-HANA Online Training: http://t.co/yH7SWnVJdP via @YouTube
SAP-HANA Online Training: http://t.co/yH7SWnVJdP via varunsap08
RT @SCNblogs: Git <> HANA – A free, open-source Github client for SAP HANA http://t.co/BXUETsT
Git <> HANA – A free, open-source Github client for SAP HANA http://t.co/BXUETsT8H5 via paups
MT @MilosvanLeeuwen John Snow opnieuw gedaan met Esri en SAP Lumira kudos to @Analytics_Fox http://t
MT John Snow opnieuw gedaan met Esri en SAP Lumira kudos to http://t.co/c4t7iq87l8 << Thx for the mention Analytics_Fox
#VMworld is 2 days away! Come by #IBM booth 931 and learn about Virtual SAP HANA on #IBMX6 & VSA
is 2 days away! Come by booth 931 and learn about Virtual SAP HANA on & VSAN/VDI on 3650M4 ibmsysxblade
RT @SCNblogs: Stay Ahead : Attend TechEd && d-code – Win Big SAP BI BusinessObjects HANA H
Stay Ahead : Attend TechEd && d-code – Win Big SAP BI BusinessObjects HANA Hands-on Sessions http://t.co/Rs0hQ9pvxC via … ozyind
RT @SAPAnalytics: Simplify software consumption with #analytics solns from SAP in the #Cloud. Learn
Simplify software consumption with solns from SAP in the . Learn more on 9/9 http://t.co/fVeKgiU… ozyind
Good Read >> Stay Ahead : Attend TechEd && d-code – Win Big SAP BI BusinessObjects H
Good Read >> Stay Ahead : Attend TechEd && d-code – Win Big SAP BI BusinessObjects HANA Hands-on Sessions With SAP http://t.co/uXsBZh23aL ozyind
RT @SCNblogs: Unified Inbox portal integration part 2 – Theming http://t.co/uFBbL5ggDE #SCN via @S
Unified Inbox portal integration part 2 – Theming http://t.co/uFBbL5ggDE via aancos
RT @jheizenb: SAP Sport Analytics partner for FC Bayern Munchen: http://t.co/Aemw7CVRSF (living betw
SAP Sport Analytics partner for FC Bayern Munchen: http://t.co/Aemw7CVRSF (living between lederhosen and laptop) # Bigdata rickmans
SAP HANA – Überblick und Möglichkeiten
RT @tpowlas: SAP Lumira 1.18: What’s new in #SAPLumira http://t.co/pTQzri65Cq #scn via @SAPCommNet
SAP Lumira 1.18: What’s new in http://t.co/pTQzri65Cq via tutorial by xavierpolo
Next Week: Real #SAP #HANA Lessons Implementing HANA and BI at Johnsonville Sausage 8/27 #ASUG Webca
Next Week: Real Lessons Implementing HANA and BI at Johnsonville Sausage 8/27 Webcast -register at http://t.co/qb9fKwUHRs ASUG_BI
Exporting HR organizational structure to a stri… | SCN
Exporting HR organizational structure to a string variable
created by Samuli Kaski on Apr 20, 2012 2:41 PM, last modified by Samuli Kaski on Apr 20, 2012 3:52 PM Version 3
Overview
In this document I give a quick’n’dirty ABAP solution for storing the HR organizational structure in a string variable.
Coding
The coding is pretty straight forward and it should be easy to change or enhance it further. In the example I’m using the IDES organizational structure.
data lt_postree_objec type table of objec.
data ls_postree_objec type objec.
data lt_postree_struc type table of struc.
data ls_postree_struc type struc.
data lv_tot_str type string.
data lv_tmp_str type string.
data lv_tmp_str2 type string.
data lv_level type i.
data lv_char60 type c length 60.
call function ‚RH_STRUC_GET‘
exporting
act_otype = ‚O‘
act_objid = ‚00000300‘ “ org. unit IDES US
act_wegid = ‚O-S-P‘
tables
result_objec = lt_postree_objec
result_struc = lt_postree_struc.
clear lv_tot_str.
clear lv_char60.
lv_char60 = ‚Object‘.
concatenate lv_char60
‚Object ID‘
cl_abap_char_utilities=>cr_lf
into lv_tot_str
separated by cl_abap_char_utilities=>horizontal_tab
respecting blanks.
concatenate lv_tot_str
cl_abap_char_utilities=>cr_lf
into lv_tot_str.
loop at lt_postree_struc into ls_postree_struc.
clear ls_postree_objec.
read table lt_postree_objec into ls_postree_objec
with key otype = ls_postree_struc-otype
objid = ls_postree_struc-objid.
clear: lv_tmp_str,
lv_tmp_str2.
if ls_postree_struc-level gt 1.
lv_level = 1.
while lv_level lt ls_postree_struc-level.
concatenate lv_tmp_str ‚ ‚ into lv_tmp_str respecting blanks.
add 1 to lv_level.
endwhile.
concatenate lv_tmp_str ‚`–‚ into lv_tmp_str respecting blanks.
concatenate ‚(‚ ls_postree_objec-otype ‚)‘ into lv_tmp_str2.
concatenate lv_tmp_str lv_tmp_str2 ls_postree_objec-stext
into lv_tmp_str separated by space.
else.
concatenate ‚(‚ ls_postree_objec-otype ‚)‘ into lv_tmp_str2.
concatenate lv_tmp_str2 ls_postree_objec-stext
into lv_tmp_str separated by space.
endif.
clear lv_char60.
lv_char60 = lv_tmp_str.
concatenate lv_char60
ls_postree_struc-objid
cl_abap_char_utilities=>cr_lf
into lv_tmp_str
separated by cl_abap_char_utilities=>horizontal_tab
respecting blanks.
concatenate lv_tot_str lv_tmp_str into lv_tot_str.
endloop.
At the end of execution lv_tot_str string variable will contain the whole organizational structure.
Screenshot
And this is how it will look if exported to text file, at the left the view in PPOSE.