SAP Note 1376862 Update third-party purchase order and individual purchase order in CO-PA

作者:郑德鼎 约 3 分钟阅读 更新日期:2024-02-22 2 年前更新 标签:CO, FI, MM, SD, 物料管理, 财务, 销售分销
目录

Note

SAP Note Number 1376862

Number 1376862

Version 0003

Processor -

Processing Status new

Impl. State Cannot be implemented

Language E

Short Text Update third-party purchase order and individual purchase order in CO-PA

Component CO-PA-ACT Flows of Actual Values

Long Text

Symptom

Before you implemented Notes 988113 and 1297982, price differences for individual purchase

orders that occurred during posting of goods or invoice receipts were updated directly in the

costing-based profitability analysis, and this should not happen. After implementing the notes, this

is no longer possible.

In certain cases however, it may be necessary to transfer these postings directly to the costing-

based profitability analysis, even after implementing the corrections. This requirement is met

using the CO-PA-specific exit of an RKE_EXIT described below.

Note that the use of this exit is intended as a temporary solution only. This can be used when it is

not possible to change the current process. However, we generally advise you to change the

processing of individual purchase orders and reconcile it with the processing of third-party

purchase orders so that

both processes are mapped identically in CO-PA.

Other Terms

MIRO, third-party, MIGO, individual purchase order, price difference

Reason and Prerequisites

In the standard SAP software, price differences that occur during goods or invoice receipt for a

third-party or individual purchase order are not updated in the costing-based profitability analysis.

For both third-party as well as individual purchase orders, the cost of sales is updated with the

billing document using the condition VPRS (condition type G) in the profitability analysis. If the

costs of the ordering process are not yet available when you create the billing document, these are

updated as soon as the outstanding invoice receipt is posted for the purchase order. In this case,

saphtmlp://htmlviewer.sap.com/2Zwddu{J7ksKf{Dli0wGc0/HTML000001.htm 21/10/2022

Note

the condition value of the condition VPRS is adjusted and a delta line item is updated with the

difference in the profitability analysis. This guarantees that the actual costs of the purchase order

can always be displayed in CO-PA. A separate transfer of price differences that occur when

posting the goods or invoice receipt is therefore no longer necessary.

The correct Customizing settings in SD are required in order to update the costs on the billing

document. In the copy control, the billing quantity must be set with E or F. Only then can the

necessary documents be read. If the copy control setting is different, the costs are taken from

either the goods issue or the material valuation segment. See also Notes 372772 and 547570,

which explain the necessary settings in SD.

Solution

In order to activate the transfer of price differences for individual purchase orders, perform the

following steps

1. Activate the CO-PA user exit

'KEII_SDSTR'

.

To activate the exit, proceed as follows

a) Using transaction SE16, make a new entry in the table TKEEXITS with the

following field contents

EXITID - 'KEII_SDSTR'

APPL - 'KE'

SEQNO - '001'

ISACTIVE - X

REPORT - name of a program in the customer namespace Z* FORM - name of a subroutine in the program REPORT

b) The exit can then be implemented in the subroutine FORM of the program

REPORT. If you want to deactivate it, you must either remove the entry from the

table TKEEXITS again or set the indicator ISACTIVE to initial.

The subroutine FORM must be declared with the following changing parameters

IS_ACCHD TYPE ACCHD

IS_ACCIT TYPE ACCIT

X_NO_TRANSFER TYPE C

d) You can control the update of the line items using the parameter

'X_NO_TRANSFER'

. This parameter is set when you call the exit (X_NO_TRANSFER = 'X'). If the

current line items are transferred, the contents of the variables must be initialized

(X_NO_TRANSFER = ''). All information that is required for the determination of

the update is in the parameters IS_ACCHD and IS_ACCIT. These contain the

complete data of the line items to be checked.

saphtmlp://htmlviewer.sap.com/2Zwddu{J7ksKf{Dli0wGc0/HTML000001.htm 21/10/2022

Note

Valid Releases

SAP Application

• 600

• 602

• 603

• 604

• 605

• 606

• 616

• 617

• 700

• 618

• 720

• 730

• 100

• 101

• 102

• 103

• 104

• 105

Links to Support Packages

Software Component Release Package Name

saphtmlp://htmlviewer.sap.com/2Zwddu{J7ksKf{Dli0wGc0/HTML000001.htm 21/10/2022

郑德鼎

关于作者:郑德鼎

企业信息化与 SAP 技术顾问,长期专注 SAP ABAP、FI/CO、MM、SD 等模块的技术分享与实战经验总结。查看更多介绍

来源说明:本文内容由「SAP Note 1376862 Update third-party purchase order and individual purchase order in CO-PA.pdf」整理生成,仅用于内部技术分享与学习交流。