Skip to Content
author's profile photo Former Member
Former Member

Sap hana expert routine

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!

Add a comment
10|10000 characters needed characters exceeded

Related questions

2 Answers

  • author's profile photo Former Member
    Former Member
    Posted on Aug 10, 2016 at 12:16 PM

    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

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Aug 17, 2016 at 03:01 PM

    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
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.