Error Logging For Order Transfer
Error Logging For Order Transfer
Error Logging For Order Transfer
Use
If errors occur during the initial transfer of planned and manufacturing orders, the system generates entries in the CIF application log in SAP R/3. The orders concerned are not posted to the target system. However, the initial transfer continues without interruption, which means that subsequent orders continue to be transferred. If you do not want the system to behave in this way, you can use customer exit CIFORD002 to set that an error in order selection leads to a termination of the initial transfer. The relevant steps are described in SAP Note 593413.
Integration
Note: In this case, the system only generates entries in the CIF application log for this user if X (Normal) or D (Detailed) is set in the Logging column in the implementation guide for the APO Core Interface (CIF IMG) under Basic Settings for the Data Transfer Set User Parameters.
Activities
The system issues a message that an error has occurred and an entry is generated in the application log. After each initial transfer, you need to check whether entries exist in the application log for errors that occurred during the transfer of planned and manufacturing orders. You call the application log under Monitoring in the CIF menu or by using transaction CFG1. After error analysis, change the affected order in SAP R/3. As part of the change transfer, SAP R/3 automatically transfers this change to SAP APO. If the order does not yet exist in SAP APO, it is created automatically. Otherwise, SAP APO changes the order that already exists.
An active integration model is a prerequisite for an automatic change transfer to SAP APO. The integration model is not active if, for example, you have set that the initial transfer should terminate by using customer exit CIFORD002.
Integration
CIF queue display can be called in SAP R/3 and SAP APO using the qRFC monitors for outbound and inbound queues (transaction SMQ1 or SMQ2). You can also access CIF queue display using the SCM queue manager (transaction /SAPAPO/CQ). The queue contents can be processed both in SAP R/3 and SAP APO. The creation, changing, and deletion of queue contents are protected by corresponding authorization objects. Changes to queue contents are registered using an entry in the system log (transaction SM21). The original queue contents and the changed queue contents are also recorded in the application log.
Prerequisites
To be able to display queue contents using the qRFC monitor, you have to register the program CIFQEV02 in SAP R/3 and program /SAPAPO/CIF_QUEUE_EVENT2 in qRFC administration in SAP APO as the display programs for CF* queues. To do this, call transaction SMQE. Choose Edit Register Display Program. Under Queue Name enter CF* and under Display Program enter CIFQEVO2 (for SAP R/3) or /SAPAPO/CIF_QUEUE_EVENT2 (for SAP APO). As of SAP R/3 Plug-In 2002.2 for SAP R/3 4.0B and higher, you can configure CIF queue display on a user-specific basis in the implementation guide (IMG) in SAP R/3 for the APO Core Interface by choosing: Basic Settings for Setting Up the System Landscape Settings for qRFC Communication Configure CIF Queue Display on a User-Specific Basis. If you are working with outbound queues and want to navigate to the relevant application logs in the receiving system from the queue contents display, you have to enter a dialog user at the RFC destination in user maintenance (transaction SU01).
Features
The following individual functions are available: Display queue contents A node appears in tree control for each table to be transferred (that is, for each interface parameter concerned). You can display the queue contents in the table on the right of the screen by double-clicking on the nodes. Change queue contents You can change the value of queues that are in SAP APO inbound or SAP APO outbound. Delete displayed queue contents You can delete the table entries of the queue contents that are displayed on a line-by-line basis. This enables you to delete table entries that are causing an error directly from the queue. You no longer have to delete the entire LUW, just the objects or sub objects that are causing problems. Save and resend changed queues Navigate to the application log You can carry out detailed error analysis in the application log.
Authorization concept The use of CIF queue display is connected to authorization object C_CF_QUEUE (in SAP R/3) or C_APO_CFQD (in SAP APO). These authorization objects allow the following settings: 1. LOGSYS: Restriction to the target system 2. QUEUENAME: Restriction to queue name and therefore to an object
3. ACTVT: Restriction to permitted activities The following options are supported for queue
contents (SAP APO queues only): Display, Delete, Change, Add, and Copy. Each user must be assigned an authorization profile together with the relevant settings for the authorization object C_CF_QUEUE (in SAP R/3) or C_APO_CFQD (in SAP APO). Lock concept The entire LUW is locked when the contents of a queue are being displayed. If another user attempts to process queues in this LUW at the same time, it is only possible for the user to work in display mode. This ensures that a LUW cannot be modified by two users simultaneously using CIF queue display. Send pages You can use the SAP standard list function System List Send to send the queue contents for each page displayed to email addresses. Logging of changes
Activities
Call CIF Queue Display SAP APO and SAP R/3 queues are displayed differently. There are the following navigation options for SAP R/3 queues: You use the Detail symbol to receive more detailed information about the table entry on which the cursor is positioned. You use the Overview symbol for an overview of all displayed lists for each page. This symbol also takes you back from the detailed view to the entry screen for CIF queue display. You use the Scroll symbol to see more pages if the number of interface parameters to be displayed exceeds the number of lists on each page. You use the Display Application Log symbol to navigate from the CIF queue display directly to the relevant application log entry in the receiving system. For outbound queues, the prerequisites mentioned above must be met. You use the Change Queue Contents symbol to delete queue contents that you have already selected on a line-by-line basis. After deleting queue contents, you can save the changed queues so that they can be sent again. You can also use this icon to change the queue contents of queues in SAP APO inbound and SAP APO outbound. You use the Save Queue and Back symbol to save the queues from which you have deleted queue contents back to the database. Then, you can send the queues again. There are the following navigation options for SAP APO queues: You can use the Cut icon to delete the queue contents on a row or column basis. You can use the Copy Text icon to copy queue contents (for example, so that you can insert them at another point). You can use the Include icon to insert queue contents that you have already copied into a new line or to overwrite queue contents that already exist. You can use the Undo icon to undo the last processing step.