Comment out code in Update Rule

Hello,
Quick question.
How do I comment out code in the update rule?  I need to comment out a large amount of code for testing purposes.
Thanks,
Sheila

Hi Sheila
Go to Update rule code (routine) ->> select the code you want to comment out with mouse ->> then go to top menu Utilities -> Block/Buffer-> Insert Comment *
This will comment out the code that you had selected.
Regards
Pradip
(don't forget points)

Similar Messages

  • Commenting out code in TrueCode mode deletes code

    We used RoboHelp X3 and was trying to comment out specific
    sections of a code by moving over to the True Code view and
    commenting them out following the usual HTML standards/conventions.
    However, we found that when we saved the project, generated the
    file, and opened the topic(s) from the source project next time,
    the sections that we had commented out had actually got deleted.
    Could you please help me with this? Is there a specific way to
    comment out code in RoboHelp?

    (I began the earlier reply before I knew what I wanted to
    say).
    Is it possible that when those particular lines are commented
    out, the result is a syntax error in the remaining html or js code?
    Also, consider that html and js code techniques have come a
    long way since X3. Maybe your code is technically correct now, but
    X3 doesn't know it.
    Good luck.
    Harvey

  • [svn:fx-trunk] 10065: Comment out code causing an RTE in SWFLoader.

    Revision: 10065
    Author:   [email protected]
    Date:     2009-09-08 13:14:26 -0700 (Tue, 08 Sep 2009)
    Log Message:
    Comment out code causing an RTE in SWFLoader. Will fix as part of per-module styles feature development.
    QE notes: None.
    Doc notes: None.
    Bugs: SDK-23081
    Reviewer:
    Tests run: checkintests
    Is noteworthy for integration: no
    Ticket Links:
        http://bugs.adobe.com/jira/browse/SDK-23081
    Modified Paths:
        flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/SWFLoader.as

    Hello, first post here..
    I maintain a java based lobby for an opensource RTS
    engine called spring at http://taspring.clan-sy.com
    You can find my lobbys source code at:
    https://taspring.clan-sy.com/svn/spring/trunk/AFLobby/
    Of note being the unitsync.dll/so library used to
    handle mods and maps. Implementing this library in
    pure java is not an option.
    I've dealt with quite a few JNi errors dealing with
    the linux users but we got through them all and it
    all worked great.
    I released a windows installer, and most users can
    run it fine with no issues with JNI, but 2 users seem
    to have problems, despite correctly installing
    everything.Does the JNI code use perl?
    This error message shows several hits on Google for perl related stuff.

  • ABAP code in update rules to convert the date

    Hi,
    Could any one send me the ABAP code that is written in the update rules to convert the date (DD/MM/YYYY  -- lenght 10) to YYYYMMDD ---  length 8  format.
    Also please let me know where I should write this code; while creating update rules or while creating infosource.
    Thanks,

    Hi Bharath,
    Hi Bharath,
    I suggest you do the conversion of dates in the transfer rules. Here is the correct code you need:
    * Assuming the source data field is called MYDATE
    * Place the ff. in the routine in the transfer rules:
    concatenate tran_structure-mydate+6(4) tran_structure-mydate+3(2) tran_structure-mydate(2) into result.
    replace MYDATE with the name of the source field (10 chars) in the transfer structure. Hope this helps.

  • URGENT !!! - ABAP code in update rule

    Friends,
    With my limited knowledge in ABAP, I need some help from the forum.
    I need to create a routine in update rule to capture 'date of last GR against a PO delivery schedule'. Let's say
    PO # 1234
    IT # 10
    SCL # 1
    There are multiple partial deliveries against SCL # 1 above and I have to capture the last delivery date and subsequently the last invoice date. If I try to set the rule to capture the 'posting date' based of 'transfer type'  - the GR date field gets overwritten by the last invoice date (the date of last activity). My requirement is to separate the two i.e.
    1) Date of last GR against PO - Item - SCL line
    2) Date of lasr INV against PO - Item - SCL line
    Can any one help me with the code ???
    Thanks,
    AK

    Hi,
    check the following link, gives an example of an update routine.
    http://help.sap.com/saphelp_nw70/helpdata/en/80/1a64fae07211d2acb80000e829fbfe/frameset.htm

  • Sample code in Update Rule to restrict data selection?

    We used to restrict data selection in InfoPackage data selection, e.g., for company code range when loading data from a source system (e.g. EBP which is similar to R3), but somehow the company code range we set in InfoPackage data selection not working and we found actually it occurs on the source system side when running RSA3 on EBP side and input the company code range in RSA3 selection section, but still it extracts data beyond the company code range.  We don't understand why EBP data selection doesn't work, then we consider in update rule on BW to set the company code range.  We know in update rule, we can select Start Routine, formula, or routine to set the company code range.  But we would be appreciated if experts here can recommend which one is the most efficient to load data fast for data load performance reason and would be appreicated if you can let us know the sample code!
    Thanks in advance!

    hi Hari,
    I copy the whole code of the start routine below:
    PROGRAM UPDATE_ROUTINE.
    $$ begin of global - insert your declaration only below this line  -
    TABLES: ...
    Includes to update generic objects
    INCLUDE rsbctgn_top .
    INCLUDE rsbctgn_update_rules .
    INCLUDE rsbctbbp_generic_objects.
      The following section is prepared for you if you compound
      the business partner 0BPARTNER with the
      Source System 0BBP_SYS_BP or if you compound the organizational
      Unit 0ORGUNIT with the source System 0BBP_SYS_BP
    TYPE-POOLS: RRSV.
    Data: L_HLP_CHAVL_CMP       TYPE RSCHAVL.
    DATA:
           L_S_DEP       TYPE RRSV_S_DEP,
           L_T_DEP       TYPE RRSV_T_DEP.
      End of compound
    DATA: l_s_errorlog        TYPE rssm_s_errorlog_int,
          l_hlp_chavl         TYPE rschavl.
    $$ end of global - insert your declaration only before this line   -
    The follow definition is new in the BW3.x
    TYPES:
      BEGIN OF DATA_PACKAGE_STRUCTURE.
         INCLUDE STRUCTURE /BIC/CS0BBP_CONF_TD_1.
    TYPES:
         RECNO   LIKE sy-tabix,
      END OF DATA_PACKAGE_STRUCTURE.
    DATA:
      DATA_PACKAGE TYPE STANDARD TABLE OF DATA_PACKAGE_STRUCTURE
           WITH HEADER LINE
           WITH NON-UNIQUE DEFAULT KEY INITIAL SIZE 0.
    FORM startup
      TABLES   MONITOR STRUCTURE RSMONITOR "user defined monitoring
               MONITOR_RECNO STRUCTURE RSMONITORS " monitoring with record n
               DATA_PACKAGE STRUCTURE DATA_PACKAGE
      USING    RECORD_ALL LIKE SY-TABIX
               SOURCE_SYSTEM LIKE RSUPDSIMULH-LOGSYS
      CHANGING ABORT LIKE SY-SUBRC. "set ABORT <> 0 to cancel update
    $$ begin of routine - insert your code only below this line        -
    fill the internal tables "MONITOR" and/or "MONITOR_RECNO",
    to make monitor entries
    delete data_package where 0comp_code < 'X300' OR 0comp_code > 'X6ZZ'.
    if abort is not equal zero, the update process will be canceled
      ABORT = 0.
    $$ end of routine - insert your code only before this line         -
    ENDFORM.

  • Code in update rule

    Hi Guru's
    Can anyone explain in detail the meaning of the code blow in update rule.
    <b>tmpwk TYPE /bic/cs8ismactp-calweek,
    botwk TYPE /bic/cs8ismactp-calweek,
          first_rec VALUE 'T',
          var_maxline TYPE i,
          var_country(2) TYPE c,
          ret_code TYPE i,
          out_value TYPE /bic/cs8ismactp-/bic/g_pivpri.</b>
    Thanks in Advance
    Regards
    K Kumar

    Hi Sam,
    the code is below
    <b>result value of the routine
      IF COMM_STRUCTURE-/BIC/G_NOFAC = COMM_STRUCTURE-/BIC/G_RENOF.
        RESULT = 1.
      ELSE.
        RESULT = 0.
      ENDIF.
    if abort is not equal zero, the update process will be canceled
      ABORT = 0.</b>
    Regards
    Venkat

  • Commenting Out Library Code

    When a Library item is inserted into an html document, it automatically adds some commenting out code
    <!-- #BeginLibraryItem "/Library/footer.lbi" -->
    <!-- #EndLibraryItem -->
    but still appears in Design View (which is expected). There are times when I don't want the actual Library item (a footer in this case) to be visible in Design View, and simply applying an html comment doesn't work (I assume because you are basically trying to double comment the code). So the question is: is there another way to temporarily hide a library item from appearing in Design View? The reason I'm asking this (and maybe there is another underlying issue) is because looking in Design View, the footer appears in the middle of hte page, but renders properly when previewing in either Live Mode or previewing in browser.
    Design View: the red outline shows where the library item (footer) appears - in the middle of the design view area - worth noting, I work in Split view (with code on top, preview on bottom), so maybe that has something to do with not rendering items properly on screen?
    Live View or Browser Preview:
    I don't know if this is happening because of CSS styles of possibly some html code or maybe even an underlying issue somewhere else. This is more irritating than anything else. Does anyone have a clue what might be going on?
    To add: the only way I am currently able to temporarily hide the footer library item is to open the library item, comment out that code, then update all pages (which is a pain for when I need to go back and forth)...

    If this helps, I've uploaded what I think is enough to see what I'm facing.
    As an FYI, your page content falls out of the box when end-users increase default text-size in their browsers (Firefox, View >  Zoom > Zoom Text Only), hit Ctrl+++.
    See screenshot below where I've highlighted dark text on dark background to be visible:
    Height: value in pixels is a restriction in all browsers except IE.  If needed to reveal a background image, use values in ems or the min-height property with Conditional Comments for pre-IE7 browsers.
    CSS:
    #homeContent {
        position: relative;
        width: 892px;
       min-height:400px;
    Conditional Comment:
    <!--[if lt IE 7]>
    <style type="text/css">
    #homeContent {
    height: 25em
    </style>
    <![endif]-->
    Nancy O.
    Alt-Web Design & Publishing
    Web | Graphics | Print | Media  Specialists 
    http://alt-web.com/
    http://twitter.com/altweb

  • Function Module where-used list does not find update rule programs

    We have function modules called in update rules. The where-used list in the function builder does not find the update rule programs.
    For example, function DATE_GET_WEEK is called in an update rule to InfoCube YCUBE001. The activated program name for this update rule is GP3PWI6PKM5Y3K75A370DIS8I77. When I goto SE37, enter the function DATE_GET_WEEK, click the where-used button, check the programs option and search. The system does not find the program GP3PWI6PKM5Y3K75A370DIS8I77.
    Without this search capability it is difficult to do an impact analysis of changing function modules. Does anyone know of a solution?

    hi,
    i think the reason is the code of update rules' generated program are stored line by line in table(rsaabap), update rules program itself stored in table rsupdrout, link with field codeid, another useful table is rsupdinfo which store infocube, infosource related.  other info may stored in some other rs* and rsa* tables.
    try to create following program in your system, and run, type in the function module name, and will display out the update rules program id, with additional useful info : which infoprovider, infosource, and detail info of the routine and infoobject in the update rule that using that function module. you may modify the program to have better display out list.
    hope this helps.
    REPORT  Z_FM_UPDRUL_WHEREUSED.
    data : lv_sfm,
           lv_line type string,
           lv_where type string.
    tables : rsaabap,RSUPDROUT,rsupdinfo.
    select-options:
    s_fm for rsaabap-LINE.
    start-of-selection.
      loop at s_fm.
        concatenate s_fm-low ' ' into lv_sfm.
        concatenate '%' s_fm-low into lv_line.
        concatenate lv_line '%' into lv_line.
        write : / 'function module', 'update rule id', 'routine id', 'infoobject', 'infocube', 'infosource'.
        select * from rsaabap
        where line like lv_line and objvers = 'A'.
           select * from rsupdrout
           where codeid = rsaabap-codeid and objvers = 'A'.
             select single * from rsupdinfo
             where updid = rsupdrout-updid and objvers = 'A'.
               write: / lv_sfm, rsupdrout-updid, rsaabap-codeid,
                        rsupdrout-iciobjnm, rsupdinfo-infocube,
                        rsupdinfo-isource.
        endselect.
        endselect.
      endloop.

  • Help needed on update rules Coding

    Hi BW Gurus.
    Please help me out.
    I am working on BI 7.0
    This is my scenario.I need to take a project cost report.
    There are some projects in cProjects and some projects in R/3 (Project System).
    Each project in cProjects is linked with one or more projects in R/3.
    They are linked by means of GUID.Now I need to pull out a report from a infocube(Z infocube) which has information both from R/3 and cProjects.I built a Z infocube.
    Here comes my problem.
    I need to write update rule for the requirement explained below.
    For all the projects(in cProjects) I need to find its GUID from the table-DPR_PROJECT . These GUIDs are contained in this table under the field name GUID.
    The same GUID numbers I can find it in another table-DPR_OBJLINK under the field PROJECT_GUID. For this PROJECT_GUID numbers, I need to identify the corresponding EXTERNAL_ID(this field is in the table-DPR_OBJLINK) of the projects(These projects are R/3 projects). These EXTERNAL_ID values has to be pulled out in the report.
    I am using the extractor 0CO_OM_WBS_1.
    Please help me out with the update rule code.
    Please help me out as soon as possible.
    Its really urgent my dear friends
    Thanks in Advance,
    Have a nice day
    Regards,
    Sam Mathew

    Hi Raogovind,
    For which state are you customising this Professional Tax? Professional Tax wage type is /422.
    The system determines the professional tax payable by an employee, based on the following factors:
    Professional tax basis u2013 Comprises those salary components on which a professional tax is applicable. The salary components to be included for calculating the professional tax basis depend on the state. The different components are:
    Basic pay
    Dearness allowance
    Medical reimbursement perquisite
    Housing
    Profits in lieu of salary
    Other remuneration that an employee receives regularly
    Bonus
    It is depending on the combination of the Personnel Area, Personnel sub area and the professional tax grouping of the employee, that the system identifies factors such as the:
    Components of the professional tax basis.
    Method and the frequency of calculating and deducting professional tax.
    Hope this information helps you solve the issue.
    Edited by: chandra.saphr on Aug 6, 2009 7:10 AM

  • Help need on Update rules

    Hi BW Gurus.
    Please help me out.
    I am working on BI 7.0
    This is my scenario.I need to take a project cost report.
    There are some projects in cProjects and some projects in R/3 (Project System).
    Each project in cProjects is linked with one or more projects in R/3.
    They are linked by means of GUID.Now I need to pull out a report from a infocube(Z infocube) which has information both from R/3 and cProjects.I built a Z infocube.
    Here comes my problem.
    I need to write update rule for the requirement explained below.
    For all the projects(in cProjects) I need to find its GUID from the table-DPR_PROJECT . These GUIDs are contained in this table under the field name GUID.
    The same GUID numbers I can find it in another table-DPR_OBJLINK under the field PROJECT_GUID. For this PROJECT_GUID  numbers, I need to identify the corresponding EXTERNAL_ID(this field is in the table-DPR_OBJLINK) of the projects(These projects are R/3 projects). These EXTERNAL_ID values has to be pulled out in the report.
    I am using the extractor 0CO_OM_WBS_1.
    I am not sure if I am giving enough information with my question.
    Please help me out with the update rule code.
    Thanks in Advance,
    Have a nice day
    Regards,
    Sam Mathew

    try this one:
    tables  /BI0/MROUTE.
    if COMM_STRUCTURE-route is initial.
    RESULT = 0.
    else.
    SELECT single * from /BI0/MROUTE
    where route = COMM_STRUCTURE-ROUTE and
      OBJVERS = 'A'.
    if sy-subrc = 0.
    RESULT = /BI0/MROUTE-/BIC/ZLEADDAYS.
    endif.
    ENDIF.
    Hope it helps!
    Bye,
    Roberto

  • How to delete the commented out lines in PC editor of a SAP Script?

    Hi Experts,
    I hv lot of commentde out code in the PC editor of a my_SAP_Script.........so, wanna to delete all this commented out code, so, let me know that, Do we hv any option other than manual deletion.
    Currently am doing it by,
    keeping the line totally blank,
    keeping the left small box, where we define paragraph formts,
    going BACK,
    save + activating,
    now, those lines r disappearing!!
    but, let me know, Is there any other MENU/push button optin to delete these lines?
    replies appreciatesd,
    thanq

    [pc editor doc|http://help.sap.com/saphelp_nw2004s/helpdata/en/f4/b49f1b453611d189710000e8322d00/frameset.htm]

  • Update Rule error while loading the data

    Hello All,
    I tried to do the init load for the datasource 2LIS_02_VAKON (Sales Document Condition), But it error's out in the Update rule saying:
    Short text: Error when generating the update program
    Long Text:  Diagnosis
         An error occurred during program generation for InfoSource 2LIS_11_VAKON
         and InfoProvider 0SD_C15 . This may be extrapolated to incorrect update
         rules.
    Procedure
         Check and correct your update rules and then generate the update program
         again. You can find help on the error in the error log.
    The update rule looks very fine. I even deleted it and re created, but no success..... Please give me your thoughts abt it..... Any suggestions will be great for me.....

    Hello Gokul,
    I could'nt see any analyse button in RSMON. This is the only error message I could get from the Process monitor:
    Short text: Error when generating the update program
    Long Text: Diagnosis
    An error occurred during program generation for InfoSource 2LIS_11_VAKON
    and InfoProvider 0SD_C15 . This may be extrapolated to incorrect update
    rules.
    Procedure
    Check and correct your update rules and then generate the update program
    again. You can find help on the error in the error log.
    Do you expect something else ? Also I went through your OSS note, they are asking to apply support pack 18. Is this a serious issue to apply SP? Because in Quality and Prod it loads fine......
    Please let me know your idea

  • Update Rule Routine: Compare system date

    Can anyone help me with regards to writing some ABAP code in update rule?
    I would like to check if the value of a date characteristics is equal to system date in data source. If its value is equal to system date, assign '0' value to another numeric characteristics. Otherwise, it will get the difference between system date and the date characteristics. I have rewritten the routine as follows. But there is no effects on the result. Am I correct?
    if COMM_STRUCTURE-<date characteristics> = SYST-DATUM.
      RESULT = '0'.
    else.
      RESULT = COMM_STRUCTURE-<numeric characteristics>.
    endif.
    Many thanks in advance.

    I have rewritten the code as follows. ZLASTPURD is a numeric characteristics. The code is written in the routine of ZLASTPURD in update rule. But it takes no effect. The case "COMM_STRUCTURE-/BIC/ZLASTPURD ='0'" means another date characteristics is equal to system date, the value of ZLASTPURD is blank after modifying the code. However, the code is workable for  "RESULT = COMM_STRUCTURE-/BIC/ZLASTPURD.". Is there anything wrong?
    data lastpurdays type I.
    lastpurdays = '1'.
    if COMM_STRUCTURE-/BIC/ZLASTPURD = '0'.
      RESULT = lastpurdays.
    else.
      RESULT = COMM_STRUCTURE-/BIC/ZLASTPURD.
    endif.
    Many thanks in advance.

  • Wb_rt_mapaudit_util register_custom_param call commented out in gen'd sql

    Using OWB 10.2.0.3.33.
    In the OWB client if I right mouse on a map and Generate..., then choose the Script tab, then select the script, then Save As...
    it results in a generated script for the map which has the call to wb_rt_mapaudit_util.register_custom_param commented out as seen here (where DATAMART_SEQ is my custom param):
    -- register custom input parameters:
    -- Temp fix until selective registration ensures correct handling of complex types
    -- wb_rt_mapaudit_util.register_custom_param(x_audit_id,
    -- '"DATAMART_SEQ"',
    -- TO_CHAR("DATAMART_SEQ"));
    Does anyone know how to make this not be commented out?
    If I execute that script to define the map, then run the map using the Main procedure in the package {MAPNAME.Main(p_status, p_datamartseq);} it runs but the impact of having it commented is that it leaves the VALUE field of the ALL_RT_AUDIT_EXECUTION_PARAMS table null for the custom param.
    If I run the map using wb_rt_api_exec.run_task, then OWB correctly stores the custom param value in the ALL_RT_AUDIT_EXECUTION_PARAMS table. You can see the two types of runs here, notice the null is the problem caused by the commented out code (if I uncomment it it works -- but for dozens of maps it would be easier if it was generated that way):
    select execution_audit_id,PARAMETER_NAME,PARAMETER_TYPE,VALUE_KIND,nvl(value,'NULL') from ALL_RT_AUDIT_EXECUTION_PARAMS where execution_audit_id in (64908,64859) and parameter_kind='CUSTOM'
    EXECUTION_AUDIT_ID     PARAMETER_NAME     PARAMETER_TYPE     VALUE_KIND     NVL(VALUE,'NULL')
    64859     DATAMART_SEQ     NUMBER     INPUT_VALUE     2000
    64908     DATAMART_SEQ     NUMBER     INPUT_VALUE     NULL

    Hi,
    you used undocumented OWB API and Oracle tech.support or development can explain what is wrong with this code.
    There is exist legal way running OWB mappings/processflow since OWB10gR2 ([url http://download.oracle.com/docs/cd/E11882_01/owb.112/e10935/scheduling_etl.htm#CIHJBCCA]RUN_TASK function from WB_RT_API_EXEC package). Why you didn't use this function?
    Regards,
    Oleg

Maybe you are looking for

  • What are the best printers to use?

    I bought a HP Officejet 4500 but it's not even showing up during the installation. What printer/scanner/faxes are the best for my MacBook Pro 10.6.8?

  • How do I reconnect missing media files?

    I have imported an iMovie project but the links to the Media files are broken.  How do I recconect in FCPX

  • Using IOC with Factory Design pattern

    Say I have two different data sources, one XML and another Database.I have 2 DAO's corresponding to the 2 data source and a DAOFactory to get the DAO. Now, I want to use IOC from the service layer to get appropriate DAO. Using DAOFactory will break I

  • How can launch an event in javascript?

    Hi, i´m doing an app in jsp, but i´m using a framework in javascript, css... my problem is... how can launch an event in javascript? I have a menu bar in javascript, and i want launch an event in each option, how? Thanks,

  • Problems with ADF when running sample EJB, JPA, JSF Tutorial

    Hi, I'm new to jDeveloper. I've downloaded the version 11.1.1.2.0 and tried to do my first tutorials with the product. I started with the sample 'Build Applications with EJB, JPA and JSF' and run to following problems: - Part1: Step 10 expose the EJb