Focal Point
[SOLVED] IBI SAP HANA ADAPTER ISSUE

This topic can be found at:
https://forums.informationbuilders.com/eve/forums/a/tpc/f/7971057331/m/4017076886

December 16, 2017, 09:54 AM
MMcDonald
[SOLVED] IBI SAP HANA ADAPTER ISSUE
We purchased the IBI SAP HANA adapter. We are having an issue where we do a very simple join on a material number to another table with material number, same exact format. When the report is displayed all it returns are the materials that are exactly the full length of the material which is A18. if the material is not exactly 18 bytes the material is ignored. This is very frustrating...any ideas. We are in the middle of an SAP HANA upgrade are now dead in the water. Is there certain setting on the adapter or config files we need to modify? Thanks

This message has been edited. Last edited by: FP Mod Chuck,


8.0.9, Windows
excel / pdf
December 17, 2017, 11:13 AM
Efrem
I don't know the SAP HANA adapter but I'm wondering is setting the USAGE and ACTUAL to variable format would work.

eg.
USAGE=A18V, ACTUAL=A18V

Not sure if it's supported with this adapter or not.

Efrem
December 17, 2017, 01:39 PM
MMcDonald
You would think that would work, but I changed both masters to have a variable format on the join fields and still I get the same result. Thanks again for your response.


8.0.9, Windows
excel / pdf
December 18, 2017, 03:55 AM
Wep5622
Are you indeed on 8.0.9, as your signature implies?

For our SAP ECC connector, we started out with 8.0.9, but had to upgrade to 8.1.03 (We're on Gen 827) because of show-stopper issues that were solved in later versions.

If you did not already do so, make sure to open a call with Tech Support. Even if they can't solve this for you right away (probably by means of an upgrade), they should at least be (made) aware of the issue.


WebFOCUS 8.1.03, Windows 7-64/2008-64, IBM DB2/400, Oracle 11g & RDB, MS SQL-Server 2005, SAP, PostgreSQL 11, Output: HTML, PDF, Excel 2010
: Member of User Group Benelux :
December 18, 2017, 10:14 AM
MMcDonald
In the EDAPROF.PRF file there was a set command:
" SQL SQLHANA SET VARCHAR OFF "
The reason this was originally added was to remove all "V" variable length formats from the master files. The original masters pointing to SAP ECC 5 did not have variable length fields but apparently HANA (SAP ECC 6) requires the fields to be variable length. Once the material field was changed from a A18 to A18V format the join worked as expected.

This message has been edited. Last edited by: MMcDonald,


8.0.9, Windows
excel / pdf
December 18, 2017, 01:41 PM
MMcDonald
Another issue popped up:

Once we removed the " SQL SQLHANA SET VARCHAR OFF " In the EDAPROF.PRF file and recreated the HANA master with the variable length fields ā€œVā€, the join worked.
The NEW issue is, the join ONLY works if you are joining from a HANA master to another table, they are not working if you join from (for example) a MSS SQL table to a HANA table.


8.0.9, Windows
excel / pdf
December 19, 2017, 06:09 AM
Wep5622
Are the JOIN fields the same format in both databases?
WebFOCUS is in my experience rather unwilling to coerce the format of one field to another - it does print a warning about non-matching JOIN field formats though.

In such cases, manually coercing the fields to the longest usually helps. However, that usually requires a DEFINE field WITH someotherfield and another WITH in the right-hand side of your JOIN - and therefore it pretty much defines in which order you can JOIN your tables.

Often we end up holding to a local file first.


WebFOCUS 8.1.03, Windows 7-64/2008-64, IBM DB2/400, Oracle 11g & RDB, MS SQL-Server 2005, SAP, PostgreSQL 11, Output: HTML, PDF, Excel 2010
: Member of User Group Benelux :
December 19, 2017, 08:06 AM
MMcDonald
Formats are identical. The adapter seems to be padding the field with either spaces or zeros when the value of the field is less the the actual format designated by the master file. I was on the phone all afternoon with IBI support and will continue to work with IBI this morning. There does not seem to be a quick solution fr this issue, like a set command in the edaprof for HANA. I will continue to update this case and hopefully we find a solution.


8.0.9, Windows
excel / pdf