cancel
Showing results for 
Search instead for 
Did you mean: 

Error messages accumulate

Former Member
0 Kudos

Hi:

I am wondering why the number of error message increase with each request once there is an error?

I have WDTable in my view, on a selected action I execute a bapi call.

If there are validation erros in the input from the user we are diplaying the error messages (for ex 3 error messages as following) from return structure (Bapiret2).

<b> UNIT: Time unit hr does not exist filed: UNIT id: CRM_SERVICE_I log_msg_no: 000000 log no: num: 207 row: 1 param: type: E

ORDER_NUMBER: Type W of cost center 0002437111 is not allowed fo filed: ORDER_NUMBER id: ZSM_MESSAGES log_msg_no: 000000 log no: num: 099 row: 1 param: type: E

ORDER_NUMBER: No information was found filed: ORDER_NUMBER id: ZSM_MESSAGES log_msg_no: 000000 log no: num: 099 row: 1 param: type: E</b>

The issue is, when the user click on action button again with out modfying anything, Instead of getting 3 error messages, I am getting 9 error messages.

<b> UNIT: Time unit hr does not exist filed: UNIT id: CRM_SERVICE_I log_msg_no: 000000 log no: num: 207 row: 1 param: type: E

ORDER_NUMBER: Type W of cost center 0002437111 is not allowed fo filed: ORDER_NUMBER id: ZSM_MESSAGES log_msg_no: 000000 log no: num: 099 row: 1 param: type: E

ORDER_NUMBER: No information was found filed: ORDER_NUMBER id: ZSM_MESSAGES log_msg_no: 000000 log no: num: 099 row: 1 param: type: E

UNIT: Time unit hr does not exist filed: UNIT id: CRM_SERVICE_I log_msg_no: 000000 log no: num: 207 row: 1 param: type: E

ORDER_NUMBER: Type W of cost center 0002437111 is not allowed fo filed: ORDER_NUMBER id: ZSM_MESSAGES log_msg_no: 000000 log no: num: 099 row: 1 param: type: E

ORDER_NUMBER: No information was found filed: ORDER_NUMBER id: ZSM_MESSAGES log_msg_no: 000000 log no: num: 099 row: 1 param: type: E

UNIT: Time unit hr does not exist filed: UNIT id: CRM_SERVICE_I log_msg_no: 000000 log no: num: 207 row: 2 param: type: E

ORDER_NUMBER: Type W of cost center 0002437111 is not allowed fo filed: ORDER_NUMBER id: ZSM_MESSAGES log_msg_no: 000000 log no: num: 099 row: 2 param: type: E

ORDER_NUMBER: No information was found filed: ORDER_NUMBER id: ZSM_MESSAGES log_msg_no: 000000 log no: num: 099 row: 2 param: type: E

</b>

Any help would be greatly appreciated!

Thank in advance...

Accepted Solutions (1)

Accepted Solutions (1)

former_member182372
Active Contributor
0 Kudos

Hi Raja,

Do you clean Bapiret2? Like wdContext.nodeOutput().invalidae() after model.execute()?

best regards, Maksim Rashchynski.

Former Member
0 Kudos

Yes, I did that.

former_member182372
Active Contributor
0 Kudos

Hi Raja,

Try to print content of Bapiret2 before model.execute()

Best regards, Maksim Rashchynski

Former Member
0 Kudos

Hi Maksim:

Thanks for the replies!

I found a bug in my code.

Thanks,

Raja

Answers (0)