Read profile parameter in ABAP

How could I read out a profile parameter such as zcsa/installed_languages in ABAP?
Is the a function I could use?
regards HT

Here is one way...
REPORT  zrich_0001.
types: begin of tpar,
       status type sy-index,
       name(60) type c,
       user_wert(60) type c,
       default_wert(60) type c,
       end of tpar.
data: par_usub type table of tpar with HEADER LINE.
data: par_sub  type table of tpar  with header line.
call 'C_SAPGALLPARAM' id 'PAR_USUB' field par_usub-*sys*
                      id 'PAR_SUB'  field par_sub-*sys*.
read table par_usub with key name = 'zcsa/installed_languages'.
if sy-subrc = 0.
  write:/ par_usub-name(30), par_usub-user_wert(20),
          par_usub-default_wert(20).
endif.
REgards,
Rich Heilman

Similar Messages

  • Msprot: cant read profile parameter rdisp/mshost

    Hi
    When I run : msprot -name <SID> -l it returns:
    cant read profile parameter rdisp/mshost
    rdisp/mshost is set in the default profile to : sapms<SID>
    in etc/services  sapms<SID> is assigined to   <port_number>/tcp
    If you change rdisp/mshost to the port number rather than sapms<SID> it works....but we don't want to change the parameter to the port number.
    Thanks
    Jim

    Thanks.....i've being testing the command....it's like it can't read the default profile...
    if i use mshost switch it complain it can't read msserv.....once I use both switch it runs ok....
    I changed default profile to 777 just to test if it was a permissions issue but that didn't make a difference.
    Thanks for the note but that seems to be dealing with windows...i'm working on sun...tried it on linux also and get
    the same problem....
    Cheers
    Jim

  • Read profile parameter with less "IF" arguments

    HI ,
    there is a better way to do this if statement,without the 3 if  ?
    IF is_dev-ext_langu IS INITIAL .
        is_dev-be_langu = ls_defultes-langu.
        IF is_de-be_langu IS INITIAL.
          "Retrieve from system  RZ11
          lv_par_name =  para.
          "Calls a C-routine within the SAP kernel.
          CALL 'C_SAPGPARAM' ID 'NAME'  FIELD lv_par_name 
                              ID 'VALUE' FIELD is_device-be_langu.
          IF sy-subrc <> 0.
            CALL 'C_SAPGALLPARAM' ID 'PAR_SUB'  FIELD lt_par_sub.
            READ  TABLE lt_par_sub INTO ls_par_sub WITH KEY pname = para1
            is_dev-be_langu = ls_par_sub-default_wert.
          ENDIF.
        ENDIF.
      ENDIF.
    regards
    Chris
    Edited by: Julius Bussche on Sep 14, 2009 8:59 PM

    Thanks SaS,
    There are a lot of things to fix here...
    - Duplicate deleted.
    - Title given more meaning.
    - Moved to performance, though I am not completely sure why you wanted that...
    Now for the coding, I leave that up to you guys - but wonder for what one wants to compare the logon language or sy-langu with the instance default language.
    C-calling the kernel routine is anyway a bit ugly, even if stable...
    A released FM would be a much better option...
    @Chris: What exactly are you trying to achieve here and why? (what are you doing with it)
    Cheers,
    Julius

  • ABAP -WebDynpro - Read URL Parameter

    Hi,
    We have a Custom 'Catalog' that needs to be called from SRM using OCI (Open Catalog Interface). We are developing this custom catalog using ABAP Web Dynpro. We have following issues because of which we are unable to communicate back to Shopping cart from the Custom Catalog:
    1. Unable to read the value of 'HOOK_URL' in WebDynpro application. We need this value so that it can be used as Exit URL. How and where do we read this URL parameter in ABAP WebDynpro ?
    2. How can we return the 'HTML Form' to SRM with the values from Custom Catalog to fill the shopping cart ?
    I would appreciate your help...
    Thanks
    Meenal

    Hi Menal,
    I had the same problem.
    Did you define the HOOK_URL parameter in your webservice ? If not, do this 1st.
    2nd
    In you Webdynpro read the HOOK_URL in your handledefault method your window. Store it e.g. as attrribute in you assistance class.
    method handledefault .
    *&- Add FOF and HOOK_URL to assistanceclass attributes
      wd_assist->hook_url = hook_url.
    endmethod.
    After this you can read your HOOK_URL e.g in a view via:
    concatenate 'HOOK_URL=' wd_assist->hook_url zlv_hook_url into zlv_hook_url
    I hope your question is answered.
    What I want to now is: How to controll the HOOK_URL so that the formfields of the extenal catalog is added to the shopping card. Do you now that ?
    John

  • Profile Parameter to execute Abap Program at user logon.

    Hi Experts
    I've written a small printer selection program to change the users profile parameter.
    Is there another profile parameter that can be given to execute this program automatically
    when the user logs on.....The reason why I'm looking for a profile parameter to do this is, that only
    certain users need to have this happen at logon.
    Kind Regards
    Vic

    Hi Javi,
    I don't think you need a custom process chain for this. You can use delivered Process Chain for logic and hard-code your script name in the package. In that script you can call BADI that has your ABAP program inside.
    You can find guides how to build BADI here:[How to Pass Parameters to Custom Logic BADI using START_BADI|http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/20f4252d-98ca-2b10-e689-f85085ae2d12] or here [Creating Custom Script Logic Keyword BADI's - BPC NW|Creating Custom Script Logic Keyword BADI's - BPC NW;.
    Method IF_UJ_CUSTOM_LOGIC~EXECUTE has IT_CV as one of parameters. In your script you probably have to use *XDIM_MEMBERSET to get parameters from DM prompt. IT_CV will have all XDIM members.
    Please let me know if you have any other questions.
    Regards,
    Gersh

  • Abap/SIGCHILD_default profile parameter

    Hi All,
    I tried to add the parameter abap/SIGCHILD_default in instance profile and it's value as 'on' but I recieve a message - 'Unknown parameter abap/SIGCHILD_default, a check cannot be performed', 'Parameter value not permitted'.
    I already referred the Note 790017 - sy-subrc of CLOSE DATASET if FILTER addition used and our SAP release is 701 EhP4.
    However, still I continued and now parameter is added into the profile and profile is activated after SAP restart.
    Any idea why it says that parameter not permitted? And I think still this parameter has no relavance in our system because we recieved that particular message ?
    Thanks and Regards
    Subba Rao

    Hi Juan,
    Thanks for quick reply.
    I found another note similar to what you said, for e.g.  Note 903245 - VMC Profile Parameters are not known in RZ10/RZ11, however parameters are different.
    This note suggests, 'You can add VMC parameters with RZ10, also if RZ10 doesn't know the parameter name. Important is, that the kernel knows it. If the kernel doesn't know the parameter too, it will be ignored.'
    Please confirm, is it the similar case here with 'abap/SIGCHILD_default' ? In earlier note I pasted it was written - 'In the SAP Kernel 7.00, the profile parameter abap/SIGCHILD_default is available since Patch Level 0'. So I think for our SAP Release 701 this parameter is already available for our kernel and it will work fine despite that 'unknown parameter' message in RZ10 ?
    In RZ11, I see the same messgae - 'The parameter name is not known'.
    Thanks & Regards
    Subba Rao

  • Setting profile parameter icm/HTTP/error_templ_path

    Hi, I have a SAP Enterprsie Portal installation with only java stack (no abap stack),
    i want to set a profile parameter icm/HTTP/error_templ_path,
    please direct me how to set this parameter, 
    also, i need this parameter to be applicable for the SAP web dispatcher, i mean it should be effective for all java instances (i have 2 java instances),
    please help,.......................as there is no ABAP stack, i dont know where to set this parameter

    That parameter you mentioned describes of where the error templates can be found
    You can generate your own static or dynamic error pages for the ICM
    which are sent to the client if an error occurs. Use this parameter
    to specify the directory in which the ICM can find the pages.
    If this parameter is not set, the ICM returns its own static error
    page.
    For information about how to generate the error pages, see the
    documentation in the SAP Library or using the Help Portal.
    SAP Web Application Server -> Client/Server Technology ->
    Architecture of the SAP Web Application Server -> SAP Web
    Application Server Components -> Internet Communication Manager ->
    Error Handling Using the ICM.
    Eventhough u have only java stack u'll have an ICM.
    Since the value for the parameter is just a string mentioning the path of the folder which contains the customised web pages.
    Mention the same path in all the instance profiles (in your case 2 java instances).

  • Creating a Perl script for SAP sytem profile parameter

    Hi,
    I need to create a perl script for all th eprofile parameter to check as a security directive ,so that whenever the system is started it checks for this profile parameter.
    As per my company sap directive ,these are the profile parameter i need to set.
    Can anyone let me know how to write the scripts.
    login/min_password_lng Minimum password length for user password 320 Min.
    8
    login/password_expiration_t
    ime
    Number of days between forced password change. 0 Max.
    35
    login/fails_to_session_end Number of invalid logon attempts allowed before the
    SAP GUI is disconnected.
    3 Max.
    3
    login/fails_to_user_lock Number of invalid logon attempts before the user id is
    automatically locked by the system.
    12 Max.
    6
    rdisp/gui_auto_logout Time, in seconds, that SAPGUI is automatically disconnected
    because of in-activity.
    0 60-
    7200
    21
    auth/test_mode Jump into report RSUSR400 at every authority check N N22
    auth/system_access_check_
    off
    Switch off automatic authority check for special ABAP
    commands
    0 0
    auth/no_check_in_some_ca
    ses
    Special authorization checks turned off by customer.
    Enabling of Profile Generator
    N/Y23 Y
    login/ext_security Security access controlled by external software. N N24
    auth/rfc_authority_check Permission for remote function calls from within ABAP
    programs
    0 1
    login/failed_user_auto_unlo
    ck
    Enable system function for automatic unlock of users
    at midnight. (0 = locks remain)
    0 0
    login/
    no_automatic_user_sapstar
    (as of 3.1h)
    login/no_automatic_user_sa
    p* (prior to 3.1h)
    Disable ability to logon as SAP* with PASS as password
    when SAP* deleted.
    0 125,26
    auth/tcodes_not_checked TCode checking for SU53 & SU56 analysis disabled (empty
    "SU5
    3
    Regards,
    Chetan.

    Here's a simple perl script that should help you get what it is you're looking for - you can add all the parameters you want to search for, I just took a few of them:
    #!/usr/bin/perl -w
    use strict;
    use sapnwrfc;
    SAPNW::Rfc->load_config;
    my $rfc = SAPNW::Rfc->rfc_connect;
    my @parms = (   "login/min_password_lng",
              "login/password_expiration_time",
              "login/fails_to_session_end",
              "login/fails_to_user_lock" );
    for my $x (0 .. $#parms) {
         my $rcc = $rfc->function_lookup("SXPG_PROFILE_PARAMETER_GET");
         my $slr = $rcc->create_function_call;
         $slr->PARAMETER_NAME($parms[$x]);
         $slr->invoke;
         print "Value for $parms[$x] is: ".$slr->PARAMETER_VALUE."\n";
    $rfc->disconnect();
    And running it, you'll get:
    [dhull@397 scripts]$ ./read-profile.pl
    Value for login/min_password_lng is: 7
    Value for login/password_expiration_time is: 90
    Value for login/fails_to_session_end is: 3
    Value for login/fails_to_user_lock is: 6
    [dhull@397 scripts]$
    If you need to get your perl environment read to make RFC calls to your SAP system, check my series of blogs on how to do so here:
    https://www.sdn.sap.com/irj/scn/weblogs?blog=/pub/u/251752730
    Cheers,
    David.

  • User Profile Parameter ID KVS not work

    Hi,
    I've got some troubles with parameter id KVS. I set it in my user profile,
    parameter = KVS    
    value = B2   
    description = Version (CO)
    when I call report GPCQE53LSADXCC16KZ1R96N5156001, there are two fields with this parameter,
    and their value remain "0" instead of "B2".
    I need to put the parameter value on one of this two fields, how can I do?
    Could someone help me?
    thank you in advance,
    Fede

    You can run Incremental Sync from user profile 3-4 times. This will delete the user profile from SharePoint UPA.
    Now, we need to run UPA clean job timer job available in Job Definition inside central administration.
    This is a by design issue which you have raised. But, to get it done on the same day you need to follow above mentioned steps. This would be done in some hour and cannot be achieved in 4-5 minutes. So, your original request is a by design issue and can be
    done i some hours.
    Thank You, Pallav S. Srivastav ----- If this helped you resolve your issue, please mark it Answered.

  • Reading URL parameters in ABAP webdynpro

    I have a requirements to run my ABAP Webdynpro application view based on two parameters passed to it from portal. How can I read the parameters in ABAP webdynpro and use them to write my condition in the run time. I would appreciate it if someone has any code that would help me also.
    Again your help and support is highly appreciated.
    Lily

    Hi Lily,
    To read the URL parameters, you need to right the following code in the HANDLEDEFAULT method
    of the your default window controller.
    DATA : it_parameter TYPE tihttpnvp,
             wa_parameter  TYPE ihttpnvp.
      DATA lo_nd_url_param TYPE REF TO if_wd_context_node.
      DATA ls_url_param TYPE wd_this->element_url_param.
      " Get all URL parameters
      CALL METHOD wdevent->get_data
        EXPORTING
          name  = if_wd_application=>all_url_parameters
        IMPORTING
          value = it_parameter.
      " Get parameter values
      CLEAR wa_parameter.
      READ TABLE it_parameter WITH KEY name = 'PERNR' INTO wa_parameter.
      IF sy-subrc EQ 0.
        ls_url_param-pernr = wa_parameter-value.
      ENDIF.
      CLEAR wa_parameter.
      READ TABLE it_parameter WITH KEY name = 'SUBTY' INTO wa_parameter.
      IF sy-subrc EQ 0.
        ls_url_param-subty = wa_parameter-value.
      ENDIF.
      CLEAR wa_parameter.
      READ TABLE it_parameter WITH KEY name = 'BEGDA' INTO wa_parameter.
      IF sy-subrc EQ 0.
        ls_url_param-begda = wa_parameter-value.
      ENDIF.
      CLEAR wa_parameter.
      READ TABLE it_parameter WITH KEY name = 'ZZPRNTOPT' INTO wa_parameter.
      IF sy-subrc EQ 0.
        ls_url_param-zzprntopt = wa_parameter-value.
      ENDIF.
      " Save URL parameter to context
      lo_nd_url_param = wd_context->get_child_node( name = wd_this->wdctx_url_param ).
      lo_nd_url_param->set_static_attributes(
         static_attributes = ls_url_param ).
    Regards,
    Vikrant

  • Profile parameter for to change password

    Hello everyone.
          Is there any profile parameter to change the password after certain number of days say 30 days. I see there are profile parameters for lenght , uppercase, lowecase but is there one to change the password after a given period of time.
    Thanks.
    Neha.

    > I checked the profile parameters using the program RSPARAM. But I am not able to find a parameter to prevent the old password from being used at least ten times. I also checked in the table TPFET.
    >
    login/min_password_diff                  min. number of chars which differ between old and new password
    > And also can we prevent the password being same as user id.
    >
    > Should these parameters be changed in the deafault profile or instance or start profile.
    >
    It depends ... you may decide this by discussing with BASIS team and as per your Company SOP. I prefer Default profile. But never use Instance profile.
    Please go through the following links:
    [Password Rules|http://help.sap.com/saphelp_nw04/helpdata/en/d2/141fb593c742b5aad8f272dd487b74/frameset.htm]
    [Profile Parameters for Logon and Password (Login Parameters)|http://help.sap.com/saphelp_nw04/helpdata/en/d2/141fb593c742b5aad8f272dd487b74/frameset.htm]
    [Password rules and preventing incorrect logons|https://websmp110.sap-ag.de/~form/handler?_APP=01100107900000000342&_EVENT=REDIR&_NNUM=2467&_NLANG=E]
    [ Note 862989 - New password rules as of SAP NetWeaver 2004s (NW ABAP 7.0)|https://service.sap.com/sap/support/notes/862989]
    [Logon and Password Security in the SAP System|http://help.sap.com/saphelp_nw04/helpdata/en/eb/4bb638b5358259e10000009b38f8cf/frameset.htm]
    Regards,
    Dipanjan

  • Profile parameter.....activate

    Dear all,
    After Ecc 6.0 installation......we want to activate one profile parameter na  in RZ10, RZ11. Can anyone guide me how to activate that profile parameter, give the profile parameter name also..... Thanks in advance

    Hi Harish,
    To activate the profiles please do the foll:
    Go to t.code RZ10 and enter the profile name you want to activate, use the pushbutton to display profiles that are available then choose the profile and activate it. Stop and restart the SAP instance for the profile through CCMS.
    ABAP program RSPARAM helps you to find out the Parameters which are active for a given SAP instance.
    Hope it helps.
    Regards,
    Raghu

  • Setting Profile Parameter in Mini SAP

    Dear experts,
    Is it possible to set / edit a profile parameter in Mini SAP?
    I opened transaction RZ10. When I pressed F4 on the 'Profile' field, I received a message saying 'No profile found'. I'm using SAP Netweaver 2004s ABAP Trial Version 7.00.
    Thanks in advance.
    Regards,
    Haris

    Hi,
    My names eyup. İm from turkey.
    İm not good english. İm sorry.
    İ began to learn the new abap.but im minisap not installation.
    Can I help me .please.
    best regards
    Edited by: eyupcan on Jul 28, 2011 8:55 AM

  • SAP Security audit log and Profile Parameter rsau/enable

    Does the Profile Parameter rsau/enable have to ="1" for the audit log to be active or is this parameter set to purely allow the maintainance of static profiles. I have been reading into SAP's documentation and they only refer to this parameter in the "Maintaining Static Profiles" section. Therefore I would like to know if the audit log can record when the parameter rsau/enable = "0"?
    Many thanks

    Hi
    I have it running on my NW2004s sneak peak system, whit a dynamic filter and the rsau/enable = 0. So Yes - it's possible to record in the secure audit log with rsau/enable = "0", if your using the dynamic filters
    Regards
    Morten Nielsen

  • What is profile parameter?

    Q1     What is profile parameter?

    Hi,
    This may also help you:
    http://help.sap.com/saphelp_nw04/helpdata/en/c4/3a615d505211d189550000e829fbbd/frameset.htm
    bye.

Maybe you are looking for

  • AM console - Unable to create Users

    I'm unable to create users under any organization through AM console. I'm getting the following error in amProfile_ldap. 12/04/2006 10:19:03:585 AM CST: Thread[service-j2ee-2,5,main] WARNING: DirectoryServicesImpl.createUser(): Internal Error occurre

  • Dual Layer break point - multiple videos

    I have 4 videos to go one the DVD, comes to 8.5 GB in total. 1. 45mins 2. 1hr 15mins 3. 40 mins 4. 35 mins How do I know which video to put the break point on and at what time. I've been using trial and error for the last couple of days now and error

  • Apple email address

    How do I set up an email address for my Apple MacBook Pro? Sincerely, Lucienne

  • I have a new iMac but iMovie 11 won't open - just crashes instantly?

    Originally it did open but when asked to convert thumbnails from video in iPhoto when selecting this option to access these videos - it crashed. I have tried deleting it the app and redownloading it but this hasn't worked and now it simply crashes on

  • Can't see the songs on my Ipod

    When I connect the Ipod to the computer I can see it in the "source" window in the iTunes. Under the Ipod line there is a line named "on the go-1". This list contains a list of songs that can be played by the computer while the Ipod is connected. Whe