Skip to Content
0
Former Member
May 23, 2012 at 05:14 AM

How to handle Errors in Feature Pack1 through Handcraft Solution

30 Views

Hi,

Hi,

We are using the handcraft solution for the development based on Duet Future pack 1 development guide.

But I am not able to display the text in output. It is getting only Id and text is displaying like <text>S:LR:221</text>

Please see the below code for adding bapi message in post mapper method and also output for the same.

Can you please help me on this if you have any idea about this problem.

call method lo_message_container->add_message
exporting
is_object_key = ls_key
iv_msg_type = ls_response_return-type "/iwcnt/cl_bec_bpc_cust_const=>gc_error_message"'E'
iv_msg_id = ls_response_return-id "/iwcnt/cl_bec_bpc_cust_const=>gc_iwcnt_service_msgclass"'/IWCNT/SERVICES'
iv_msg_number = ls_response_return-number"/iwcnt/cl_bec_bpc_cust_const=>gc_message_number_012 "'012'
IV_MSG_TEXT = ls_response_return-MESSAGE
iv_msg_v1 = ls_response_return-MESSAGE_V1 "lv_msgv1
iv_msg_v2 = ls_response_return-MESSAGE_V2"lv_msgv2
iv_message_creator = 'SAS' ."/iwcnt/cl_bec_bpc_cust_const=>gc_tango_ser_appl.

output

<nm:StandardMessageFault_LM xmlns:nm="http://sap.com/xi/SAPGlobal/Global" xmlns:prx="urn:sap.com:proxy:NW1:/1SAI/TAS9EF2D25AC1590B315401:702">
- <standard>
<faultText>Standard Message Fault</faultText>
- <faultDetail>
<severity>error</severity>
<text>S:LR:221</text>
<id>221(LR)</id>
</faultDetail>
- <faultDetail>
<severity>error</severity>
<text>S:LR:221</text>
<id>221(LR)</id>
</faultDetail>
- <faultDetail>
<severity>warning</severity>
<text>The SAP system could not process your request. Contact your administrator</text>
<url>http://MSTCNW702.litware.com:8000/sap/xi/docu_apperror?ID=NA&OBJECT=%2fIWFND%2fCOD011&LANGUAGE=E</url>
<id>011(/IWFND/COD)</id>
</faultDetail>
</standard>
</nm:StandardMessageFault_LM>

<