Symptom
Withdrawal quantities from the ERP save the information to a transparent table defined by customer via a USER-EXIT on APO side. The solution don't change standard SAP/APO objects.
Process follow steps:
1. create transparent table ZIRQREDUCT by use transaction SE11
a/ fill name 'ZIRQREDUCT' for database table name and click button
create
b/ confirm object is in customer name space (ENTER)
c/ Delivery and Maintenance view is displayed :
- fill Short text . 'Monitor forecast reduction transports'
- fill Delivery class = 'L'
- choose Display/maintenance allowed
d/ Go to Fields view and fill as following :
Field Key Data element
DATUM x SYDATUM
UZEIT x SYUZEIT
TRFCCHN x /SAPAPO/CIFTRFCCHN
.INCLUDE /SAPAPO/CIF_IR_RED
e/ click to icon SAVE
f/ click to button 'Technical setting':
- fill Data class = 'APPL1'
- fill Size category = '1' (or another according your meaning)
g/ click icon SAVE
h/ click icon BACK or key 'F3'
i/ activate
2. define insert transported data by USER-EXIT 'APOCF003' to table
ZIRQREDUCT
a/ fill user-exit 'APOCF003' - function modul
'EXIT_/SAPAPO/SAPLCIF_IRQ_001' - include 'ZXCIFUSERU05'
by following source code:
**************************************************
TABLES ZIRQREDUCT.
MOVE CS_CONTROLS-TRFCCHN TO ZIRQREDUCT-TRFCCHN.
MOVE SY-DATUM TO ZIRQREDUCT-DATUM.
MOVE SY-UZEIT TO ZIRQREDUCT-UZEIT.
LOOP AT IT_IR_RED.
MOVE-CORRESPONDING IT_IR_RED TO ZIRQREDUCT.
INSERT INTO ZIRQREDUCT VALUES ZIRQREDUCT.
ENDLOOP.
**************************************************
b/ activate it
c/ activate user-exit 'APOCF003' using transaction SMOD
Remarks:
1. Be aware one transported withdrawal quantity value will trigger
insert one row to the table ZIRQREDUCT.
2. You can deactivate the USER-EXIT for avoid of fill the table
in future
(if is not more necessary to monitor the transports).
3. You can maintain/delete the table ZIRQREDUCT by
use transaction SE16
4. You should test the solution in a DEVELOPMENT/TEST system.
Source
Note 623216 - Log of withdrawal quantity
During forecast reduction, no withdrawal quantity log is updated from reasons of performance. At least for the problem analysis, however, this history could sometimes be useful. The process of forecast reduction is not repeatable. From reasons of continuous understanding of withdrawal quantities, the history can be updated during forecast reduction when you activate the attached modification. Together with the goods movements from the ERP you can retrace the reduction operations individually.
Solution
Process follow steps:
1. create transparent table ZIRQREDUCT by use transaction SE11
a/ fill name 'ZIRQREDUCT' for database table name and click button
create
b/ confirm object is in customer name space (ENTER)
c/ Delivery and Maintenance view is displayed :
- fill Short text . 'Monitor forecast reduction transports'
- fill Delivery class = 'L'
- choose Display/maintenance allowed
d/ Go to Fields view and fill as following :
Field Key Data element
DATUM x SYDATUM
UZEIT x SYUZEIT
TRFCCHN x /SAPAPO/CIFTRFCCHN
.INCLUDE /SAPAPO/CIF_IR_RED
e/ click to icon SAVE
f/ click to button 'Technical setting':
- fill Data class = 'APPL1'
- fill Size category = '1' (or another according your meaning)
g/ click icon SAVE
h/ click icon BACK or key 'F3'
i/ activate
2. define insert transported data by USER-EXIT 'APOCF003' to table
ZIRQREDUCT
a/ fill user-exit 'APOCF003' - function modul
'EXIT_/SAPAPO/SAPLCIF_IRQ_001' - include 'ZXCIFUSERU05'
by following source code:
**************************************************
TABLES ZIRQREDUCT.
MOVE CS_CONTROLS-TRFCCHN TO ZIRQREDUCT-TRFCCHN.
MOVE SY-DATUM TO ZIRQREDUCT-DATUM.
MOVE SY-UZEIT TO ZIRQREDUCT-UZEIT.
LOOP AT IT_IR_RED.
MOVE-CORRESPONDING IT_IR_RED TO ZIRQREDUCT.
INSERT INTO ZIRQREDUCT VALUES ZIRQREDUCT.
ENDLOOP.
**************************************************
b/ activate it
c/ activate user-exit 'APOCF003' using transaction SMOD
Remarks:
1. Be aware one transported withdrawal quantity value will trigger
insert one row to the table ZIRQREDUCT.
2. You can deactivate the USER-EXIT for avoid of fill the table
in future
(if is not more necessary to monitor the transports).
3. You can maintain/delete the table ZIRQREDUCT by
use transaction SE16
4. You should test the solution in a DEVELOPMENT/TEST system.
Source
Note 623216 - Log of withdrawal quantity
Comentários
Enviar um comentário