Performance problems when processing CIF queues (LUWs)

[] [] [] [] [] [] [] []

Symptom

There is a large number of CIF queue entries in the inbound queue of the SCM system as a result of system downtimes or other system-related problems. When these entries are processed by the QIN scheduler, performance problems occur and the queues that have accumulated are processed very slowly.
Other terms

CIF, SMQR, SMQ2, queue
Reason and Prerequisites

There are performance problems.
Solution

If performance problems occur when a large number of CIF queue entries in the inbound queue is processed by the standard QIN scheduler, you can use the /SAPAPO/CIF_EMRG_QINSCHED program to process these CIF queues.
Important:
Only implement this program after consultation with SAP.
You should only use the program in emergencies.
While the program is processing the CIF queues, the queues for all other applications in the APO system are blocked. These may then accumulate.
The selection screen of the program contains the following fields:
Receiver
Here, you enter the receiver who should automatically be informed as soon as the program ends.
Receiver type
A receiver type may be a user name or an Internet address, for example.
To avoid performance problems and timeouts when you execute the program, you can only execute it in the background. During runtime, the program writes additional information for the queues that have been started to the spool. When the program ends, the system issues a corresponding message to the receiver.
If you want to use the /SAPAPO/CIF_EMRG_QINSCHED program to process the queues that have accumulated, proceed as follows:
Use transaction SMQR to call the QIN scheduler. Delete any registered entries and register new entries with the prefix ZZ.
For the CIF queues, this means that you delete the CF* entry and create a new entry ZZCF*. As a result, the QIN scheduler ignores the CIF queue entries and only the /SAPAPO/CIF_EMRG_QINSCHED program can process them.
Start the /SAPAPO/CIF_EMRG_QINSCHED program.
The program ends after it has completed a defined number of internal runs. When the program ends, the system automatically informs the receiver specified on the selection sreen.
If, after the program ends, there are still many CIF queue entries in the inbound queue, start the program again.
Once the program has ended, reset the settings you changed in transaction SMQR to their original values. The notification should ensure that the settings are reset as soon as possible.
Note that you should only use the program in emergencies. Do not use this program as standard to substitute the QIN scheduler. Once the program ends, reset the settings you changed in transaction SMQR to their original values.
Implementation instructions (only for SCM releases lower than 5.0)
********************************************************
As of SCM 5.0, the report /SAPAPO/CIF_EMRG_QINSCHED is available in the delivered source code.
1. Use transaction SE38 to create the /SAPAPO/CIF_EMRG_QINSCHED report.
Give the program the title /sapapo/cif_emrg_qinsched.
Assign the following attributes to the program:
Type: ‘Executable Program’
Status: Production SAP Standard Program
Check whether the ‘Fixed Point Arithmetic’ and ‘Unicode Check’ fields are selected. If your system is not a Unicode system, the ‘Unicode Check’ field does not exist.
Assign the /SAPAPO/CIF development class to the program.
Save the program.2. Implement the correction instructions contained in this note.3. Then go to transaction SE38 and call the /SAPAPO/CIF_EMRG_QINSCHED program in change mode.
From there, go to the selection texts by following the menu path ‘Goto’ -> ‘Text Elements’ -> ‘Text Symbols’, and maintain the following values:
Sym Text dLen mLEN
001 Notification after program ends 34 45
002 Receiver 9…..20
003 Receiver type 12 20
010 System time 10 15
011 Number of queues (TRFCQIN) 23 30
012 Number of started queues 25 30
410 :Sent successfully 23 30
411 :Error during sending 23 30
412 Too many receivers 19 30
413 Not sent 16 30
414 Insuficient authorization 25 30
415 Unexpected error 20 30
601 Program can only be executed as background job 49 50
602 Program 8 8
603 was ended 13 15
604 CIF_EMRG_QIN 12 12
Save and activate the program and the text elements.4. Then call transaction SE91 to create a new message.
In the selection screen, specify the /SAPAPO/CIF message class. Select the messages subobject, enter the message number 125 and choose “Change”.
Specify the following message short text for the message ‘Program &1 was ended’ and select the ‘Self-explanatory’ field.
Save your changes.

[Slashdot] [Digg] [Reddit] [del.icio.us] [Facebook] [Technorati] [Google] [StumbleUpon]

Leave a Comment