I've run into this problem as well and I can't seem to join into any table in SAP/BW (or at least the cubes/queries) that I have tried. Not sure if you are in SAP/BW, but I'm guessing it is the same.
Therefore it only left me with 1 option, the loop.
Instead of looping the table call over and over, I simply created the table with the order numbers I wanted and then read out each order number into a "Where" statement and then simply made the 1 call with the extended Where.
Here's the code that did it:
...
ON TABLE HOLD FORMAT ALPHA
END
-RUN
-SET &NUMLINES = &LINES;
-READ HOLD NOCLOSE &ORDER.A7.
-SET &IFORDER= '''' || &ORDER || '''';
-TOPLOOP
-READ HOLD NOCLOSE &ORDER.A7.
-SET &NUMLINES = &NUMLINES - 1;
-IF &NUMLINES LT 1 THEN GOTO ENDLOOP;
-SET &IFORDER= &IFORDER|| ' OR ' | '''' || &ORDER || '''';
-GOTO TOPLOOP;
-ENDLOOP
Then simply use the &IFORDER in the table call.
I know it doesn't solve the problem for joining the tables, but it was my work around.
Leo
Prod: WebFOCUS 7.6.4 - Self Service - Windows Server2003 - Apache Tomcat 5.5
Dev: WebFOCUS 7.6.4 - Self Service - Windows XP SP2 - Apache Tomcat 5.5