Clearing user parameters (SPA/GPA)

Hi all,
I have a program which calls SAP transactions in interactive mode (CALL TRANSACTION with mode 'A').
When the user works with the called transactions, I want  input fields not to be filled according to the user parameters (SPA/GPA parameters).
Anybody knows how to disable GPA in a called transaction or simply clear all the user specific parameters for this session?
Thanks,
Dror

May be the solution by Marcin will interest you: how to empty current user sap memory

Similar Messages

  • What is SPA/GPA?

    Hi All,
    Can any body tell what is GPA and SPA?
    Thanks,
    Sriram.

    Hi Sriram,
    Every time a usr is logged in, SAp reserves a specific memory area which is user-specific area which can be accessed by user sessions.
    SPA/GPA are special memory parameters that an ABAp program can access and are stored in the SAP memory. They are also called SET/GET parameters. These parameters can have names up to 20 characters. In SU01, under parameters tab, you can see the user specific parameter values.
    All SPA/GPA parameters are stored in table TPARA which can be maintained.
    You can use them in transactions by setting the 'Parameter ID' attribute of a screen field.
    Read documentation for SET or GET parameter.
    Regards,
    Srinivas

  • DB SPA/Gpa

    what is the difference bet SAP mry/ ABAP mry?
    what is views?
    interactive / classical reproting?
    synchronous/ asynchronous?
    Pts will be awarded

    Hi
    SAP Memory =>
    SAP memory is a memory area to which all main sessions within a SAPgui have access. You can use SAP memory either to pass data from one program to another within a session, or to pass data from one session to another.  Application programs that use SAP memory must do so using SPA/GPA parameters (also known as SET/GET parameters). These parameters can be set either for a particular user or for a particular program using the SET PARAMETER statement. Other ABAP programs can then retrieve the set parameters using the GET PARAMETER statement. The most frequent use of SPA/GPA parameters is to fill input fields on screens
    ABAP/4 Memory =>
    ABAP memory is a memory area that all ABAP programs within the same internal session can access using the EXPORT and IMPORT statements. Data within this area remains intact during a whole sequence of program calls. To pass data
    to a program which you are calling, the data needs to be placed in ABAP memory before the call is made. The internal session of the called program then replaces that of the calling program. The program called can then read from the ABAP memory. If control is then returned to the program which made the initial call, the same process operates in reverse.
    View=>
    view is, in essence, a virtual table. It does not physically exist. Rather, it is created by a query joining one or more tables.
    Creating a VIEW
    The syntax for creating a VIEW is:
    CREATE VIEW view_name AS
    SELECT columns
    FROM table
    WHERE predicates;
    Interactive Report=>
    An interactive report generally works in the following fashion:
    1. Basic list is displayed.
    2. User double clicks on any valid line
        or
        User selects a line and presses as button on the tool bar.
    3. The corresponding event is triggered
    4. Then in the code, the line on which action was done, is read.
    5. Depending on the values in that selected line, a secondary list is displayed.
    6. Steps from 2-5 are repeated till the end.
    Classical Report=>
    THE LIST PRODUCED BY CLASSICAL REPORT DOESN'T allow user to interact with the system
        the list produced by interactive report allows the user to interact with the system.
    b)  ONCE A CLASSICAL REPORT EXECUTED USER LOOSES CONTROL.IR USER HAS CONTROL.
    c)  IN CLASSICAL REPORT DRILLING IS NOT POSSIBLE.IN INTERACTIVE DRILLING IS POSSIBLE
    Synchronous=>
    In synchronous update, you do not submit an update request using CALL FUNCTION... IN UPDATE TASK. Instead, you use the ABAP statement COMMIT WORK AND WAIT. When the update is finished, control passes back to the program. Synchronous update works in the same way as bundling update requests in a subroutine (PERFORM ON COMMIT). This kind of update is useful when you want to use both asynchronous and synchronous processing without having to program the bundles in two separate ways.
    Asynchronous =>
    Asynchronous calls are the default if the UPDATE parameter is not specified. Asynchronous calls do not effect the return code (sy-subrc).
    Note - This is opposite of how synchronous/asynchronous workflow tasks behave, in the sense that control is returned to the workflow in a synchronous step even if there is no commit or rollback encountered!
    I hope this will give you some idea to solve your problem.
    Thanks
    Mrutyunjaya Tripathy

  • Clear the Parameters on a Page

    Hi,
    Does anyone out there know who to clear the parameters on a page? I have users that input values into feilds on a page and when they press submit the results return. Now I want the users to be able to press another button to clear their inputs. The reset button does not work for this, it only resets the parameters to what they were when I pressed submit. I just need to know how to clear the parameters on a page. Please help!
    Thanks!

    try to add a button and put the following code in the controller. This is not a advisable approach in OAF , but it avoids the screen to be posted to the server even when clearing the input fields.
    StringBuffer resetScript = new StringBuffer("function formClear() {     ");
                   resetScript.append("     ");
                   resetScript.append("     for( i=0; i<document.forms[0].elements.length; i++) { ");
                   resetScript.append("          if(!document.forms[0].elements.readOnly){     ");
                   resetScript.append("          if (( document.forms[0].elements[i].type == 'text' ) || ( document.forms[0].elements[i].type == 'textarea' ) || ( document.forms[0].elements[i].type == 'password' )) {     ");
                   resetScript.append("               document.forms[0].elements[i].value = '';     ");
                   resetScript.append("          }     ");
                   resetScript.append("          if ( document.forms[0].elements[i].type == 'checkbox' ) {     ");
                   resetScript.append("               document.forms[0].elements[i].checked = false;     ");
                   resetScript.append("          }     ");
                   resetScript.append("          if ( document.forms[0].elements[i].type == 'select-one' && ( document.forms[0].elements[i].length != 0 )) {     ");
                   resetScript.append("               document.forms[0].elements[i].options[0].selected = true;     ");
                   resetScript.append("          }     ");
                   resetScript.append("     }     ");
                   resetScript.append("     }     ");
                   resetScript.append("     return;     ");
                   resetScript.append("}");
              pageContext.putJavaScriptFunction("formClear", new String(resetScript));
              OAButtonBean resetButton = (OAButtonBean) webBean.findIndexedChildRecursive("reset");
    if(resetButton != null)
    resetButton.setDestination("javascript:formClear('" + "');");

  • How to create a SPA/GPA parameter ?

    Dear Experts,
    Please help me in creating a new SPA/GPA parameter. Please let me know the procedure to this creation.
    Thanks in advance.

    Hi S R,
    ABAP programs can access the parameters using the SET PARAMETER and GET PARAMETER statements.
    To fill one, use:
    SET PARAMETER ID <pid> FIELD <f>.
    This statement saves the contents of field <f> under the ID <pid> in the SAP memory. The code <pid> can be up to 20 characters long. If there was already a value stored under <pid>, this statement overwrites it. If the ID <pid> does not exist, double-click <pid> in the ABAP Editor to create a new parameter object.
    To read an SPA/GPA parameter, use:
    GET PARAMETER ID <pid> FIELD <f>.
    This statement fills the value stored under the ID <pid> into the variable <f>. If the system does not find a value for <pid> in the SAP memory, it sets SY-SUBRC to 4, otherwise to 0.
    To fill the initial screen of a program using SPA/GPA parameters, you normally only need the SET PARAMETER statement.
    Regards,
    Tanveer.
    Please mark helpful answers.

  • HCM Performance Review  - How to clear user setting 'personalizations'

    Experts,
    We have disabled the ability for a user to select User Settings in the Performance Review by setting the following parameter :
    WDDISABLEUSERPERSONALIZATION in HRHAP_MAIN_DOCUMENT Parameters
    This successfully removed User Settings (right click, User Settings) as an option for our employees when displaying their performance review.  We had an issue with users Hiding comments sections so the user setting option was removed.
    Since the setting has been removed, the user cannot "Discard" the personalization settings they have made. 
    In the past, we have  cleared user's personalization settings in the MSS Portal via System Admin - Support - Portal Content Directory - Personalization cleanup, but this does not seem to clear the setttings made in the Web Dynpro application.
    Do any of you have suggestions ?  Thansks much for your insight !
    Chris Thomas
    Duke University and Health System

    This issue can be resolved using the following:
    b. Go to transaction SICF and follow the path to make sure this service is active.
    sap/bc/webdynpro/sap/wd_analyze_config_user
    Chris

  • How to set user parameters in transaction MD61 through a report?

    Hi,
    I want to set default values for 'Requirement Type' in user parameters of transaction MD61 through a report. Please help.
    Thanks in Advance.

    Create Variant using SHD0 and with Group and assign to particular user's
    Here is the steps
    Creating a Variant Group
    1. Open transaction SHD0, enter the transaction code, and press enter.
    2. Choose the Standard Variants tab page, and then the sub tab page Variant Groups, and enter a group name, such as GROUP_GEN
    3. Choose Create. Enter a short text on the Maintain Variant Group window that appears and save the variant group.
    Assigning Users
    Once you have created the variant group and the relevant transaction variants with screen variants, you now need to assign users to the variant group as follows
    1. Return to the Standard Variants tab page, Variant Groups sub tab page.
    2. Enter the name of a user that you want to assign to this variant group, and choose Assign. A message that this user was successfully assigned to the variant group appears in the status bar. If you choose a where-used list for users, this user is displayed in the user list.
    3. However, for the screen variants of the variant group that you created above to be displayed for the user, you first need to select Set Proposal. The user is assigned to the group and the associated transactions are started with the corresponding variants only once you choose the Set Proposal function.
    You can use this procedure of user assignment for all other users that you want to add to the variant group
    Hope this helps.
    Thanks
    S.N

  • Getting problem with running RWBLD60 with User parameters

    Hi All,
    I am trying to run a report using rwbld60 from command prompt which has input parameters
    I tried like this but it didnt work out
    rwbld60 module=reportname.rdf userid=scott/tiger@orcl destype=file desformat=pdf
    desname=report_out.pdf parameterform=NO params=parms_1 traceopts=trace_prf tracemode=trace_replace
    tracefile=trace.txt
    Can any one please tell me how i can pass user parameters for rwbld60
    Thanks,
    Amar

    actually, i do my FYP on bluetooth chatting...
    and there will be more than two emulators running at the same time..
    one of my frens said that if u want to run more than one emulator u just simply click on run button..
    and it will appear on the screen..

  • Passing User Parameters through Run_Report_Object

    hi,
    How to pass multiple user parameters through run_report_object.example i have to pass 20 parameters, have i write 20 statements? is there any way to come in single statement.i am using Forms 6i.
    thks in advance,

    A parameter list can be the second parameter of RUN_REPORT_OBJECT,
    rjob := RUN_REPORT_OBJECT(rep_id,paramlist_id);
    Gerald Krieger

  • On Lexical variables: Are they always treated as user parameters???

    Hi
    Report Developer 10g, Winodws XP platform, local client
    I have a dynamic where clause in my report query with a lexical variable &p_where which holds the where clause. This where clause is determined at runtime, depending on the user parameter value that was entered.
    My problem is, the lexical variable &p_where is automatically added to the list of my user parameters and does show up in my parameter form, when the report is run. This will cause lot of confusion to the user, as it is not part of user input.
    It is not a user parameter, but should be treated as a regular variable. How do I work around this?
    Thanks
    Suma

    I understand. The lexical variable was automatically added to the user parameters list upon it having appeared in a query.
    This is expected. The lexical variable must be defined. Since it is not a system parameter, Oracle*Reports added it to the user parameter list.
    But if it is also showing up on your user parameter FORM (the form which solicits input from the user prior to running the report), it can simply be deleted from that form without affecting its use in the query.
    Regards,
    Steve

  • Clearing Oracle Parameters to call diferent stored procs

    Sub Main
    Do While i < 3
    make_excel(i)
    i = i + 1
    Loop
    end Sub
    Sub make_excel(ByVal array As Integer)
    objCmd.Parameters.Add(New OracleParameter("p_cursor", OracleType.Cursor)).Direction = ParameterDirection.Output
    end Sub
    objCmd.Parameters.Clear()
    objCmd.Parameters.Remove("p_cursor")

    I agree with you. I was looking into mod_plsql, but it turns out that their development standards include not using Oracle HTTP server. The whole reason why they want to be able to execute a stored proc based on what is specified in an XML doc is that they want to avoid having to change their middle-tier configurations anytime a new stored proc or a change in stored proc parameters is made. I'm not familiar with what all is involved with .NET and the middle-tier, but supposedly this way, they can specify any stored procedure name and its parameters in an XML file. The XML is then suppose to be passed on to an Oracle stored procedure which will parse the XML and dynamically execute the stored procedure that was specified in the XML.
    Here is an example of the XML:
    '<Root>
      <PackageName>TEST_PKG</PackageName>
      <ProcedureName>TEST_PROC</ProcedureName>
        <Parameters> 
        <Parameter>
            <Name>EmpID</Name>
            <Value>12345</Value>
        </Parameter>
        <Parameter>
            <Name>Org</Name>
            <Value>ABC</Value>
        </Parameter>
        </Parameters>
    </Root>I basically need to parse out the pkg/proc names:
      SELECT t.COLUMN_VALUE.extract('//PackageName/text()').getstringval() PkgName,
             t.COLUMN_VALUE.extract('//ProcedureName/text()').getstringval() ProcName
         INTO v_pkg_name, v_proc_name
         FROM TABLE(xmlsequence(XMLTYPE(v_XML_input) .extract('/Root'))) t;...and then execute the procedure:
        EXECUTE IMMEDIATE 'BEGIN '||v_pkg_name||'.'||v_proc_name||'(:a, :b, :c); END;'
          using in v_in_param1, v_in_param2, out v_XML_output;The problem is that this approach is very complicated since there can be any number of IN/OUT parameters and of various datatypes. I would have to create all kinds of possible bind variables!

  • CUA and user parameters

    I thought CUA updated all user characteristics, but I just noticed that User Parameters are not updating on my system.  Is this configurable?  Is it supposed to work this way?  Does anyone know of documentation that explains this.  Thank you.

    Hi Leo,
    Generally User Parameters are set to PROPOSAL (recommended by SAP) which means the users should be able to mainatin their parameters in different systems individually.
    PFB the document stating the same in SAP HELP.
    http://help.sap.com/saphelp_nw04s/helpdata/en/6a/b1b13bb3acd607e10000000a11402f/content.htm
    Award points for helpful answers.
    Rgds,
    Sri

  • Calling report using Mapping File with user parameters

    Please provide an example of Key mapping file that provides user parameters to an Oracle Reports report, where paramform=no.
    I call an Oracle Reports report via APEX, and can't get the URL to work. If I don't use the mapping file, the call works. But I can't seem to get it to work using the mapping file to hide all the other params like userid etc.

    Please provide an example of Key mapping file that provides user parameters to an Oracle Reports report, where paramform=no.
    I call an Oracle Reports report via APEX, and can't get the URL to work. If I don't use the mapping file, the call works. But I can't seem to get it to work using the mapping file to hide all the other params like userid etc.

  • Documentation on user parameters set in SU3 or SU01?

    Hello all. I am trying to find documentation on the available user parameters set in SU3 for self-service or in SU01 by an admin.
    I frequently have users with issues with various reports, exports, etc. When all else fails, I remove all of their user parameters, the issue is resolved, and I add them back one by one until I find the offending incorrect parameter.
    Some of the parameters are self explanatory -- like Company Code, Currency, etc.
    But other, like GWRE for Report Writer, is just a series of X's. Like -- X XXX XEX....
    I can't figure out how to tell what most of them mean.
    Thanks so much.

    Amit Barnawal wrote:
    Hello Michael,
    > Parameters are exactly not needed, it is present there just for user's benefit, as suppose user needs to access particular company code always,and he dont need to put that everytime,so he can put that in parameters and it will automatically get filled.
    > Also look at below mentioned link
    > http://www.sap-img.com/basis/parameters-definition-and-details.htm
    Hi Amit,
    That is not strictly true (and the link contains incorrect information).
    Some parameters have historically been used to provide authorisation.  One of the most commonly used ones is EFB which is used to allow creation of a PO without reference to a PR.  That is only one example, there are lots in HR.

  • Pass User Parameters between Forms and Reports...?

    Hi,
    I have been trying to pass user parameters from forms to reports using
    RUN_REPORT_OBJECT. I am able to run the report from the form, but still don't know how to pass user_parameters. Does anyone know how to do this?
    Thanks,
    AB

    You can use SET_REPORT_OBJECT_PROPERTY with the "REPORT_OTHER" parameter
    The following example passes 3 parameters to the report:
    SET_REPORT_OBJECT_PROPERTY(pt_report_object_id, REPORT_OTHER, 'paramform=no p_param_1='||pc_param_1||' p_param_2='||pc_param_2);

Maybe you are looking for