Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Recursive Program - Read Structure Query

Former Member
0 Likes
398

Hi expert,

I want to create a program that read query structure (Query Bex).

Parameter of program : Structure ID of query.

Output Program : table with several informations :

=> line description

=> line type : formula, infoobject, Restricted key figure,etc.

=> formula : ratio1+ratio2

Example, first line :

ID : FEFE794FECAE94CA94CA

Type : Formula

Formule : D45QWBAI0ZTXWXT + D45QWBAI0ZTX548 =>> I dont want this,

i want this :  D45QWBAI0ZTXWXT =  897RERRFERBAI0ZTXWXT +  D45ZEDEFEZ81CEXWXT

                   

                   897RERRFERBAI0ZTXWXT = keyfigure1 + keyfigure 2

                   D45ZEDEFEZ81CEXWXT = Restricted Key Figure4

                   D45QWBAI0ZTX548 = keyfigure8

Conclusion :

Insertion output table formule = keyfigure1 + keyfigure 2 + Restricted Key Figure4 + keyfigure8

My problem is recursive, i lose the beginning stages when i have several formula.

My program is in attachements.

Have you got an ideas ?

Thank you for your help.

Goulwen

2 REPLIES 2
Read only

MariaJooRocha
Contributor
0 Likes
363

Hi,

Try to use the type statics for your declaration variable.

Regards,

Maria João Rocha

Read only

0 Likes
363

Hi Maria,

It's not possible, beaucause i use one perform on recursive,

i dont know how many stages i have when i begin the perform

The problem is resume by this picture.

http://www.chambily.com/recursivite/chap_VII_3_fichiers/image002.gif