Use of C_SAPGPARAM

Hi,
Can anybody tell me how to use C_SAPGPARAM C function. Are there any
security concerns in using this. I am using this to get the name of the stat
file in SAP systems. Is there any better way to read system parameters than
this function. This stat file is in each application server.
Thanks before hand.

For instance, you can use it to get the server name :
DATA: w_server_name LIKE MSXXLIST-NAME.
CALL 'C_SAPGPARAM'
ID 'NAME' FIELD 'rdisp/myname' ID 'VALUE'
FIELD w_server_name.
Code Formatted by: Alvaro Tejada Galindo on Apr 25, 2008 4:07 PM

Similar Messages

  • BAPI to get password policies in ABAP environement

    Hi all,
    I  am new to the SAP ABAP environement. (worked to some extent on  JAVA stack).
    I am working on the RFCSDK using  C language.
    I wanted to know how to see the password policies in ABAP environment.
    I went through the link
    http://help.sap.com/saphelp_nw04s/helpdata/en/22/41c43ac23cef2fe10000000a114084/content.htm
    Now my question are as follows:
    a)Which transaction should i use to see this values
    b)Is there a BAPI provided to access this values. (using C language)
    Best Regards
    Manoj

    this is not an abap question, but a basis question.
    password settings are maintained with system profile parameters.
    go to transaction RZ11 and search for passw parameters.
    I found a FM by searching for profilepar*
    in the code it uses  
    CALL 'C_SAPGPARAM'                               
         ID 'NAME' FIELD 'auth/object_disabling_active'
         ID 'VALUE' FIELD RET.                         
    I think this one checks the parameters
    regards, Rob,

  • Transfer a xml file from application server to another server using FTP

    Hi experts,
    I am stuck in this situtaion.
    My interface generates a xml file on an application server.
    Now i need to read the xml file generated and transfer it to another system using FTP.
    I can use READ DATASET to read the file from the application server.
    And use the below function modules to transfer it to another system
         HTTP_SCRAMBLE.
         FTP_CONNECT
         CONCATENATE 'put' src_file_dest into variable.
         FTP_COMMAND with command = variable.
         FTP_DISCONNECT.
    Now my question is:
       - Is it correct????
       - I am getting an cerror = 3 while using FTP_CONNECT. is it an authorization issue???
         if yes, what is the issue???
       - How to connect the file read from READ DATASET to the FTP Function Modules ????
    Thanks and Regards
    Gaurav Raghav

    Try the following set of FTP commands..
    This code gets the file (NOT the content) from the server and sends it to the FTP.
    *********start send file to FTP********************
    * FTP commands : 1. ascii
    *       2. cd
    *       3. lcd
    *       4. put
    call function 'HTTP_SCRAMBLE'
        exporting
          source      = x_pwd
          sourcelen   = dstlen
          key         = key
        importing
          destination = destin.
      clear pass.
      pass = destin.
      call function 'FTP_CONNECT'
           exporting
                user            = x_user
    *            PASSWORD       = X_PWD
                password        = pass
                host            = x_host
                rfc_destination = x_dest
           importing
                handle          = hdl.
    *  COMMAND ascii -->
      refresh : x_result.
      call function 'FTP_COMMAND'
        exporting
          handle        = hdl
          command       = cmd_ascii
          compress      = compress
        tables
          data          = x_result
        exceptions
          command_error = 1
          tcpip_error   = 2.
    *command cd SAP\ -->
      split x_file at '\' into dummy ftp_file.
      concatenate x_cmd1 dummy into dummy2 separated by space.
      concatenate dummy2 '\' into cmd_cd.
      refresh : x_result.
      call function 'FTP_COMMAND'
        exporting
          handle        = hdl
          command       = cmd_cd
          compress      = compress
        tables
          data          = x_result
        exceptions
          command_error = 1
          tcpip_error   = 2.
    constants: winslash(1)   value  '\',
                unixslash(1)  value  '/'.
    call 'C_SAPGPARAM' id 'NAME'  field 'DIR_HOME'
                         id 'VALUE' field  tempdir.
    * command lcd SERVER\usr\....\DIR_HOME --?
    concatenate 'lcd' tempdir into cmd_lcd separated by space.
    refresh : x_result.
    call function 'FTP_COMMAND'
        exporting
          handle        = hdl
          command       = cmd_lcd
          compress      = compress
        tables
          data          = x_result
        exceptions
          command_error = 1
          tcpip_error   = 2.
    * COMMAND put file -->
    concatenate 'put' ftp_file into cmd_put separated by space.
    refresh : x_result.
      call function 'FTP_COMMAND'
        exporting
          handle        = hdl
          command       = cmd_put
          compress      = compress
        tables
          data          = x_result
        exceptions
          command_error = 1
          tcpip_error   = 2.
    * command ls -->
      refresh : x_result.
      call function 'FTP_COMMAND'
        exporting
          handle        = hdl
          command       = cmd2
          compress      = compress
        tables
          data          = x_result
        exceptions
          command_error = 1
          tcpip_error   = 2.
      call function 'FTP_DISCONNECT'
        exporting
          handle = hdl.
    ******* end send file to FTP*****
    Edited by: Iria Koutsogianni on Jan 19, 2009 11:50 AM

  • Use of C-calls in file browser

    Hello
    I have a question pertaining to the use of C-calls in a class that I'm writing. The purpose of the class is to allow a user to browse files on either the current application server or a remote application server. Additionally the browser would be used in a product that our company is shipping to a number of clients so the code needs to be portable between different systems. I'm using the following C-calls: C_SAPGPARAM, C_DIR_READ_START, C_DIR_READ_FINISH and C_DIR_READ_NEXT.
    Obviously these functions are fast but their portability to other systems might be an issue. The product would also be up for SAP certification later this year and I have no idea what the impact of the use of these functions would be.
    The question that I have is whether there is an alternative way to browse for files on an application server? Basically what it should do is return a list of entries of a directory on the server and indicate whether an entry is a file or directory, it should of course be relatively fast in order to avoid unnecessary delays when browsing directories.
    Anyway, help and advice in this regard would be greatly appreciated.
    Bye
    Ettienne Hugo

    Hi,
    Statndard Transaction in SAP itself uses the same C-Calls.
    For Eg , AL11 uses these C-Calls.
    The Function module SUBST_GET_FILE_LIST fetch all the files in a specified folder.But still this too iuses C-Calls
    Regards
    Immanuel D

  • How to use 2 Time trigger UI elements

    Hi Experts,
      My user doesn't want to see the time out error in the webdynpro application after leaving(idle mode) the browser for hours. And one more thing is he wants a popup for every 15mnts to show a message on the screen.
    So, I have used 2 Time Trigger UI elements to achieve this functionality,
          1st one(Time Trigger UI Element) is used to show the pop up message and It is working fine to show the message in a Pop Up .
          2nd one is used to handle the Time Out Error for hours and this is not working as expected, if user leaves the browser for hours .
    I hope you understand my requirement and issue.
    Could you please suggest me how to achieve this functionality.
    1000 Thanks in advance.
    Regards,
    Giri

    Hi,
    If I set the 3 hours to 2nd Time Trigger UI element and tested after 2 hours and browser is still throwing the time out error message.
    After 2hrs is the time out error throwing by the Timed trigger or the standard session time out? I believe after 2 hrs the standard session time out is throwing! You need to give the delay time less than your session time out.
    You can get the session timeout using wdr_task=>server->session_timeout ( in mins ) And you can get the application server time out using
    data: name type pfeparname,
            value type pfepvalue.
      name = 'rdisp/plugin_auto_logout'.   " parameter
      call 'C_SAPGPARAM' id 'NAME'  field name
                                        id 'VALUE' field value.   " value contains time out 
    Regards,
    Kiran

  • Alternate to "CALL 'C_SAPGPARAM'"

    Hi All,
    To determine the SAP server name, I have been using the statement "CALL 'C_SAPGPARAM'". But I have just learnt that from Release 6.2 onwards these CALL statements must not be used and should be replaced by Kernal Methods.
    Can anyone guide me how to use Kernel Methods to find out the SAP server name?
    Thanks and Regards,
    Vidya.

    There are a series of Function Modules in SAP that you can use.
    TH_GET_ACTIVE_SERVER          will show the server you are currently logged on to
    TH_GET_VIRT_SERVER               show virtual server
    TH_SERVER_LIST                         will show the list of servers for the System
    I hope this helps...

  • Function C_SAPGPARAM not working to get  rdisp/plugin_auto_logout value...

    Hi folks,
       I have this abap code where I am trying to get the value for the timeout parameter..'rdisp/plugin_auto_logout'...but it does not seem to work it comes back with 0 whereas the system has a value of 900 (verified using rz11)....thanks...
      <%
        data: name TYPE String.
        data: timeoutStr type String.
        data: value type i.
        data: timeout type i.
        name = 'rdisp/plugin_auto_logout'.
        call 'C_SAPGPARAM' id 'NAME'  field name
                           id 'VALUE' field value.
        timeout = value - 780.
        timeout = timeout * 1000.
        timeoutStr = timeout.
        %>
    Thanks,
    Venkatesh

    Thanks for the reply,
    The code works perfect when written as a standalone abap program,
    but when I have it in the document_body.htm file in the BSP application
    hap_document (for priorities in ESS) I get an error saying..thx for your help though..
    Access is Denied..
    and it does not work in the bsp page...here is my code....
    <script type="text/javascript">
         alert("You have just wasted 10 seconds of your life.");
    function remind() {
    var msg = "Your Session will be timed out in 5 minutes";
    alert(msg);
    </script>
    <htmlb:content design="design2003" >
      <%
        DATA: NAME TYPE TPFYDOC-PARANAME.
    DATA: TIMEOUTSTR TYPE STRING.
    DATA: VALUE TYPE I.
    DATA: TIMEOUT TYPE I,
          USR_PARVALUE(60),
          SHM_PARVALUE(60).
    NAME = 'rdisp/plugin_auto_logout'.
    CALL 'C_SAPGPARAM' ID 'NAME'    FIELD NAME
                       ID 'VALUE34' FIELD USR_PARVALUE
                       ID 'VALUE44' FIELD SHM_PARVALUE.
    MOVE USR_PARVALUE TO VALUE.
    TIMEOUT = VALUE - 820.
    TIMEOUT = TIMEOUT * 1000.
    TIMEOUTSTR = TIMEOUT.
    %>
      </htmlb:content>
    <script type="text/javascript">
       setTimeout("remind()",<%=TIMEOUT %>);
    </script>

  • How do I use Edge Web Fonts with Muse?

    How do I use Edge Web Fonts with Muse - is it an update to load, a stand alone, how does it interface with Muse? I've updated to CC but have no info on this.

    Hello,
    Is there a reason why you want to use Edge Web Fonts with Adobe Muse?
    Assuming you wish to improve typography of your web pages, you should know that Muse is fully integrated with Typekit. This allows you to access and apply over 500 web fonts from within Muse. Here's how you do it:
    Select a text component within Muse, and click the Text drop-down.
    Select Add Web Fonts option, to pop-open the Add Web Fonts dialog.
    Browse and apply fonts per your design needs.
    Muse also allows you to create paragraph styles that you can save and apply to chunks of text, a la InDesign. Watch this video for more information: http://tv.adobe.com/watch/muse-feature-tour/using-typekit-with-adobe-muse/
    Also take a look at these help files to see if they help you:
    http://helpx.adobe.com/muse/tutorials/typography-muse-part-1.html
    http://helpx.adobe.com/muse/tutorials/typography-muse-part-2.html
    http://helpx.adobe.com/muse/tutorials/typography-muse-part-3.html
    Hope this helps!
    Regards,
    Suhas Yogin

  • How can multiple family members use one account?

    My children have iphones, ipads, ipods and mac books, my problem is how do you use home sharing with the devices and not get each others data.  My Husband just added his iphone to the account and got all of my daughters contacts.  I understand they could have there own accounts but if i buy music on itunes and both children want the same song, I don't feel i should have to pay for it twice.  Is there away we can have home sharing on the devices and they can pick and choose what they want? and is this icloud going to make it harder to keep their devices seperate?

    My children have iphones, ipads, ipods and mac books, my problem is how do you use home sharing with the devices and not get each others data.  My Husband just added his iphone to the account and got all of my daughters contacts.  I understand they could have there own accounts but if i buy music on itunes and both children want the same song, I don't feel i should have to pay for it twice.  Is there away we can have home sharing on the devices and they can pick and choose what they want? and is this icloud going to make it harder to keep their devices seperate?

  • Iphoto crashing after using mini-dvi to video adapter

    Hi, IPhoto on my Macbook is crashing. I can open it, then as soon as I scroll down it locks up and I have to force quit.
    This started happening right after I used a Mini-DVI to Video Adapter cable to hook my macbook up to my TV. The adapter/s-video connection worked and I was able to see the video on the tv. But iphoto immediately locked up the computer when I went to slide show and now it locks every time I open it.
    Any ideas?
    Thank you:)
    Dorothy

    It means that the issue resides in your existing Library.
    Option 1
    Back Up and try rebuild the library: hold down the command and option (or alt) keys while launching iPhoto. Use the resulting dialogue to rebuild. Choose to Rebuild iPhoto Library Database from automatic backup.
    If that fails:
    Option 2
    Download iPhoto Library Manager and use its rebuild function. This will create a new library based on data in the albumdata.xml file. Not everything will be brought over - no slideshows, books or calendars, for instance - but it should get all your albums and keywords, faces and places back.
    Because this process creates an entirely new library and leaves your old one untouched, it is non-destructive, and if you're not happy with the results you can simply return to your old one.
    Regards
    TD

  • How do multiple family members use iTunes.? One account or multiple?

    How do multiple family members use iTunes. One account right now but apps gets added to all devices and iTunes messages go to all devices.  Can multiple accounts be setup and still have ability to share purchased items?

    Hey Ajtt!
    I have an article for you that can help inform you about using Apple IDs in a variety of ways:
    Using your Apple ID for Apple services
    http://support.apple.com/kb/ht4895
    Using one Apple ID for iCloud and a different Apple ID for Store Purchases
    You can use different Apple IDs for iCloud and Store purchases and still get all of the benefits of iCloud. Just follow these steps:
    iPhone, iPad, or iPod touch:
    When you first set up your device with iOS 5 or later, enter the Apple ID you want to use with iCloud. If you skipped the setup assistant, sign in to Settings > iCloud and enter the Apple ID you’d like to use with iCloud.
    In Settings > iTunes and App Stores, sign in with the Apple ID you want to use for Store purchases (including iTunes in the Cloud and iTunes Match). You may need to sign out first to change the Apple ID.
    Mac:
    Enter the Apple ID you want to use for iCloud in Apple () menu > System Preferences > iCloud.
    Enter the Apple ID you want to use for Store purchases (including iTunes in the Cloud and iTunes Match) in Store > Sign In. In iTunes 11, you can also click iTunes Store > Quick Links: Account.
    PC (Windows 8):
    Enter the Apple ID you want to use for iCloud in the Control Panel. To access the iCloud Control Panel, move the pointer to the upper-right corner of the screen to show the Charms bar, click the Search charm, and then click the iCloud Control Panel on the left.
    Enter the Apple ID you want to use for Store purchases (including iTunes in the Cloud and iTunes Match) in iTunes. In iTunes 10, select Store > Sign In. In iTunes 11, click iTunes Store > Quick Links: Account.
    PC (Windows 7 and Vista):
    Enter the Apple ID you want to use for iCloud in Control Panel > Network and Internet > iCloud.
    Enter the Apple ID you want to use for Store purchases (including iTunes in the Cloud and iTunes Match) in iTunes 10 in Store > Sign In. In iTunes 11, click iTunes Store > Quick Links: Account.
    Note: Once a device or computer is associated with your Apple ID for your iTunes Store account, you cannot associate that device or computer with another Apple ID for 90 days. Learn more about associating a device or computer to your Apple ID.
    Thanks for using the Apple Support Communities!
    Cheers,
    Braden

  • Using SQVI to generate report of open and released delivery schedule lines

    All,
    I'm using SQVI  to generate an excel spreadsheet for some buyers to show open released schedule lines because they are a 1 line item per scheduling agreement company.
    I used the logical database MEPOLDB instead of a table joint and pulled fields from EKKO(vendor, SA #,&purchasing group), EKPO(Material Number), EKEH(schedule line type), and EKET(delivery date, scheduled qty,previous qty).
    Does this sound like I'll get the results I want on paper as long as I use the right selection criteria, because the report I'm getting isn't quite what I expect? I am unable to identify which lines are authorized to ship vs. trade-off zone, planning, etc. in the report thus far.

    Hi Mark,
                 I have faced same requirement. I am not sure about transporting to TST and PROD. I done by this way.
    After generating SQVI program in DEV , I assigned that program  to a transaction and tested in DEV. Later i have regenarated SQVI in Production. then I assigned the generated Program to same transaction in DEV. And transported the Tcode assignment of program to Production..
    About authorization , if its not sensitive report, BASIS can restrict at transaction level.
    Regards,
    Ravi.

  • Using Mini DVI to VGA adapter on MacBook

    I bought the adapter from Apple & hooked up my LCD monitor to the MacBook, but the video I get on the monitor is different that on my laptop. It has an old screen background & the dock but nothing on my desktop shows up. Also, when I'm plugged to the monitor, my dock disappears on the laptop screen. Is there some setting I need to change? It worked fine with my G4 PowerBook.
    Thanks for any help....
    MacBook   Mac OS X (10.4.6)  

    i use the mini dvi-vga adapter in my classroom almost everyday. It sounds like your new monitor is running as a side by side monitor to your display instead of a "replacement" display.
    To get your projector/monitor to basically show whatever is on your macbook screen once you've hooked up press F7....this should make your projector/monitory become your display with your dock & all of your desktop stuff. Your new monitor will completely mirror your display.
    THis should do what you're looking for.

  • Using mini-DVI to VGA adapter to Samsung display

    I have 2009 late model of mac mini, The text on display looks washed out, not clear or sharp at all from day one, I thought it was the old model of monitor, tried the same cable to another monitor on another computer, SAME. so I thought the problem could be the cable or adapter.
    It's hard for me to believe is the signal from computer. I'm using VGA adapter made by Dynex bought from Best Buy.
    Anybody has suggestions?? Thanks

    Yeah, My old Samsung is lcd synmaster 17", bought many years ago at around $1000. Crazy, crazy price looked back. It's fine when I used it on the retired old Dell. It must be the adapter, trying not to buy another VGA adapter, could not image my next lcd will use one, anyway.
    This cable has only 14 pins vs 15 pins on the other cable, not sure if it matters?? Or if Safari has anything to do with it??
    Thank for you reply...

  • Using S-Video w/ the Mini DVI to Video Adapter

    I just purchased a MacBook last week and I also purchased a Mini DVI to Video adapter for it so I can use the built-in DVD player to watch movies on my TV. I have a composite to composite cable and that worked fine when I connected the cable between the Mini DVI to Video Adapter and my TV. However, when I tried to use a S-Video cable and connected that between the Mini DVI to Video Adapter and my TV; then I got no picture at all. All I saw on the TV was a picture of the MAC desktop w/o the dock and the movie or nothing else played at all.
    Is the composite connection a better connection for the MAC, or, are there some settings I need to work with on the MAC to get the S-Video connection to work?

    I managed to figure this one out, by fluke. The MacBook has to be powered on and ready for user input prior to connecting the mini DVI to video adapter with the s video already connected to it, and to the TV. Once I did it this way, it worked fine. I just thought I'd share this.

Maybe you are looking for

  • Create an image and text rollover in Dreamweaver?

    I'm wanting an image and text to have a link and then the image and text to change to another image and text automaticly.  Here is a link that I want it to look like.  (local hot spots) Is there a way in Dreamweaver to do it or by inserting HTML code

  • Is there at all a simple way to set the export size of a SWF?

    Need Help! I created an animated banner for class, using a standard size.  It ended up way to small, but all the element and text animation is done.  I can easily change the document size, but everytime I try to enlarge the elements, they pixilate an

  • Field should be automatically be copied down

    hi all, i m using oracle form 6i here is my form [http://i838.photobucket.com/albums/zz307/abhi124/12.jpg] i want that when i enter work order in my workorderno field, next time its should automatically be copied down how to achieve this ?? Regards A

  • Why is the type in the navigation bars so tiny?

    The type in the menu bar and navigation bar is so small that I can't read it without bringing my face very close to the screen. I have tried increasing font size on "Options" but it just increases font sizes on the content of the page. The print in t

  • How can I embed ical into my webpage

    Is there an easy way to embed my iCal calendar into my webpage? I already know it can be done using Google Cal but I stopped using Google Cal.