APO DP - BADI for storing forecast error in mass processing
I am using APO DP V5.
Does anyone have experience of using the BADI for storing the forecast error in mass processing?
My questions:
1. Which BADI is it?
2. Which forecast errors can it store (eg MAD, MAPE, customer specific errors?)
3. How does it work - does it store the fcst error(s) in a key figure, or a table?
Any advice appreciated.
Thanks,
Bob Austin, Atos Origin
Bob,
Go to SE19 --> create implementation: BADI name /sapapo/sdp_fcst4. give some Z name to implementation. Go to interface tab, select activate_fcst_version method, just write 1 line code inside:
ev_flag_active = 'X'.
activate the method, activate the BADI implementation too.
This BADI records background forecasting errors into these two tables: /sapapo/fcsthead & /sapapo/fcstaccu.
Rgds,
SB.
It stores all of the forecast errors including customer specific errors.
SB.
Edited by: SB on Jan 25, 2008 12:38 PM
Similar Messages
-
User exit/BADI for Purchase requisition through release of Process order
Hi ,
i need to add some text to the Pur Req.
The Pur Req will be created THROUGH the release of PROCESS order. Please let me know any exits are available for the same.
regardsHi
Check the following Exits and BADI for Pur Requisition
Enhancement
MEVME001 WE default quantity calc. and over/ underdelivery tolerance
MM06E001 User exits for EDI inbound and outbound purchasing documents
MM06E003 Number range and document number
MM06E004 Control import data screens in purchase order
MM06E005 Customer fields in purchasing document
MM06E007 Change document for requisitions upon conversion into PO
MM06E008 Monitoring of contr. target value in case of release orders
MM06E009 Relevant texts for "Texts exist" indicator
MM06E010 Field selection for vendor address
MM06E011 Activate PReq Block
MMAL0001 ALE source list distribution: Outbound processing
MMAL0002 ALE source list distribution: Inbound processing
MMAL0003 ALE purcasing info record distribution: Outbound processing
MMAL0004 ALE purchasing info record distribution: Inbound processing
MMDA0001 Default delivery addresses
MMFAB001 User exit for generation of release order
MRFLB001 Control Items for Contract Release Order
AMPL0001 User subscreen for additional data on AMPL
LMEDR001 Enhancements to print program
LMELA002 Adopt batch no. from shipping notification when posting a GR
LMELA010 Inbound shipping notification: Transfer item data from IDOC
LMEQR001 User exit for source determination
LMEXF001 Conditions in Purchasing Documents Without Invoice Receipt
LWSUS001 Customer-Specific Source Determination in Retail
M06B0001 Role determination for purchase requisition release
M06B0002 Changes to comm. structure for purchase requisition release
M06B0003 Number range and document number
MEQUERY1 Enhancement to Document Overview ME21N/ME51N
MELAB001 Gen. forecast delivery schedules: Transfer schedule implem.
MEFLD004 Determine earliest delivery date f. check w. GR (only PO)
MEETA001 Define schedule line type (backlog, immed. req., preview)
ME590001 Grouping of requsitions for PO split in ME59
M06E0005 Role determination for release of purchasing documents
M06E0004 Changes to communication structure for release purch. doc.
M06B0005 Changes to comm. structure for overall release of requisn.
M06B0004 Number range and document number
Business Add-in
ME_PROCESS_REQ_CUST Enhancements for Processing Enjoy PReqs: Customer
ME_PROCESS_REQ Enhancements for Processing Enjoy PReqs: Internal
ME_PROCESS_PO_CUST Enhancements for Processing Enjoy Purchase Order: Customer
ME_PROCESS_PO Enhancements for Processing Enjoy Purchase Order: Intern.
ME_PROCESS_COMP Processing of Component Default Data at Time of GR: Custome
ME_PO_SC_SRV BAdI: Service Tab Page for Subcontracting
ME_PO_PRICING_CUST Enhancements to Price Determination: Customer
ME_PO_PRICING Enhancements to Price Determination: Internal
ME_INFOREC_SEND Capture/Send Purchase Info Record Changes - Internal Use
ME_HOLD_PO Hold Enjoy Purchase Orders: Activation/Deactivation
ME_GUI_PO_CUST Customer's Own Screens in Enjoy Purchase Order
ME_FIELDSTATUS_STOCK FM Account Assignment Behavior for Stock PR/PO
ME_DP_CLEARING Clearing (Offsetting) of Down Payments and Payment Requests
ME_PURCHDOC_POSTED Purchasing Document Posted
SMOD_MRFLB001 Control Items for Contract Release Order
EXTENSION_US_TAXES Extended Tax Calculation with Additional Data
ARC_MM_EKKO_WRITE BAdI: Enhancement of Scope of Archiving (MM_EKKO)
ARC_MM_EKKO_CHECK BAdI: Enhancement of Archivability Check (MM_EKKO)
MM_EDI_DESADV_IN Supplementation of Delivery Interface from Purchase Order
MM_DELIVERY_ADDR_SAP Determination of Delivery Address
ME_WRF_STD_DNG PO Controlling Reminder: Extension to Standard Reminder
ME_TRIGGER_ATP Triggers New ATP for Changes in EKKO, EKPO, EKPV
ME_TRF_RULE_CUST_OFF BADI for Deactivation of Field T161V-REVFE
ME_TAX_FROM_ADDRESS Tax jurisdiction code taken from address
ME_REQ_POSTED Purchase Requisition Posted
ME_REQ_OI_EXT Commitment Update in the Case of External Requisitions
ME_RELEASE_CREATE BAdI: Release Creation for Sched.Agrmts with Release Docu.
ME_DEFINE_CALCTYPE Control of Pricing Type: Additional Fields
ME_CHANGE_OUTTAB Enrich ALV Output Table in Purchasing
ME_CHANGE_CHARACTER Customer-Specific Characteristics for Product Allocation
ME_CCP_DEL_DURATION Calc. of Delivery Duration in CCP Process (Not in Standard)
ME_CCP_BESWK_AUTH_CH BAdI for authorization checks for procuring plant
ME_CCP_ACTIVE_CHECK BAdI to check whether CCP process is active
ME_BSART_DET Change document type for automatically generated POs
ME_BAPI_PR_CREATE_02
ME_BAPI_PR_CREATE_01
ME_BAPI_PO_CREATE_02
ME_BAPI_PO_CREATE_01
ME_BADI_DISPLAY_DOC BAdI for Internal Control of Transaction to be Invoked
ME_ACTV_CANCEL_PO BAdI for Activating the Cancel Function at Header Level
MEGUI_LAYOUT BAdI for Enjoy Purchasing GUI
ME_CHECK_ALL_ITEMS Run Through Items Again in the Event of Changes in EKKO
ME_COMMTMNT_REQ_RE_C Check of Commitment Relevance of Purchase Requisitions
ME_COMMTMNT_REQ_RELE Check of Commitment Relevance of Purchase Requisitions
ME_COMMTMNT_PO_REL_C Check for Commitment-Relevance of Purchase Orders
ME_COMMTMNT_PO_RELEV Check for Commitment-Relevance of Purchase Orders
ME_COMMITMENT_STO_CH BadI for checking if commitments for STOs are active
ME_COMMITMENT_RETURN Commitment for return item
ME_CIP_REF_CHAR Enables Reference Characteristics in Purchasing
ME_CIP_ALLOW_CHANGE Configuration in Purchasing: Changeability Control
ME_CIN_MM06EFKO Copy PO data for use by Country version India
ME_CIN_LEINRF2V BADI for LEINRF03 excise_invoice_details
ME_CIN_LEINRF2R BADI for CIN India - Delivery charges
ME_CHECK_SOURCES Additional Checks in Source Determination/Checking
ME_CHECK_OA Check BAdI for Contracts
Reward points if useful
Regards
Anji -
Error in Mass process chain DP background job for Deinitialize version
Hi,
When I execute the process chain for DP background job to delete the planning area version, it gives error message
"Process DP Background Processing, variant DELETE XXXXXXX has status Ended with errors (instance D973YTQRSF0FRPV5TCR28L"
It is working well, when I tried the same manually with the same input parameters used in background job variant.
What could be the cause for the background job problem.
Thanks and regards
MurugesanHi Datta,
I am not deleting the planning version, I am using Macro in the DP background job to delete or make the key figure values to 0.
Thanks and regards
Murugesan -
User Exit Or Badi for Framework Release PO
Anyone could tell me about any user exit or BADI for storing the calculated value in Frameork order.
Since it is storing the GNETW in CEKKO and that is used in releasing procedure.
First of all i want to calculate the total price according to srat date and end date and then only for framework order put that value in CEKKO-KTWRT field.
Please Help and suggest some thing about this.
Thanks & Regards,
Nitin MalhotraHi,
Check the following PDF .
https://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/9cd334f3-0a01-0010-d884-f56120039915
May be useful to you.
Regards
Sachin -
User exits/BAdIs for Forecast consumption by sales order
Hello Experts,
My question here is: When Sales Order either new or change comes from ECC to APO, what are key fields considered for Forecast Consumption? Is requirements strategy is considered from location product master or Sales Order brings own data from ECC into it's own structure? I have read from SAP help or documentation that Sales Order coming from ECC does not use requirement strategy from Product Master. Rather it get its own fields like planning strategy/group / requirement class from ECC. It uses location product master only to get consumption parameters like forward/back word consumption days. So I am thinking to use some user exits or BAdIs to enhance the incoming sales orders to consume separate forecast categories in APO.
My requirement is:
For the same one product we want sales orders (can have two different order types or identify by a custom field) to consume two different order categories (ie. FA & FC) by enhancing incoming sales orders. So we have regular 1)Forecast key figure which is 'FA' category and 2)Forecast Additional key figure which is FC category. When we release two separate forecasts from DP we release into these two key figures and categories. Now we want incomping sales orders to consume these two categories separately when our sales orders are having two different order types (i.e OR and ZR).
I want to kow what way we can acomplish this? Are there any user exits or BAdIs for this purpose?
I looked arount BAdI /SAPAPO/DM_BADI_CSP and I am not quite sure it's going to help. Are there any others?
I appreciate if anybody explain me the process?
Thanks in advance!
RajStandard Logic --- Whatever plant is visible in the Sales Order, the sales order will appear under that Product Location in SNP
There is no standard way of making the sales order visible in another location.
Depending on your requirement(Ex: Forecast Consumption, planning etc),using APO-BW we can simulate the requirements in the other plant which can be a nightly run and not immediate.
Now coming to your question, if the delivering plant is A, how does ECC Delivery document know when the sales order has plant B that the delivering plant is A.
Can you be more specific.
THanks
Kumar -
APO DP-Different univarate forecasts -- how to obtain forecast error MAD ?
Hello all,
I have a question regarding 'forecast errors' when a univariate forecast was executed.
The requirement is:
I have a planning book/data view with 5 keyfigures for forecast 1 to 5 and 5 keyfigures for MAD 1 to 5.
Forecast1
MAD1
Forecast2
MAD2
Forecast_n
MAD_n
The idea is to calculate 5 different forecasts and evaluate them (for example with MAD).
One out of the 5 forecasts will be copied then to another keyfigure ( = "Statistical forecast").
In the 'Interactive Demand Planning' I push the button to execute 'univariate forecast'.
I let forecast create for keyfigure "Forecast1" based on historical data.
--> There I can find a tab "Forecast Errors" which provides me with the MAD-value.
Question:
- Is there a possibility to take the MAD-value out of that "Forecast Errors tab" and put it in the keyfigure MAD1?
When I have then every MAD-value from the respective forecast (1 to 5) in the dataview I can use a macro to manually or automatically choose which one will be copied to "Statistical Forecast".
I hope I was able to explain what the requirement is and hopefully somebody has an idea.
Thank you very much in advance.
Edited by: Dominik Ritter on Feb 9, 2009 5:46 PMHi Visu,
thank you very much for your answer!
I will check your solution with a developer (I do not develop).
As I understand I can then use this in an BADI/User exit macro.
Another strange thing is:
When I use SE16 with table /SAPAPO/FCSTACCU and let me list all the content --> I copy PROPID from this table and want to use it explicitly in the selection screen of SE16 to show me the one entry --> it fails because in some way the long key (PROPID) is not recognized.
(Example: IOjC29Eu0JxX0800r00G60)
Thanks and Best Regards
Dominik -
Regarding Error message in ME_PROCESS_PO_CUST badi for validation.
hi Friends,
I am Using ME_PROCESS_PO_CUST badi for validation in Purchase order (ME21N),
For that I implemented PROCESS_ITEM method which fires during each row now i add another validation in same implementation for plant should be same through out the all line item. Now following code is woking fine but when for second line item user changese plant then it shows error message as per logic which is fine but even after changing plant to correct one the error message is still coming why is it so?
following is my current validation code
method IF_EX_ME_PROCESS_PO_CUST~PROCESS_ITEM.
DATA:ls_poitem TYPE mepoitem,
ls_poitem_set TYPE mepoitem.
DATA:ls_poheader TYPE MEPOHEADER.
DATA:lm_poheader TYPE ref to IF_PURCHASE_ORDER_MM.
DATA:w_mara TYPE mara.
DATA:IT_ZMMTBL039 TYPE STANDARD TABLE OF ZMMTBL039 ,
WA_ZMMTBL039 TYPE ZMMTBL039 .
DATA:ls_poitem1 TYPE mepoitem.
DATA:V_KUNNR1 TYPE KNA1-KUNNR.
DATA:V_KUNNR2 TYPE KNA1-KUNNR.
DATA:W_WERKS(4),
w_werks_tmp(4),
w_flag(1).
ls_poitem = im_item->get_data( ).
lm_poheader = im_item->GET_HEADER( ).
ls_poheader = lm_poheader->GET_DATA( ).
IF ls_poitem-werks IS NOT INITIAL.
w_werks = ls_poitem-werks.
import w_flag to w_flag from MEMORY ID 'FLAG'.
if w_flag is initial.
w_flag = 'X'.
EXPORT w_werks_tmp FROM w_werks TO MEMORY ID 'MEMO1'.
export w_flag from w_flag to MEMORY ID 'FLAG'.
clear: w_flag.
endif.
ENDIF.
IMPORT w_werks_tmp TO w_werks FROM MEMORY ID 'MEMO1'.
break swaroopb.
IF ls_poitem-werks NE w_werks.
MESSAGE E010(zparts) with 'Different plants are not allowed in single PO.'.
ENDIF.
CLEAR: WA_ZMMTBL039,w_mara.
REFRESH:IT_ZMMTBL039[] .
SELECT *
INTO TABLE IT_ZMMTBL039
FROM ZMMTBL039
WHERE bsart EQ ls_poheader-bsart.
IF sy-subrc EQ 0.
CLEAR: WA_ZMMTBL039,w_mara.
SELECT SINGLE *
INTO w_mara
FROM mara
WHERE matnr EQ ls_poitem-MATNR.
IF SY-SUBRC EQ 0.
READ TABLE IT_ZMMTBL039 INTO WA_ZMMTBL039 WITH KEY bsart = ls_poheader-bsart
mtart = w_mara-mtart
spart = w_mara-spart.
IF SY-SUBRC NE 0.
MESSAGE E009(zparts) WITH ls_poitem-MATNR w_mara-spart ls_poheader-bsart .
ENDIF.
ENDIF.
ENDIF.
end methodHello Swarup
Since you want to compare all items together (having the same plant) I would suggest to implement this logic either in method CHECK or POST of the interface.
However, if you want to make your checks within the PROCESS_ITEM method then you should change your logic.
It does not make sense to work with the ABAP memory within a BAdI implementing class because the class itself is your "memory".
I would use the following logic to implement your validation:
lo_poheader = im_item->get_header( ). " retrieve header instance
lt_items = lo_poheader->get_items( ). " retrieve all items
ls_detail_x = im_item->get_detail( ). " details of currently processed item
LOOP AT lt_items INTO ls_item.
ls_detail = ls_item-item->get_detail( ).
IF ( ls_detail-werks NE ls_detail_x-werks ). " validation failed
" do something...
ENDIF.
ENDLOOP.
However, I would prefer to do this kind of validation in CHECK or POST method.
Regards,
Uwe -
ERROR : in BADI for MIGO Enter quantity on external screen
Hi,
I am doing MIGO and getting the following error:
Enter quantity on external screen Message no. M7895
I Have added an external tab at the header level as well as the item level using the badi for tab addion in MIGO .
If i deactivate the BADI MIGO works fine .
How to analyse for the error .
Please help
Regards
SwapnilHI Experts,
As mentioned in above thread for the Error: Enter unit of measure on external screen Message no. M7895;and same is solved by your functional consultant,since i am also getting same error,It would be very helpfull to me,if you tell me the solution for this error what exactly your functional consultant has done.
Regards
varunraj -
Claims Error " Please Impliment BADI for Approver and Approver Group"
Hi all,
We have configured all the Eligibility criteria for an employee to create an
Advance and claim request through ESS.
while raising a claim or Advance request it is
showing the message request validation sucess full
but when we are sending the request it is throwing the error.
" Please Impliment BADI for Approver and Approver Group"
we have configured the
1. Privileges Group
2.Approver Group
3.Map Privileges Groups to Approver Groups
still Issue is there?
Warm Regards
Hari Sankar MHi All,
We have Implemented Badi to determine Approver and Approver Group.
while executing the Application its throwing a new error
"Incorrect Status Movement(New:New to In-Process:Approved) for Claim"
We have put a break point inside the Badi but it is not getting called?
Regards
Hari Sankar M -
Is it bad for your iPod to be stored in a hot location?
My gym kit locker is on the other side of the wall from the steam room. I am sure that the temperature never falls below 80-90 F. Is this bad for the battery life? Does extended storage in such a location damage the iPod itself?
Well, I will say it is unwise that store your iPod in a hot location. It will probably shorten its life. Can you find a cooler place to store it?
-
User Exit or Badi for VL01N (before the delivery will be displayed)
Hello Togheter:
I have to change the sort order of the delivery items in VL01N before they will be displayed (not at the moment when they'll be stored on the database). Does anybody know any enhancement or user exit or BADI that i can use for this? I've tried with BADI LE_SHP_DELIVERY_PROC, but there is no methode which I can use for reordering the table XLIPS/LIPS before the delivery will be displayed.
Thanks in advance
KlausExits for VL01N ::::::
V02V0001 Sales area determination for stock transport order
V02V0002 User exit for storage location determination
V02V0003 User exit for gate + matl staging area determination (headr)
V02V0004 User Exit for Staging Area Determination (Item)
V50PSTAT Delivery: Item Status Calculation
V50Q0001 Delivery Monitor: User Exits for Filling Display Fields
V50R0001 Collective processing for delivery creation
V50R0002 Collective processing for delivery creation
V50R0004 Calculation of Stock for POs for Shipping Due Date List
V50S0001 User Exits for Delivery Processing
V53C0001 Rough workload calculation in time per item
V53C0002 W&S: RWE enhancement - shipping material type/time slot
V53W0001 User exits for creating picking waves
VMDE0001 Shipping Interface: Error Handling - Inbound IDoc
VMDE0002 Shipping Interface: Message PICKSD (Picking, Outbound)
VMDE0003 Shipping Interface: Message SDPICK (Picking, Inbound)
VMDE0004 Shipping Interface: Message SDPACK (Packing, Inbound)
Hope they may help a little.
Regards,
Jignesh -
Demand planning Forecast errors and KPI to store results of error
I have following requirement: keep traceabilitity of hypothesis and forecast error results of former mass process .
In comparison tool, we can compare the result of last interactive forecast run but our requirement is to store those result for KPI purpose.
Is it possible without extra development ? ( built not yet done, we are in design phase)
Kinds regards,
ChristineHi Christine,
There is Standard Error analysis functionality available for forecast accuracy reporting.
Please refer to the URL below:
http://help.sap.com/saphelp_scm70/helpdata/en/6f/8812ce03ba4f0ca09ea31a1a3e1f0c/frameset.htm
Please check if these are sufficient for your business needs.
If we want to extarct standard statistical forecast errors( like MAD, MAPE) calculated in the interactive or batch runs of statistical forecasting , then, to my understanding, development is required. A short detail is given below:
We need to develop macros for calculation of Univariate forecast erros : MAD and MAPE. New planning book and data views may be required to becreated Some extra Key figures also will be needed ,used for storing the values.
The macros runs can be run through batch jobs.These calculated forecast errors of MAD and MAPE then can be compared with the system calculated MAD and MAPE during interactive / batch runs.
The error data can be extracted and stored in the infocubes.
Please check and confirm.
Regards
Datta -
When downloading the new 10.7 update for itunes, an error message saying that there is an error writing to file, verify that you have access to this file comes up... what is this??
That one's consistent with disk/file damage. The first thing I'd try with that is running a disk check (chkdsk) over your C drive.
XP instructions in the following document: How to perform disk error checking in Windows XP
Vista instructions in the following document: Check your hard disk for errors
Windows 7 instructions in the following document: How to use CHKDSK (Check Disk)
Select both Automatically fix file system errors and Scan for and attempt recovery of bad sectors, or use chkdsk /r (depending on which way you decide to go about doing this). You'll almost certainly have to schedule the chkdsk to run on startup. The scan should take quite a while ... if it quits after a few minutes or seconds, something's interfering with the scan.
Does the chkdsk find/repair any damage? If so, can you get an install to go through properly afterwards? -
BADI for Updating work order component data
Hi,
I need to update the field special stock indicator for the work order component data when it is saved. I am using the BADI WORKORDER_UPDATE for the same, but when I implemented the ZWORKORDER_UPDATE_IM using the standard defenition WORKORDER_UPDATE , the code does not allow me to change the it_component internal table belonging to the BEFORE_UPDATE method. Could you please help me in this.
Basically if we are implementing a standard defenition how to change the parameters of the methods in it.
Regards,
Prabaharan.GHi ,
It is giving the below dump. The parameter is importing parameter and it does not allow to change even using field symbol. Is there any other way. Is there an user exit which will be called when pressing enter button in component screen. The exit EXIT_SAPLCOBT_001 did not work for this.
Error analysis
The program tried to assign a new value to the field "<F_FS1>" even though
it is protected against changes.
The following objects are protected:
- Character or numeric literals
- Constants (CONSTANTS)
- Parameters of the category IMPORTING REFERENCE for functions
and methods
- Untyped field symbols to which a field has not yet been assigned
using ASSIGN
- TABLES parameters if the corresponding actual parameter is protected
against changes
- USING reference parameters and CHANGING parameters for FORMs if
the actual parameter for this is protected against changes
Regards,
Prabaharan.G -
User exit or badi for me52n transaction.
Hi all,
i have a requirement to write a user exit or badi for me52n transaction. the requirement is in header section, only one plant should be accepted. that is in the first row one plant will be inserted. in the second row if we are inserting another plant other the first row plant, it should not accept it and it should raise an error.
that is from the second row onwards, every plant should match with the first row plant.
if any part of this issue is unclear, plz let me know so that i can explain it clearly
this is urgent requirement.
please let me know the solution as soon as possible.
points will be awarded.
thanking u in advance.
A.srinivas.In this version exit EXIT_SAPLMEREQ_005 should exists (look at OSS <a href="https://service.sap.com/sap/support/notes/843446">Note 843446 - MEREQ001: Cannot call up external service data in user exit</a> this note refers to the exit and is applicable in 4.70. Look also at OSS <a href="https://service.sap.com/sap/support/notes/310154">Note 310154 - ME21N/ME51N: Customer-specific check, generating error log</a>
Regards
Maybe you are looking for
-
I do not have my iphone synced with my work email but when I send a text message via my work email any response I get comes to my phone. Why? How do I change that because I do not want my phone connected with my work email? Thank you
-
Airport Express Total Frustration
I'm totally frustrated. I've had my Airport Express for about 3 months. I used it a lot at the beginning, and everything worked fine, but I haven't used it for a while. Now that I'm back trying to use it.... ...It can't be found by iTunes and it can'
-
DELETE THE MATCHED RECORDS IN DB2 TABLE
DELETE THE MATCHED RECORDS IN DB2 TABLE sql server table sqlserver_emp(c1,c2,c3,4) records:1 2 3 4 DB2 table db2_emp(c1 key,c2,c3,c4) records:1 2 5 6 7 8 Both tables having same structure Matched records : 1 2 1.Delete the matched records in db2 tabl
-
Hi All, i want to know the different between Discoverer VS Bi Publisher and can the bi publisher be a replacement for discoverer ? thanks
-
Battery, charge ipad battery
Buena tarde. He notado que últimamente cuando pongo a cargar el Ipad al llegar al 64% de la carga inmediatamente marca 100% y al desconectarla me marca el porcentaje que realmente lleva. Esto es normal o es una falla y como se puede corregir. Gracias