I'm using Crystal XI reporting of SAP.
I use Remote Function Call (RFC)to retrieve comments
from SAP for Particular records.I use a shared variable to return these comments into the details section of my report.(This works OK)
I then want to loop through the shared variable and line up the comments with the appropriate record in the report footer.
This is where I'm falling down.
After looping through the shared variable I just get the word TRUE returned instead of the text in the variable.
The reason I don't just put the shared variable into the report footer is that it only shows the last comment returned in the details section and not them all.
My code to Loop is below, Can you check please if this code is correct or point me in another direction.
Whileprinting Records;
shared stringvar Kcomments;
Numbervar i:=0
shared stringvar Kcomments;
for i :=1 to count ({myfield}) step 1 do
shared stringvar Kcomments;
Regards & Thanks
Pator
I use Remote Function Call (RFC)to retrieve comments
from SAP for Particular records.I use a shared variable to return these comments into the details section of my report.(This works OK)
I then want to loop through the shared variable and line up the comments with the appropriate record in the report footer.
This is where I'm falling down.
After looping through the shared variable I just get the word TRUE returned instead of the text in the variable.
The reason I don't just put the shared variable into the report footer is that it only shows the last comment returned in the details section and not them all.
My code to Loop is below, Can you check please if this code is correct or point me in another direction.
Whileprinting Records;
shared stringvar Kcomments;
Numbervar i:=0
shared stringvar Kcomments;
for i :=1 to count ({myfield}) step 1 do
shared stringvar Kcomments;
Regards & Thanks
Pator