Accounting Change From K To A Issue
Accounting Change From K To A Issue
Asset: 10000001
Scenario: Edit of an existing PR with Account Assignment Category K and Cost center maintained
On Click of Order of PR
Analysis
Line no 85: after update account line we call set_pr_item of handler with both the changes in item +
accounting lines
me->update_account_lines(
EXPORTING
is_old_item = ls_old_item
CHANGING
ct_account_lines = ct_account_lines
cs_update_item = ls_update_item ).
* Updates a PR item with processed data
CALL METHOD mo_pr_handler->set_pr_item
EXPORTING
im_pr_item = ls_update_item.
At this point if you see the account_items we have the updated account lines
here
Later in the flow pr_process method of Handler is called method PROCESS_PR of class
CL_MMPUR_REQ_INTEGR_ACTIVE_DOC
And the error ‘Enter Asset’ is thrown from FM: ME_ACCOUNTING CHECK as shown below
However, checking the accounting context passed to the FM
Sample PR: 10014698 in CC2/715