Hiii,
I wrote a method to fill some values for the business partner in bol oneorder procedure. I will now save the occuring error in an application log.
For example, I have the following method to save a value to my bol entity.
lv_bp_type->set_property( EXPORTING iv_attr_name = 'PARTNER_ROLE' iv_value = 00002' ).
Now I will save the occuring the error messages:
lv_bp_type->set_property( EXPORTING iv_attr_name = 'PARTNER_ROLE' iv_value = 00002' ).
if lv_bp_type is Initial.
lr_return-TYPE = 'S'.
lr_return-Number = 001.
lr_return-ID = 1.
lr_return-MESSAGE_V1 = 'Error'.
Append ls_return to li_return.
CALL METHOD log->TO_MY_APPLOG
ld_return = li_return.
This is my idea, how to save error to my application log. But I think it is not a good solution.
Could anybody give me an idea how to do it in a better way?
Thanks and Best regards,
John