0% found this document useful (0 votes)
20 views

Accounting Change From K To A Issue

The document describes an issue where updating the accounting category of an existing purchase requisition (PR) from category K to category A is resulting in an "Enter Asset" error when trying to order the PR. The error is occurring because when the PR item is updated with the new accounting lines, the asset number is not being passed correctly to the checking method. This is causing the asset validation to fail, even though the accounting context being passed does contain the asset number earlier in the update process.

Uploaded by

saivenkateswar
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
20 views

Accounting Change From K To A Issue

The document describes an issue where updating the accounting category of an existing purchase requisition (PR) from category K to category A is resulting in an "Enter Asset" error when trying to order the PR. The error is occurring because when the PR item is updated with the new accounting lines, the asset number is not being passed correctly to the checking method. This is causing the asset validation to fail, even though the accounting context being passed does contain the asset number earlier in the update process.

Uploaded by

saivenkateswar
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 4

System : CC2/715

Plant, Company Code, Purchasing Organization: 1710

Material Group : L002

G/L Account and Cost Center: 51100000, 17101101

Asset: 10000001 

Scenario: Edit of an existing PR with Account Assignment Category K and Cost center maintained

And accounting category is changed to A

On Click of Order of PR

Error on Screen ( Create Purchase Requisition App)

Analysis

From SSP on Update of Account Details ( existing details )

From SSP we in class CL_MMPUR_REQ_INTEGR_ACTIVE_DOC method: UPDATE_MATERIAL_ITEM

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

The Asset value is missing here.

 
Sample PR: 10014698 in CC2/715

User in CC2/715: I301970/Welcome@27

You might also like