Hiding parameters in addressbar

in my application if i click hyperlink it is passing parameters in addressbar;how to hide parameters;i dont want to maintain session;if i give post method i am still getting parameters;can we do this javascript
please help?

If you use method="post" in your form tag you should not be getting any parameters in the address bar, unless you are passing them in the action attribute of the form like this:
action="page.jsp?param1=howdy"
If you paste your code I will be happy to look at it.

Similar Messages

  • Hiding Parameters  in Discoverer Viewer

    Hi,
    I was just wondering if there was a way to hide the parameters when a report is viewed in Discoverer Viewer? I don't want them to display or have the user to be able to run the report with new parameters.
    Thanks

    For a parameterized report, the parameters show up along with the data or (and graph). A way to hide the parameters is by training the users to minimize the parameters just like they could do on the graph or table.
    I am afraid there's no way you could hide it as long as you work with a parameterized report. Some one can correct me if I am wrong here and let me know if there's a way to do it.
    Thanks,
    -Esther

  • Stop parameters from displaying in the URL

    Hi All,
    I've got a simple application with no login required and I have set up the session state protection at the page level.
    Is there any way to not display the parameters within the URL?
    If yes, what security method is better between the session state protection and hidding the params?
    Many thanks

    Javier,
    What are the normal security recommendations?There is a lot to consider when it comes to security. Does your app has sensitive data? Does it run on the internet? How secure does it need to be?
    Determining the level of security you are shooting for is the first step. After that, it is following processes that will get you to what you need. SSP is not enough--you need to consider security in everything you do--in Apex or any other tool.
    As for hiding parameters, you could also use a frame, but the parameters are still there, they are just in a frame. You could also post them instead of using links, but they are still there, just view the source of the page. SSP will keep users from tampering with the URL and a few other things, but it won't keep them from changing post-able items.
    If you have really sensitive data, you should consider your security holistically--database views, VPD, triggers, Apex validations, Apex conditions, Apex Authorization Schemes. Because it is html, the user can modify the html and post the page--you need to consider that. If you don't have (or display) a Delete button, the user can just add one in and post the page. If you have a process that is dependent on a delete button it will run, unless you check to see if it should. This is true for Apex and any other html application.
    This probably poses more questions than it answers, but security is that way--no simple answers.
    Anton

  • Dynamic field in Variant

    Hi,
    I have to make Period (from),Year (from),Period (to)
    and Year (to) as Dynamic in  the Variant for Program RKKRCO02.These are of type Parameters.
    Please let me know how I can get it done.
    Thanks in Advance,
    Savitha

    HI Savitha,
    If u open the variant and observe, there some options like hiding parameters and select-options. The same thing we can do my some function modules which will play the dynamic operation with variants in the selection screen.
    And if u want to fix some values in the variant for any date field, you can do by this way.
    To set the dynamic date:
    Save variant on the selection screen.
    In the vairant screen, press F4 against your field in the column "Selection Variable"
    Select D here.
    In the column Name of the variable, press F4 to have the list of the possible rules.
    Here you can select "Current date - xxx,current date + yyy" if you want to have certain period.
    When you select this system will pop up to put the values for XXX and YYY.
    Say for last 7 days, you can set the values XXX as 7 and YYY as0.
    But the best way is to change the program, if possible, and fill the select option in the initialization event.
    Reagrds,
    Raghu.

  • Charting data in another VI

    Dear Labview forum,
    I have two VIs running simultaneously, each acquiring or producing data at their own rate and charting that data.
    I would like a 3rd VI to run simultaneously with the other two and display a selection of charts from each of the other two VIs in real time.
    Any suggestions how this might be achieved?  I have looked at queuing and notifier examples, which both seem to be able to be used?  Though I'm not sure which would be better.  Also, I've seen another example where a reference to a chart of the 3rd display VI is stored as a global variable, and the other VIs use that chart reference to change the chart history.  Are there any drawbacks with this approach?
    What if I would like a fourth VI to chart the same data too?
    Regards,
    Jamie
    Using Labview version 8.0

    Jamieg wrote:
    Hi,
    I'll give queues a go.
    Regarding tdb's questions,
    tbd wrote:
          Couple of questions, are the front-panels visible of the two VIs producing the data?  When you say  "a selection of charts from each of the other two VIs " this seems to imply that there's more than one chart on each of the two VIs producing the data(?)  I don't know if the Sub-Panel control might have an application here - it depends on the specifics of your app.
    The front panels of the two VIs producing data won't be visible (mostly). I still need to work out how to dynamically program whether they pop up when called as I would like the user to have that option?
    To programmatically pop-up the FP of a VI, set its FP.Open property to True.  This can be done anywhere in the application, as long as the VI's reference is available (sounds like an application for a Global ).  There's a "feature" related to FP.Open and compiled apps - do you plan to compile this?
    One VI acquires data which it charts.
    The second VI analyses the data, and charts several progress parameters, producing about 3 charts plus 1 updating picture (of which only the last copy is relevant (the picture is a phasor plot because Labview has no standard phasor plotting capabilities, like matlab's compass function)).  Perhaps I will try to combine these in an array or cluster and then queue the whole cluster instead of using 3 or 4 separate queues?
    The third VI, which is a user interface, should display the data as acquired, plus the updating analysis charts (and picture).
    I'm still trying to imagine the GUI layout on "The third VI", the chart "use case" - one at a time, floating chart-windows (sound intruiging? check-out the "floating" window behaviour/property), dedicated sections on the GUI - , though it sounds like you're comfortable with a queue solution so maybe the physical layout is irrelevant here/now.
    I haven't used sub panels before, but I think they display the sub VIs whole front panel?  So I won't be able to display just a selection.  Though I guess hiding parameters and other controls and indicators could be an option?
    What you see in the Sub-panel is exactly what's visible if the VI is opened (at least in LV8.2).  So just like with other top-level GUIs, if you position controls out-of-sight when the VI is open, they won't be visible in the Sub-panel either!
    Cheers!
    "Inside every large program is a small program struggling to get out." (attributed to Tony Hoare)

  • HIding discoverer parameters in URL

    I was wondering if it is possible to hide or otherwise encrpt the Discoverer parameter values in the URL.
    I understand how to hide static parameters, but could not find a way to hide dynamic paramters. We need the abilitiy to hide these parameters so a user could not change the parameter values in the URL itself.
    For Example:
    Oracle Portal site has three dropdown lists. These values are dynamic and need to be passed to discoverer/plus in a secure method.
    Let's say these values are selected. School=1234 District=123456 Role=staff
    The discover/plus report will then take these values and display the proper data. It's URL will then be https://www.server.com/discoverer/plus?
    School=1234&District=123456&Role=staff
    If everything was static, then we could implement what you recommended, but we need a secure, dynamic method.
    YOur guidance is greatly appreciated.

    OK. It looks like the Adobe article has a link to the topic
    in the second sentence! Which I breezed right passed: "Passing
    request data with URL fragments."
    Apparently there is no direct URL for this page of
    information. I'll take a look now.
    http://livedocs.adobe.com/flex/3/html/help.html?content=passingarguments_3.html
    thanks.

  • Hiding  default report parameters in XLS template& password for analyzer

    Hi,
    I created a xls report in that report i don't have any parameters.But when i open that xls template i am getting the default Report Parameters at the top of the report
    with a column1(under this we have a drop down with options All,Top10,Custom...) like this
    When i open the Excel Analyzer from xls(Alt+F11) when i double click on the excelAnalyzer its asking password what is the default password??
    If any one knows please share it!!
    Thanks,
    Saichand.V
    Edited by: saichand on Jun 26, 2009 4:34 PM

    See the following document on creating a workbook template with an image: [http://www.researchsummary.ca/bw/Sample_Ch10.pdf]
    In BW, there is a table that stores the default workbook. The following snippet of code allows you to identify a custom workbook template as the default template for all end users.
    *& Report Z_SET_BEX_USER_TEMPLATE *
    *& Program to update all user's default template *
    REPORT Z_SET_BEX_USER_TEMPLATE.
    TABLES: rsrwbtemplate,
            usr01.
    PARAMETER: wbid LIKE rsrwbindex-workbookid.
    SELECT
    FROM
      usr01.
      MOVE: usr01-bname TO rsrwbtemplate-templateuser,
            wbid TO rsrwbtemplate-workbookid = wbid.
      UPDATE
        rsrwbtemplate.
      IF sy-subrc 0.
        INSERT
          rsrwbtemplate.
      ENDIF.
    ENDSELECT.

  • Hiding POSTed parameters in v2

    Hi:
    I have a portal which contains tabbed pages. My problem is that within those tabbed pages I have jsp portlets which contain forms. When I submit the form, the data gets posted correctly, but when I change to another tabbed page, all the form variables are submitted in the URL to the new page. How do I prevent POSTed form variables from being added to the URL??
    Regards
    Gareth Cantrell

    I'm using 9iAS 9.0.2
    I used an example from PDK January
    here is the JSP (bank.jsp):
    <%@page import="java.util.*, oracle.portal.provider.v2.*" %>
    <%@page import="oracle.portal.provider.v2.http.HttpCommonConstants" %>
    <%@page import="oracle.portal.provider.v2.render.PortletRendererUtil" %>
    <%@page import="oracle.portal.provider.v2.render.PortletRenderRequest" %>
    <%@page import="oracle.portal.provider.v2.render.http.HttpPortletRendererUtil" %>
    <%
    String paramAmount = "Amount";
    String paramAction = "Action";
    PortletRenderRequest portletRequest =
    (PortletRenderRequest) request.getAttribute(HttpCommonConstants.PORTLET_RENDER_REQUEST);
    %>
    <b>This portlet shows how to use the passUrlParams flag and
    unqualified, transient parameters to perform a portlet action.</b>
    // The account transfer is performed by submitting the following form
    <form method="POST" action="<%= HttpPortletRendererUtil.htmlFormActionLink(
    request,PortletRendererUtil.PAGE_LINK) %>">
    <%= HttpPortletRendererUtil.htmlFormHiddenFields(request,PortletRendererUtil.PAGE_LINK) %>
    <table>
    <tr>
    <td>
    <b>Amount $</b>
    </td>
    <td>
    <input type="text" size="20" name="<%= paramAmount %>" value="">
    </td>
    </tr>
    </table>
    <br>
    <INPUT TYPE=submit name="<%= paramAction %>" Value="Transfer">
    </form>
    // Parse the inputs to see if a transfer should be performed
    <%
    if (portletRequest.getParameter(paramAction) != null)
    String submittedAmount = portletRequest.getParameter(paramAmount);
    if (submittedAmount == null || submittedAmount.trim().length() == 0)
    %>
    <b>Please specify an amount!</b>
    <%
    else
    try
    double amount = Double.valueOf(submittedAmount).doubleValue();
    if (amount != 0)
    %>
    <b>Successfully transferred $<%=submittedAmount%>.</b>
    <%
    catch (NumberFormatException e)
    %>
    <b>Invalid amount.</b>
    <%
    %>
    here is my provider.xml:
    <?xml version="1.0" encoding="ISO-8859-2" standalone="yes"?>
    <?providerDefinition version="3.1"?>
    <provider class="oracle.portal.provider.v2.DefaultProviderDefinition">
    <passAllUrlParams>true</passAllUrlParams>
    <portlet class="oracle.portal.provider.v2.DefaultPortletDefinition">
    <id>1</id>
    <name>Parampass</name>
    <title>Parampass</title>
    <shortTitle>Parampass</shortTitle>
    <description>Parampass portlet.</description>
    <timeout>240</timeout>
    <timeoutMessage>Parampass portlet timed out.</timeoutMessage>
    <showLink>false</showLink>
    <showEdit>false</showEdit>
    <showEditToPublic>false</showEditToPublic>
    <showEditDefault>false</showEditDefault>
    <showPreview>true</showPreview>
    <showDetails>false</showDetails>
    <hasHelp>false</hasHelp>
    <hasAbout>false</hasAbout>
    <acceptContentType>text/html</acceptContentType>
    <defaultLocale>hu.HU</defaultLocale>
    <renderer class="oracle.portal.provider.v2.render.RenderManager">
    <autoRedirect>true</autoRedirect>
    <contentType>text/html</contentType>
    <showPage>parampass.jsp</showPage>
    <pageParameterName>parampass_next_page</pageParameterName>
    </renderer>
    </portlet>
    <portlet class="oracle.portal.provider.v2.DefaultPortletDefinition">
    <id>2</id>
    <name>Paramrecv</name>
    <title>Paramrecv</title>
    <shortTitle>Paramrecv</shortTitle>
    <description>Paramrecv portlet.</description>
    <timeout>240</timeout>
    <timeoutMessage>Paramrecv portlet timed out.</timeoutMessage>
    <showLink>false</showLink>
    <showEdit>false</showEdit>
    <showEditToPublic>false</showEditToPublic>
    <showEditDefault>false</showEditDefault>
    <showPreview>true</showPreview>
    <showDetails>false</showDetails>
    <hasHelp>false</hasHelp>
    <hasAbout>false</hasAbout>
    <acceptContentType>text/html</acceptContentType>
    <defaultLocale>hu.HU</defaultLocale>
    <renderer class="oracle.portal.provider.v2.render.RenderManager">
    <autoRedirect>true</autoRedirect>
    <contentType>text/html</contentType>
    <showPage>paramrecv.jsp</showPage>
    <pageParameterName>paramrecv_next_page</pageParameterName>
    </renderer>
    </portlet>
    <portlet class="oracle.portal.provider.v2.DefaultPortletDefinition">
    <id>3</id>
    <name>Bank</name>
    <title>Bank</title>
    <shortTitle>Bank</shortTitle>
    <description>Bank portlet.</description>
    <timeout>240</timeout>
    <timeoutMessage>Bank portlet timed out.</timeoutMessage>
    <showLink>false</showLink>
    <showEdit>false</showEdit>
    <showEditToPublic>false</showEditToPublic>
    <showEditDefault>false</showEditDefault>
    <showPreview>true</showPreview>
    <showDetails>false</showDetails>
    <hasHelp>false</hasHelp>
    <hasAbout>false</hasAbout>
    <acceptContentType>text/html</acceptContentType>
    <defaultLocale>hu.HU</defaultLocale>
    <renderer class="oracle.portal.provider.v2.render.RenderManager">
    <autoRedirect>true</autoRedirect>
    <contentType>text/html</contentType>
    <showPage>bank.jsp</showPage>
    <pageParameterName>bank_next_page</pageParameterName>
    </renderer>
    </portlet>
    </provider>
    When I press the submit button, the transient parameters are passed, but when I refresh the page the transient parameters are also passed.
    When I make two TAB pages in the portal, and navigate between them, the behavior is the same.
    Here is my URL after opening the tab page in a new navigator window:
    http://portal2.eurotrend.hu:7777/portal/page?_pageid=73,31262,73_35033&_dad=portal&_schema=PORTAL&Amount=50&Action=Transfer
    You can see the transient parameters in the URL!
    I click the tab after submit.
    This happens in IE 5.5 and IE 6.0
    Thanks in advance!

  • Hiding all parameters sended to report by using an URL

    hello,
    I am using OAS10G release 1 that contain a report server.
    I want to know if it's possible to hide all argument that appear when I call my report from an url.
    for example , my url :
    http://myserver/rwservlet/un=test\pwd@hostring&p1=1&p2='01-02-2005'&rep_server=myreport_server
    how to do if I want to hide all these parameters ?
    how to encrypt the username/password?
    is the rep_server.conf that will contain theses parameter ?
    my report will be call from an html page.
    thank's a lot.

    Put the following string close to the end in $OH/reports/conf/cgicmd.dat
    telemly: userid=test/pwd@hostring server=your_report_server destype=cache %*
    After you've restarted the OC4J_BI_Forms then call this URL:
    http://yourserver.com:port/reports/rwservlet?telemly&p1=1&p2='01-02-2005'&desformat=htmlcss
    Regards,
    Martin

  • Hiding or encoding parameters

    I have applets that get called from ASP pages. I want to use getParameter in the applet to get the specific information for that instance. Right now everything is hard coded and I need it to be more dynamic. The problem is that I don't want the user to see all of the information if they do a getSource on the ASP page. Is there a way to hide this info or is there a basic encryption algroithm that both ASP and java can use? Should we just write our own simple encryption?

    Actually this is how I'm reading it.
    try
                   URL u = new URL(URLname);
                   InputStreamReader i = new InputStreamReader(u.openStream());
                   read(i);
              catch (Exception e)
                   e.printStackTrace();
    I'll try your method.

  • How to hide dynamic parameters values in the URL with Reports 6i

    Hi,
    I want to know a way of hiding the parameters values when asking for a report through the web.
    Now I'm using the Reports 3.0.5.8 with a Cartridge defined in the Oracle Web Application Server 3.0.1.0.1. When you ask for a report with the parameters DESTYPE = cache and DESFORMAT = pdf, it is fully generated and in the Address or Location box of the browser, you can see http://webserver/cache/report.pdf (where cache is the virtual directory defined in the OWAS in which the .pdfs are cached). So, users cant see the Url used to generate the report.
    Im trying to upgrade this configuration to Reports 6i with Cgi in a web server. I generate reports with no problems. The problem I have is I cant find how to hide the parameters values as before. I mean, when I ask for a report, once its generated I can see http://webserver/cgi-bin/rwcgi60.exe?server=ServerName&report=report.rdf&userid=user/pass@connection&destype=cache&desformat=pdf&P1=value1&P2=value2 in the Location box. It allows user to ask for another report changing the values of the parameters. I use these parameters to execute some query written in the Data Model. For example, imagine that the P1 represents the company id, the user (that is supposed to see only data of its company) can change this id, ask for a new report and see data of another company.
    Ive already tried to use the key mapping option, but its not useful to me because the parameters values are dynamic and its impossible to define different entries in the cgicmd.dat for each possible value. The option of loading the parameter form before running a report is not useful to me either, because there exists specific screens for this purpose.
    Is there any solution?
    Thank you.
    Marma Bonfiglio.

    Hi Rakesh,
      I am using BI  7.0
    The last option I have is 'Hide' for 'Calculate single values as' .
    I have the below options  for 'Calculate single values as'
    1. Normalise  according to Next group  level  Resul.
    2. Normalize according to  Overall Result
    3. Rank number
    4.Olympic Rank Number
    5.Maximum
    6. Minimum
    7.Counter for all detailed values
    8.Counter for all detailed values that are non zero
    9.Moving average
    10.Moving average  That is  Not zero ,null or Error
    11. Hide.
    So could you please tell me where i can find 'suppress result' option for the keyfigure .
    Many thanks

  • How to hide parameters in the URL ?

    Hi,
    Iam using Reports 6i on web. Now Iam calling report from a report (Drill done report) using SRW.SET_HYPERLINK.
    Iam passing lot of parameters to this detail report.
    When I call the main report the URL looks like:
    http://devreports.wwt.com/dev60cgi/runrep.sh/15369?
    But when I click on the link in this main report for details, the detail report URL looks like this.
    http://devreports.wwt.com/dev60cgi/runrep.sh/15369?emp_detail&p_emp=45&p_job=clerk&p_format=PDF
    Iam hiding userid/passwd@database in the cgicmd.dat file
    I want to hide all the other parameters also like
    the Main report URL :
    http://devreports.wwt.com/dev60cgi/runrep.sh/15369?
    How to do this ?
    Please help me if anybody has the solution.
    Thanks alot.

    Hi Ram,
    Not sure if this is possible.
    However, one workaround might be the following:
    1. Write a javascript that submits the URL using, say a POST method, and does not show the parameters in the URL. You will have to write this javascript code in the "Before Report" Report Escape. For a generic example on how to use javascript in a report, see Metalink Note 125652.1. This note shows javascript to disable the right-click of the mouse on the report output.
    2. Use the Hyperlink peroperty of the report to call this javascript function, eg,
    javascript:myfunction('http://machine:port/reports/rwservlet?report=...+server=...+empno=&empno')
    I am not a javascript expert, so I cannot give you an example of the function, but I hope someone in your team can find out.
    Navneet.

  • Repeating frame hiding in Group above report with three levels of grouping

    I'm working on a group above report.I have 3 levels of grouping. ex: Consider emp table
    Group1: Hiring year
    Group2:Manager code
    Group3:Dept no
    The R1 frame is refered to Group1. R2 -Group2, wich will come inside R1.
    R3-Group3, which will come inside R3.
    Now R3 is the inner frame, R2 is the middle frame and R1 is the outer frame.
    I want to display the data of the frame R3. Based on the parameter i'm passing , I want to hide the R1 or R2. I used the format trigger, but it is hiding the inner frames also. But I want to hide only the outer frame,But I want the data of the inner frames.
    all the suggesstions are welcome. Thanks in advance

    Don't hide R1 and R2, i.e. don't use their trigger to display or display items. Instead, put all objects in a normal frame, and hide it depending on the parameters you meantioned.
    What will happen will be somewhat like this
    -- R1
    |-- Frame - ( use trigger to hide depending on parameters )
    | |---R1 Items
    |-- R2
    |---Frame - ( use trigger to hide depending on parameters )
    | |---Items
    |---R3
    |----Frame
    |---Items
    I hope this helps.

  • Hideing the select options in selection screen

    I have 2 radio buttons in the selection screen.
    SELECTION-SCREEN BEGIN OF BLOCK b2 with frame title text-018.
    parameters : GR1  Radiobutton group rg1 default 'X',
                 GR2  Radiobutton group rg1.
    SELECTION-SCREEN END OF BLOCK b2.
    SELECTION-SCREEN BEGIN OF BLOCK b1 with frame title text-017.
    Select-options : z_s_werk for t001w-werks obligatory,
                         z_s_matn  for marc-matnr,
                         z_s_bdat for mkpf-budat obligatory.
                        z_s_lifn for mseg-lifnr.
                         z_s_sgtx for mseg-sgtxt.
                        z_s_bwar for mseg-bwart.
    SELECTION-SCREEN END OF BLOCK b1.
    if GR1 = 'X'.
    i have  to  hide   z_s_sgtx for mseg-sgtxt.
    if GR2 = X.
    I  have  to hide  z_s_lifn for mseg-lifnr.
    is there any way for hideing this.
    Regards,
    Selvapriya S.

    hi,
    SELECTION-SCREEN BEGIN OF BLOCK b2 WITH FRAME TITLE text-018.
    PARAMETERS : gr1 RADIOBUTTON GROUP rg1 DEFAULT 'X' USER-COMMAND ud,
                 gr2 RADIOBUTTON GROUP rg1.
    SELECTION-SCREEN END OF BLOCK b2.
    SELECTION-SCREEN BEGIN OF BLOCK b1 WITH FRAME TITLE text-017.
    " Remove obligatory and do validations for the fileds which have OBLIGATORY at EVENT
    " AT SELECTION-SCREEN .
    SELECT-OPTIONS : z_s_werk FOR t001w-werks ,"(OBLIGATORY)
                     z_s_matn FOR marc-matnr,
                     z_s_bdat FOR mkpf-budat," OBLIGATORY,
                     z_s_lifn FOR mseg-lifnr,
                     z_s_sgtx FOR mseg-sgtxt,
                     z_s_bwar FOR mseg-bwart.
    SELECTION-SCREEN END OF BLOCK b1.
    AT SELECTION-SCREEN OUTPUT.
      IF gr1 = 'X'.
        LOOP AT SCREEN.
         IF screen-name = 'Z_S_SGTX-LOW'                 OR
             screen-name = 'Z_S_SGTX-HIGH'                OR
             screen-name = '%_Z_S_SGTX_%_APP_%-VALU_PUSH' OR
             screen-name = '%_Z_S_SGTX_%_APP_%-VALU_PUSH' OR
             screen-name = '%_Z_S_SGTX_%_APP_%-TO_TEXT'   OR
             screen-name = '%_Z_S_SGTX_%_APP_%-OPTI_PUSH' OR
             screen-name = '%_Z_S_SGTX_%_APP_%-TEXT'.
            screen-active = 0.
          ELSE.
            screen-active = 1.
          ENDIF.
          MODIFY SCREEN.
        ENDLOOP.
      ELSE.
        LOOP AT SCREEN.
       IF screen-name = 'Z_S_LIFN-LOW'                 OR
             screen-name = 'Z_S_LIFN-HIGH'                OR
             screen-name = '%_Z_S_LIFN_%_APP_%-VALU_PUSH' OR
             screen-name = '%_Z_S_LIFN_%_APP_%-VALU_PUSH' OR
             screen-name = '%_Z_S_LIFN_%_APP_%-TO_TEXT'   OR
             screen-name = '%_Z_S_LIFN_%_APP_%-OPTI_PUSH' OR
             screen-name = '%_Z_S_LIFN_%_APP_%-TEXT'.
            screen-active = 0.
          ELSE.
            screen-active = 1.
          ENDIF.
          MODIFY SCREEN.
        ENDLOOP.
      ENDIF.
    for example.
    AT SELECTION-SCREEN on Z_S_SGTX.
    if Z_S_SGTX is initial.
    " Raise an error message here
    Endif.
    Thanks & REgards

  • Hiding code in ABAP programs

    I curious if in ABAP is possible to hide code.
    What I exacly mean?
    In other programming languages e.g. C++ when we want to hide some part of implementation, we just simple make an library (dll file) and we join it to complilation code.
    Is included in ABAP similar functionality?`

    Hi Tomasz,
       Check this code:
    This is not my own code.
    PROGRAM ZHIDE NO STANDARD PAGE HEADING.
    This program hides any ABAP's source code and protects it with a
    password in this source code. So the first candidate to be hidden
    should be ZHIDE itself.
    After hiding, you can still run the abap (the load version is intact)
    but it cannot be displayed, edited, traced, transported or generated.
    If the ABAP is not hidden, the program hides it, if it is hidden, it
    unhides it.
    To execute this program, change the user name and password in this
    source code first.
    SELECTION-SCREEN BEGIN OF BLOCK BLOCK.
    SELECTION-SCREEN BEGIN OF LINE.
    SELECTION-SCREEN COMMENT 1(8) PWD.
    SELECTION-SCREEN POSITION 35.
    PARAMETERS: PASSWORD(8) MODIF ID AAA.
    SELECTION-SCREEN END OF LINE.
    PARAMETERS: PROGRAM(8).
    SELECTION-SCREEN END OF BLOCK BLOCK.
    AT SELECTION-SCREEN OUTPUT.
    LOOP AT SCREEN.
    IF SCREEN-GROUP1 = 'AAA'.
    SCREEN-INVISIBLE = '1'.
    MODIFY SCREEN.
    ENDIF.
    ENDLOOP.
    INITIALIZATION.
    PWD = 'PASSWORD'.
    START-OF-SELECTION.
    TABLES: TRDIR.
    User name and passsword check
    IF SY-UNAME <> 'SAP' OR PASSWORD <> 'PASSWORD'.
    WRITE: / 'Wrong password'.
    EXIT.
    ENDIF.
    SAP owned?
    IF NOT PROGRAM CP 'Z' AND NOT PROGRAM CP 'Y'.
    WRITE: / 'Do not hide original SAP programs!'.
    EXIT.
    ENDIF.
    Exists?
    SELECT SINGLE * FROM TRDIR WHERE NAME = PROGRAM.
    IF SY-SUBRC <> 0.
    WRITE: / 'Program does not exists!'.
    EXIT.
    ENDIF.
    Does it have a current generated version?
    DATA: F1 TYPE D, F3 TYPE D.
    DATA: F2 TYPE T, F4 TYPE T.
    EXEC SQL.
    SELECT UDAT, UTIME, SDAT, STIME INTO :F1, :F2, :F3, :F4 FROM D010LINF
    WHERE PROG = :PROGRAM
    ENDEXEC.
    IF F1 < F3 OR ( F1 = F3 AND F2 < F4 ).
    WRITE: / 'The program has no recent generated version!'.
    EXIT.
    ENDIF.
    Compose a new program name
    DATA: NEW_NAME(8), I TYPE I, J TYPE I.
    NEW_NAME = PROGRAM.
    DO 8 TIMES.
    I = SY-INDEX - 1.
    NEW_NAME+I(1) = '_'.
    Search for acceptable program name variations
    J = 0.
    SELECT * FROM TRDIR WHERE NAME LIKE NEW_NAME.
    J = J + 1.
    ENDSELECT.
    IF J = 1.
    EXIT.
    ENDIF.
    NEW_NAME = PROGRAM.
    ENDDO.
    Cannot generate appropriate program name
    IF J > 1.
    WRITE: / 'Cannot generate appropriate program name'.
    EXIT.
    ENDIF.
    Check if it is already in d010s (already hidden)
    DATA: F5(8).
    EXEC SQL.
    SELECT PROG INTO :F5 FROM D010S WHERE PROG = :NEW_NAME
    ENDEXEC.
    IF F5 IS INITIAL.
    There is no such hidden program, hide it
    EXEC SQL.
    UPDATE D010S SET PROG = :NEW_NAME WHERE PROG = :PROGRAM
    ENDEXEC.
    ELSE.
    There is already a hidden program there, unhide it
    EXEC SQL.
    UPDATE D010S SET PROG = :PROGRAM WHERE PROG = :NEW_NAME ENDEXEC.
    ENDIF.

Maybe you are looking for

  • Questions about EJB local interfaces - 9iAS 9.03

    Intro: I am new in developing EJB, and I am trying to build an example to verify that a stateless session bean with local interfaces is quite efficient. Q1: I have read that an application trying to access local interfaces of an EJB must run into the

  • Configure drives to sleep when not in use

    I've been running my NMH300 with two Seagate 1.5TB drives for about a week and it seems the drives keep spinning 24/7.   Is there a way to configure the hub to put the drives to sleep when not reading/writing?  The drives are very hot all the time an

  • Computer is authorized, but iTunes keeps asking to authorize again

    Our computer got a virus and we had to run recovery. We backed up our music and then reinstalled iTunes. Now whenever we try to play any of our purchased music iTunes says that the computer isn't authorized, so we authorize it. Then it says that it's

  • Won't connect to server when installing, internet is working

    How to get it connected to the server?  Don't know which server, mine seems Ok am connected to internet

  • Help in listing correct category with podcast

    Hi, I've submitted a podcast which is about travel. The category I entered in the category tag is 'Places & Travel'. I've checked my feed in validator.org and I've been told "Places & Travel is not one of the predefined iTunes categories or sub-categ