SAP TDMS - Event related scrambling rule - Code example?

Hi experts,
I am currently working on an SAP TDMS project which requires me to develop some event-related scrambling rules. As this type of rule doesn't have parameters I'm having trouble understanding how to access the data. I tried to find an example in the forums and searching the internet but I wasn't successful.
Any help will be much appreciated.
Thank you.
Kindest regards,
Bruno Esperanç

This question was answered here:
http://forums.sdn.sap.com/thread.jspa?threadID=2130292&tstart=0

Similar Messages

  • Event-related scrambling rule type - Code example?

    Hi experts,
    I am currently working on an SAP TDMS project which requires me to develop some event-related scrambling rules. As this type of rule doesn't have parameters I'm having trouble understanding how to access the data. I tried to find an example in the forums and searching the internet but I wasn't successful.
    Any help will be much appreciated.
    Thank you.
    Kindest regards,
    Bruno Esperança
    Edited by: Rob Burbank on Feb 3, 2012 9:37 AM

    Hi Rupam!
    Yes, I am using TDMS 3.0.
    Thank you very much for your e-mail.
    I did not find standard package TDSAD. However, I did find include CNV_MBT_TDSAD_ADDR_SCRAM1 which has the code example for an event-related rule.
    Nonetheless, I do have a small concern. This rule was designed to be used by more than one table. Thus, there is a piece of code in the beginning which determines the object (table) that is currently being converted.
      IF g_wa_name IS INITIAL.
    * get receiver structure name of the current conv. obj.:
    *    CONCATENATE g_dmc_cobj_guid ' = ''' g_dmc_cobj_guid_val
    *      '''' INTO g_where_clause_dmc_cobj.
        CONCATENATE g_dmc_cobj_guid ' = ''' _GUID_COBJ
          '''' INTO g_where_clause_dmc_cobj.
        SELECT SINGLE (g_dmc_cobj_rcontainer) FROM (g_dmc_cobj_tabname)
            INTO g_dmc_cobj_rcontainer_into WHERE (g_where_clause_dmc_cobj).
        CONCATENATE g_dmc_stree_container ' = '''
          g_dmc_cobj_rcontainer_into''''
          ' AND' g_dmc_stree_seqnum ' = ''' g_dmc_stree_seqnum_val''''
          ' AND' g_dmc_stree_struclevel ' = ''' g_dmc_stree_struclevel_val
          '''' INTO g_where_clause_dmc_stree.
        SELECT SINGLE (g_dmc_stree_guid) FROM (g_dmc_stree_tabname)
            INTO g_dmc_stree_guid_into WHERE (g_where_clause_dmc_stree).
        CONCATENATE g_dmc_struct_stree ' = ''' g_dmc_stree_guid_into
             '''' INTO g_where_clause.
        SELECT SINGLE (g_dmc_struct_ident) FROM (g_dmc_struct_tabname)
            INTO g_structname WHERE (g_where_clause).
    *  select single ident from dmc_struct into g_structname
    *    where stree = ( select GUID FROM dmc_stree WHERE container =
    *  ( select RCONTAINER FROM dmc_cobj WHERE guid = _guid_cobj )
    *      AND seqnum = '0001' AND struclevel = '01' ).
        CONCATENATE '_WA_' g_structname INTO g_wa_name.
        ASSIGN (g_wa_name) TO <g_wa_name>.
      ENDIF.
    As you can see this has some selects in it, and I'm affraid these selects might be executed for each record of each table. So, in a performance point of view, this might not be so good...
    Is there a reason why I shouldn't use one rule per table, and therefore disregard this piece of code?
    Thank you very much!
    Bruno
    EDIT:
    From what I understood from the code, this is a code example if I assume I'm scrambling table ADRC:
    ASSIGN ('_WA_R_ADRC') TO <g_wa_name>.
    ASSIGN COMPONENT 'NAME1' OF STRUCTURE <g_wa_name> TO <g_name1>.
    Does this make sense to you?
    Thanks.

  • Replicate quickly an SAP TDMS HCM copy

    Madame and Sirs goodevening,
    I have this scenario:
    I implementented a SAP TDMS HCM - EXPERT scrambling scenario from my prod system (IE PRD) to quality system (IE: QUA).
    My question is:
    is possible in the future (next month?) re-execute only HCM - EXPERT package without set-up procedure (IE: SAP client copy customizing  +  TDMS package master data and customizing + TDMS package HCM - EXPERT)?.
    My goal is to reduce the processing time.
    In TDMS 3.0 release is not possible to automated the copy method. When will the new version available?
    Thanks a lot for your attention and cooperation
    Best Regards
    Massimiliano Biffi

    Hello
    Thanks a lot for your tips.
    what do you mean with "if you keep your landscape same you do not need to do everything"
    Custome wants,in tdms copy procedure from production system to quality systems (pay attention this is a purely HR landscape)  users and roles too.
    If I re-execute only HCM package I not transfer these data.
    In our  prototype system (HCM data from quality system to sandbox system) I re-execute only HCM package (re-execute not a new HCM package) and it worked fine but in our quality system there were not many activities (insert, update and so on).
    Thanks a lot for your attention and cooperation
    Best Regards
    Max

  • Event-related data scrambling

    When defining the scrambling rules, the rule type can be event-related.
    Could anybody here give some example events, i.e. we can scrambling data for what events?
    Thanks a lot!

    Hi David,
    Event related rule could be applied for more than one field at a time. It applies at the record level and we can change the contents of a complete record using a single rule. As it does not involve any specific field, we cannot add parameters for an event related rule.
    In case of event related rules enter the rule name and the step for each table. The u2018Stepu2019 defines the exact step in data transfer during which this rule should be applied. For scrambling it is usually EOR (end of record). Data transfer is carried out record by record within a loop.
    EOR means that conversion takes place inside the loop at the end of every record. The Steps field has a F4 help which lists all the possible events. The following is the complete list
    BOL u2013 Begin of Loop
    EOL u2013 End of Loop
    BOT u2013 Begin of Transaction
    EOT u2013 End of Transaction
    BOR u2013 Begin of Record
    EOR u2013 End of Record
    BOP u2013 Begin of Process
    EOP u2013 End of Process
    Hope this answers your query.
    Best Regards,
    Suman

  • Need Code Example to Call a SAP Remote Function from C#

    I'm looking for an example of how to call a SAP RFC from within a C#
    program.  I've tried numerous searches and have come up empty handed. If I have a function called "MyFunction" and it takes 1 input parameter and returns one output parameter (a table) how would it be coded.  I have been able to code the connection and it works so once the connection is established I need to call the funcation. Any pointers are really appreciated.   Environment is MS VS Developer 2003, Frameworks 1.1, SAP 4.6C  Here is the code so far.
    using System;
    using SAP.Connector;
    using SAP.Connector.Rfc;
    using SAP.Connector.Internal;
    namespace ConsoleApplication2
            /// <summary>
            /// Summary description for Class1.
            /// </summary>
            class Class1
            static void Main(string[] args)
                            SAP.Connector.Destination dest = new SAP.Connector.Destination();
                            dest.AppServerHost = "NAFTATEST01.SAP.INTRA";
                            dest.Client = 300;
                            dest.SystemNumber = 0;
                            dest.Username = "myusername";
                            dest.Password = "mypassword";
                            SAP.Connector.SAPConnection connSAP = new
    SAP.Connector.SAPConnection(dest);
                            using(connSAP)
                                    try
                                            connSAP.Open();
                                            Console.WriteLine("SAP Connection was opened...");
                                            connSAP.Close();
                                    catch(SAP.Connector.RfcException rfcEx)
                                            Console.WriteLine("SAP Connection was failed...");
                                            Console.WriteLine( rfcEx.Message
                                                    + rfcEx.StackTrace);
                                            Console.WriteLine();

    hi
    Create a “Windows Forms” application.
    Add an empty SAP Connection class with the ABAP functions
    RFC_CUSTOMER_GET and RFC_CUSTOMER_UPDATE.
    Leave the proxy designer open. Go to the SAP Proxy toolbox and drag the “Proxy field” icon to the designer.
    Rename the new “Field1” to “Tab”. Change the “Type” property to BRFCKNA1Table. To do this, use the drop down icon.
    Note that the ReadOnly property automatically changes to ”true” and the default value changes to “new BRFCKNA1Table()”.
    Add a second Proxy Field with the name “Filter”, the type “String” and the default value “A*”.
    Select the “Rfc_Customer_Get” function and click on the “…” button of the “Parameters” property.
    Set the default values of the three parameters with the drop-down icon as follows:
    Name1: Filter
    Kunnr: “” Customer_T: _Tab
    Save the proxy designer and switch to your Windows form. Add a TextBox, a Button and a DataGrid.
    Add an instance of your SAP proxy to your Windows form, add a “Destination” and set the “Connection” property as described in “A4”.
    Set the DataSource property of the datagrid to “sapProxy11”. Set the DataMember property of the datagrid to “Tab”. Alternatively you can set the DataSource to “sapProxy11.Tab” and leave the DataMember empty.
    For “textBox1” use the DataBinding feature to bind the “Text property” of the textbox to “sapProxy11.Filter”.
    Double-click the button to create an event handler and add a single line:
    “this.sapProxy11.Rfc_Customer_Get_();”
    You are using “sapProxy11” as a smart DataSet that contains the necessary state. You bind the state to the corresponding controls. The overload method Rfc_Customer_Get_() does not have any parameters, as the required state is already in the bound Proxy Fields.
    above statments from standard helpfile,and
    in my opinion you need
    datagrid1.datasource = yourtable
    regards
    ajai

  • Error in Mapping of Data for Scrambling Rule due to Inconsistency detected in Mapping Engine PIFD

    Hi all,
    We are performing an HCM Data scrambling, however, in Package Setting phase, we are encountering error in mapping of data for scrambling rule, saying there are inconsistency detected in mapping Engine PIFD.
    We have already implemented and checked below SAP notes, but still no luck.
    1854557 - Missing PIFD objects or mappings after LT AddOn install.
    1665861
    - TDMS 4.0 - Collective note for Scrambling
    Please advise how to fix the issue? Project is at stand still due to this.
    OSS message already opened.
    Thanks and regards,
    Philip

    Hi
    This is bug 5195315, which looks to be fixed in a 10.2 patch. If you can pick up the latest 10.2 patch there is like 3 years of fixes worth picking up.
    Cheers
    David

  • SAP Sybase ESP - Error: Invalid URI at Example: Using a Simple Web Services (SOAP) Input Adapter

    Hello all,
    we need our help regarding the StockTrader example project that is delivered with SAP Sybase Event Stream Processor (Sybase ESP 5.1).
    we want to build a simple Web Service and follow the instructions as described in the Sybase Infocenter. We have attached a screenshot ("Sybase InfoCenter") that contains the described steps (as copying the URL always lead to a wrong page).
    We have problems with Step 10 ("Start the ESP project by running the start_project.bat or start_project.sh script."). We get the error message "Invalid URI" as you can see in screenshot "[error] Invalid Uri". Previously we started the "start_node.bat" (Step 9) - see also screenshot "[error] Invalid Uri".
    Like in steps 6 and 7 mentioned, we have changed the parameters "USER" and "PASSWORD" of the adapter_config.xml files and the parameters "ADAPTER_EXAMPLE_USERNAME"and "ADAPTER_EXAMPLE_PASSWORD" of the
    set_example_env.bat files. Here, we were a bit confused wether we should change these parameters in all those files as there are 4 adapter_config.xml and 4 set_example_env.bat files. Please refer to the attached screenshot ("changed files").
    Does anyone know why this error occurs and how to continue to complete the Web Service?
    Later we want to push data with this Web Service into a SAP HANA database table.
    We are thankful for any input and help.
    Regards, Andreas

    Hello Neal,
    thanks a lot for your help.
    The solution for us was to change the column names inside Sybase ESP Studio to the column names in StockTraderMappings.xml.
    After compiling and running the project we could see the data and were also able to push it to SAP HANA.
    This is the CCL Code that worked for us:
    CREATE SCHEMA tradesSchema (
        transaction_buyerId INTEGER,
        transaction_sellerId INTEGER,
        transaction_supervisorIds INTEGER,
        transaction_tradeTime LONG,
        transaction_trades_amount INTEGER,
        transaction_trades_price FLOAT,
        transaction_trades_symbol STRING
    CREATE INPUT STREAM tradesIn SCHEMA tradesSchema;
    CREATE OUTPUT STREAM tradesOut SCHEMA tradesSchema
         AS  SELECT * FROM tradesIn;
    * mapFilePath is currently ignored and must be set via the mappingFile configuration parameter
    * in the given adapter configuration file (configFilePath).
    ATTACH INPUT ADAPTER Web_Services_SOAP_Input_Adapter TYPE soapinput TO tradesIn PROPERTIES configFilePath =
    'C:/Sybase/ESP-5_1/adapters/webservices/examples/input/adapter_config.xml' ,
    mapFilePath = 'C:/Sybase/ESP-5_1/adapters/webservices/examples/input/stockTraderMappings.xml' ,
    jdkHome = 'C:/Software/Java/jdk' ,
    discoveryWsdl = 'http://localhost:8080/axis2/services/StockTraderService?wsdl' ,
    discoveryWorkingDir = 'C:/tmp/adapter/soap' ,
    discoveryServiceName = 'StockTraderService' ;
    Regards, Andreas and Maik

  • Problem with scrambling rules

    Good afternoon, I have a problem with the conversion rules, when I transfer the employee does not take into account any of the scrambling rules, those made by me and with the rules that I copied by CNV_TDMS_HCM_SCRAM transaction. I understand that this conversion is performed in the task to prepare data transfer. Someone can give me an idea that I may fail to do. Somebody has documentation of Scrambling rules? Thanks in advance.
    Manuel Campos

    Thank you, when I execute the program wherever Phase or activity ID that I select, for example PC001_RULES_MAINTAIN
    It shows me this:
    Rules for packege 90042
    Rule Name                     Status         Active
    CNV_MBT_BOP             red              check
    INITIAL                           red             check
    MOVE                            red             check
    01_RVNUM_CK_DGT      red             check
    99_HR_PEVAL2              red             check
    99_PD_SEQ_NR             red             check
    ADDR_SCRAM1             green          check
    SAMP_SCR_DOM          red             check
    SAMP_SCR_FIELD        green          check
    In your package appear something like this?
    I used transaction CNV_TDMS_HCM_SCRAM to prepare and maintain customizing for
    scrambling at project or subproject level. And I made this:
    To use the SAP template, choose Copy from other Project. You can now copy a scramble
    definition. To copy the SAP template, input the following:
    Pack ID: TDHSC
    Project: *
    Subproject: *
    Process Type: R
    Select the "Get from client 000" checkbox .
    You can use a description prefix, for example SAP_, to easily identify elements. For
    example, if you use this prefix and the name of a scramble group in the template is
    HCM_DE_01, then after the copy the name is SAP_HCM_DE_01. This is useful for copying
    in add-on mode into an existing project, because it helps you to determine what was new
    from this copy.
    Then I tried to use this scrambling rules copied, but They doesn´t work.
    Thanks a lot for your help

  • ABAP Code example using "GENERATE DYNPRO"

    I am looking for ABAP code example who use the "Generate dynpro" dynamic generation of dynpro at runtime under SAP 4.6C version.
    Best regards,

    We have some programs that do:
    form %view.
    data: anz type i,
          prog like sy-repid.
      prog = sy-repid.
      perform init_download(rsaqexce).
      case %tab.
      when 'G00'.
        perform generate_view_dynpro(rsaqexce)
                using prog text-grl.
        describe table %g00 lines anz.
        tview100-lines = anz.
        perform init_view(rsaqexce) tables %g00 using tview100.
        call screen 100.
        perform reset_view_dynpro(rsaqexce).
      when others.
        message s860(aq).
      endcase.
    endform.
    I think they were copied from existing SAP programs. In any event, look at the relevant forms in program rsaqexce.
    And as Rich noted, SAP doesn't recommend this.
    Rob

  • SAP TDMS vs Accenture Clone and Test

    For our SAP HR implementation, we are using Accenture Clone and Test tool for our test data preparation. We are looking at whether TDMS is able to complement this in the refresh of the test system from Production.
    What advantages does TDMS have over Accenture Clone and Test?

    Hi Gordon,
    since I'm answering from SAP I will just mention some of the strengths of the TDMs HCM offering. Perhaps there's another customer with experience of both Accenture's Clone and Test and SAP's TDMS HCM who can help you more directly with your comparison question. We see some of our strengths in the following:
    TDMS HCM is completely integrated in the SAP TDMS basis technology allowing transfer of high data volumes. In a recent customer run, for example, 14,000 PERNRs along with PD, PA, payroll and time data were transferred in one run. Extensive scrambling was active during this. No portioning of this data was necessary.
    TDMS HCM is an SAP standard product and therefore fully supported by SAP. The customer feedback to this support has been positive.
    TDMS HCM offers simple process trees for each activity step and also sophisticated status management capabilities. Each activity can be thus protected by authorisations and is extensively logged.
    TDMS HCM offers a specific role and autorisation concept both at TDMS activity level and at SAP HCM level.
    TDMS HCM is a global solution providing country-specific content for data selection and data scrambling.
    Please don't hesitate to contact us directly if you need more specific information. Perhaps other forum users could help you with their impressions and experiences.
    Gerard White.

  • Compiler scrambles my code

    Hi all,
    Since i am a sdn-newbie, let me introduce myself very quickly.
    My name you can read, I am from Berlin, Germany and work as an HR consultant / developer.
    i have been watching the sdn in the last few weeks with a lot of interest and hope to be able to participate a lot in the future.
    My problem:
    we have a bsp-application which is supposed to be designed very differently from the normal htmlb-look. We used htmlb-elements (and custom css) where they were helped (event-handling, data binding) and worked with native html-elements and custom-css where we purely needed formatting.
    Now the problem is, that many times the compiler is thrown off and scrambles the code, putting stuff that is outside a bracket inside and so on. So the output html is a mess.
    Example:
    <table id='criterion_table'>
               <tr>
                <td align="left">
            <htmlb:textView text   = "Mitarbeiter"
                            design = "EMPHASIZED" />
            </td>
    is then output into:
    <table id='criterion_table'>
               <tr>
    <td>
            </<span ct="TextView" class="urTxtStd urVt1" style="white-space:nowrap;">Ricky Ratlos</span>td>
    Now I would think that the system is not working properly. Or could it be that handling html and htmlb is a general issue in BSP?
    Cheers,
    Michael

    Hi Vijay,
    you are right, the code is incomplete. I thought it would be more of a general issue.
    So here's the complete code of the table. Not of the page, because that seemed to a "method not implemented from the forum". I will not put the output source, not to bloat this post too much. I believe you got the general idea.
          <htmlb:form>
            <table id='criterion_table'>
               <tr>
                <td align="left">
            <htmlb:textView text   = "Employee"
                            design = "EMPHASIZED" />
            </td>
            <%
      loop at lt_scale into lw_scale_item.
            %>
            <td width="40">
            <%
      i_value = lw_scale_item-VALUE_IID.
            %>
            <htmlb:textView text   = "<%= i_value %>"
                            design = "EMPHASIZED" />
            </td>
            <%
      endloop.
            %>
            </tr>
            <%
      loop at lt_app_docs INTO lw_app_doc.
            %>
            <tr>
            <td>
            <htmlb:textView text="<%= lw_app_doc-APPRAISEE_NAME %>" />
            </td>
            <td align="center" colspan="5">
            <htmlb:radioButtonGroup id = "<%= lw_app_doc-appraisee_id %>"
                           columnCount = "5" >
              <%
      loop at lt_scale into lw_scale_item.
              %>
              <%
      i_value = lw_scale_item-VALUE_IID.
              %>
              <htmlb:radioButton id      = "<%= i_value %>"
                                 />
              <%
      endloop.
              %>
            </htmlb:radioButtonGroup>
            </td>
            </tr>
            <%
      endloop.
            %>
            </table>

  • Error relating a company code to a valuation plan

    Hello,
    I am trying to relate my company code to a valuation plan in OAOB transaction but it appears the error AC551. I have checked it and I don´t know where could I enter the value for VAT indicator for nontaxable transactions.
    Could you help me with this issue?
    Thanks a lot!

    Hello
    The result of the check of company code  shows that important global
    parameters from Financial Accounting are missing for Asset Accounting.
    One or more of the following fields are affected:
    Currency
    Chart of accounts
    Fiscal year version
    Input tax indicator for non-taxable transactions
    You cannot use the company code for Asset Accounting without this information.
    Please check input tax code for non-tax relevant postings
    (for example depreciations) can no longer be maintained via
    IMG -> Fin. Accounting -> Asset Accounting
    Maintenance is done via the IMG using the following path:
    Financial Accounting -> Financial Accounting Global Settings -> Tax on
    Sales/Purchases -> Posting -> Allocate tax codes for non-taxable
    transactions or transaction OBCL. Note 47055 is for your reference.
    regards
    Ray

  • How to upload company code data related to Company Code BP01?

    How to upload company code data related to Company Code BP01 FOR CIN?

    Hi,
    First check whether all the pre-requisites are completed.
    I'm assuming you have installed the Best Practices Baseline package (for country IN). If you have succeeded in actvating the buildig blocks (as per your scope) using Solution Builder, you would have populated all the company code data related to Co. code BP01. Looks like some steps are missing.
    Please refer to the OSS note 1408706 in this regard. From there, you also can refer to the "Quick Guide to Implementing the SAP Best Practices Baseline Package V1.604 (DE), which is self-explanatory. 
    Let me know if this helps.

  • SAP TDMS add on setup on central/control , sender and reciever systems

    I found that SAP TDMS is shipped in the following add-ons:
    DMIS: Contains general functions, for example for the process monitor and for the technical data transfer
    DMIS_CNT: Contains TDMS-specific functions and some of the process types
    DMIS_EXT: For various additional process types (reduction scenarios) for SAP TDMS; currently, it contains only the process   type for business process library
    DMIS_BSC: For the process types to be used with SAP BI or CRM systems
    DMIS_HR: For the process types to be used in the context of SAP Human Capital Management (HCM)
    I have read TDMS master guide under section 3.4.1 Setting up the TDMS Server. There is a reference to SAP Note 970531 which is for DIMS setup and there is also reference to SAP note 970532 which is for DMIS_CNT setup.
    I would like to know if DMIS_EXT,DMIS_BSC and DMIS_HR need to be setup on TDMS central/control server , sender and reciever or only need to be setup on central/control server for respective scenario realization.
    Best Regards
    Mohammed Ashraf

    All the add-on components need to be installed in all the system (sender, receiver, central, control) in the landscape.

  • Code example using interface controller ?

    Hi, guys:
    I have a question.
    In CRM UI, I need to integrate one component with another component, and I want to pass the value from 1st component to 2nd component using interface controller. Does any one who have done this before and have a code example?
    Really appreciate!
    Eric

    Hi Eric,
    Refer:
    [http://forums.sdn.sap.com/thread.jspa?threadID=2014259|http://forums.sdn.sap.com/thread.jspa?threadID=2014259]
    [http://forums.sdn.sap.com/thread.jspa?threadID=1909625|http://forums.sdn.sap.com/thread.jspa?threadID=1909625]
    Regards,
    Leon

Maybe you are looking for