Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Show TR details edge case #132

Merged
merged 1 commit into from
Mar 16, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions src/zcl_timem_request.clas.abap
Original file line number Diff line number Diff line change
Expand Up @@ -125,5 +125,15 @@ CLASS zcl_timem_request IMPLEMENTATION.
ORDER BY as4date DESCENDING as4time DESCENDING.
EXIT.
ENDSELECT.
IF sy-subrc <> 0 AND object_type = 'REPS'.
" This is a unfortunate hack. I hope there is a way to avoid this.
" But for some reason in VRSD the object type for programs is REPS
" (which stands for report source) for a given TR, but in E071 the
" object type registered is PROG. This is a workaround to
" be sure the request details are found in those cases.
result = get_latest_task_for_object(
object_type = 'PROG'
object_name = object_name ).
ENDIF.
ENDMETHOD.
ENDCLASS.