Skip to main content
Announcements
Introducing Qlik Answers: A plug-and-play, Generative AI powered RAG solution. READ ALL ABOUT IT!
cancel
Showing results for 
Search instead for 
Did you mean: 
pgalvezt
Specialist
Specialist

Extract information from SAP

Hello! I have a Sap report and I would like to know how extract just 2 values and left them in another columns, like Col1 Col2. I put an Excel Example.

Just I need to extract the first value within the date (In yellow).

Thanks!

1 Solution

Accepted Solutions
mkirchhofer
Contributor III
Contributor III

Hi,

you can try this reload source code.

Directory;
Temp:
LOAD
Left(@1,10) as Order,
Right(@1,10) as Order_Date,
If(Alt(Right(@1,10),date#(Right(@1,10),'DD.MM.YYYY' ),0 ) <> 0,'X','') as Header_Flag
FROM
[..\EX1.xls]
(biff, no labels, header is 4 lines, table is [ME2N CR ENE12$]);

Orders:
LOAD
Order,
Order_Date
Resident Temp
Where Header_Flag = 'X';

DROP Table Temp;


kind regards

Mario

View solution in original post

10 Replies
pgalvezt
Specialist
Specialist
Author

Any Help?

pgalvezt
Specialist
Specialist
Author

Anyone?

Thanks!

pgalvezt
Specialist
Specialist
Author

Anyone?

Thanks!

mkirchhofer
Contributor III
Contributor III

Hi, is the report a SAP standard transaction?

So that I can rebuild it?

regards

Mario

pgalvezt
Specialist
Specialist
Author

Yes, if you can look my example is an Excel with the data standar report from SAP.

mkirchhofer
Contributor III
Contributor III

So please give me the name of transaction, like MB11 or what else!

pgalvezt
Specialist
Specialist
Author

ME2N

mkirchhofer
Contributor III
Contributor III

Hi,

you can try this reload source code.

Directory;
Temp:
LOAD
Left(@1,10) as Order,
Right(@1,10) as Order_Date,
If(Alt(Right(@1,10),date#(Right(@1,10),'DD.MM.YYYY' ),0 ) <> 0,'X','') as Header_Flag
FROM
[..\EX1.xls]
(biff, no labels, header is 4 lines, table is [ME2N CR ENE12$]);

Orders:
LOAD
Order,
Order_Date
Resident Temp
Where Header_Flag = 'X';

DROP Table Temp;


kind regards

Mario

mkirchhofer
Contributor III
Contributor III

Hi,

did the code solve your problem?

regards

Mario