Hi All ! We' vу migrated from BW 7.5 SP 3 to 7.5 SP 4 .
Now I have a problem with sap hana expert routine - with errorTab table
class-methods PROCEDURE
importing
value(i_error_handling) type STRING
value(inTab) type /BIC/00O2TPSGVMTAEZ5Z6ACCFX70Y=>TN_T_IN
exporting
value(outTab) type /BIC/00O2TPSGVMTAEZ5Z6ACCFX70Y=>TN_T_OUT
value(errorTab) type /BIC/00O2TPSGVMTAEZ5Z6ACCFX70Y=>TN_T_ERROR .
What is the errorTab type ?
How can I fill this table ?
Regards!
Hi Alexander,
As shown in the error message the type starts with a field called 'BILL_NUM' and type NVARCHAR(10) followed by 'BILL_ITEM' and type NVARCHAR(6) and so on.
Besides the whole type you can see when double-click on /BIC/00O2TPSGVMTAEZ5Z6ACCFX70Y=>TN_T_ERROR in your class header. There you can also see that it differs from your inTab. Seems that's why you can't select * your inTab to errorTab.
Try to select the necessary fields for errorTab from your inTab. Alias fields when necessary.
Good Luck.
Silvio
Hi,
the with BW 7.50 SP04 the error handling is supported in HANA Expert Scripts.
I'm currently writing the corresponding information for my blog seires: HANA based BW Transformation
The blog will coming soon.
But to your question the errorTab is for the error handling.
The result of the errorTab will only be used in case the error handling is switched on in the DTP. In case you do not switch the error handling on the result is not been used and you can use the following statement to create an empty result table:
errorTab =
SELECT '' AS ERROR_TEXT,
'' AS SQL__PROCEDURE__SOURCE__RECORD
FROM DUMMY
WHERE DUMMY <> 'X';
For your background:
A table based parameter of a database procedure must always return a result set. Therefore it is necessary to implement a SQL statement for the errorTab. In my sample with zero rows.
Torsten
Add a comment