- You can go to T-code -SE24 and go to class CL_UJXD_PACKAGES_RES.
- Go to line 179 of the DO_POST method and set an external breakpoint.
- Also put a Break-point inside your BADI.
- Switch to the BPC client and execute the data manager package you want to debug.
- This will launch a SAPGUI debugger
- Double click on the ‘ls_package_run-if_debug’ exporting parameter and set its value to true (represented by the character X).
- This will take you inside your BADI code.
- You this code code below and to check the et_error_records and the et_message,so that you understand why it is getting aborted.
TRY.
CALL METHOD lo_writeback->write_back
EXPORTING
i_appset_id = appset_id
i_appl_id = appl_id
is_wb_param = is_wb_param
it_records = <lt_query_result1>
IMPORTING
es_wb_status = wb_status
* et_error_records = error_records.
et_message = message.
CATCH cx_ujo_write_back .
CATCH cx_uj_static_check .
ENDTRY.
OR ELSE if you are not using a BADI and just a script logic then go to T-code- UJKT and debug your script using that and you will get the log files.
Regards,
Bishwajit.