Inconsistent behavior of Macro when executed at Different Levels.

Hi Gurus,
I have a Default macro in my Data View. I tried to suffle between the levels of data and the macro gives different results when i perform same operations in different sequence.
Right now I have this Default Macro defined to run at "All Planning Objects" level in the Macro Workbench (/SAPAPO/ADVM)
I have 2 CVCs in my selection.
1. I loaded both the products in planning grid and looked at the Total Level.....the result of macro is 5.......then I go to the Details All of the Product and the the result is still 5.
2. Now, i do a different sequence.....i first see the data for Detaills All......the Result is 10.....and then I go to Totals Level and result becomes 5.
So, the Macro is not executing Consistently.
Any idea how can I solve this issue.....??
Do I need to run the macro at u201CDetails Onlyu201D level to solve this issue ?
OR
Do I need to use the Drill Up and Drill Down Functionality ?
thanks & regards
~Abhishek

For quick assistance post testable script.
Tree processing examples using recursive CTE:
http://www.sqlusa.com/bestpractices2005/organizationalchart/
Kalman Toth Database & OLAP Architect
Free T-SQL Scripts
New Book / Kindle: Exam 70-461 Bootcamp: Querying Microsoft SQL Server 2012

Similar Messages

  • FSV showing different values when executed by different users

    Hi Experts,
    While executing FSV throug RFBILA00 we are getting different values when executed by differet users. Variant selection is same except the user (which is different). For one user report is perfect for another user some GL accounts were not displayed and some accounts shows different values.
    Anybody could help on this. Is there any userwise settings are there.
    Thanks in advance.
    Regards,
    Narayanan

    Hi,
    check user authorization, maybe one user has limited display authorization for some values (as they are linked to specific profit center,...)
    BR Christian

  • Playlists song all have different levels

    I have noticed that since moving over to a mac from a wondows laptop, itunes playlists in my ipod are all at different levels.
    Plus should I consolidate my library? Will it double up the coverage on my harddrive?

    When you write 'different levels' I presume you mean different volumes?
    If this is the case, check that the iTunes Sound Check option is set on your Mac: goto iTunes -> Preferences, click on the Playback section and tick the box labelled 'Sound Check'. When you next transfer songs to your iPod, the Sound Check settings will come across too.

  • Different AccessControlContexts when executing JMX operations

    I have a custom InvocationHandler/MBeanServerForwarder class set on my JMX server so I can grant permissions to specific methods based on the authenticated user.
    When an Operation (i.e. a get/set method) is invoked in JConsole, I get the correct Subject via
    AccessControlContext acc = AccessController.getContext();
    Subject subject = Subject.getSubject(acc);
    However, when an Attribute is modified, I get a different AccessControlContext than was previously returned and an empty Subject. So I have no way of knowing who the authenticated user is and if they have permission to access that attribute.
    Is there a different/better way of getting the authenticated user inside the InvocationHandler?
    Thanks.

    Note, cross posted http://stackoverflow.com/questions/14161205/different-accesscontrolcontexts-when-executing-jmx-operations .

  • Applescript in Automator behaves differently when executed from inside Automator, or as an Automator application

    Hello everyone,
    I'm trying to execute an Automator workflow at startup, which I do by saving the workflow as an application, and adding it to the startup list, this works fine.
    My workflow works fine when executed from within Automator (ie clicking on the "Execute" button), but does not anymore when the Automator application is executed (ie. simply double clicking on my Automator file)
    I have narrowed it down to an Applescript inside my workflow which fails only when the application is executed from the finder (the step works fine from within Automator). The script automatically creates an ad hoc wifi network.
    The line which specifically fails is :
    set menu_extras to value of attribute "AXDescription" of menu bar items
    Anyone has any idea why executing the workflow from within automator, and executing it from the finder yield different results ?
    The crazy thing is that all this worked fine up until a few days ago, there might have been an update since (running Mavericks 10.9.2), but nothing game-changing.

    You will need to provide more than the one line of AppleScript you quote if you want a definitive answer.  (We can't even see which app you are addressing this to.)

  • Event flow in ABAP is different when executed via SE80 vs. via TCODE

    Hi,
    We have many existing custom ABAP report pgms that have a custom transaction code that executes them.  Regardless of how the pgms are invoked, the event sequence in the pgm is INITIALIZATION, AT SELECTION-SCREEN, START-OF-SELECTION. etc. 
    Now, when I create a new pgm with a transaction code to invoke it, the event sequence when executing the pgm via SE38 is as before (All 3 events above are triggered).  However when I invoke the pgm via the custom transaction code, only the event At SELECTION-SCREEN is executed.  (Not the INITIALIZATION or the START-OF-SELECTION events).
    We have upgraded our SAP GUI from 6.4 to 7.1.   We are upgrading our system from 46.C to ECC6.  I get this error in ECC6 and also in the old system 46.C which is causing me to question whether the SAP Gui is involved.  We are using SAP GUI 7.1 in both the 46.C and ECC6 systems.
    Any help will be appreciated!
    Thanks,
    Deb

    Hi All,
    Here is my ABAP Code.  I have put break points in the code so I can track the sequence.
    REPORT ZDEBNEW .
    data zdeb(2) type c.
    tables kna1.
    SELECTION-SCREEN BEGIN OF BLOCK A WITH FRAME TITLE TEXT-002.
    SELECT-OPTIONS: I_KTOKD for KNA1-KTOKD.
    SELECTION-SCREEN END OF BLOCK A.
    INITIALIZATION.
      zdeb = '1'.   "break
      sy-subrc = sy-subrc.
    PAI
    AT SELECTION-SCREEN.
      zdeb = '2'.  "break
      sy-subrc = sy-subrc.
    START-OF-SELECTION.
      zdeb = '3'.  "break
      sy-subrc = sy-subrc.
    END-OF-SELECTION.
      zdeb = '4'.   "break
      sy-subrc = sy-subrc.
    As for the type of transaction I am using...I created it via SE93 and specify SELECTION SCREEN 1000.  I classify it as a Professional User transaction.  One other thing I have noticed is that when I view the new pgm via SE80 I do not see Screen 1000 in the left navigation panel.  If I try to create such a screen in SE80, it says it already exists.  I can see Screen 1000 from tran SE51.  In one of the existing old pgms, I do see screen 1000 when I view SE80.
    Thanks for the help and interest!!!

  • Jar works different when executed with webstart

    Hello, I have a problem when executing an app with webstart. When I execute the jar directly on windows everything works fine, but when I execute the webstart link it executes but not correctly. The application has some timers that don't work. The rest of the application seems to be ok. Anyone has a clue about this problem? Thanks

    Hello, I have a problem when executing an app ...What application? What does it do? Do you control
    the source code?
    ..with webstart. What is the URL the the JNLP? Or failing that,
    what is the JNLP content?
    Is there any stacktrace in the Java console?
    Do you have the console pop-up for web start apps.?
    ...When I execute the jar directly on windows
    everything works fine, but when I execute the
    webstart link it executes but not correctly. The
    application has some timers that don't work. Timers don't work? Maybe they are just lazy!
    Or to put that another way, what is supposed
    to happen at the end of the time that does not
    happen in the web start app.? Are exception
    or error stacktraces printed to the console?
    ...The rest
    of the application seems to be ok. Anyone has a clue
    about this problem? Without answers to the questions above,
    we are really just guessing.
    Message was edited by:
    AndrewThompson64

  • Inconsistent behavior with BC4J

    With oracle 9iAS we are using a DataSource and Connection Pooling at the app module level is disabled via :
    jbo.doConnectionPooling = true and jbo.maxpoolsize = 0
    Also the jbo.am.minavailablesize and jbo.ampool.maxavailablesize are each at 20.
    The inconsistent behavior is when i try accessing a certain page over and over again..
    two different users ...two different sessions...both accessing the same page repeatedly...
    After quite a few successful hits for each of the two users...
    why would one of the users get the following message on the same page ...
    while the other user is returned the page that was requested...
    and a third user who logs in is also returned the same page
    JBO-30003: The application pool (com.xyz.abc.abc.abc.abc.abc_AppModule.abc_AppModuleLocal) failed to checkout an application module due to the following exception:oracle.jbo.NoDefException: JBO-25002: Definition com.abc.abc.abc.abc.abc.abc.dal.abcView of type View Definition not found     at oracle.jbo.mom.DefinitionManager.findDefinitionObject(DefinitionManager.java:311)     at oracle.jbo.mom.DefinitionManager.findDefinitionObject(DefinitionManager.java:252)     at oracle.jbo.server.MetaObjectManager.findMetaObject(MetaObjectManager.java:661)     at oracle.jbo.server.ViewDefImpl.findDefObject(ViewDefImpl.java:283)

    Can you run the server with -Djbo.debugoutput=console property set on the vm command line and send us the detail exception, if any, thrown on the server console.

  • SQL error 3113 occurred when executing EXEC SQL.

    Hi,
    We are facing one typical problem, One background is failing regularly with
    below dump. as we now got all notes giving information, if database  restarted
    taking backup, these type of failures occur, but our database is only down for backup once in a week, but it is failing with frequenly.
    in this two servers are located in different place, in this job tries to connect
    another server to get material statistics.
    It is giving some error message in sm21 with
    SQL error 3113 occurred when executing EXEC SQL.
    work procees in reconnect mode.
    all notes saying these types of dump occur when database restared, but this dump
    even though database is up.
    below is short dump, please can anyone help me from this problem.
    ABAP runtime errors    DBIF_DSQL2_SQL_ERROR
          Occurred on    08.01.2007 at 00:30:28
    >> Short dump has not been completely stored. It is too big.
    SQL error 3113 occurred when executing EXEC SQL.
    What happened?
    The error occurred in the current database connection "AZ1".
    What can you do?
    Note the actions and input that caused the error.
    Inform your SAP system administrator.
    You can print out this message by choosing "Print". Transaction ST22
    allows you to display and manage termination messages, including keeping
    them beyond their normal deletion date.
    Error analysis
    How to correct the error
    Database error text........: "ORA-03113: end-of-file on communication channel#"
    Triggering SQL statement...: "select mara.groes, mara.brgew, mara.ntgew,
    mara.gewei, mara.volum, mara.voleh, mara.mstae, mara.mstde, mara.prdha,
    marc.matnr, marc.werks, marc.mmsta, marc.mmstd from sapr3.mara, sapr3.m
    where sapr3.mara.mandt = sapr3.marc.mandt and sapr3.mara.matnr =
    Internal call code.........: "[DBDS/NEW DSQL]"
    Please check the entries in the system log (Transaction SM21).
    If the error occurred in a non-modified SAP program, you may be
    able to find a solution in the SAP note system.
    If you have access to the note system yourself, use the following
    search criteria:
    "DBIF_DSQL2_SQL_ERROR"
    "ZM2431216 " or "ZM2431216 "
    "EXTRACT_GENERAL_DATA"
    If you cannot solve the problem yourself, please send the
    following documents to SAP:
    1. A hard copy print describing the problem.
      To obtain this, select the "Print" function on the current screen.
    2. A suitable hardcopy prinout of the system log.
      To obtain this, call the system log with Transaction SM21
      and select the "Print" function to print out the relevant
      part.
    3. If the programs are your own programs or modified SAP programs,
      supply the source code.
      To do this, you can either use the "PRINT" command in th
      print the programs using the report RSINCL00.
    4. Details regarding the conditions under which the error o
      or which actions and input led to the error.
    System environment
    SAP Release.............. "46C"
    Application server....... "essceu3"
    Network address.......... "172.19.119.198"
    Operating system......... "AIX"
    Release.................. "5.3"
    Hardware type............ "00C7ADBD4C00"
    Database server.......... "ukblx176"
    Database type............ "ORACLE"
    Database name............ "EU3"
    Database owner........... "SAPR3"
    Character set............ "es_ES.ISO8859-1"
    SAP kernel............... "46D"
    Created on............... "Jul 9 2006 20:26:33"
    Created in............... "AIX 1 5 00447C4A4C00"
    Database version......... "OCI_920__OCI_7_API "
    Patch level.............. "2257"
    Patch text............... " "
    Supported environment....
    Database................. "ORACLE 8.0.5.., ORACLE 8.0.6.., ORACLE
    8.1.6.., ORACLE 8.1.7.., ORACLE 9.2.0.., ORACLE 10.2.0.."
    SAP database version..... "46D"
    Operating system......... "AIX 1 4, AIX 2 4, AIX 3 4, AIX 1 5, AIX 2 5, AIX 3
    5, , System build information:,                                      , LCHN :
    841480"
    User, transaction...
    Client.............. 600
    User................ "MPZMMES"
    Language key........ "S"
    Transaction......... " "
    Program............. "ZM2431216 "
    Screen.............. "SAPMSSY0 1000"
    Screen line......... 6
    Information on where termination occurred
    The termination occurred in the ABAP/4 program "ZM2431216 " in
    "EXTRACT_GENERAL_DATA".
    The main program was "ZM2431216 ".
    The termination occurred in line 980
    of the source code of program "ZM2431216 " (when callin
    The program "ZM2431216 " was started as a background jo
    Source code extract
    009500              mara.ntgew,
    009510              mara.gewei,
    009520              mara.volum,
    009530              mara.voleh,
    009540              mara.mstae,
    009550              mara.mstde,
    009560              mara.prdha,
    009570              marc.matnr,
    009580              marc.werks,
    009590              marc.mmsta,
    009600              marc.mmstd
    009610        into :w_ops-groes,
    009620              :w_ops-brgew,
    009630              :w_ops-ntgew,
    009640              :w_ops-gewei,
    009650              :w_ops-volum,
    009660              :w_ops-voleh,
    009670              :w_ops-mstae,
    009680              :w_ops-mstde,
    009690              :w_ops-prdha,
    009700              :w_ops-matnr,
    009710              :w_ops-werks,
    009720              :w_ops-mmsta,
    009730              :w_ops-mmstd
    009740        from sapr3.mara, sapr3.marc
    009750        where sapr3.mara.mandt = sapr3.marc.mandt
    009760          and sapr3.mara.matnr = sapr3.marc.matnr
    009770          and sapr3.mara.mandt = :p_mandt
    009780          and sapr3.mara.matnr = :w_ebs-matnr
    009790          and sapr3.marc.werks = :p_owerks
        >    ENDEXEC.
    009810  endform.                    " extract_general_data
    009820  *&
    009830  *&      Form  append_i_ops
    009840  *&
    009850  *      Appends W_OPS to I_OPS
    009860  *
    009870  form append_i_ops.
    009880    append w_ops to i_ops.
    009890  endform.                    " append_i_ops
    009900  *&
    009910  *&      Form  extract_material_description
    009920  *&
    009930  *      Extracts a Material Description from the remote database an
    009940  *      modifies the current record in I_OPS.
    009950  *
    009960  *        >P_SPRAS  Language Key
    009970  *
    009980  form extract_material_description using    p_spras.
    009990    EXEC sql performing set_langauge.
    Contents of system fields
    SY field contents..................... SY field contents............
    SY-SUBRC 0                            SY-INDEX 0
    SY-TABIX 1                            SY-DBCNT 1
    SY-FDPOS 18                            SY-LSIND 0
    SY-PAGNO 0                            SY-LINNO 1
    SY-COLNO 1
    Chosen variables
    Name.......................... Contents.1........2........3....+..
    W_EBS-PRAT4
                                  2
                                  0
    W_OPS-GROES
                                  22222222222222222222222222222222
                                  00000000000000000000000000000000
    W_OPS-BRGEW                    #######
                                  0000000
                                  000000C
    W_OPS-NTGEW                    #######
                                  0000000
                                  000000C
    regards,
    krishnaiah.

    Hi,
    This is usually a SERVER SIDE DATABASE PROBLEM or SQLNET LISTENER (server side) PROBLEM.  The client side should initially be ignored and instead the server should be investigated. In rare cases, this can be caused by client
    side memory or other resource problem, or a DLL version mismatch, but this is
    unlikely.
    Enlist the assistance of your DBA.  Then reproduce the ORA-3113 error on your
    client application.  Ask your DBA to look at the database side Alert.log and
    trace files and look for ANY activity.  Any activity that coincides with your
    ORA-3113 will be a clue.
    REgards
    Vinod

  • Error when executing add-on in client's computer

    Dear All experts/gurus,
    I need your help. I have problem when executing/open an add-on (installed in server and can be executed using server computer without creating ard file) I've created in my client's computers. although it is automatically installed but when execute, the error comes which message is "wrong digital signature". I create ard file for every clients that want to execute/use add-on and succeed. It is okay that I can create ard file for 1-3 computers but if it 10-20 computers, it is wasting time. how to solve this problem, where all computers in clients site can execute the add-on without must create ard file in every computers ?
    I appreciate your answer. tks in advance.

    Take a look at the "Package and Deployment" section in the SDK help file.  This will guide you through how to install / launch your add-ons.
    If you are using the standard SAP method documented there, you only need 1 ard file per release version of your add-on.  You do not need to have a separate ard file on every client pc.  The ard file includes in it a checksum (MD5) of your add-on executable.  The ard file itself is only used during the "registration" process for an add-on.  During registration, the checksum containined in the ard file and your add-on installer itself are both written to the Common database.
    The error message "wrong digital signature" when the SAP add-on manager attempts to execute an add-on indicates that the executable version installed on that client does not match the one that was registered earlier.  Most common causes are:-
    a) You have manually copied a different executable onto the client pc
    b) When creating the ard file, you selected a different add-on executable from the one you included in your installer.
    When creating the ard file using the AddonRegDataGen program, make sure that you point the "Add-on EXE full path" to the version of the add-on executable that you are including in your installer.  You will have to create a new ard file if you change the executable in the future, for example if you release a new version of your add-on.
    John.

  • BDC is not working in when executing the program in background

    Hi gurus,
    I have a problem that in BDC is not working when i'm executing the upload program in background thru scheduling(SM36) , while it works fine when i execute directly with NO screen display mode

    Many transactions behave differently when executed in foreground and background. The fields on the screen may be different.
    In transaction SHBD when starting a recording there is a checkbox where you can select 'Simulate Background Mode'. If you do your recording using this option you will get the code suitable for background mode. If you do not select this option you will get a code for foreground mode.
    By compairing the two codes you will know the changes required for background mode.
    Hope this helps you

  • FM does not exist when executing Smartform

    Hi,
    When we are executing a Smartform in Production Server, FM not generating. But at the same smartform generating FM in Quality Server.
    What should be the problem..

    Hi Anil ,
    I assume that  you are using CALL FUNCTION '/1BCDWB/SF00000048'
    IF you use this Function, It will be changed from one server to another server,
    Now only one way to you is the following:
    The FM 'SSF_FUNCTION_MODULE_NAME' is only used to find the generated FM name of the smartform. Once you get the generated FM name, you can call this function by passing the name of the generated FM dynamically. In the same code, you can send your export parameters outop.
    What you have to do is this,
    "Assume your smartform name is ZSMARTFORM.
    CALL FUNCTION 'SSF_FUNCTION_MODULE_NAME'
      EXPORTING
        formname                 = 'ZSMARTFORM'
    *   VARIANT                  = ' '
    *   DIRECT_CALL              = ' '
    IMPORTING
       FM_NAME                  = wrk_fname
    * EXCEPTIONS
    *   NO_FORM                  = 1
    *   NO_FUNCTION_MODULE       = 2
    *   OTHERS                   = 3
    outop-tddest = 'CANONMF4'.
      outop-tdprinter = 'CANONMF4'.
      cparam-no_dialog = 'X'.
      cparam-preview = space.
      cparam-getotf = 'X'.
      IF f1 = 'X'.
        CALL FUNCTION wrk_fname
          EXPORTING
            control_parameters = cparam
            output_options     = outop
            user_settings      = space
          IMPORTING
            job_output_info    = tab_otf_data
          TABLES
            itab               = itab     .
    If you want to get all the import and export parameters automatically into your code, click on Pattern and give the function module name /1BCDWB/SF00000053 directly. Then, remove the function module name and in its place use the variable wrk_fname which holds the function module name. In this way, when used in different landscapes (DEV, QAS, PRD), we will be able to get the correct FM name of the smartform without any error.
    Hope this is clear to you.
    with Regards
    Murthy

  • Incorrec entries when execute the query

    hi,
       I am facing one problem when execute the query on inventory cube(non cumulative cube).Query is diplaying entries for valuated stock Qty.on particular date, but those entries are not exist in BIW(Infocube ,ODS) or R/3 System.
    I checked cache parameters. all settings are correct.
    if anyone has the idea on this  pls. do the needful
    Thanks n Regards,
    HReddy.M
    I

    hello,
          Try to drill down the report based on request ID and find out one record which has this inconsistancy...! then see the data in the CUBE based on that Req ID and PSA..! may be this way will help u out..!
           Check FS10N/MB5B/MB5L Tcodes in R/3 for reconcilation!
                 -EnjoySAP

  • Hide workitems in SBWP or raise error when execute in SBWP

    Actually I want to make sure that workitems of some tasks should be executed in UWL only. At the moment they appear in both inboxes. I had 2 different solutions in focus 1) Raise an error message when executed in GUI inbox (SBWP) or 2) hide those items in SBWP.
    Any ideas how this could be implemented?

    If user doesnt need the workitem to see in SBWP, then you could filter the workitem by BAdI- WF_BWP_SELECT_FILTER
    Else, if user need to see the workitem in SBWP but should not execute in SBWP,  then raise an error message (while executing from SBWP) and put back the workitem to Ready state, so it will not affect the workitem's status in UWL
    Vinoth

  • Malformed URL when executing task flow

    Dear Gurus,
    when executing a recently created task flow in my project,after authentication, I get a 401 error message. I have applied the authenitcated-role in my task flow in jan-data.xml file, so this error does not make sense.
    However, i have noticed that in the formed URL there is something strange. In the adf.tfId= part of the URL, the id of the task flow mentioned is different from the adf.tfDoc= part, where the actual XML file of the task flow is mentioned. The id of the task flow in adf.tfId belongs to another task flow.
    Below, the created URL is depicted
    http://127.0.0.1:7101/HERA-Gui-context-root/faces/adf.task-flow?adf.tfId=gui-authentication-flow&adf.tfDoc=/WEB-INF/advanced-authentication-flow.xml&_afrLoop=14818531247046&_afrWindowMode=0&Adf-Window-Id=w0&_adf.no-new-window-redirect=true
    When I manually change the adf.tfId to the id of the task flow I want to run, the task flow runs normally.
    Can somebody explain me what is wrong?

    Hi..
    Check whether here is some point to you
    http://cn.forums.oracle.com/forums/thread.jspa?threadID=1063589

Maybe you are looking for