Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Join us to spark ideas for how to put the latest capabilities into action. Register here!
cancel
Showing results for 
Search instead for 
Did you mean: 
ralph_graham
Partner - Creator
Partner - Creator

SAP Connector and For Next

Hello,

I'm coming across a slightly perplexing problem with setting up a for next loop using the SAP Connector. Essentially I want to split any tables that we extract with a financial year field in them so that they are separated, e.g. GPLCA_2014.qvd, GLPCA_2015.qvd etc.

I've created a for next approach in a similar way as I would usually do this but I get a Custom Read Failed message.

Any ideas or suggestions are most welcome.

Thanks,

Ralph

1 Reply
Anonymous
Not applicable

Not enough info.  Can you show at least what you do in the "for...next" loop?  I'd do something like this:

FOR YEAR = 2010 TO 2015

   GPLCA_$(YEAR):
   LOAD * RESIDENT GPLCA
   WHERE Year = $(YEAR);
   STORE GPLCA_$(YEAR) INTO GPLCA_$(YEAR).qvd (qvd);
   DROP TABLE GPLCA_$(YEAR);

NEXT