Plan Function not generating records

Hi Gurus,
           We have built a FOX function for propagating  price changes to all the Plam periods. The users input the price
changes for each Material group.
Input ready query is built with "0MATL_GRP" & "Posting Period" as the characteristics.
    "0MATL_GRP" is dynamic and Posting period  is constant ("#")
We have built a FOX function to propagate to all posting periods for each of the "0MATL_GRP".
This function is not generating any records
  Code:
     FOREACH  SORG,DC, SHIPTO, MAT, PER.
       {KF,SORG,DC, SHIPTO, MAT, PER} = {KF,#,#,#,#,#).
     ENDFOR.
   Planning function and the query are built on seperate Aggr. levels.
    The characteristics   SORG, DC, SHIPTO, MAT   in the FOR LOOP  are not part of the Aggr. Level   of the Input ready query.
   For some reason this code is not generating any records.
   I appreciate your suggestions
Regards,
  Peter

Hello,
You may try this:
FOREACH SORG,DC, SHIPTO, MAT, PER.
{KF,SORG,DC, SHIPTO, dynamic_MAT, #} = {KF,SORG,DC, SHIPTO, Reference_MAT, #).
ENDFOR.
The above fox formula copy  key figure value from reference material group to dynamic material group(Variable) for constant period(#).
Thanks.
With regards,
Anand Kumar

Similar Messages

  • Call Function not Generating Function Module for Smartform

    Hi Gurus,
    We have a work copy print program use to print deliveries (smartforms). This program works fine in Production but right now we are doing some testing and I found out that when we run this program in QUALITY environtment, it shortdumps with error saying "Function Module Not Found"
    Basically when it gets to the Function Module "SSF_FUNCTION_MODULE_NAME", it could not generate any function module for the form it Sy-Subrc = 2 Exception meaning NO_FUNCTION_MODULE.
    The problem is this only happens in our QUALITY environment.I compare the function module in the 2 systems, there was not diff as this is a Standard SAP module. I passed diff smartforms we have in QUALITY through the FM and it will not generating any FM for any of them. So this is not an error from the smartforms, bcos all the same smartforms generates FM in Prod.
    So what I did next is to Debug the FM "SSF_FUNCTION_MODULE_NAME" in the 2 systems to see where the diff is coming from. I noticed 2 views that the FM is using, they are STXFADM and D010SINF . So on the Production system, STXFADM-LASTDATE and D010SINF-UDAT fields are the same value, so it generates the FM. On the QUALITY systems, the values are different hence it skips the code to generate the FM.
    Thanks Guys.
    Points will greatly be awarded for this.

    Please guys, help me look into this, I really need a solution fast.
    Thanks

  • MDX command does not generate records: "NO RECORDS GENERATED"

    Dear Experts,
    I am testing MDX command we are going to use in Cashflow calculation. Although I am aware this is not typical way to do this (usually account-based calculation business rule does the job) but there are some other factors and we really want to do that in script.
    I created a very simple script:
    // CASHFLOW TEST
    *XDIM_MEMBERSET TIME = 2014.JAN
    *XDIM_MEMBERSET ENTITY = DK10
    *XDIM_MEMBERSET CATEGORY = ACTUAL
    *XDIM_MEMBERSET CONSOSCOPE = G_NONE
    *XDIM_MEMBERSET AUDITID = IMPORT_LPM
    [ACCOUNT].[#12220_F220] = ([ACCOUNT].[12220],[FLOW].[F220])
    *COMMIT
    but the script does not behave as I am expecting it to behave. Basically no single record gets generated by the script.
    I am attaching the log. I have triple-checked the data region in question for the account 12220 and it is populated with the value.
    Am I doing someting wrong?
    Thank You!
    Marek

    Hello Marek,
    I understand. If you need any documentation on MDX and Script Logic please let mw know.
    You should take a look at this Performance Analysis and Optimization for BPC 10 , in particular to this part:
    MDX and RSDRI query
    As already recommended for BPC 7.5 splitting the report into MDX and RSDRI(SQL) queries has an positive impact on performance. By using one MDX query (as small as possible) and one RSDRI query (as large as possible) the best performance improvements were achieved. RSDRI queries are much faster, but can only be used for base level members (without aggregation). For the examples mentioned above the best performance was achieved with a split into two reports and Europe rows and 2012-Total columns as Local Members. The DB query time was reduced from about 20 seconds to 2.3 seconds while the client rendering time doubled from about 1 second to nearly 2 seconds.
    Figure 10: Measurements of split reports
    Thank you.
    Best regards,
    Raquel

  • Customised Planning functions in Integrated Planning

    Hi experts,
    i have a requirement in my project like this.
    i have 2 suppliers S1 ans S2 having data like
    S1             S2
    100           50
    if i change the value of S1 to 90 the difference of the value (100-90) needs to add to S2 i.e 5010.(the total of S1 and S2 should be constant i.e S1S2=150 in all cases).
    is there any standard Planning function to execute this scenario.please provide your inputs for this.
    Thanks in advance.

    Hi,
    i think there is a possible way of doing this even if the total ie S1+S2 is not know.guess the solution will be long to implement it. U can use it if its necessary.
    there is a paper on how t run planning functions on delta records.
    You need to implement this first.
    then create a planning function that has a condition for suppliers  s2 alone.Read the delta records of S1, multiply the value with -1 and add it to the value of S2.
    this way the total the relations can be maintained.
    Regards.
    Shafi

  • Can not create planning function types (for process empty records)

    Hi! SAP Experts,
         I want to copy 0RSPL_FORMULA to another function types for processing empty records, ZRSPL_FORMULA. I checked this function type via RSPLAN, there is no error!.   But when i try to use it in planning modeler. We found the error message "Infoobject 1FORMULA is does not available in version A". Do we need to create this infoobject?... Anyone know, please let me know.
    Thanks,
    Sake

    Hi!,
    Thanks for your help but I've already put that parameter,HIDDENFORMULAVARTAB->1FORMULA, in my planning function, ZRSPL_FORMULA. I validated it and no error found. But when I go to planning modeler, in web browser, and try to create a new planning function based on ZRSPL_FORMULA. I found the problem as I mention in previous message, "infoobject 1FORMULA is not available in version A". I try to search this infoobject in my system. The result is there is no this infoobject in my system. So, my question is do i need to create it with myself? What kind of infoobject i have to create? Key Figures or Characteristics?
    Anyway, If I have to do this, why 0RSPL_FORMULA still used as normal.
    Brgds,
    Sake

  • Workbook not refresh after running Planning Function (BI-IP)

    Hi! Folks,
         I have a problem with the Bex Analyser which not refresh the data after running Planning Function.
    Step 1: Run Planning Function (There are some changes in records)
    Step 2: I have to Run Process Variables again and input the same selection in the pop-up variables
    Step 3: The changed records will be shown...
    Can I have some coding in the Layouts of Bex Analyzer to refresh the data after running Planning Function?
    Brgds,
    Supasake

    Hi,
    I had a similar problem that the resuls of my planning function were not automatically shown. Only if I did "something else" like saving or running another function the results were displayed.
    I think I solved it by upgrading my SAP GUI6.4 with patch 14. the results of planning functions should be automatically displayed.
    D

  • Cost Center Plan documents not being generated

    Hi
    I entered some internal order planning using "KPF6 - Change" the system generated plan documents which I can see using KABP
    But when I record / post Planning Cost and Activity Inputs using KP06, the system does not generate any plan document though saves the data I entered.
    Please tell me what configuration is missing?

    there is more than use of integrated planning; for example it is also possible to move planned cost to Profit centre accouting; also you can have an integrated planning between cost centre and internal order or project (distributing cost from object to the other).
    basically if you just need to plan on cost centre you shall not expect any counter effect.
    Paolo

  • Module Function not being called by the planning function

    Hi all,
    I am having a problem with the MF assigned to the planning function of my planning level. It's not being called when executing the layout using Planning Folder. This action is suppose to be taken when saving the entries of the layout (I have made the proper setting in planning folder)
    When I execute the planning folder and manually introduce data in the layout and save, the MF is not executed but data is loaded in the infocube anyway. I have put a breakpoint in the MF but never stops, as never has been called.
    Please, could anyway let me know his comments?
    Best Regards!
    José.-

    Hi Jose,
    There could be two reasons why the FM might not work.
    1. The level selections for which the FM runs and the Layout gets executed might different and the FM is not getting the Requisite Data set to read data from .
    The solution could be check the level selections and execute the FM .Also after you save the Data ,please do an F9 to check the display message.Chekc if oyu Function module is reading any data set at all(ifit says 0 read ,0 changed statement i mean).
    2. The second reason could be that the FM is not initialised at all.To initialise the FM you need to write an initialisation FM and place it in the INIT part of the Exit function.This creates dummy records if your data set is initially empty which is the case here.Here is a sample code you might get reference from .
    Create one dummy combination
    If we don't do this, the upload won't work since the second function
    will not be executed at all in case no transaction data exists so far.
    The combination must be a subset of the planning level!
    " >>> BEGIN INSERT
      IF l_count = 1.
        EXIT.
      ELSE.
        CLEAR ls_chas.
        CLEAR: ls_chasel.
        LOOP AT ito_chasel INTO ls_chasel.
          CLEAR: ls_charng.
          READ TABLE ls_chasel-t_charng INTO ls_charng INDEX 1.
          IF sy-subrc = 0.
            ASSIGN COMPONENT ls_chasel-chanm OF STRUCTURE ls_chas TO <f>.
            IF sy-subrc = 0.
              <f> = ls_charng-low.
            ENDIF.
          ENDIF.
          CLEAR: ls_chasel.
        ENDLOOP.
      ENDIF.
      " <<< END INSERT
      COLLECT ls_chas INTO lto_chas.
      eto_chas = lto_chas.
    ENDFUNCTION.
    Hope this helps.
    regards
    Sai Vishnubhatla

  • BI IP - Planning Function Type Formula Error "Characteristic not Supported"

    Hi all,
    I have created a planning function type formula with very simple code. The code was copied from SAP Library and FISCPER was replaced with 0CALDAY. I continue to get an error 'Characteristic 0CALDAY is not supported".
    The characteristic 0CALDAY is in the Infoprovider and the aggregation level. I have tried 'To Characteristic Usage' with both changed and in condition.
    DATA D1 TYPE D.
    DATA D2 TYPE D.
    DATA I1 TYPE I.
    DATA I2 TYPE I.
    DATA CALDAY TYPE 0CALDAY.
    FOREACH CALDAY.
    CALCULATE 1ST DAY OF ZCALEND
    D1 = C2DATE( CALDAY, S ).
    CALCULATE LAST DAY OF CALDAY
    D2 = C2DATE( CALDAY, E ).
    CALCULATE THE DIFFERENCE BETWEEN LAST AND 1ST DAY MINUS TWO DAYS
    I2 = 2.
    I1 = D2 - D1 - I2.
        MESSAGE I001(UPF) WITH 'DIFFERENCE' I1.
    ENDFOR.
    Thank you in advance for any help.
    Teri

    Thank you very much for your reply. What would you suggest? I must use 0CALDAY.  As you can tell I am very new to IP, I have tried other options for example:
    DATA ZDAYS TYPE I.
    DATA ZDT TYPE ZCALSTART.
    DATA ZDF TYPE ZCALEND.
    ZDT = ZCALSTART.
    ZDF = ZCALEND.
    ZDAYS = ZDT-ZDF.
    {KF,ZDT,ZDF} = ZDAYS.
    I received an error "ZCALSTART could not be recognized"
    I also tried to call a function. 'FIMA_DAYS_AND_MONTHS_AND_YEARS'.
    DATA D1 TYPE D.
    DATA D2 TYPE D.
    DATA DD TYPE I.
    DATA CALS TYPE ZCALSTART.
    DATA CALE TYPE ZCALEND.
    D1 = CALS.
    D2 = CALE.
    CALL FUNCTION 'FIMA_DAYS_AND_MONTHS_AND_YEARS'
      EXPORTING
        I_DATE_FROM          = D1
      I_KEY_DAY_FROM       =
        I_DATE_TO            = D2
      I_KEY_DAY_TO         =
      I_FLG_SEPARATE       = ' '
    IMPORTING
       E_DAYS               = DD.
      E_MONTHS             =
      E_YEARS              =
    I received an error "Types of parameter I_DATE_FROM () and variable D1(D) are inconsistent".  From what I could find they should be consistant.  Please provide any suggestions. Thank you!
    Teri
    Edited by: teri chandler on Mar 30, 2010 3:26 PM

  • Planned order not getting generated for FG

    Dear Experts,
    Planned orders not getting generated for the Finished Goods - X which is having MRP Type M0 - MPS fixing type strategy group 20 which is copied fron another FG - Y , its a new product and production plan has been updated through MC88 - Rough cut planning but the planned orders are not getting generated.
    And for the material valid production version exists with selection method 3 and individullcollective as 1.
    Please let me know what might be the possibalities and what all the key fields i need to check.
    Thanks & Regards,
    Sampath
    Edited by: sampath s on Jul 13, 2011 11:31 AM

    Dear,
    In general MPS is run for High value items ( if you use like Gold , Platimum or A class items. ).
    Always only single level is used for Explosion and planning. then only you can analyse the requirements at each stage before procurement.
    Otherwise if you run MPS to multi level, Bottom most high value will be procured without any notice to authorities. Even you may cancel the process in mid way. At that time what will happen to the procured high value material.
    So for that purpose only single item single level MPS concept is evolved.
    Fo that you run MPS at single level so that only for the first level MPS will be carried out.
    Check and revert back.\
    Regards,
    Alok Tiwari

  • Planned order not getting generated at plant level

    Hi experts,
          When i run MRP for a particular plant in T- code (MD01) Planned order is not getting generated but when MRP is done against a material in T - code (MD02) in the same plant planned order gets generated... Is there any customizing  to generate planned order in plant level.....
    Regards,
    Joseph.
    Edited by: joseph5885 on Aug 12, 2010 9:23 AM

    Dear Joseph,
    No it is not recommended. only in emergance cases this will be done
    Usually in MDRE and MDAB will be scheduled before MRP run at background for inconistancies in planning file enries
    So the above said t-codes will take care of the same
    Added
    Refer this link
    [Planning file entry;
    Regards
    Madhu
    Edited by: K.Madhu Kumar on Aug 12, 2010 6:53 AM

  • Planning File Entry not generated for items releveant to PM

    MRP procedure used for material is reorder based planning , in April -09 the stock for this material is consumed and becomes
    zero (reorder point is 8 ,Maximum Stock Level is 8 ) and after that in MRP run the requirement is not generated .
    But as per the setting of reorder point PR should be initiated.
    When checked the MD21 , material is not flagged ,
    I want to know the specific reason why only  this material is not flagged for MRP run.
    What all settings i can check ?
    MATERIAL TYPE : YMRO   OP Maint/ Repair/OperSup
    Lot size : Repl. to max. stock level after cov. req
    Procurement type   :  F

    Hi,
    Run the reports MDRE & MDAB to ensure the planning file entries are correct.
    About your query what might have caused a entry not to be in planning file, well it could be many. So run the above reports & then run MRP & check the results.
    Regards,
    Vivek

  • SmartForm Function Module not generated in Production

    Hi
    I have a smartform in DEV(Box A). It works fine. I trasnsported it to PROD(Box B). It appears as Active state in PROD. But there is no Function module generated for this smartform. As a result my program dumps in PROD.
    I am running it on 4.6C Release.
    Any suggestions ?
    Murali.

    Hi again,
    1.  I dont find any Function Module name under ENVIRONMENT -
    > FUNCTION MODULE NAME
    Click on
    FUNCTION MODULE NAME
    and it will give a pop-up window
    displaying the FM name.
    2. If its not there,
       then u can do 3 things :
      a) in prd server, activate the smart form again.
       (this will generate the FM)
      b) try to transport a new request,
        for the same smartform.
      c) ask basis team to check the LOG
        of this transport request.
      (whether any error / warning was there in the
       transport log)
       From this log, if any warning/error is there,
       then we can come to know, that there is some problem.
    regards,
    amit m.

  • Input Help (F4) does not work for Planning Functions in Web

    Hi Gurus,
    I am working in BI-Integrated Planning.
    When I execute a planning function from web layout (through Web Application Designer), the "Input Help" does not work. When I give F4 it takes me to the initial planning layout screen from the planning function variable screen without any action being performed.
    But the "Input Help" works fine when I have to select for the variable from the initial selection to open the planning layout.
    Can anyone suggest me any fix for this...
    Thanks!!!

    Hi All,
    Can somebody help me here what went wrong with indesign cc extension so that copy/paste does not work in input type element text
    Regards,
    Alam

  • Variables from workbook are not visible in the Planning function

    Hi,
    We're using a workbook with a bunch of queries in it. Every query has a lot of variables declared that are calculated based on two input ready variable that users are required to fill the first time.
    Everything works as expected until the save data function is called, which in turn calls the planning function.
    Here, the user exit variable try to be recalculated again. Unfortunately, this planning function loses track of the two input ready variables that were on the workbook, so the user exit variables have no values.
    Can you please suggest a method so that:
    a) The user exit processing in the planning function "sees" the two input ready variables
    b) The user exit processing is not triggered in the planning function and it's taking the already calculated values
    Let me know if you require further information.
    Best regards,
    George

    Hi,
    the variables in the filter of the query lives in one variable container and the variables of the filter of the planning sequence live in another variable container. They do not know each other. You need to establish a relationship between them. Usually this is done via variable binding for regular variables. For exit variables the variable binding can be done as written above.
    If as in your case you have variables in the filter of the query and you want to use their values in the variable of the planning sequence than you need to store the values somewhere where you can retrieve them in the exit. This can be in a e.g. in shared memory or in the session memory. To do this you need to spend an extra exit variable in the filter of the query. The exit variable reads the real values and stores it somewhere (e.g. shared memory, global parameter of a function group, a class member or something similar). Now as the variable value is stored it can be read in the implemenation of the exit variable in the filter of the planning sequence.
    In total we have 3 variables:
    Variable 1 contains the value which the user keys in and exists in the filter of the query.
    Variable 2 reads variable 1 and stores the value. It needs to be defined in the filter of the query as well.
    Variable 3 reads the stored value and needs to be defined in the filter of the planning sequence.
    Regards Matthias Nutt
    SAP Consulting Switzerland

Maybe you are looking for