Hi Experts,
Scenario : There are 10 Sales Order for logined customer because of some reason only 9 sales order Details were properly fetched. so i like a make log for that 1 sales order which is not fetched in Gateway server.
Used below two method to write log
/iwbep/if_sb_dpc_comm_services~log_message(
EXPORTING
iv_msg_type = 'E' " Message Type
iv_msg_id = 'ZMSG_CLASS' " Message Class
iv_msg_number = 002 " Message Number
* iv_msg_v1 =
* iv_msg_v2 =
* iv_msg_v3 =
* iv_msg_v4 =
* ).
Or
data lr_log TYPE REF TO /iwbep/cl_cos_logger.
lr_log = /iwbep/if_mgw_conv_srv_runtime~get_logger( ).
lr_log->error_log_write(
EXPORTING
iv_main_entry = abap_false " 'X': Only one entry for each session
* io_exception = " Any exception
* iv_error_info = " Any data
iv_msgid = 'ZDP_MSG_CLASS' " Message Class
iv_msgno = 002 " Message Number
* iv_msgv1 = " Message Variable 1
* iv_msgv2 = " Message Variable 2
* iv_msgv3 = " Message Variable 3
* iv_msgv4 = " Message Variable 4
).
Tcode /IWfnd/VIEW_LOG to view the log but not able to find it .I dont know whether i am looking in right TCode
Thanks in Advance
Regards,
Jibin Joy