howtohierdown35

15
 How-to Guide SAP NetWeav er ‘ 04  How to… Download a Hierarch y to a Flat File Version 1 .00 – May 2 00 4 Applicable Releases: SAP NetWeav er ’ 04 (SAP BW 3.5 )

Upload: gurmi100

Post on 07-Apr-2018

217 views

Category:

Documents


0 download

TRANSCRIPT

8/6/2019 HowToHierDown35

http://slidepdf.com/reader/full/howtohierdown35 1/15

 

How - to Guide

SAP NetWeav er ‘ 04  

Ho w t o …Dow n load aHie r a r ch y t o aFlat Fi l eVers ion 1 .00 – May 2 00 4

Appl icab le Releases:SAP NetWeav er ’ 04

(SAP BW 3 .5 )

8/6/2019 HowToHierDown35

http://slidepdf.com/reader/full/howtohierdown35 2/15

 

 ©Copyright 2004 SAPAG. All rights reserved.

No part of this publication may be reproduced ortransmitted in any form or for any purpose without theexpress permission of SAPAG. The informationcontained herein may be changed without prior notice.

Some software products marketed by SAPAG and itsdistributors contain proprietary software components ofother software vendors.

Microsoft, Windows, Outlook, and PowerPoint areregistered trademarks of Microsoft Corporation.

IBM, DB2, DB2 Universal Database, OS/2, ParallelSysplex, MVS/ESA, AIX, S/390, AS/400, OS/390, OS/400,iSeries, pSeries, xSeries, zSeries, z/OS, AFP, IntelligentMiner, WebSphere, Netfinity, Tivoli, and Informix are

trademarks or registered trademarks of IBM Corporationin the United States and/or other countries.

Oracle is a registered trademark of Oracle Corporation.

UNIX, X/Open, OSF/1, and Motif are registeredtrademarks of the Open Group.

Citrix, ICA, Program Neighborhood, MetaFrame,WinFrame, VideoFrame, and MultiWin are trademarksor registered trademarks of Citrix Systems, Inc.

HTML, XML, XHTML and W3C are trademarks or

registered trademarks of W3C ® , World Wide WebConsortium, Massachusetts Institute of Technology.

Java is a registered trademark of Sun Microsystems, Inc.

JavaScript is a registered trademark of Sun Microsystems,Inc., used under license for technology invented and

implemented by Netscape.

MaxDB is a trademark of MySQL AB, Sweden.

SAP, R/3, mySAP, mySAP.com, xApps, xApp, SAPNetWeaver, and other SAPproducts and services

mentioned herein as well as their respective logos aretrademarks or registered trademarks of SAPAG inGermany and in several other countries all over theworld. All other product and service names mentionedare the trademarks of their respective companies. Datacontained in this document serves informationalpurposes only. National product specifications may vary.

These materials are subject to change without notice.These materials are provided by SAPAG and its affiliatedcompanies ("SAPGroup") for informational purposes

only, without representation or warranty of anykind, and SAPGroup shall not be liable for errors oromissions with respect to the materials. The onlywarranties for SAPGroup products and services are thosethat are set forth in the express warranty statements

accompanying such products and services, if any.Nothing herein should be construed as constituting anadditional warranty.

These materials are provided “as is” without a warrantyof any kind, either express or implied, including but notlimited to, the implied warranties of merchantability,

fitness for a particular purpose, or non-infringement.SAPshall not be liable for damages of any kind includingwithout limitation direct, special, indirect, orconsequential damages that may result from the use ofthese materials.SAPdoes not warrant the accuracy or completeness of

the information, text, graphics, links or other itemscontained within these materials. SAPhas no controlover the information that you may access through theuse of hot links contained in these materials and does notendorse your use of third party web pages nor provide

any warranty whatsoever relating to third party webpages.

SAPNetWeaver “How-To” Guides are intended tosimplify the product implementation. While specificproduct features and procedures typically are explainedin a practical business context, it is not implied that thosefeatures and procedures are the only approach in solvinga specific business problem using SAPNetWeaver. Shouldyou wish to receive additional information, clarificationor support, please refer to SAPConsulting.

8/6/2019 HowToHierDown35

http://slidepdf.com/reader/full/howtohierdown35 3/15

8/6/2019 HowToHierDown35

http://slidepdf.com/reader/full/howtohierdown35 4/15

 

- 2 -

3   Th e St e p B y St e p So l u t i o n

3 .1   I m p l e m e n t P r o g r a mUsing transaction SE38 implement ABAPprogram Z_SAP_HIERARCHY_DOWNLOAD (see Appendix).You can find the text elements for the selection screen in the coding.

3 .2   Ex e c u t e Pr o g r a mStart the program. On the selection screen, first enter or pick the InfoObject. Then you can select thehierarchy that you want to download.Optionally, you can enter which language of hierarchy node descriptions should be downloaded. As a

default, the logon language is being used.Last but not least you enter or select the file name for the download.

Note: If the file exists already, it will be overwritten with the current hierarchy.If the download was successful, then a popup is displayed:

3 .3   Hi e r a r c h y Up l o a dIn order to upload the file into BW, go to the Administrator Workbench (transaction RSA1) and create ahierarchy InfoSource. To match the download file format, you should use the IDOC transfer method:

8/6/2019 HowToHierDown35

http://slidepdf.com/reader/full/howtohierdown35 5/15

 

- 3 -

8/6/2019 HowToHierDown35

http://slidepdf.com/reader/full/howtohierdown35 6/15

 

- 4 -

Create a new hierarchy structure: 

Select the options “Sorted hierarchy”, “Interval”, and “Time-dependent”. The structure will then matchthe download format.

8/6/2019 HowToHierDown35

http://slidepdf.com/reader/full/howtohierdown35 7/15

 

- 5 -

Create an InfoPackage. The file type is “ASCII”.

Now you can schedule the file upload

8/6/2019 HowToHierDown35

http://slidepdf.com/reader/full/howtohierdown35 8/15

 

- 6 -

4   C o m m e n t s

Please note that Open Hub licenses are required if data is to be extracted and transferred from mySAPBI

to third party target systems.

5   A p p e n d i x

* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *

* S AP Co n s u l t i n g BW T o o l s :* - - - - - - - - - - - - - - - - - - - - - - - -

* Do wn l o a d h i e r a r c h y i n t o a f l a t f i l e . T h e f i l e h a s t h e c o r r e c t f o r ma t

* f o r u p l o a d i n g i n t o BW v i a a h i e r a r c h y I n f o S o u r c e ( I D OC) .*

* ( c ) S AP AG 2 0 0 3 - 2 0 0 4 MF B, S AP L a b s L L C* c r e a t e d : 2 0 0 3 - 0 7 - 2 3

* l a s t u p d a t e : 2 0 0 4 - 0 5 - 0 2

* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *

* T e x t e l e me n t s :* P _ DAT E S I n c l u d e f r o m/ t o d a t e s

* P _ DAT ET O Va l i d - t o d a t e

* P _ F N AME F i l e n a me

* P _ HI E NM Hi e r a r c h y n a me

* P _ I NT E R I n c l u d e f r o m/ t o l e a v e s* P _ I OBJ NM I n f o Ob j e c t

* P _ L ANGU L a n g u a g e

* P _ VE RS Hi e r a r c h y v e r s i o n

* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *

RE P ORT z _ s a p _ h i e r a r c h y _ d o wn l o a d .

T YP E- P OOL S : r s , r s d m, r r h 1 .

S E L E C T I ON - S C R E E N B E GI N OF B L O C K b 1 WI T H F R AME .

PARAMETERS:

p _ i o b j n m T YP E r s d i o b j n m ME MORY I D r s c .

S E L E C T I ON - S C R E E N E ND O F B L OC K b 1 .

S E L E C T I ON - S C R E E N B E GI N OF B L O C K b 2 WI T H F R AME .

PARAMETERS:

p _ h i e n m T YP E r s h i e d i r - h i e n m,

p _ v e r s T YP E r s h i e d i r - v e r s i o n ,p _ d a t e t o T YP E r s h i e d i r - d a t e t o ,p _ l a n g u T YP E r s h i e d i r t - l a n g u .

S E L E C T I ON - S C R E E N E ND O F B L OC K b 2 .

S E L E C T I ON - S C R E E N B E GI N OF B L O C K b 3 WI T H F R AME .PARAMETERS:

p _ f n a me L I KE r l g r a p - f i l e n a me ,

p _ d a t e s AS C HE CKB OX DE F AUL T ' X' ,

p _ i n t e r AS CHE CKBOX DE F AUL T ' X' .

S E L E C T I ON - S C R E E N E N D OF B L OC K b 3 .

* F i l e s t r u c t u r e

T Y P E S :

* No d a t e s / i n t e r v a l sBE GI N OF y _ s _ h i e r f i l e _ 1 ,n o d e i d T YP E r s h i e n o d i d ,

8/6/2019 HowToHierDown35

http://slidepdf.com/reader/full/howtohierdown35 9/15

 

- 7 -

i o b j n m T YP E r s i o b j n m,

n o d e n a me T YP E r s n o d e n a me ,

* t l e v e l T YP E r s t l e v e l ,l i n k T YP E r s l i n k ,

p a r e n t i d TYP E r s p a r e n t ,

c h i l d i d T YP E r s c h i l d ,

n e x t i d T YP E r s n e x t ,

l a n g u T YP E l a n g u ,t x t s h T YP E r s t x t s h ,

t x t md T YP E r s t x t md ,

t x t l g T YP E r s t x t l g ,

E ND OF y _ s _ h i e r f i l e _ 1 ,y _ t _ h i e r f i l e _ 1 T YP E S TANDARD T ABL E OF y _ s _ h i e r f i l e _ 1 ,

* Wi t h d a t e s

BE GI N OF y _ s _ h i e r f i l e _ 2 ,

n o d e i d T YP E r s h i e n o d i d ,

i o b j n m T YP E r s i o b j n m,n o d e n a me T YP E r s n o d e n a me ,

* t l e v e l T YP E r s t l e v e l ,

l i n k T YP E r s l i n k ,

p a r e n t i d TYP E r s p a r e n t ,

c h i l d i d T YP E r s c h i l d ,n e x t i d T YP E r s n e x t ,

d a t e t o T YP E r s d a t e t o ,

d a t e f r o m T YP E r s d a t e f r o m,

l a n g u T YP E l a n g u ,t x t s h T YP E r s t x t s h ,

t x t md T YP E r s t x t md ,

t x t l g T YP E r s t x t l g ,

E ND OF y _ s _ h i e r f i l e _ 2 ,

y _ t _ h i e r f i l e _ 2 T YP E S TANDARD T ABL E OF y _ s _ h i e r f i l e _ 2 ,* Wi t h i n t e r v a l s

BE GI N OF y _ s _ h i e r f i l e _ 3 ,

n o d e i d T YP E r s h i e n o d i d ,

i o b j n m T YP E r s i o b j n m,

n o d e n a me T YP E r s n o d e n a me ,

* t l e v e l T YP E r s t l e v e l ,l i n k T YP E r s l i n k ,

p a r e n t i d TYP E r s p a r e n t ,

c h i l d i d T YP E r s c h i l d ,n e x t i d T YP E r s n e x t ,

l e a f t o T YP E r s l e a f t o ,

l e a f f r o m T YP E r s l e a f f r o m,

l a n g u T YP E l a n g u ,

t x t s h T YP E r s t x t s h ,t x t md T YP E r s t x t md ,

t x t l g T YP E r s t x t l g ,

E ND OF y _ s _ h i e r f i l e _ 3 ,

y _ t _ h i e r f i l e _ 3 T YP E S TANDARD T ABL E OF y _ s _ h i e r f i l e _ 3 ,

* Wi t h d a t e s / i n t e r v a l s

BE GI N OF y _ s _ h i e r f i l e _ 4 ,n o d e i d T YP E r s h i e n o d i d ,

i o b j n m T YP E r s i o b j n m,

n o d e n a me T YP E r s n o d e n a me ,

* t l e v e l T YP E r s t l e v e l ,l i n k T YP E r s l i n k ,

p a r e n t i d TYP E r s p a r e n t ,

c h i l d i d T YP E r s c h i l d ,

n e x t i d T YP E r s n e x t ,d a t e t o T YP E r s d a t e t o ,

d a t e f r o m T YP E r s d a t e f r o m,

l e a f t o T YP E r s l e a f t o ,

l e a f f r o m T YP E r s l e a f f r o m,

l a n g u T YP E l a n g u ,t x t s h T YP E r s t x t s h ,

t x t md T YP E r s t x t md ,

t x t l g T YP E r s t x t l g ,

8/6/2019 HowToHierDown35

http://slidepdf.com/reader/full/howtohierdown35 10/15

 

- 8 -

E ND OF y _ s _ h i e r f i l e _ 4 ,

y _ t _ h i e r f i l e _ 4 T YP E S TANDARD T ABL E OF y _ s _ h i e r f i l e _ 4 .

* Hi e r a r c h y d e f i n i t i o n

DATA:

g _ s _ h i e s e l T YP E r s n d i _ s _ h i e s e l ,

g _ s _ h i e d i r T YP E r s n d i _ s _ h i e d i r ,

g _ s u b r c T YP E s y - s u b r c ,g _ t _ h i e d i r t T YP E T ABL E OF r s h i e d i r t ,

g _ s _ h i e r s t r u c T YP E r s s h _ s _ h t a b ,

g _ t _ h i e r s t r u c T YP E T ABL E OF r s s h _ s _ h t a b ,

g _ s _ t h i e r n o d e T YP E r s t h i e r n o d e ,g _ t _ t h i e r n o d e T YP E T ABL E OF r s t h i e r n o d e WI T H KE Y l a n g u h i e i d o b j v e r s

n o d e n a me ,

g _ s _ h i e r i n t v l T YP E r s s h _ s _ j t a b ,

g _ t _ h i e r i n t v l T YP E T ABL E OF r s s h _ s _ j t a b WI T H KE Y h i e i d o b j v e r s n o d e i d ,

g _ s _ me s s a g e T YP E r s n d i _ s _ me s s a g e ,g _ t _ me s s a g e T YP E T ABL E OF r s n d i _ s _ me s s a g e ,

g _ s _ c h a v l i n f o T YP E r s d m_ s _ c h a v l i n f o ,

g _ t _ c h a v l i n f o T YP E r s d m_ t _ c h a v l i n f o .

* F i l eDATA:

g _ f n a me T YP E s t r i n g ,

g _ s t r u c t _ s T YP E s t r i n g ,

g _ s t r u c t _ t T YP E s t r i n g ,g r _ s _ f i l e T YP E RE F T O d a t a ,

g r _ t _ f i l e T YP E RE F T O d a t a .

F I E L D- S Y MB OL S :

< g _ l a n g u > T YP E ANY,< g _ s _ f i l e > T YP E ANY,

< g _ t _ f i l e > T YP E S T ANDAR D T AB LE .

* - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -

AT S E L E CT I ON - S C R E E N ON VAL UE - R E QUE S T F O R p _ i o b j n m.

C AL L F UNC T I ON ' R S D_ I OB J _ F 4 '

E X P OR T I NG

i _ s h o w_ c h a = r s _ c _ t r u ei _ o b j v e r s = r s _ c _ o b j v e r s - a c t i v e

i _ h i e t a b f l = r s _ c _ t r u e

CHANGI NG

c _ i o b j n m = p _ i o b j n m

E XC E P T I ONSi l l e g a l _ i n p u t = 1 .

CHE CK s y - s u b r c = 0 .

* - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -

AT S E L E CT I ON - S C R E E N ON VAL UE - R E QUE S T F OR p _ h i e n m .

DATA:

l _ s _ h i e r t x t T YP E r r h 1 _ s _ h i e r t x t ,

l _ t _ h i e r t x t T YP E r r h 1 _ t _ h i e r t x t .

C AL L F UNC T I ON ' R R H1 _ H I E R AR C HY _ H E L P _ V AL U E S _ GE T '

E X P OR T I NG

i _ i o b j n m = p _ i o b j n m

i _ d a t e t o = p _ d a t e t oi _ h i e n m = p _ h i e n m

i _ v e r s i o n = p _ v e r s

I MP O RT I NG

e _ t _ h i e r t x t = l _ t _ h i e r t x t

E XC E P T I ONSn o _ f 4 _ a v a i l a b l e = 1

d i a l o g u e _ c a n c e l e d = 2

OT HE R S = 3 .

8/6/2019 HowToHierDown35

http://slidepdf.com/reader/full/howtohierdown35 11/15

 

- 9 -

CHE CK s y - s u b r c = 0 .

RE AD T ABL E l _ t _ h i e r t x t I NT O l _ s _ h i e r t x t I NDE X 1 .CHE CK NOT l _ s _ h i e r t x t I S I NI T I AL .

p _ h i e n m = l _ s _ h i e r t x t - h i e n m.

DATA:l _ s _ d y n p f i e l d s T YP E d y n p r e a d ,

l _ t _ d y n p f i e l d s T YP E S T ANDARD T ABL E OF d y n p r e a d .

CL E AR: l _ t _ d y n p f i e l d s , l _ s _ d y n p f i e l d s .l _ s _ d y n p f i e l d s - f i e l d n a me = ' P _ VE RS ' .

WRI T E l _ s _ h i e r t x t - v e r s i o n T O l _ s _ d y n p f i e l d s - f i e l d v a l u e .

AP P E ND l _ s _ d y n p f i e l d s T O l _ t _ d y n p f i e l d s .

l _ s _ d y n p f i e l d s - f i e l d n a me = ' P _ DAT E T O' .

WRI T E l _ s _ h i e r t x t - d a t e t o T O l _ s _ d y n p f i e l d s - f i e l d v a l u e .AP P E ND l _ s _ d y n p f i e l d s T O l _ t _ d y n p f i e l d s .

C AL L F UNC T I O N ' D YN P _ V AL U E S _ U P DA T E '

E X P OR T I NG

d y n a me = s y - r e p i dd y n u mb = s y - d y n n r

T A B L E S

d y n p f i e l d s = l _ t _ d y n p f i e l d s .

* - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -

AT S E L E CT I ON - S C R E E N ON VAL UE - R E QUE S T F O R p _ f n a me .

DATA:

l _ f i l e n a me 1 TYP E s t r i n g ,l _ f i l e n a me 2 TYP E s t r i n g ,

l _ p a t h T YP E s t r i n g ,

l _ f u l l p a t h T YP E s t r i n g ,

l _ a c t i o n T YP E i .

l _ f i l e n a me 1 = p _ f n a me .CAL L ME T HOD c l _ g u i _ f r o n t e n d _ s e r v i c e s = > f i l e _ s a v e _ d i a l o g

E X P OR T I NG

wi n d o w_ t i t l e = ' S e l e c t Do wn l o a d F i l e 'd e f a u l t _ e x t e n s i o n = ' t x t '

d e f a u l t _ f i l e _ n a me = l _ f i l e n a me 1

f i l e _ f i l t e r = ' Al l F i l e s ( * . * ) | * . * | T e x t f i l e s ( * . t x t ) | * . t x t '

CHANGI NG

f i l e n a me = l _ f i l e n a me 2p a t h = l _ p a t h

f u l l p a t h = l _ f u l l p a t h

u s e r _ a c t i o n = l _ a c t i o n

E XC E P T I ONS

c n t l _ e r r o r = 1

OT HE R S = 2 . " # E C NOT E XTCHE CK s y - s u b r c = 0 .

CAL L ME THOD c l _ g u i _ c f w= > f l u s h .

I F l _ a c t i o n = 0 .

p _ f n a me = l _ f u l l p a t h .

E NDI F .

* - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -

I NI T I AL I Z AT I ON.

GE T P AR AME T ER I D ' RS C ' F I E L D p _ i o b j n m.

* - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -

S T ART - O F - S E L E CT I ON.

8/6/2019 HowToHierDown35

http://slidepdf.com/reader/full/howtohierdown35 12/15

 

- 1 0 -

* Ch e c k i n p u t

C HE CK NOT p _ f n a me I S I NI T I AL .

I F p _ l a n g u I S I N I T I AL .

p _ l a n g u = s y - l a n g u .

E NDI F .

I F p _ d a t e t o I S I NI T I AL .

p _ d a t e t o = ' 9 9 9 9 1 2 3 1 ' .E NDI F .

* Re a d h i e r a r c h y

CL E AR g _ s _ h i e s e l .g _ s _ h i e s e l - o b j v e r s = r s _ c _ o b j v e r s - a c t i v e .

g _ s _ h i e s e l - h i e n m = p _ h i e n m.

g _ s _ h i e s e l - v e r s i o n = p _ v e r s .

g _ s _ h i e s e l - i o b j n m = p _ i o b j n m.

g _ s _ h i e s e l - d a t e t o = p _ d a t e t o .

C AL L F UNC T I ON ' R S NDI _ S H I E _ S T R UC T UR E _ G E T '

E X P OR T I NG

i _ s _ h i e s e l = g _ s _ h i e s e l

i _ n o _ n o d e n m_ t a b l e = r s _ c _ t r u eI MP O RT I NG

e _ s _ h i e d i r = g _ s _ h i e d i r

e _ s u b r c = g _ s u b r c

T A B L E Se _ t _ h i e d i r t = g _ t _ h i e d i r t

e _ t _ h i e r s t r u c = g _ t _ h i e r s t r u c

e _ t _ t h i e r n o d e = g _ t _ t h i e r n o d e

e _ t _ h i e r i n t v l = g _ t _ h i e r i n t v l

e _ t _ me s s a g e = g _ t _ me s s a g e .I F g _ s u b r c < > 0 .

R E AD T AB L E g _ t _ me s s a g e I NT O g _ s _ me s s a g e I NDE X 1 .

I F s y - s u b r c = 0 .

ME S S AGE I D g _ s _ me s s a g e - ms g i d T YP E ' I ' NUMBE R g _ s _ me s s a g e - ms g n o

WI T H g _ s _ me s s a g e - ms g v 1 g _ s _ me s s a g e - ms g v 2

g _ s _ me s s a g e - ms g v 3 g _ s _ me s s a g e - ms g v 4 .E L S E .

ME S S AGE I D ' R S BO' T YP E ' I ' NUMB ER 8 9 9

WI T H ' Hi e r a r c h y r e a d e r r o r ' .E NDI F .

E XI T .

E NDI F .

* De f i n e d o u t p u t s t r u c t u r e sI F p _ d a t e s I S I N I T I AL AND p _ i n t e r I S I NI T I AL .

g _ s t r u c t _ s = ' Y_ S _ HI E RF I L E_ 1 ' .

g _ s t r u c t _ t = ' Y_ T _ HI E RF I L E_ 1 ' .

E L S EI F p _ d a t e s = ' X' AND p _ i n t e r I S I NI T I AL .

g _ s t r u c t _ s = ' Y_ S _ HI E RF I L E_ 2 ' .

g _ s t r u c t _ t = ' Y_ T _ HI E RF I L E_ 2 ' .E L S EI F p _ d a t e s I S I NI T I AL AND p _ i n t e r = ' X' .

g _ s t r u c t _ s = ' Y_ S _ HI E RF I L E_ 3 ' .

g _ s t r u c t _ t = ' Y_ T _ HI E RF I L E_ 3 ' .

E L S E .g _ s t r u c t _ s = ' Y_ S _ HI E RF I L E_ 4 ' .

g _ s t r u c t _ t = ' Y_ T _ HI E RF I L E_ 4 ' .

E NDI F .

CRE AT E DAT A g r _ s _ f i l e T YP E ( g _ s t r u c t _ s ) .

AS S I GN g r _ s _ f i l e - > * TO < g _ s _ f i l e > .

CRE AT E DAT A g r _ t _ f i l e T YP E ( g _ s t r u c t _ t ) .

AS S I GN g r _ t _ f i l e - > * T O < g _ t _ f i l e > .

* N o d e s

RE F RE S H < g _ t _ f i l e > .

8/6/2019 HowToHierDown35

http://slidepdf.com/reader/full/howtohierdown35 13/15

 

- 1 1 -

L OOP AT g _ t _ h i e r s t r u c I NT O g _ s _ h i e r s t r u c .

CL EAR < g _ s _ f i l e > .

MOVE- CORRE S P ONDI NG g _ s _ h i e r s t r u c T O < g _ s _ f i l e > .

* T e x t s f o r n o d e s

R E AD T AB L E g _ t _ t h i e r n o d e I NT O g _ s _ t h i e r n o d e WI T H T ABL E KE Y

l a n g u = p _ l a n g u

h i e i d = g _ s _ h i e r s t r u c - h i e i do b j v e r s = r s _ c _ o b j v e r s - a c t i v e

n o d e n a me = g _ s _ h i e r s t r u c - n o d e n a me .

I F s y - s u b r c = 0 .

MOVE - CORRE S P ONDI NG g _ s _ t h i e r n o d e T O < g _ s _ f i l e > .E L S E .

* T e x t s f o r c h a r a c t e r i s t i c v a l u e s

RE F RE S H g _ t _ c h a v l i n f o .

CL E AR g _ s _ c h a v l i n f o .

g _ s _ c h a v l i n f o - c _ c h a v l = g _ s _ h i e r s t r u c - n o d e n a me .AP P E ND g _ s _ c h a v l i n f o T O g _ t _ c h a v l i n f o .

C AL L F U NC T I O N ' R S D _ C H AV L _ R E A D_ A L L '

E X P OR T I NG

i _ i o b j n m = g _ s _ h i e r s t r u c - i o b j n mi _ l a n g u = p _ l a n g u

i _ d a t e t o = p _ d a t e t o

i _ c h e c k _ v a l u e = s p a c e

i _ s i d _ i n = s p a c ei _ h i e i d = g _ s _ h i e d i r - h i e i d

i _ o b j v e r s = g _ s _ h i e d i r - o b j v e r s

CHANGI NG

c _ t _ c h a v l i n f o = g _ t _ c h a v l i n f o

E X CE P T I ON Si n f o _ o b j e c t _ n o t _ f o u n d = 1

r o u t i n e s _ g e n e r a t i o n _ e r r o r = 2

c h e c k _ t a b l e _ n o t _ e x i s t i n g = 3

t e x t _ t a b l e _ n o t _ e x i s t i n g = 4

OT H E RS = 5 .

I F s y - s u b r c = 0 .RE AD T ABL E g _ t _ c h a v l i n f o I NT O g _ s _ c h a v l i n f o I NDE X 1 .

I F s y - s u b r c = 0 .

MOVE - C OR RE S P ONDI NG g _ s _ c h a v l i n f o - e _ c h a t e x t s T O < g _ s _ f i l e > .AS S I GN C OMP ONE NT ' L ANGU' OF S T RUC TUR E < g _ s _ f i l e > T O < g _ l a n g u > .

I F s y - s u b r c = 0 .

< g _ l a n g u > = p _ l a n g u .

E NDI F .

E NDI F .E NDI F .

E NDI F .

* I n t e r v a l s

I F g _ s _ h i e r s t r u c - i n t e r v l = ' X' AND p _ i n t e r = ' X' .

RE AD T ABL E g _ t _ h i e r i n t v l I NT O g _ s _ h i e r i n t v l WI T H T ABL E KE Yh i e i d = g _ s _ h i e r s t r u c - h i e i d

o b j v e r s = r s _ c _ o b j v e r s - a c t i v e

n o d e i d = g _ s _ h i e r s t r u c - n o d e i d .

I F s y - s u b r c = 0 .MOVE - CORRE S P ONDI NG g _ s _ h i e r i n t v l T O < g _ s _ f i l e > .

E NDI F .

E NDI F .

AP P E ND < g _ s _ f i l e > TO < g _ t _ f i l e > .

ENDLOOP.

* Do wn l o a d o u t p u t t a b l e

g _ f n a me = p _ f n a me .C AL L F U NC T I O N ' G UI _ D OWN L OA D'

E X P OR T I NG

f i l e n a me = g _ f n a me

8/6/2019 HowToHierDown35

http://slidepdf.com/reader/full/howtohierdown35 14/15

8/6/2019 HowToHierDown35

http://slidepdf.com/reader/full/howtohierdown35 15/15

 

w w w .s ap .c om / n et w e av er