Is it possible to interrupt a planning sequence in FOX ?

Hi,
At the beginning of my planning sequence, I have to test a value with a FOX formula, if my value is wrong, I want to send a message to the WAD and stop the planning sequence, how to do this ?
I have tested with the EXIT statement but it seems not work.
The planning sequence is called by a button in the WAD.
Thanks a lot,
Regards,

Hi,
you can generate massages with a parameter name called ET_MESG.
But I don't know, if this works together with FOX and WAD.
In my case it looks like this:
data:
          gt_mesg         like upc_ys_mesg occurs 0 with header line,
          ls_meld         like line of gt_mesg,
    ls_meld-msgid = 'YOUR MESSAGE CLASS'.
    ls_meld-msgty = ''MESSAGE TYPE'.
    ls_meld-msgno = 'MESSAGE NUMBER'.
    ls_meld-msgv1 = ZZZ.
    ls_meld-msgv2 = YYY.
    append ls_meld to gt_mesg.
  CALL FUNCTION 'MESSAGES_INITIALIZE'
    EXPORTING
      I_STORE_DUPLICATES = ''.
  loop at gt_mesg.
    call function 'MESSAGE_STORE'
      EXPORTING
        arbgb                  = gt_mesg-msgid
        msgty                  = gt_mesg-msgty
        txtnr                  = gt_mesg-msgno
        msgv1                  = gt_mesg-msgv1
        msgv2                  = gt_mesg-msgv2
        msgv3                  = gt_mesg-msgv3
        msgv4                  = gt_mesg-msgv4
      zeile                  =
      EXCEPTIONS
        message_type_not_valid = 1
        not_active             = 2
        others                 = 3.
  endloop.
  describe table gt_mesg lines znr.
  message i000(ZBIS_PLAN) with znr.
  call function 'MESSAGES_SHOW'.
Good luck!
Clemens

Similar Messages

  • BI IP Executing planning sequence via process chain not possible

    Hi,
    we use BI IP and have defined a process chain (RSPC) with value type process planning sequence. When we execute it, we get error message
    "Inconsistent input parameter (parameter: <unknown>, value <unknown>)"
    When we execute this planning sequence via the modeller or via SE38 RSPLS_PLSEQ_EXECUTE everything works fine. I thougt the cause could be the user of the job itself (job is executed with different user, and variant of planning sequence is user-dependent!), but I changed the user in the job itself as well without results.
    any thoughts?
    regards
    D
    null

    Hi,
    I executed with my user and have a SAP_ALL authorization. Perhaps it could be because we use authorisation with the old method (4.0) (-> I'm not sure on this). I also think it has to do with authorization. I'll check this out with our authorization consultant.
    D

  • Planning Sequence error - You do not have sufficient authorization

    Hello Experts,
    I am encountering the following error during execution of my planning sequence:
    You do not have sufficient authorization
    Message no. EYE007
    Diagnosis
    You do not have sufficient authorization for the requested data records.
    Procedure
    Either select other data or get the required authorizations from your administrator.
    Can anyone please suggest me what could be the possible cause of this error and how can I overcome it?
    Thanks in advance,
    Nitish.
    Edited by: Nitu_0105 on Jan 12, 2012 11:54 AM

    Check the planning level on which planning sequence is based  for values restriction.Looks like values for which it is been restricted you are not authorized or Roles assigned to you are not restricted with values in planning level.
    Also check if level is been restricted with any variable on which authorization is been restricted.Some are user specific example specific business area are assigned to only some users ...so you need to add your user ID to those variable.

  • Planning function and planning sequence of Design studio new features!!

    Hi Experts
    Recently I have updated my design studio to 1.3 and happy to see many new updates. Meanwhile i saw some new features add planning function and planning sequence.
    As per my understanding, Using this features we can enter data at run time. My query is here
    Is it like we are entering data at run time and see the changes in current data(chart series)
    Ex: Add discount for product 10% and relevant data(in chart) reduced to 10%
    or
    Is it like integrated planning? Once we enter data in run time and it saves in BW planning cube?
    I am totally confused with this feature.. Can any one help me to get clear understanding on this please !
    Regards,
    Mathivanan M

    Hi,
    maybe these two article can help you:
    #1 Planning in Design Studio 1.3
    #2 Planning in DS 1.3 - Using different script methods for planning
    As i unterstand, it's only possible to write back in BW.
    Best Regards 
    Sebastian

  • CHAR RELATIONSHIP error in SEM BPS planning sequence

    Hi,
    I'm executing a planning sequence with 2 planning functions.
    1st being "Exit  funciton" & 2nd being "Repost funciton".
    I've a "characteristic relationship of type attribute"  defined at the planning area level.
    Am getting CHAR RELATIONSHIP check error when am executing this sequence.
    EXIT function gives blank values for a characteristic that is used in "characteristic relationship".
    But, REPOST function adjusts this blank characteristic value to actual value which will be correct when "CHARACTERISTIC RELATIONSHIP" is checked.
    When I execute sequence, EXIT function gets executed & CHAR RELATIONSHIP errors are being displayed before "REPOST" function is being executed.
    Is there any other approach to deal this scenario? like checking CHAR RELATIONSHIP after REPOST funciton execution?
    I can execute REPOST funciton from "EXIT FUNCTION" using API_SEMBPS_FUNCTION_EXECUTE, but this doesn't suit my needs.
    Please note that I've a need to use 2nd planning function rather deriving characteristic relationship from the EXIT function.
    Appreciate any ideas/thoughts.

    Hari,
    each function must produce results that adhere to the rules specified as characteristic relationships. BPS will always execute the char.relationships after the exit function. You might be able to avoid this by adjusting the characteristics in your planning level.
    Calling another function (like REPOST) from within an exit is not possible since BPS needs to finish processing the exit first, before it can run the repost.
    Regards
    Marc
    SAP NetWeaver RIG

  • BEx Analyzer: Use Of Variable Values For Planning Sequence

    Hi experts,
    I want to start a planning sequence using a button item in a BEx Analyzer workbook. The planning sequence itself is defined with several variables, that are input ready. The same variables are used in BEx Queries that are bound to DataProviders in the workbook. Therefore the variables are filled by the user, if the workbook has been started. If the user wants to start the planning sequence, that is defined on the button item, the same variable values (which the user has already set in the beginning) should be used. But I didn't find a way to fill planning sequence variable from variables (like it is possible in the web interface using the DataBinding function). It seems, that it is only possible to set the variable with static values, that are defined in the button item. Am I erring in this point?
    Anyone here who can help me regarding this issue?

    Eitan Ohayon wrote:
    Why did you raise this question?,did you face any problem?
    Hi Eitan,
    The problem was, that the planning sequence worked fine in web but not in analyzer. The system told me in web, that several records had been read, created, changed and deleted. System messages in BEx Analyzer always indicated zero reads, creations, reads and deletions.
    Using your idea to set breakpoint in the INIT_EXECUTION method gave me the information, that all variables are not set or set with initial values (like '0000' for fiscal year). This seems to be the reason for my problem. Now I've reduced the planning sequence definition on the button only to that variables, that are really needed. Furthermore I defined the Command Range to get dynamic values for the variables from the excel sheet grid. So it seems to work.
    Thank you for your help!

  • How to use master locks in a process chain with planning sequence

    Hi,
    when I start a process chain which contains a planning sequence there is no master lock set. The chain stops and I get the message "Data in InfoProvider XYZ is locked by user TIMMAY". What can i do to enable the master locks?
    Thanks for your help!

    Hello,
    When a planning sequence is triggered via process chain system first first tries to set a normal lock and if this is possible, these selections are stored as master locks and then the normal locks are released.
    In your case if some data is already locked by another user the lock conflict will occur in teh first step only where system tries to create a normal lock before creating master locks.
    If Administrator wants to trigger the process chain he should ask other users to come out of the planning layouts so that all the locks are released and then trigger the chain and after this the system will set the master locks. Packaging in planning sequence process type won't help in setting master locks even if the data is locked by other user.
    Also, after master locks are deleted in RSPLSE, the transaction data remains protected by normal data locks during runtime. Nevertheless, without master locks it is no longer guaranteed that parts of planning sequences can be carried out without encountering lock conflicts with other users.
    Regards,
    Deepti

  • How to find what planning sequences/functions update data in a cube?

    Hi, Experts:
    We have a real time cube being updated by planning sequences/functions. How can I find what planning sequences/functions are updating this cube?
    Thanks,
    Jenny

    Hi,
      You can go the transaction code: rsa1 and then select "Meta data Repository" option on the left side.
    You can use Meta data repository to view the dependent objects for a infocube or any other BW object.
    In your case, you can select "Infocube" option on the left side and then go on selecting your infocube.
    Now you will get all dependent objects created on this infocube, which will include your plannign functions also.
    Refer top the following link for more details on "Meta data Repository",
    http://help.sap.com/saphelp_nw04/helpdata/en/4e/ea683c25e9096de10000000a114084/frameset.htm
    Regards,
    Balajee

  • Currency Translation in Planning sequence with variable for target currency

    Hello ,
    i have a requirement, the cube contains multiple data in the Group Currency for multiple company codes. & I want to convert these amounts to another KF as local currency using planning sequence only (not using transformation, as the users want to do this when they require.)
    For this, i defined a Aggr level , filter & Planning function with Currency translation selecting the source field as AMOUNT_GC & target field as AMOUNT_LC using the Currency Translation type ZCTGCLC.
    The target currency is not know beforehand, as it depends on the company code of each records that comes in.
    Hence, Currency translation type uses  a Customer exit variable 'Z_R_0026' for target currency.
    This is customer exit variable which searches the Master data table of the Company code & replies back with the local currency of that particular company code (derived value from the company code variable also in teh filter).
    However, when i execute this planning sequence, it gives me an error saying, "no value found for variable 'Z_R_0026'
    1. when edit the CMOD code, to return only say "EUR" the planning sequence runs fine.However when i use this select statement to fetch the corresponding value of the currency using the company code reference from the company code master data table, it gives the above error. it seems to be a problem with the select statement.
    below is the code for that exit
    when 'Z_R_0026'.
         data: l_curr type /BI0/OICURRENCY.
         IF i_step = 2.
           LOOP AT i_t_var_range INTO loc_var_range
                              WHERE vnam = 'Z_S_0003'. " Company Code Single
             CLEAR l_s_range.
        Filling Currency Key from Company Code
             select single currency
             from /bi0/pcomp_code
             into l_curr
             where comp_code = loc_var_range-low
             and objvers = 'A'.
             if sy-subrc = 0.
               l_s_range-low = l_curr.
             else.
               l_s_range-low      = 'ABC'.
             endif.
             l_s_range-opt      = 'EQ'.
             l_s_range-sign     = 'I'.
             APPEND l_s_range TO e_t_range.
             clear l_s_range.
             EXIT.
           ENDLOOP.
         ENDIF.
    2. there is a option of using infoobject for target currency in the RSCUR itself, however, when i try to input the 0COMP_CODE for finding the attribute currency from this infoobject, it doesnt accept.
    has anyone tried this earlier ?
    Any help/suggestions , guys, pls?
    Thanks
    John

    Hi Praveen ,
    Thanks for that.
    I have a Question.
    If RSCUR were to only accept a Date InfoObject , it would be placed under a differnt heading.
    The Tab is "Currrency"  & the sub-Tab is "Target Currency"
    so i guess, it should accept other infoObjects as well.
    Moreover, the help on that InfoObject buttons says
    "Specification of an InfoObject (Characteristic) in which a currency
    attribute is stored in InfoObject maintenance. At runtime, the
    associated currency attribute is determined using the characteristic
    value and this is interpreted as source or target currency."
    & i have already defined 0currency as a attribute of 0comp_code. so this should work ideally.
    almost similiar CMOD code i have used for other too, but i dont know why only this one is getting struck.
    any help, pls.
    Thanks
    John
    Edited by: John Lewis on Apr 17, 2009 3:24 PM
    Edited by: John Lewis on Apr 17, 2009 3:25 PM

  • How to use the same variable value for data entry and the planning sequence

    Hi,
    the scenario is the following:
    Using the WAD template a user enters cost center plan data. The cost center is selected by the chosen value for the variable "V1".
    Afterwards he shall push a button which starts a planning sequence (including saving the data and further functions). This planning sequence uses a filter that also contains the variable "V1".
    What or where has it to be defined that the planning sequence uses automatically the same value for the variable "V1" as selected for the data entry?

    You have to define in the planning function. The planning sequence is only a sequence and it read the planning functions underneath it.
    Ravi Thothadri

  • No Authorization error in executing a planning sequence

    Hi,
    We are using BI 7.0 Integrated Planning.
    We have implemented Mark Bernaud's file upload solution. We have used a planning sequence that uploads the file and stores it in a cube. Using it, we are able to upload files without any problem when executing with a SAP User Id which has all the authorizations (the user id has SAP_ALL specified in its list of profiles). Now, we have a requirement where we need to execute the file upload using a user id which has limited authorizations. When we are trying to execute the file upload with the userid that has limited authorizations, we are getting the following authorization error.
    'You are not authorized to execute sequence PL_SEQ_FL_UPLOAD'
    where PL_SEQ_FL_UPLOAD is the name of planning sequence we are using. We have also included the authorization variable in the filters being used as suggested in one of the blogs but this didn't help.
    Could anyone please let us know the authorization objects to be added to the user id to enable access to this file upload.
    Many Thanks,
    Narendra.

    Thank you very much Diogo,
    The objects you suggested were already there. We have successfully traced the error by switching on the trace using ST01. We found the reason for the error to be that display authorization is not provided for S_RS_PLSQ whereas execute authorization is already present for that.
    Once again thanks Diogo.
    Many Thanks,
    Narendra

  • Using a variable for STS Planning Sequence

    Hi guys,
    I would like to execute planning sequence when users approves data for Profit Center in STS. The filter used in the planning sequence have a variable for Profit Center. This is not working.
    Whats the altenative of using a variable Instead of creating planning sequence for every profit center? Pls assist

    The planning sequence runs when the user approves on STS. The planning sequence runs for all profit center (this is a variable in the filter). I want to execute planning sequence for the profit center level selected on STS.

  • Error in execute planning sequence variant in process chain

    Hi ,
    While creating an Execute planning sequence variant in process chain in Quality system , i am getting an error" variable variant not selected ' though i created a variable variant and selected it in execute planning seq variant.
    Transporting it from development system didnt work therefore i am trying to create it directly in Quality .
    Any idea what could be the issue.

    Hi,
    Variable variant can be saved for planning sequence in modeler and then cab be used in process chains.
    In process chain you can choose "Execute planning sequence"( separate process type) and add planning sequence with variant.
    [http://help.sap.com/saphelp_nw2004s/helpdata/en/43/1d000c41130bd5e10000000a422035/frameset.htm]
    Thanks
    Pratyush

  • IP - Is it possible to call exit planning function from ABAP Report..

    Hi All,
    Greetings.
    Is it possible to call exit planning function from ABAP Report (t-code SE38) ? Or I mean is not limited only to be called from ABAP Report, perhaps from BSP / Web-Dynpro / Function Module.
    If somebody here has been doing it before, I'm keen to ask to kindly share it. Particularly how to call and transfer data to that exit function.
    Or if somebody has done in BPS, appreciate if it can be shared too .
    Thanks a lot and have a good day,
    Best regards,
    Daniel N.

    Hi.
    You can achive this as suggested by Mattias in your previous post.
    Lets say you have next data structure:
    CostCenter | Amount | PercentForDistibution |
    Create input ready query in this format. Restrict cost center by variable type range.
    Create WAD with analysis item.
    When you run web page you enter range of cost centers (lets say you will enter 101004 to 101010).
    I assume you have data only for 101004 in your cube (lets say 1000).
    You will see only one record in your webpage.
    CostCenter | Amount | PercentForDistibution |
    101004       | 1000     | NOTHING
    When you create WAD in analysis item properties set "NUMBER_OF_NEW_LINES" to lets say 1 (so in WAD you will see always one blank line for entering new data).
    Just add 6 new records:
    CostCenter | Amount   | PercentForDistibution |
    101005       | NOTHING| 10
    101006       | NOTHING| 30
    101007       | NOTHING| 20
    101008       | NOTHING| 25
    101009       | NOTHING| 5
    101010       | NOTHING| 10
    Then run planning FOX function like this:
    FOREACH Z_COST_CENTER.
    IF {Amount, Z_COST_CENTER} <> 0
    Z_AMNT_TO_DISTRIBUTE = {Amount, Z_COST_CENTER}.
    ENDIF.
    ENDFOR.
    FOREACH Z_COST_CENTER.
    IF {PercentForDistibution Z_COST_CENTER} <> 0.
    {Amount, Z_COST_CENTER} = Z_AMNT_TO_DISTRIBUTE * {PercentForDistibution Z_COST_CENTER}.
    ENDIF.
    ENDFOR.
    It is not perfect FOX, but as an idead, it should work.
    Regards.

  • Planning sequence in Process chain

    HI,
        I have used Planning sequence in process chain, But while executing it, it throws a following message
    "Inconsistent input parameter (parameter: <unknown>, value <unknown>)""
    Any Guess??
    Regards,
    Meiy

    HI,
          I have created a planning sequence in IP. I wanted to execute it in Process chain. While executing in process chain it throws a error which is mentioned above.
    Regards,
    meiy

Maybe you are looking for

  • Why does Verizon Penalize Long-time Customers?

    I started out as a Alltel customer in 2004 and became Verizon during the merger.  I had a pretty nice plan at 500mins with unlimited text and data.  When Verizon started their More Everything Plans, they started alienating those of us who still had u

  • FI Document - Open Items

    Hi All, While trying to archive the FI Documents present in our system, a huge percentage of them are not getting archived inspite of meeting the retention/residence time requirements. The spool says these docs have open line items. My query is: how

  • How to purchase mountain lion

    Been trying to upgrade now for an hour and it wont let me just keeps taking me back to preview page when i want to buy it. I just want to use my new iphone 5

  • Deactive cash discounts during EBS

    Dear colleagues, I would like to clear vendors open items atomatically during the electronic bank statements but without cash discounts. The vendor line items have cash discount terms but I want to deactivate the cash discounts without manual interac

  • Image enduser workstation: question about ACF and Adobe Reader component

    Our IT department is investigating what components should be included in the image for enduser workstations to ensure they will be able to work with interactive forms without any problem. I know ACF and Adobe Reader are the only requirements for endu