Upload
xdgr
View
22
Download
0
Embed Size (px)
Citation preview
31.07.2013 Page 1 of 3
SAP Note 321474 - PPM:User exit BSP s.code f.autom.bucket cap.determ.
Note Language: English Version: 39 Validity: Valid Since 03.11.2003
Summary
SymptomWithin the PPM transfer, the R/3 System cannot determine bucketconsumptions for mixed resources.
Other terms/sapapo/scc05, mixed resource, bucket consumption, user exit, APOCF012,/SAPAPO/OM102, return code 145.
Reason and PrerequisitesNone
SolutionUse the user exit APOCF012 in order to determine proposals for the bucketconsumption with the attached source code (refer to Source codecorrections).
With the example source code, a proposal for the bucket consumption is onlygenerated if the X fields (table IT_CIF_REQCAP_X) are set for bothconsumptions and if the contents are empty (table IT_CIF_REQCAP). You canuse the user exit enhancement CIFPPM01 (EXIT_SAPLPGS1_001) for the CIFtransfer from R/3.
Source code example:data ls_cif_reqcapx like line of out_cif_reqcapx.loop at out_cif_reqcapx into ls_cif_reqcapx. move: 'X' to ls_cif_reqcapx-bcap1, 'X' to ls_cif_reqcapx-bcap2, 'X' to ls_cif_reqcapx-bunit. modify out_cif_reqcapx from ls_cif_reqcapx.endloop.
If you do not want the possibly corrected consumptions to be overwrittenagain with new proposals during a new transfer, you must not set thecorresponding X fields.
The proposals are calculated as follows:
bcap1 .... variable bucket consumption bcap2 .... fixed bucket consumption
The following information is transferred from the R/3 System: cap1 .... variable continuous consumption cap2 .... fixed continuous consumption dur1 .... variable activity duration dur2 .... fixed activity duration
Depending on whether the resource consumption or the activity duration isvariable, the following cases are to be distinguished. If dur1 > 0 and cap1 = 0 bcap1 = dur1 * cap2 bcap2 = dur2 * cap2 If cap1 > 0 and dur1 = 0 bcap1 = cap1 * dur2
31.07.2013 Page 2 of 3
SAP Note 321474 - PPM:User exit BSP s.code f.autom.bucket cap.determ.
bcap2 = cap2 * dur2 If cap1 = 0 and dur1 = 0 bcap2 = cap2 * dur2 If cap1 > 0 and dur1 > 0 -> no reasonable solution
The mathematical context applies equally to single mixed and multimixed.Here, single mixed represents a special case with cap1 = 0 and cap2 =1.
Implementing the coding changes:Doubleclick on include 'ZXCIFUSERU16'. Change.Implement the insert block of the correction instruction using 'performbcons_prop_mix_res'.Doubleclick on the perform name.Create object 'ZXCIFUSERF16'. To do this, change the default name inthe first line of the include selection (in most cases, the last threeletters from '...U16' to '...F16').Implement the insert block of the correction instruction forobject 'ZXCIFUSERF16' ('form bcons_prop_mix_res').
Header Data
Release Status: Released for CustomerReleased on: 06.06.2013 07:29:59Master Language: GermanPriority: Recommendations/additional infoCategory: Special developmentPrimary Component: SCM-APO-MD-PPM Production Process Model
Secondary Components:SCM-APO-INT-MD-PPM Production Process Model
Valid Releases
Software Component Release FromRelease
ToRelease
andSubsequent
SAP_APO 30 30A 30A
SAP_APO 310 310 310
SCM 400 400 400
SCM 410 410 410
SCM 415 415 415
SCM 500 500 500
SCM 510 510 510
SCM 700 700 700
SCM 701 701 701
SCM 702 702 702
SCM 712 712 712
Related Notes
31.07.2013 Page 3 of 3
SAP Note 321474 - PPM:User exit BSP s.code f.autom.bucket cap.determ.
Number Short Text
627813 COM error 145
511426 PPM transfer: imprecise error message in APO log
497808 Queue error due to incorrect master data (RC 144, 145, etc)
481906 SNP - PP/DS integration (documentation)
388931 R/3->APO: Creating an order fails on bucket consumption
329733 R/3 and CIF concerning Resources
325916 PPM transfer: PPMs w/o bucket consumption are activated
Attributes
Attribute Value
Transaction codes CLEAR
Transaction codes MODE
Transaction codes MOVE
Transaction codes TIME
Correction Instructions
CorrectionInstructions
Validfrom
Validto
SoftwareComponent
Type*)
ReferenceCorrection
LastChanged
187323 30A 310 SAP_APO C 25.03.200306:12:32
578563 400 400 SCM C 07.07.200300:17:47
646554 410 702 SCM C 06.06.201301:29:33
646554 712 712 SCM C 00:00:00
*) C Correction, B Preprocessing, A Postprocessing, M Undefined Work