Raw Material Planning Through script logic

I am trying to do a Raw Material Planning in BPC based on Item Bill of Material.
I am capturing the Bill of Materials of Items in an Application
FGMaterial on one Dimension
and Raw Material in another Dimension
In another application (an input schedule) the users can do their Sales Planning of Fininshed Goods.
The Raw Material consumed

Hi
I am using the following code
*LOOKUP RMBOM
*DIM PRICECONSTTIME="NOTIME"
*DIM ENTITY="XXX"
*DIM CAT="BUDGET"
*DIM MEASURES="PERIODIC"
*DIM MATL_ACC="%MATL_ACC_SET%"
*DIM RM1:RAW_MATERIALS="RM1"
*DIM RM2:RAW_MATERIALS="RM2"
*DIM RM3:RAW_MATERIALS="RM3"
*DIM RM4:RAW_MATERIALS="RM4"
*DIM RM5:RAW_MATERIALS="RM5"
*ENDLOOKUP
Then I used the code
*WHEN MATL_ACC
*IS MAT1
REC(EXPRESSION=%VALUE%LOOKUP(RM1),JINDAL_MATL_ACC="MAT1"
*ENDWHEN
But my requirement is that I need to run this for all Materials of Type(Property FG)
Can you suggest how I might proceed

Similar Messages

  • Raw material planned cost and qty in table MCKALKW

    Hi,
    Raw material planned cost and quantity in table MCKALKW is not equal to cost analysis in CO01 / CO02.
    Could you please let me know how to get the planned cost and quantity for production order components for report development. i checked other tables like AFPO and AFKO and it is showing only for main material and not for its compoen

    Hi,
    You can check the cost of the individual components in Bill of materials of each material seperately. Hope this works for you.
    Thanks and regards,
    Murali krishna Maganti

  • Raw material planning for process industry.

    I am going to implement SAP R/3 in process industry where i get raw material from farmers.I have to accept all raw material from surrounding villages because it's a government rule.So its necessary that all farmers should produce well quality yield. For that they must follow standard procedure to grow their crop.Is it possible to plan this using SAP PP?
    How to face this type of sceanrieo?

    Hi kiran Ghule,
    With the functions of the Quality Management (QM) module, you can implement it.
    The QM application component supports tasks associated with quality planning, quality inspection and quality control. In addition, it controls the creation of quality certificates you can do this
    Explore your self in this module if any problem then come back.
    Regards
    R.Brahmankar

  • Raw material Planning

    Suppose I am raising Sales order for same material from different plants.When i run MRP the sales order will be taken into consideration & it will create planned for base materail for which it sales order has been created.Will it create Planned order for
    the raw material required for manufacturing the base material if raw material is not available.

    Hi,
    If raw material is not available, then system will raise a PR automatically as per lot size you have specified in the material master.
    Regards / US

  • Raw material forecast

    dear Experts
    I uploaded the raw material forecast through MD61 but system not generating the planned order.
    Can you help me how to get the planned order.

    Dear ,
    Couple of cheks for you :
    1.What is the requirement Type you have choosen the User Paramters in MD61 screen ? It should VSF , version 00 and correct Planning Period , Plant Code .I would suggest you to check the same
    2.Which txn are u trying to run the MRP ( MD01 with NETCH , Create PR -2, MRP List : 3 , Schedule Line : 1 , Scvhedluing -1 , Mark Display material before save )
    3.Check the Planning File Entry of all those material in MDRE/MDAB/MD21
    4.Check the Material Master Paramters : MRP Type -PD , Procumenet Type : F , Planning Startgey : 40 /10
    5.Basically , based on Planning Stategy in MRP3 view , you can analysise the Requirement Type : 40 /VSF ( Check in Define Planning Strategy -SPRO-Detailk screen )
    One question : Are you executing Total Forcast in MP38 or Indiviaully n then loading into MD61 through MD70 ? Please confirm or just like you are entering Manula Forecast Qty in MD61 table matererial by material ?
    Regards
    JH

  • Clarification required in Script Logic

    Hi All,
    I had written a Script logic which copies the data from one dimension member of entity to another entity.
    The script that we used is pasted here for reference:
    "//Logic for Revenue Transfer for one account to account
    *XDIM_MEMBERSET CATEGORY = BUDGET
    *XDIM_MEMBERSET P_ACCT = REV000003, REV000007, REV000008
    *XDIM_MEMBERSET P_ACTIVITY = P_ACTIVITY_NONE
    *XDIM_MEMBERSET P_DATASRC = U
    *XDIM_MEMBERSET ENTITY = U_RCL_INP, U_MFG_INP, U_FSI_INP, U_ECS_INP, U_KS_INP, U_INDIA_INP, U_BIZP_INP, U_SI_INP
    *XDIM_MEMBERSET INTCO = I_U_RCL, I_U_MFG, I_U_FSI, I_U_ECS, I_U_KS, I_U_INDIA, I_U_BIZP, I_U_SI
    //Revenue Transfer from P_ACCT REV000003 to P_ACCT REV000004
    *WHEN P_ACCT
    *IS "REV000003"
    *REC(FACTOR=1,P_ACCT=REV000004 ,INTCO=ENTITY.INTCO,ENTITY=INTCO.ENTITY)
    //Revenue Transfer from P_ACCT REV000007 to P_ACCT REV000012
    *IS "REV000007"
    *REC(FACTOR=1,P_ACCT=REV000012 ,INTCO=ENTITY.INTCO,ENTITY=INTCO.ENTITY)
    //Revenue Transfer from P_ACCT REV000008 to P_ACCT REV000009
    *IS "REV000008"
    *REC(FACTOR=1,P_ACCT=REV000009 ,INTCO=ENTITY.INTCO,ENTITY=INTCO.ENTITY)
    *ENDWHEN"
    The above script logic is not working if the user doesnt have access to the other entity to which data is copied into.
    However, as per our business requirement, we need to restrict the access to the users to thier respective entites.
    Hence, i would be glad to know, How can I overcome this limitation, or, how can I bypass the authorization through script logic??
    Let me know incase you require any further information about the issue.
    Thanks in Advance
    Regards,
    Chandra

    Hi Nilanjan,
    As Anurodh said, The command *IGNORE_SECURITY is not recognised in the BPC NW. I tried, but is not validated.
    Anurodh,
    Thanks for the link. Seems it is helpful.
    Regards,
    Chandra

  • Having issue using TMVL in script logic

    Hello experts,
    We need to replicate the behaviour of the copy opening Bal through script logic.
    Below is my code:
    where user selects only entity when he runs package,time is derived from property.
    // Year from version property
    *SELECT(%YEAR%,"[YEAR]","Z_VERSION","[ID]='BUD'")
    // Months
    *SELECT(%MONTHS%,"[ID]","Z_TIME","[YEAR]=%YEAR% AND LEVEL='MONTH'")
    *XDIM_MEMBERSET Z_TIME=%MONTHS%   (for ex:My first month is 2009.jan(ope month)
       *WHEN ACCT
               *IS CHC          
            *REC(FACTOR=1, ACCT="CHC",Z_TIME=TMVL(1,%MONTHS%))  ( for ex:2009.feb,nxt month)
        *ENDWHEN
    When i run the above logic in debugger TMVL doesn't show next month.
    If i hardcode time in my xdimmemberset to (*XDIM_MEMBERSET Z_TIME=2009.JAN) and change my TMVL in my REC statement to TMVL(1,2009.JAN)).Logic works fine.
    Please tell me how can we pass dynamic variables to TMVL.
    *REC(FACTOR=1, ACCT="CHC",Z_TIME=TMVL(1,%MONTHS%))
    Thanks

    copying closing bal of prev month to nxt month.
    for ex:
    Account     jan 2009    Feb 2009    Mar 2009
    HC_PLAN     10.00      11.00      21.00
    CHC          10.00      11.00        11
    TI                     1.00                      1.00
    TO                      2.00      1.00          2.00
    AP                      3.00                       3.00
    RT                       4.00                        4.00
    My logic needs to copy values from HC_PLAN (parent) to CHC. I have written ope_bal logic in MS version.
    In NW i cannot use next (i am using TMVL),calc_dummy_org,calc_each_period.
    Please tell me how can i get values from a parent (HC_PLAN).
    Is Calculate_Difference is supported in BPC7.5NW?
    Below is my updated code
    *SELECT(%Year%,"[YEAR]","Z_Version","[ID]='ACTUAL'")
    *SELECT(%Months%,"[ID]","Z_Time","[YEAR]=%Year% AND [LEVEL] = 'MONTH'")
    *XDIM_MEMBERSET Z_TIME=%Months%
    *XDIM_MEMBERSET EB_ACCT = CHC,TI,TO,AP,RT
    *WHEN EB_ACCT
               *IS CHC,TI,TO,AP,RT         
                      *FOR %MonthCopy% = %Months%
                           *REC(FACTOR=1,EB_ACCT="CHC",Z_TIME=TMVL(1,%MonthCopy%))
                        *NEXT
                 *ENDWHEN

  • 7.0NW: script logic to post data to another cube

    Hi,
    On the 7.0NW we have a FINANCE cube (8 dimensions) and a FINANCE_DETAIL (12 dimensions) cube. I was hoping that someone could advise on how to transport data using script logic from FINANCE_DETAIL to FINANCE, knwoing that the SQL logic for the MS-platform is no longer applicable (DESTINATION_APP statement) on the NW-platform.
    Thx&Rgrds
    Bjorn

    BPC7Nw supports ABAP development through script logic. You can use the keyword 'call custom logic' to execute the BADI that you developed. With SP01, you can also pass parameters to this BADI. Here are step by step instructions to do the same.
    https://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/20f4252d-98ca-2b10-e689-f85085ae2d12
    Regards
    Pravin

  • Rounding in NW BPC Script Logic

    Hi,
    BPC MS version has a keyword "ROUND" to round the numbers through script logic.
    What is the replacement to Round the amounts in NW BPC Script Logic.
    I tried using the same keyword "Round" but it did not work. 
    Appreciate your help.
    Thanks
    Anjali

    There is a HowTo guide showing how to implement this functionality as a BADI - [http://www.sdn.sap.com/irj/scn/index?rid=/library/uuid/50daa919-5b80-2c10-babd-b75c6c64feed]
    Please make sure to search SCN and look through the HowTo guides before asking questions in the forums. HowTo guides can be found here: [http://wiki.sdn.sap.com/wiki/display/BPX/EnterprisePerformanceManagement(EPM)How-to+Guides]
    Ethan

  • Complete reconcilation of Raw material

    Dear Experts,
    We are getting one material excess in stock and i think that we have issued excess material against some production order, So please confirm me how can i justify to management that is so and so production order excess material was issued.
    Through which T-code i can get  complete reconcilation of Raw material or through which t-code i can find out excess material issued in production order.
    Can cannot check each and every production order because the production order are huge in numbers.
    Regards,

    Dear Friend,
    Go to Transaction COOIS. In this transaction select the list "Components". In selection parameters give the value such as plant code, Basic start date, basic finish date, etc. (depend on you).
    After maintaining all the data as mentioned above, system will show all the components required in production order with there requirement quantities and actual material issued for that component against the production order (Qty withdrawn).
    This way you will come to know how much material issued in excess against the process order.
    Another way is through MB25 Report (display reservation). Here in dynamic list select the selection parameter movement type and mention the 261 movement type and maintain the rest of the parameters i.e Plant, order number. After maintaining all the data as explained execute it. In output system will show process order wise component list with its requirement qty, qty withdrawn for that component against the process order, and difference qty (material issued less or in excess).
    Regards,
    Jitendra

  • Raw material procurement based on the LTP Plan

    Dear Friends,
    How can I create a procurement proposals based on the LTP Plan. For example for material A, I am doing the LTP planning for entire Year. As per the LTP plan I got the Raw material requirements. I don't want to make the total plan as active. That means I don't want to create PIRs for my finished material A for the entire year. But  as per the LTP plan of finished material A... I want to create a procurement proposals for the raw materials for the entire month through schedule lines... How can we do it?
    If any further clarification is required... please let me know.
    Regards.

    Hi,
    Based on the forecast for the material A, the simulative planned orders will generated for its raw material duirng the LTP run.
    If you want to convert hte planned proposal into PR then you can run MD43 for the particular Raw material.
    Before running MD43, in MS04 - set firming date and then run MD43, planned orders will get converted to PR (firmed). Then run LTP again using MS02 (then the planned orders get deleted)
    Please check and come back if you need any clarification
    Thanks,
    JK

  • Raw Material Costing with Overhead, Product Cost Planning

    Hi,
    I have an issue applying overhead to purchased raw materials. We need to apply this overhead for only a certain materials. So, I have defined a overhead key/overhead Group, and assigned the group in the material master of the raw material. The overhead is 2% freight on raw material costs.
    In the std.costing variant, I have assigned the costing sheet under Overhead on material components tab of the corresponding valuation variant. I have also included the Freight OH in the cost component structure.
    However, when I run the costing with CK11N for the raw material, it is showing only the raw material cost, not the overhead.
    What could be the problem?
    I appreciate your help.
    Thanks,
    Ram

    Is the overhead rate a percentage type or quantity based?
    Have you maintained both actual and plan rates (1 & 2) under define % based OH rates or Qty based OH rates accordingly?
    Does the validity date (in define OH rates )cover the date of costing?
    Is the Costing sheet assigned to the valuation variant at plant level?
    Is the OH base in the costing sheet includes the cost element of the raw material?

  • Can Raw Material Be Procured Traded through 3rd party Process.

    Dear Experts,
    Can Raw mAterial Be traded through 3rd P Arty Process.
    As I am getting Error As Not possible to determine Consumption account.

    Hi,
    yes we can do no issue
    You row material should have sales view and correct OBYC setting take the help of SD consultant
    and check following link
    [http://forums.sdn.sap.com/thread.jspa?threadID=1563261]
    REGARDS
    Kailas Ugale

  • To update Planned price 1 in Raw material.

    HI Experts,
    our requirements is to update Planned price 1 in costing tab of Raw Material.
    Can we use MR21 to update.
    some of the discussion forums i found that MR21 updates only moving price only.
    Kindly help.
    Thanks,
    SUdha

    HI,
    The requirement is to execute the cost estimate quaterly for planned price 1.
    So we are planning to create separate costing variant to pick the planned price 1 of RM.
    Clinet has the Excel file with the details of RM and Price combination but the prices are not available in SAP.
    We are looking for the Mass transaction to upload the prices in Planned price 1.
    Kindly help.
    Thanks,

  • Production Planning for industry getting raw material from farmers.

    I am working in a process industry where i get raw material from farmers.My production(quantity and quality) is compltely depend on the quality of raw material.How can I plan this in SAP, So that I can get  good quality of raw material.

    Hi
    SAP is ERP package which provides complete integration between all the other industry modules like Finance, Materials, sales, Production and Quality.
    The present system of your Production and Quality has to be mapped in the SAP. But the data has to be flown from the present systems to sap. We built some controls for Raw material inspection for quality, it will allow only raw materials which will meets your specifications. And at any point of time you will have better control on the production also. We can can easily which raw materils are used for production etc.
    Regards.
    Balu

Maybe you are looking for