Enhancing evaluation path with custom code

Hi,
like described in another discussion I have the following task to solve:
I was setting up an org structure with companyname (O)- spain (O) - valencia (O) - engineer (S)-James(P), created a work center and assigned the organisational element on the level of valencia to it in hrms.
I found the evaluation path P-S-O fits for my needs to see that (starting with) james is an engineer in valencia and I will try to get also the work center in the way it is described here: Evaluation path with P-S-O + work center
Evaluation pathes seem to be pretty cool to use and efficient. I am wondering now how far the evaluation pathes can be extended. In the described process there are also WBS elements involved. They are linked to the work center with the help of the partner schema in the wbs element. The quesion is if it is possible to make a own evaluation path element (or to choose the wbs datatype) and have a user exit to get the wbs elements that are connected as partners to the work center also in the path? How can I find out how to solve this and if there are any user exits (or other mechanism) that give me the flexibility to take the evaluation path beyond the standards I can do without development.
Greetings, Vanessa

Hi Omid,
I would like to have all necessary values in one evaluation report for development. In this way I don't need to go over several tables in the abap development ... instead I am able to use the evaluation path in several ways. One of these things is to include the WBS elements.
Greetings, Vanessa

Similar Messages

  • Generating a blank document with custom code

    Is there a way I can generate a blank document with custom code in it?  I have been looking at several methods of doing this but so far I have been unsuccessful.  So any assistance here would be appreciated.  This is for an extension I am currently working on.
    Many thanks

    This is a public forum; please do not post your email address or other private data (by sending the forum notification with all its headers back to the forum).

  • Problem with custom code in infoset query

    Hi,
    I have created a infoset. In the infoset i added a few additional fields and wrote code in the field code for those fields. I saved and generated the infoset. But in the output of the query, i am getting blank values for those additional fields. When i checked the generated program (SE38), the code is not present in the program.
    If anyone has encountered a similar problem and resolved it, please let me know where i am going wrong.
    Thanks.

    Hello,
    After adding the code for additional fields in Infoset, please syntax check and then activate the Infoset. Then the program will be regenerated with your custom code.
    Thanks,
    Venu

  • Enhance search functiponality with custom fields

    Hi Experts,
    I want to enhance component PRD01QR/Search with custom field in order to allow seraching for it. It is enhanced via set type. Please could you send me steps how to dpo it?
    Thanks,
    Juraj

    Hello,
    Maybe this helps:
    http://scn.sap.com/thread/3151887
    Best regards,
    Thomas Wagner

  • How to get value in previous column and another row from Matrix with Custom Code?

    I want to calculate the value of tb_Open and tb_Close. I try to use custom code for calculate them. tb_close is correct but tb_Open is not correct that show value = 0 .
    This is example report:
    * I have 2 Dataset , Dataset1 is all data for show in my report. Dataset2 is only first Open for first month
    * First value of Open is item field in Dataset2 and this value only for first month (january). But for other month Open value get from Close in previous month.
    Detail for Red number:
    1. tb_Open -> tb_Close in previous month but first month from item field in Dataset2
    expression =FormatNumber(Code.GetOpening(Fields!month.Value,First(Fields!open.Value, "Dataset2")))
    2. tb_TOTAL1 group on item_part = 1
    expression =FormatNumber(Sum(CDbl(Fields!budget.Value)))
    3. tb_TOTAL2 group on item_part = 3 or item_part = 4
    expression =FormatNumber(Sum(CDbl(Fields!budget.Value)) + ReportItems!tb_TOTAL1.Value )
    4. tb_TOTAL3 group on item_part = 2
    expression =FormatNumber(Sum(CDbl(Fields!budget.Value)) - ReportItems!tb_TOTAL2 .Value)
    5. tb_Close -> calculate from tb_TOTAL3 - tb_Open
    expression =FormatNumber(Code.GetClosing(ReportItems!tb_TOTAL3.Value,ReportItems!tb_Open.Value))
    My custom code:
    Dim Shared prev_close As Double
    Dim Shared now_close As Double
    Dim Shared now_open As Double
    Public Function GetClosing(TOTAL3 as Double,NowOpening as Double)
        now_close = TOTAL3 + NowOpening
        prev_close = now_close
        Return now_close
    End Function
    Public Function GetOpening(Month as String,NowOpen as Double)
        If Month = "1" Then
            now_open = NowOpen
        Else    
            now_open = prev_close
        End If
        Return now_open
    End Function
    Thanks alot for your help!
    Regards
    Panda A

    Looks okay to me.
    Perhaps the variables should be declared as public (?)

  • Enhance Material Master with custom tables

    Hi MM Gurus,
    I would like to enhance the material master data (transactions MM01/2/3) with a new tab (screen) containing some customer fields and Z tables?
    I’ve been looking the follow <a href="http://help.sap.com/saphelp_erp2005/helpdata/en/ff/516a6749d811d182b80000e829fbfe/frameset.htm">SAP Help link</a>, “Integration of New Tables in the Material Master”, and SAP Note 44410, but still is not very clear to me how to achieve my goal.
    Can anybody tell me all the steps that I’ve to perform to do that?
    Do you know any other documentation about this issue, like a how-to guide for instance, that I can use?
    Thanks a lot for any help!
    Alexandre

    Hi,
    Firstly I would suggest that you do not do this unless you ABSOLUTELY have to.
    It is not a major modification but there is another more standard way to add fields to material masters and no modification or user exit is required.
    Simply classify the materials and use a characteristic for each additional field you want to add.
    The classification system is very flexible and very powerful and so it can easily handle complex data and interactions with other data. You can add multiple classes and so use whole groups of data. There is also a lot of standard validation as to field contents etc. (Including tables of possible entries etc.)
    So please do consider using classification first (even if you already use classification of your materials). You can also then use the standard search functions on any of the new "fields" .
    No ABAP, No modification and available now !
    Worth considering?
    Steve B

  • Help with custom code in ZTIGather.wsf

    To pick up WMI "version" info to deal with Lenovo computer models I found this code and integrated it by adding these lines to ZTIGather.wsf:
    ABout line 542:
    oEnvironment.Item("LenovoModel") = sLenovoModel
    About line 383
            ' Get the Lenovo Model Version from the Win32_ComputerSystemProduct class
            ' Siva Mulpuru | 10:30 PM Monday, February 14, 2011        
            Set objResults = objWMI.ExecQuery("select * from Win32_ComputerSystemProduct")
            For Each objInstance In objResults
                sLenovoModel = objInstance.Version
            Next
            if sLenovoModel = "" then
                oLogging.CreateEntry "Unable to determine LenovoModel tag via WMI.", LogTypeInfo
            End if
    The code works as intended, and appears to present no problems when imaging from a USB stick, however, when running a standalone image media or trying to launch the wizard from LiteTouch.wsf, the wizard starts and hangs on the initialization step.
    If I remove the additional code from ZTIgather.wsf the issue disappears. Looking at the code, does anyone have any ideas?
    sd

    To pick up WMI "version" info to deal with Lenovo computer models I found this code and integrated it by adding these lines to ZTIGather.wsf:
    ABout line 542:
    oEnvironment.Item("LenovoModel") = sLenovoModel
    About line 383
            ' Get the Lenovo Model Version from the Win32_ComputerSystemProduct class
            ' Siva Mulpuru | 10:30 PM Monday, February 14, 2011        
            Set objResults = objWMI.ExecQuery("select * from Win32_ComputerSystemProduct")
            For Each objInstance In objResults
                sLenovoModel = objInstance.Version
            Next
            if sLenovoModel = "" then
                oLogging.CreateEntry "Unable to determine LenovoModel tag via WMI.", LogTypeInfo
            End if
    The code works as intended, and appears to present no problems when imaging from a USB stick, however, when running a standalone image media or trying to launch the wizard from LiteTouch.wsf, the wizard starts and hangs on the initialization step.
    If I remove the additional code from ZTIgather.wsf the issue disappears. Looking at the code, does anyone have any ideas?
    sd
    Editing post...
    So at first I was just using the downloaded copy from the site where I got the code and realized that the ZTIGather.wsf versions were different.
    Just editing the correct version of the file gets passed the above, but then it hangs on "Getting local computer information: Asset Information" I know its choking on the code somehow as the WMI function referenced in my original message comes right after
    getting the asset info.

  • Enhance standard class with event handler method

    In trying to enhance a standard class with a new event handler class, I find that the ECC 6.0 EHP4 system does not appear to recognise the fact the method is an event handler method.  The specific example is a new method to handle the event CL_GUI_ALV_GRID->USER_COMMAND. 
    I notice that the flag called Active has not been ticked - see image below.  Perhaps this is the reason why the event handler is not being triggered.
    Note that there is an event handler for the same event in the standard class which obviously is executed as expected.  Any ideas on limitations in the system or I am missing a step?
    Thanks
    John

    Thank you for your replies.
    There is a bug in the ALV handler of a standard SAP class (when executed in ITS WebGUI) and I was hoping to create a custom event handler as an Enhancement to execute some custom code to sort of "handle the bug". 
    I agree - ideally it should be done in a Z class but that will not give me access to the object methods and attributes of the enhanced class.
    Cheers,
    John

  • Custom code dll as a data source for an SSRS report

    I'm trying to create a report which relies on using some custom code written in VB.net. I am using the custom code to access the Server Management Objects SMO API in MSSQL 2012. I am able to supply an MSSQL object name (a database table
    for example)and then return a list of dependant objects using the dependency walker class (stored procedures, triggers, UDF's, other tables etc.) which rely on the parent object if you will. I am able load the results into a dataset in the custom code. My
    question is how can I get that dataset to be consumed as a data source and appear in my report. I've read many articles on how to use scripts to supply values for various report property settings. I just haven't seen an example of using a dll
    to supply a dataset. I am assuming it is possible. Any thoughts or advice would be appreciated. Cheers     

    Hi mdmck,
    According to your description, you want to create an SSRS report with custom code as data source, right?
     To use custom code in Reporting Services, we need to add a reference to your custom assembly, create a new CodeGroup for your custom assembly, and then grant full trust permissions. For detail information, please refer to the following steps:
    Open the report that will reference the custom assembly.
    On the Report menu, click Report Properties.
    In the Report Properties dialog box, click the References tab.
    Under References, click the ellipsis (...) button that is next to the Assembly name column header.
    In the Add References dialog box, click Browse.
    Locate and then click the custom assembly. Click Open.
    In the Add References dialog box, click OK.
    In the Report Properties dialog box, click OK.
    If the custom assembly requires more permissions than the default Execution level permissions, we need to create a new CodeGroup for your custom assembly, and then grant full trust permissions.
    Here are relevant threads you can reference:
    https://social.technet.microsoft.com/Forums/en-US/c297bddc-c33c-4386-b284-41c1d87f37c6/custom-dlls-in-ssrs-reports?forum=sqlreportingservices
    https://social.technet.microsoft.com/Forums/en-US/27de3f46-5174-480d-b4d1-5e32772dae35/ssrs-2005-custom-code-shared-data-source-connection-string?forum=sqlreportingservices
    For more information about How to use custom assemblies or embedded code in Reporting Services, please refer to the following document:
    https://support.microsoft.com/kb/920769?
    If you have any more questions, please feel free to ask.
    Thanks,
    Wendy Fu
    If you have any feedback on our support, please click
    here.
    Wendy Fu
    TechNet Community Support

  • Issue with Evaluation Path

    Hi All,
    I had created one Evaluation Path P-P.
    I want to retrieve all employees who are reporting to a particulat employee...
    ex: A is the manager
    B , C, D are team leads.
    Again B is having 2 more employees.. B1,B2...
    So when we execute for employee A all the B,C,D,B1,B2 need to be displayed. and I created the ZTEST ev path..
    code of EV:
    P B 008 S -> Geeting 'a' position
    S B 005 S  -> getting A' sub-ordinates positions
    S A008 P ->  sub-ordinate positions
    and it is succesfully executed in PPSS..
    i HAVE WRITEN A SAMPLE PROGRAM to test that...
    eX:
    GET OBJEC.
    WRITE: OBJEC-OTYPE , OBJEC-OBJID.
    but system is going infinite loop and giving the following error...
    "\FUNCTION-POOL=RHAS\DATA=STRU_VERK[]"
    Let me know whats wrong here.. and more over issue is person to person retrieve is not possible?
    Regards
    Sas

    Hi.
    What's wrong is this:
    P B 008 S -> Geeting 'a' position
    S A008 P -> sub-ordinate positions
    You are using two opposite links in the same WEGID, so this is what leads to the infinite loop. You should get rid of the first one and always start to evaluate with the current position of the manager.
    S B 005 S -> getting A' sub-ordinates positions
    S A008 P -> sub-ordinate positions

  • BPC5.1 - Data manager package to Stored proc with custom return codes

    Hi all,
    Does anyone have experience passing the return codes from a stored procedure back into the eData "view status" package progress or event log details?
    When my stored procedure throws errors, the offending SQL code shows up in the pacakge details, which is helpful. But what I'd really like is to structure my stored proc with return codes
    0 = everything's wonderful
    1 = invalid category / time combination
    2 = unauthorized
    3 = no data to process
    And then handle these codes as either "completed" "warning" or "error" in the package progress.
    And ideally, I'd like to put some meaningful message about the warnings & errors, directly into the log details, so the user can fix the problem themselves rather than ask the IT guy to trouble-shoot.
    Any tips? I've started playing with using the on-complete, on-success, on-failure routing of different tasks within the DTSX package (SQL 2005), but I'm just working on a trial-and-error basis right now. (With # of errors = # of trials.)
    Thanks,
    Tim

    In case anyone's interested, I've solved this by tracking my return codes as a package variable.
    Within the package, I have conditional logic moving from task to task, evaluating the return code to check for various conditions, and selecting which tasks to perform accordingly.
    In the last task, I run a final stored procedure which posts some data (completion time & status) to a custom transaction log table, and then if the return code is not zero, I script and execute some SQL which I know will throw a "fake" error. The SQL statement itself includes the key information I want the end user to see. For example
    Select InvalidEntitySelection [USEast1],TransactionID [12340]  from ThisTableDoesntExist
    Select UnauthorizedUser [Tim], TransactionID [12345] from ThisTableDoesntExist
    Select WorkStatusIsLocked [USEast1 Actual 2008], TransactionID [12345] from ThisTableDoesntExist
    It's not exactly elegant, but it gets the message across, which is all that I need. In this way, the end user sees that the package failed with an error, and when they look at the package details, they can see the problem. They can pass on the transaction ID to an administrator to look into the details, if they can't figure it out on their own.
    Sorin, I never managed to figure out how to use a VB task to send the information back to the user, plus force the package to end in an error. I'm sure there's a way to do so, but this seems to work for my requirement.
    I'm not entirely happy with the "fake error" approach, but I don't know if BPC has any support for "intentional" programming of errors in the DTS scripting toolset.
    Thanks,
    Tim

  • Regarding Customized evaluation path in OM

    Hi experts,
    This is Prasanna. i have created customized relationship as "HAS TALENTED PARTICIPANT" and evaluation path as "AZTI".i have assined this relationship between two object types that are D(course type) and P(person). In PP01 transaction i tried to save the record using this relationship.but there i am getting one issue that is showing below
    "ERROR WHILE ADDING".
    my evaluation path and relation ship showed successfully in ALLOWED RELATIONSHIP option.please help me to rectify this issue.
    Thanks and Regards,
    M.L.Prasanna

    Hi Prasanna,
    Please check whether your custom relationship has been maintained for object type or not for which you need to maintain this relationship.
    Path to check:- SPRO > PM > OM > Data model enhancement > Relationship maintenancee > Maintain relationship > Allowed relationship
    Revert for further clarification.
    Regards,
    Purnima

  • Writing custom code to interact with captivate soundHandler

    The end goal of this is to design a Flash Avatar that I can plop into a captivate simulation, that Avatar will have moving lips while sound is going, and none when there is no sound.
    Been swimming through flash debug of Captivate objects and looking at the .as files for the soundhandlers but can't seem to get access....I realize this is probably not something anyone really bothers with.
    Anyways, if anyone has done custom code work like this please me out thanks!

    hi Anurava,
    create generic extraction, see
    http://help.sap.com/saphelp_nw04/helpdata/en/3f/548c9ec754ee4d90188a4f108e0121/frameset.htm
    the way we enhance generic datasource is just same as business content, enhancement RSAP0001 is used.
    yes, it should be delta-enabled, check doc how to generic delta
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/84bf4d68-0601-0010-13b5-b062adbb3e33
    http://help.sap.com/saphelp_nw04/helpdata/en/37/4f3ca8b672a34082ab3085d3c22145/frameset.htm
    generic extraction using function module, take a look Siggi's weblog
    /people/siegfried.szameitat/blog/2005/09/29/generic-extraction-via-function-module
    http://help.sap.com/saphelp_nw04/helpdata/en/86/1c8c3e94243446e10000000a114084/frameset.htm
    sample code can see in RSAX_BIW_GET_DATA_SIMPLE
    hope this helps.

  • Report RHSTRU00 with Evaluation Path BOSSORG is not working

    Hello Friends,
    I am trying to run the Report RHSTRU00 with Evaluation Path BOSSORG  and it never produces output. If I run the report with any  other Evaluation path,it works......
    Can anybody help me in this issue,
    Thanks
    Kisu

    solved on own.

  • The Cluster Service function call 'ClusterResourceControl' failed with error code '1008(An attempt was made to reference a token that does not exist.)' while verifying the file path. Verify that your failover cluster is configured properly.

    I am experiencing this error with one of our cluster environment. Can anyone help me in this issue.
    The Cluster Service function call 'ClusterResourceControl' failed with error code '1008(An attempt was made to reference a token that does not exist.)' while verifying the file path. Verify that your failover cluster is configured properly.
    Thanks,
    Venu S.
    Venugopal S ----------------------------------------------------------- Please click the Mark as Answer button if a post solves your problem!

    Hi Venu S,
    Based on my research, you might encounter a known issue, please try the hotfix in this KB:
    http://support.microsoft.com/kb/928385
    Meanwhile since there is less information about this issue, before further investigation, please provide us the following information:
    The version of Windows Server you are using
    The result of SELECT @@VERSION
    The scenario when you get this error
    If anything is unclear, please let me know.
    Regards,
    Tom Li

Maybe you are looking for

  • How do I open zip files on MacBook Pro?

    I've been trying to open .zip files, but when I do, I get a .exe file instead, and I can't open that either, when I do I get a text file with a bunch of random symbols and letters.

  • Sender Mail Adapter Content Conversion

    Hi All,      I just want to know if we can send a flat file(Rather Than the XML) with content conversion using Mail Adapter. If yes then what are all the possible ways for this. I have tried but i am sucessful in sending the complete payload as a XML

  • Mac OS 10.9 Maverick -- no "open in new window" option

    Upgraded to the new Mac 10.9 Maverick and now there are no "open folder in new window" option, or at least it doesn't work. Please advise. Thanks!

  • Runtime Exception: CX_SY_DYN_CALL_ILLEGAL_TYPE

    Hi,    In SRM Functional during creation of internal Catalog, when I tried to Add myself as Manage Approvers (to approve Master Catalog Schema) I get this BSP error CX_SY_DYN_CALL_ILLEGAL_TYPE exception. Unless I add myself to Approvers list to appro

  • CD's aren't burning correctly

    When I burn audio cd's all but the last couple of songs are burning on the disc and an error message pops up saying: The attempt to burn a disc failed. The device failed to respon properly, unable to recover or retry. Any help would be greatly apprec