2010 Oct 18 4:45 PM
hi all
im trying to get the wbs elements in hierarchy using the fm GET_TREE_FROM_PRHI
im supposed to take the prhi-posnr
if i run the fm alone, i get different posnr
but if i call the fm in a program, im getting the same posnr.
for example, if there are 7 entries, im getting the 7 entries with the same posnr if i call the fm in a program but if i execute it alone, i get 7 entries with different posnr
does anybody know why this is happening
hi all
im trying to get the wbs elements in hierarchy using the fm GET_TREE_FROM_PRHI
im supposed to take the prhi-posnr
if i run the fm alone, i get different posnr
but if i call the fm in a program, im getting the same posnr.
for example, if there are 7 entries, im getting the 7 entries with the same posnr if i call the fm in a program but if i execute it alone, i get 7 entries with different posnr
does anybody know why this is happening
2010 Oct 18 7:51 PM
Hi,
Are you passing I_POSID as export parameter of funcition?
And the 7 values are due to 7 function calls ?
Best regards,
Leandro Mengue
2010 Oct 18 8:25 PM
Hi,
Remember that the result is a struct of project...
Using GET_TREE_FROM_PRHI with I_POSID = ''E50000999 2' I get:
In SE38:
MAN POSNR PSPHI UP DOWN LEFT RIGHT
040 E-50000999-2 E-50000999 E-50000999-21 E-50000999-1
040 E-50000999-21 E-50000999 E-50000999-2 E-50000999-22
040 E-50000999-22 E-50000999 E-50000999-2 E-50000999-21
I ZPROGRAM:
POSNR PSPHI UP DOWN LEFT RIGHT
00001860 00000264 00000000 00001861 00001859 00000000
00001861 00000264 00001860 00000000 00000000 00001862
00001862 00000264 00001860 00000000 00001861 00000000
Best regards,
Leandro Mengue
2010 Oct 19 4:34 AM
Hi Leandro
I didnt get exactly what you said
Can you explain ?
Thanks
2010 Oct 19 3:04 PM
Hi,
You solve your problem? (if yes, very good!)
Best regards,
Leandro Mengue
| User | Count |
|---|---|
| 3 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |