APO Capacity Plng BAdi

Experts,
We are wanting to use some custom logic at the time the system executes Cap Reqt calculation & later the Cap availability checks. We are dealing with regular Time-continuous resources which are planned as Finite.
Want to know of a BAdi that I could use in that area. Has anyone used enhancement for Cap Req or Cap avlbl chks?
Thanks

Hi Saurabh,
I'm looking for a BAdi/method within the Planned Order creation mode (RRP_SRC_EXIT) that would enable me to re-calculate the Cap Requirements. Any planned order needs the following for completing -
1. PDS explosion (determines the components & the machine/source)
2. Numbers of hours required (Capacity Requirements)
3. Capacity avlbty check (Compare Cap Req with available Cap)
I'm looking to modify the Cap Reqt @ the time of creation of the Planned Order & then trigger Cap Avlbty check based on the newly calculated Cap Req
Any help would be a big plus for me
Cheers

Similar Messages

  • APO - capacity profile time capacity for resources

    Dear all,
    I have a problem which I hope can be resolved by one of you ...
    In APO, it is possible to add downtimes for resources using transaction /SAPAPO/RES01 ... After adding this, we can click on "capacity profile" and then we see the time capacity of a resource with all downtimes per shift (with capacity variant) ... I would like to use this time capacity in a program, so it would be interesting to have this information on DDIC-level ... I am looking for some days now, but I don't find which tables to read or which BAPI / function to use ?
    Does anyone know how I can find this data ?
    Thanks in advance for the assistance !
    Greetz,
    Kurt.

    Hi Kurt,
               You can use the below tables/views in which Resource and Capacity Profile related data is stored.
    Tables:
    /SAPAPO/RES_INTQ - Resource Capacity Intervals
    /SAPAPO/RES_INTV - Resource Capacity Intervals
    /SAPAPO/RESCAP - Capacity Profile: Resource Time Capacity
    /SAPAPO/RESDIM - Dimensions and Capacity of a Resource
    /SAPAPO/RESDOWN - Resource Downtime
    /SAPAPO/RESDOWNT - Resource Downtime
    /SAPAPO/RESKEY - Reset Key for Resource to UID
    Views:
    /SAPAPO/V_RESVER- Resource Capacity Variants
    /SAPAPO/VRESINTQ - Resource Interval of Available Capacity Quantity Model
    /SAPAPO/VRESINTR - Resource Interval of Available Capacity Rate Model
    BAPIs available to read:
    BAPI_RSSRVAPS_GETCAPAPRO - Read Resource Capacities Profile
    BAPI_RSSRVAPS_REQUESTCAPAPRO - Query: Selection of Capacities for Resource and Result Transfer
    BAPI_RSSRVAPS_GETLIST - Selection of Resources
    I hope this will help you to get the data which you want to read.
    Regards,
    Saurabh

  • APO DP Using BAdI SDP_SELECTOR

    Hi experts,
    I am trying to use BAdI /SAPAPO/SDP_SELECTOR but I can not get any method of it to stop at a breakpoint.
    What I want to implement: By opening a planning book and loading a specific selection profile, some fields in selection shuffler have to be grayed out or become invisible at all. I thought this BAdI could be used for this, but after many attempts I have to give up and ask experts for advise.
    Kind regards
    Aban

    Hi Aban - the method INIT_OBJECT_LIST is called when you load a planning book either by first entering SDP94 or changing planning book while in SDP94. This method allows you to manipoulate what fields will apear as selections depending on the object selected - you can grey out the left side by making a field required but not the values on the right side of the selection. None of the methods are called when creating changing or saving selection profiles - the other methods are called for F4 or after selection is chosen to filter the selected data or to add fields to the selected data ALV. If you want to grey out the values in a selection then you may want to create an enhancement implementation to do so. It sounds like there may be other options to limit what users are doing such as authorization or filtering the selection using the above BADI. Also you may be able to set up profiles users can select that have prepopulated values then train or require users to choose those profiles and add additional criteria.
    Andy

  • APO Capacity Reservation Characteristic is not valid

    Hello
    We are trying to setup a scenario for capacity reservation for customers wherein we want to reserve capacity for certain customers. We did the following setup as mentioned in help
    http://help.sap.com/saphelp_scm70/helpdata/EN/46/19bf1f8716424fe10000000a1553f6/frameset.htm
    1) Setup consumption group: Included our custom DP characteristics & assigned them to standard infoobjects MATNR, WERKS, KUNNR
    2) Setup forecast at material, location & customer level in DP planning area
    3) Maintained consumption group in release profile as well as product master with planning strategy.
    4) Released the data to order series & descriptive characteristics are correctly visible via green icon at material, plant & customer level.
    5) Created capacity reservation group via customising: Assigned consumption group & selected KUNNR as characteristic for maintaining reservations.
    6) Assigning capacity reservation group to resource via PPDS bucket tab: Here we took time continuous capacity in bucket definition field, bucket schema as day, finite capacity as bucket capacity.
    In next step clicking on capacity reservation & selecting characteristic, it gives error saying reservation characteristic is not valid & does not allow us to maintain reservations for the characteristic
    Please let us know if any setting has been missed. Thanks in advance
    P.S: The pre-requisite in sap help link above mentions assigning consumption group to resource. But was not able to find how to do this. Only the capacity reservation group is allowed to be added.
    Best Regards
    Satish

    Hello Manimaran
    Thanks for reply.
    The consumption group is maintained correctly with the correct planning area. The planning area is correctly initialised & we are checking the resource against the same version only.
    As mentioned, the forecast was correctly released from DP to order series with required descriptive characteristics.
    The issue is occuring while selecting the characteristic. As soon as we select characteristic from pop up, the error appears.
    mentioning  reservation characteristic is invalid.
    In the popup there are two columns (characteristic & descriptive characteristic), However onlky the characteristics column is shown which is picked from the capacity reservation group (i.e. if we remove the characteristic from capacity reservation group, it gets removed from popup as well). I guess the error is occuring due to the column descriptive characteristic which is missing.
    Please advice. Thanks in advance
    Best Regards
    Satish

  • Badi for setting default values in the transaction in APO.

    BADI NAME: SMOD_APOCF005 which is used for setting default values in the transaction.
    I have implemented the BADI using the below code but that BADI is not triggering. Please can you provide any solution for resolving this.
    As per my requirement I am trying to set default values for these three fields RRP_TYPE, WHATBOM, CONVH.
    DATA: LS_MATLOC LIKE LINE OF IT_MATLOC.
    LOOP AT IT_MATLOC INTO LS_MATLOC.
    LS_MATLOC-RRP_TYPE = '4'.
    LS_MATLOC-WHATBOM = '5'.
    LS_MATLOC-CONVH = '999'.
    MODIFY TABLE IT_MATLOC FROM LS_MATLOC TRANSPORTING RRP_TYPE WHATBOM CONVH.
    ENDLOOP.
    DATA: LS_MATLOCX LIKE LINE OF IT_MATLOCX.
    LOOP AT IT_MATLOCX INTO LS_MATLOCX.
    LS_MATLOCX-RRP_TYPE = 'X'.
    LS_MATLOCX-WHATBOM = 'X'.
    LS_MATLOCX-CONVH = 'X'.
    MODIFY TABLE IT_MATLOCX FROM LS_MATLOCX TRANSPORTING RRP_TYPE WHATBOM CONVH.
    ENDLOOP.

    The  BADI name: SMOD_APOCF005 .
    T.code at APO : /sapapo/mat1
    Once we enter in that T.Code with some Product and Location data.
    There under PP/DS tab.
    Under Planning Procedure there is a field PP Plng Procedure which I want to set as 4
    And under Order Creation there is Plan Explosion which needs to be set as 5
    And Under Horizons there is PP/DS Horizon which needs to be set as 999.
    BADi is implemented and active.
    And once the data is CIF from ECC to APO
    These default values are not set in the T code in APO and the BADi is not triggering.

  • Badi for update dates values in complaints

    Hi all
    I need to update the date of the status of the complaint, does any body know if there are a BADI or any other way to update this value ?
    I try with a DYNP_VALUES_READ function but can't found the dynpro where the vales are.
    any sugestion is grateful

    The  BADI name: SMOD_APOCF005 .
    T.code at APO : /sapapo/mat1
    Once we enter in that T.Code with some Product and Location data.
    There under PP/DS tab.
    Under Planning Procedure there is a field PP Plng Procedure which I want to set as 4
    And under Order Creation there is Plan Explosion which needs to be set as 5
    And Under Horizons there is PP/DS Horizon which needs to be set as 999.
    BADi is implemented and active.
    And once the data is CIF from ECC to APO
    These default values are not set in the T code in APO and the BADi is not triggering.

  • BAdI /SAPAPO/DM_PO_MNTN - CT_ORDKEY is not populated with the order data for PO Memo

    Dear All,
    I have done enhancement in the ERP system by adding the customer specific field ZZ_RESWK in structure CIFPUORCUS. This field is filled in the ERP user exit EXIT_SAPLMEAP_001, for the Purchase order (category BF & BG) and PO Memo (Category AH).
    Now, in APO I have implemented the BAdI /sapapo/dm_po_mntn, and in the method "Change" I am passing the field zz_reswk to ct_ordkey table field reswk, so to write the field in livecache.
    This set up is working for order category BF and BG. However, when I am transferring the PO memo (Category AH) from ERP to APO, the the BAdI internal table ct_ordkey is having no records. Hence I am not able to write field reswk for the PO memo in the live cache.
    Any one have any idea, why there is not data in ct_ordkey for PO memo ?
    Note: The data transfer from ERP to APO is using IDOC.
    Please Help.
    Regards,
    SC

    Hi,
    If you don't do what I told you, I can not do anything more....
    Your code should look like this:
    loop at it_item into ls_item.
    ls_cust-refobject = 'POITEM'.
    ls_cust-fieldname = 'CATALOGID'.
    ls_cust-REFFIELD1 = 'PO_ITEM'. <b>and not 'POITEM'</b>
    ls_cust-REFVAL1 = ls_item-number_int. <b>and not a fixed value</b>
    ls_cust-container = ls_item-catalogid.
    append ls_cust to ct_bapi_customer_fields.
    endloop.
    For R/3 mapping table BBP_CUFMAP:
    DOC_TYPE = PO
    KEY_TYPE = Z
    CUF_FIELD = CATALOGID
    R3_FIELD = ZSRMCATALOGID
    Rgds
    Christophe

  • Sending New Requirement date to APO before saving the sales order in ECC

    Hi Experts,
    i have a requirement where while creation of sales order, when user enters the requirement date,i have to calculate the new requirement date ( adding transit time and other time ) and send it to APO , to bring the ATP result based on this new calculated date.
    This new calculated date is getting saved in Z field in VBAP table and also this new requirement date which has to be pass to APO is getting calculated while saving the doucment i.e. at user exit - USEREXIT_SAVE_DOCUMENT_PREPARE.
    Now, i am not sure, how i should pass this new date to APO , which FM , Badi or BAPI would be used ?
    Please help and let me know if i am supposed to detailed it a little more.
    Thanks.

    Hi Bharat,
    Normally the new calculated requirement/delivery date will be updated in APO through the CIF.
    However you can influence the transfer with enhancement CIFSLS03 (influence sales-order-specific data directly before it is sent to SAP APO available on ECC side).
    Please see the below description.
    Thanks.
    Regards, Marius
    In this enhancement, you can transfer customer-order-specific data to SAP
    APO.
    The associated component EXIT_SAPLCSLS_002 provides you with tables that are
    required for the transfer. In particular, these are:
    Requirements table ET_SL_REQ
    Item table ET_SL_DOC
    Field catalog ET_ATPFIELD
    You can use this exit to create or change documents in the ERP system as well
    as for the initial data transfer.
    The data is transferred to SAP APO after this exit is called.
    Notes
    If you use program /SAPAPO/CIF_DELTAREPORT3, you have to add the
    corresponding logic to function module EXIT_SAPLCID3_001. For more information,
    see the documentation for
    enhancement CIFCID3.
    Programs /SAPAPO/CIF_DELTAREPORT and /SAPAPO/CIF_DELTAREPORT2 also run this
    exit.

  • Difference between r/3 planning( lead time scheduling) and APO planning

    Hello APO Gurus,
    Please let me know the difference between the R/3 capacity planning by using lead time scheduling and APO capacity planning for a work centre.
    Both in both cases you can use the lead time from routing OPERATION.
    Please let me know where the planning differs.
    Regards,
    Ravindra Deokule

    Check out
    http://help.sap.com/saphelp_scm50/helpdata/en/99/ed3a981d0f11d5b3fc0050dadf0791/content.htm
    particularly the section "Which functions of the operations relevant to scheduling are supported?"
    It will give you a flavour of what can lead to difference in planning.

  • Influencing the CIF

    Hi,
    I want to use BADI SMOD_APOCF005, method EXIT_/SAPAPO/SAPLCIF_PROD_001 to influence the mater CIF behavor.
    Is this exit just apply in APO? or should I do something in R3?
    thanks a lot

    Hi,
         I am not sure about your exact requirement but I think you want to change some material master fields while CIF to APO.
    This BAdi is useful when you want to change the master fields in APO.This will not reflect in ECC anywhere in material master.
    I would suggest to use CIFMAT01 CIF user exit in ECC to change the master data fields while CIF to APO.You can use this BAdi also not an issue,this will change the material master in APO only.
    If you need any further help please let me know.
    Regards,
    Saurabh

  • Use of BADI for SNP capacity levelling

    I am using APO V5.1.
    I'm interested in using the Business Add in (BADI) for SNP capacity levelling.
    Can anyone tell me which BADI this is, and the possible functionality it can provide?
    Thanks for any information on this...

    To give you a couple of examples of what we use the BADi for:
    1) Based on a product characteristic, the levelling will only level certain products. E.g. you could set a characteristic to mark products for internal use versus export use and then level the internal requirements first.
    2) The levelling will only level planned production for highlighted orders in the data view.
    Hope that helps for ideas
    Regards
    Ian

  • User Exit or BADI for Blocking process orders from R/3 to APO?

    Dear Experts,
    I am looking for a user exit or badi to block the process orders from R/3 to APO. As per standard it is not transferring orders which are clsd(closed status). Means that it is not updating live cache but its reading from R3.
    We are facing some problems in cif queues which are not correctly maintained in R3 side. We dont want to touch those orders bcoz its very old data which is not required for planning.
    There will be huge data which needs to be deleted while transferring through cif.
    Please give any user exit (outbound intial transfer) from R/3.
    Or any sugg. I apprecite your inputs...
    Thanks
    Cris

    Hi Cris,
    You can use user exit APOCF004 - Inbound Processing: Production Order/Planned Order in APO to prevent orders coming to APO by deleting orders which are not intended to goto APO from internal tables IT_ORD and IT_OUT.
    Hope this helps.
    Best Regards,
    Ramesh M

  • BADI / User Exit for APO Order transaction /SAPAPO/SNPTLB

    Hi Experts,
    We have a proxy interface and currently we are using FUNCTION EXIT_SAPMSNPUSER_006 for the APO Order transaction: /SAPAPO/SNPTLB.
    This exist is triggering before the Order is being saved in APO and at times it is throwing an error 'Order key already exists in live cache' in the APO system.
    Is there any other BADI or User exit available to Save the order in APO before the interface gets processed?, if so, plese guide me.
    Thanks & Regards,
    Vijaya

    Hello Lakshmi,
    I am having the same issue with the message "Order key already exists in live cache" in our system. 
    We are using the user-exit EXIT_SAPMSNPUSER_005 for UoM conversion.  But we are not making any explicit proxy calls
    to /SAPAPO/SNPTLB.  Does the system automatically call this transaction with this user-exit?
    Did you get a resolution for the issue.  I would really appreciate if you can let me know how you have addressed this.
    Thanks,
    Ratnam

  • BADI/User Exit for APO Transaction: /SAPAPO/SNPTLB

    Hi Experts,
    We have a proxy interface and currently we are using  FUNCTION EXIT_SAPMSNPUSER_006 for the APO Order transaction: /SAPAPO/SNPTLB.
    This exist is triggering before the Order is being saved in APO and at times it is throwing an error 'Order key already exists in live cache' in the APO system.
    Is there any other BADI or User exit available to Save the order in APO before the interface gets processed?, if so, plese guide me. 
    Thanks & Regards,
    Vijaya

    Hello Lakshmi,
    I am having the same issue with the message "Order key already exists in live cache" in our system. 
    We are using the user-exit EXIT_SAPMSNPUSER_005 for UoM conversion.  But we are not making any explicit proxy calls
    to /SAPAPO/SNPTLB.  Does the system automatically call this transaction with this user-exit?
    Did you get a resolution for the issue.  I would really appreciate if you can let me know how you have addressed this.
    Thanks,
    Ratnam

  • User Exit or BADI in APO to change sales order relevant data while CIF

    Hi Everyone,
    I require User exit or BADI at APO side to change customer field kunnr of sales order after it enters APO through CIF.
    My requirement is to replace KUNNR field with KDGRP field of sales order.
    The data will pass through CIF in APO.
    Is there any user exit or BADI for the same?
    Sample code will be of great help.
    Regards,
    Kashyap.

    Hi ,
    Resolved myself.
    customer exit APOCF010
    Regards,
    Kashyap

Maybe you are looking for

  • Custom field's text not getting displayed in standard report

    Hi All, I have a requirement like this . There is a Custom field which we have added in a standard FICO report ie S_PL0_86000030 ( G/L Account - Balances ). The custom field is added through a report painter , while seeing the config of report painte

  • Error uploading to FTP host

    I've been trying to upload to the FTP host for 2 days now, everytime I'm getting this error message. I have no idea what it is, I've tried finding the file that has caused the error, but can't find it anywhere. Any help would be appreciated. Thanks

  • Wide report, no printer

    Crystal Reports XI Hi, I want to create a wide report for export to Excel. I don't want to print a paper copy. How can I specify a wide "page"? If I select a printer I am limited by paper size that it supports (I've got an A3 printer but even landsca

  • Typing Chinese

    Ok long story short, for various business purposes I need to type Chinese. I know you are able to do this on a Word document, but I have IWork instead (because Apple is just better like that). Anyways is there a way to switch my settings so I can typ

  • Af:command button disabled

    hi experts, am using jdev11.1.1.5.0 , adfbc what i did , while clicking insert button , one dialog appears and then enter all the details and save those details, the record will be in new status(see status column of my pics). in my af:table af:table