Determine if it is a telnet session via ABAP

Is there a way in ABAP to determine if the user is logged in through a telnet session?
I want to ignore a command to run an ALV GRID if the user is logged in througha telnet session because the ALV GRID causes an error for telnet.
Thanks,
Matt

Instead of determining if the user is coming in via telnet, lets determine if the SAPgui is present, and if it is, then only show the ALV. You can use this function module .
DATA: lv_result TYPE c.
CALL FUNCTION 'GUI_IS_AVAILABLE'
  IMPORTING
    return = lv_result.
IF lv_result = 'X'.
* Gui is present!!!
ENDIF.
Regards,
Rich Heilman

Similar Messages

  • Kill user's session via ABAP (like in SM04)

    Does anybody knows is it possible to kill user's session via ABAP? Not all session like via  TH_DELETE_USER, but selectively, session by session.
    Maybe someone know how to trace which logic works when we press "Close session" button in SM04?

    Hi Michael,
    below a snippet to retrieve the sessions and a way to delete a TID.
    Maybe it come in handy for your requirement.
    Best,
    Sander
    INCLUDE tskhincl.
       DATA lt_userlist TYPE STANDARD TABLE OF uinfo.
       DATA ls_userlist TYPE uinfo.
    CALL 'ThUsrInfo' ID 'OPCODE' FIELD opcode_list
             ID 'TABUSR' FIELD lt_userlist .
    CALL 'ThUsrInfo' ID 'OPCODE' FIELD opcode_delete_usr
         ID 'TID' FIELD ls_userlist-tid.

  • [SOLVED] Is It Possible to Create a Telnet Session in URXVT?

    Greetings-
    Just curious if anyone can tell me how to create a telnet session via rxvt. I saw a thread on here where someone said that it's possible, but I can't find any documentation on it. Just wanted to try it out to connect to my switch which I normally connect to from a tera term emulator.
    Thanks guys!
    Last edited by w201 (2013-10-03 23:57:02)

    ewaller wrote:
    Just run:
    telnet the_address_of_your_switch
    Or I missing something profound?
    Well it was profound to me until you just showed how easy it is. The magic of learning eh?
    Thanks.

  • Change Password via telnet session

    Hi,
    I would like to know how to change the tacacs enable password via telnet session.
    When a new user login the first time via telnet, tacacs prompts the user with changing login password. However, it never prompts to change the enable password. Please advice.

    I am not clear what your problem is. TACACS uses a single password for a user and does not distinguish an enable password which is different from the login password. TACACS will grant access to enable based on what is set up in the user profile (or group profile) not on having a separate password. The difference between a login password and the enable password is used by the router locally when the router is not able to communicate with the TACACS server.
    So when TACACS prompts a new user to change the initial setup password, that is all that TACACS needs to do.
    HTH
    Rick

  • Telnet session not working in OEL -5

    Telnet session not working in OEL -5
    ==============================
    1. Installed xinetd and telnet-server packages on the box.
    2. Enabled the xinetd service.
    # service xinetd start
    # chkconfig xinetd on
    Telnet still not working. Please help.
    Lily.

    Re-ran the /etc/init.d/xinetd restart command. Telnet cannot connect and this is what I get:
    Unencrypted connection refused. Goodbye.
    Below is the telnet.cfg
    ==================
    # default: on
    # description: The telnet server serves telnet sessions; it uses \
    #     unencrypted username/password pairs for authentication.
    service telnet
         flags          = REUSE
         socket_type     = stream
         wait          = no
         user          = root
         server          = /usr/sbin/in.telnetd
         log_on_failure     += USERID
         disable          = no
    ===================

  • How do I get the Username of an AnyConnect VPN session via SNMP?

    I would like to monitor the usernames of my AnyConnect sessions via SNMP.  This will allow me to monitor, graph, report, and alert using Solarwinds Orion (or any other SNMP software).
    I would like to monitor this on my ASA 5520. I have run the show snmp-server oidlist command and I can see all of the OID's that I can poll. However, the OID I would like to poll crasUsername (1.3.6.1.4.1.9.9.392.1.3.21.1.1) is not working.
    Does anyone know how I can monitor the username of a AnyConnect session via SNMP?
    Below is a link to a great MIB reference for ASA Remote Access Monitor OID list.
    http://www.mibdepot.com/cgi-bin/getmib3.cgi?i=1&n=CISCO-REMOTE-ACCESS-MONITOR-MIB&r=cisco&f=CISCO-REMOTE-ACCESS-MONITOR-MIB.my&v=v2&t=tree

    Hello PDX,
    Welcome to the HP Support Forums!
    To get your issue more exposure I would suggest posting it in the commercial forums since this is a commercial product. You can do this at Commercial Forums.
    Regards,
    JERENDS
    I work on behalf of HP
    Please click “Accept as Solution” if you feel my post solved your issue, it will help others find the solution.
    Click the “Kudos Thumbs Up" to the left of the reply button to say “Thanks” for helping!

  • How do I establish a telnet session with unit under test?

    I am going to the next step as a novice and moving from serial communications to ethernet on my unit under test. I have been all over the help and discussion forums etc and cannot find an answer. I need to open up a telnet session with my unit under test and keep it open to send commands back and forth for control of the unit. Can anyone give me a hint of how I am to establish this communication? I have the IP address and I am using port 23 but I just get the session started and then immediately closed. The sequence of events will be: start the session, the unit will reply with a username and then password, after that I need the session to remain open so I can send commands as if I am sitting at the serial port. When complete the session will then be terminated. Thanks in advance for any help.

    If you want to do telnet using plain TCP, you need to do everything yourself, including the telnet options negotiation.
    RFC 854 should have most of what you need (look towards the bottom).
    Most likely, the server will propose a few options, which you should either accept or reject depending on your needs.
    Easiest is probably to use a packet sniffer on a regular telnet session, then dissect the negotiation to see what that particular server wants.
    RFC 990 has a list of telnet options, look for the section labeled "ASSIGNED TELNET OPTIONS".
    It should be simple to write some code that negotiates with one particular host. It will be more difficult to write a full-blown telnet client that does general negotiations with any type of telnet server.
    I have a small program that telnets to a router to do some configuration. The only thing I reply to the proposed options is:
    "\FF\FD\03\FF\FE\01\r\n" (In \-codes). Translated: "Don't suppress go ahead, Do echo".
    (FF=IAC "Interpret as command", FD=Do, FE=Don't, 01=echo, 03= suppress go ahead.)
    LabVIEW Champion . Do more with less code and in less time .

  • Placing a telnet session within a java swing program

    I was wondering if there was a way to maybe anchor a telnet session into a JPanel within a Java Swing program. Most of my users end up running a telnet session while using my Swing Program and I was hoping to find a way to bring the two together. If this is possible could someone point me in the right direction (like an online resource) that might show me how to do this.

    You could use sockets and a TextArea and build your own simple telnet application.
    Socket tutorial: http://java.sun.com/docs/books/tutorial/networking/sockets/index.html

  • Run 6i form in a telnet session on a 32 bit Windows environment

    Hi,
    We have the following environment: 8.1.7 database, 9iDS Forms 6i (6.0.8.13.0) included. This is installed on 32 bit windows environment. We have wireless RF barcode scanners with TCP/IP connection. So they can connect to Unix box or a Windows telnet session. As we have Windows system we can connect this equipments to Windows through telnet session.
    I heard and read in some topics that Forms 6i can run in character mode environment. But I didn't find any solution.
    We would like to run forms as we can run svrmgrl for example on a telnet session.
    My question is that it is possible to run 6i forms on charcater mode environment (telnet session) ? If so, what we need to do in the development or running phase (command line parameters for example).
    Thanks in advance,
    Attila

    Forms 6i can run in Character mode in telnet - but this only applies to Unix ports of the product - they have an f60run executable as well as the Gui f60runm and the Web f60runw runtimes.
    Windows only has GUI and Web versions.

  • Passing telnet session between LabVIEW calls from TestStand

    From TestStand I am calling VI's from telnet.llb.
    In one TestStand step  am opening a telnet session to an IP address and collecting the telnet connection (U32). In the next TestStand step I pass the telnet connection  to a telnet write VI but get this error.
     "Dequeue Element in Acquire Semaphore.vi:1->Telnet Write.vi:1->Telnet Write.vi.ProxyCaller"
    The telnet open, write, read, and close work great if I pass the telnet session number within the same VI. But I need to keep the session open between calls from TestStand because one huge VI is not feasible.
    thank you
    josh
    Solved!
    Go to Solution.

    Hi,
    Maybe the following link can help
    http://forums.ni.com/t5/NI-TestStand/Can-a-Telnet-session-be-passed-from-1-vi-to-the-next-in-test/m-...
    Regards
    Ray Farmer

  • Java sniffer for a TELNET session

    Hi
    I need to interpret test results of a telnet session using a java sniffer..........how do I do this.
    Thx
    Frederd

    I need to interpret test results of a telnet session
    using a java sniffer..........how do I do this.You'll need to use two computers to do this, since Telnet uses a "well known port" to accept connections (look at www.iana.org for port number). Since only one process can hold a port, you'll need to run your telnetd on one machine, and have clients connect to another where your sniffer owns that port.
    Once you've set this up, the sniffer itself is a simple pass-through portal: it accepts a request, makes a corresponding connection to the actual telnetd, then simply passes bytes from one connection to the other (logging them in the middle).

  • EM Grid-Control - Targets - Hosts - HOME - Open Telnet Session

    Hello,
    under
    EM Grid-Control ->Targets -> Hosts -> HOME -> Open Telnet Session
    i can possibly open a telnet session.
    Can i change this to open a ssh session and how ?
    regards
    Frank

    Sorry, Simple answer 'No'

  • How to recognize a telnet session (RF) from a SAPGUI?

    hi guys,
    i must check and block a transaction, developed for a RF terminal, if it is executed by SAPgui...
    how to, in abap, recognize a telnet session (RF) from a SAPGUI ?
    I have tried FM "SAPGUI_OBJECT_ID" hoping in a sy-subrc ne 0 with telnet but it's not right.
    Edited by: Cacco Andrea on Apr 28, 2009 2:43 PM

    i resolved like this:
        cl_gui_frontend_services=>get_computer_name(
          changing
            computer_name        = zterm
          exceptions
            cntl_error           = 1
            error_no_gui         = 2
            not_supported_by_gui = 3
            others               = 4
        if sy-subrc = 0.    "SAPGUI
      else.               "telnet
        endif.

  • PLEASE PLEASE help!!! Telnet session echo problem

    All,
    I posted this question before but did not get any solutions. I am posting this again and hopefully someone can help me this time.
    The implementation:
    I have created a GUI based telnet session which simulates UNIX X-term window. I used the JTextArea to gather the input from user and to display the output received from the socket output pipe. I have 1 thread does nothing but listen to the socket output pipe and append whatever received to the text area, the KeyListener interface was used on JTextArea to retrieve user inputs. Every time when key is typed the getKeyChar() is sent to the socket thru the input pipe.
    The problem:
    As mentioned above every time the getKeyChar() is sent to the socket it will be displayed on the TextArea twice (One is user typed and one is received from the socket I guess). So, it's like when you type "ls" it will display "llss". Other than this everything else works fine.
    Can someone PLEASE give me some advice?
    Thank you in advance.
    Leo

    If you can't make the service that you're connecting to stop echoing the characters back to you (which is probably not what you want), you'll need to filter the characters received and strip out the ones you've sent.
    or
    There might be a way to implement a Keyboard input listener and trap the key presses preventing them from being entered into the text area which would solve your problem. The characters in the text area would be the echoed ones.

  • How to disconnect a telnet session ?

    Router#show use
    Line User Host(s) Idle Location
    98 vty 0 idle 3d22h x.x.x.x
    99 vty 1 idle 3d21h x.x.x.x
    100 vty 2 idle 2d11h x.x.x.y
    *101 vty 3 idle 00:00:00 x.x.x.z
    Hi guys, I wanna disconnect telnet sessions 98, 99, and 100. How do I do it ? Thanks in advance.

    Atif is quite correct that clear line is how to terminate those telnet sessions - once the problem has developed. And his suggestion that the problem be prevented by configuring an idle timeout is what I also recommend.
    Looking at the idle time of these sessions certainly suggests that someone has configured the vty lines with exec-timeout 0 0 which disables the idle timeout. This has the effect that telnet sessions may go on for a very long time - and over a period of time hung telnet sessions may make all the vty ports busy and prevent remote access to the router. While I might not go as short as Atif's suggestion of a 5 minute timeout, I believe that the vty should have some timeout (perhaps quite long - especially in a testing or development environment). A vty with no idle timeout is a problem waiting to happen.
    HTH
    Rick

Maybe you are looking for

  • Reset order item's status

    Hi, I have a before_change event for order item status. When user change status to suspended, function module assigned to event is called and a popup will appear asking user to enter reason for suspend. If user cancels the popup we want to reset the

  • Cannot write the suitable source codes for running program

    I want to write a program that help student to compile program and run program by using some test cases. For the compiled part, i have been wrote it successfully, but for the run part, i cannot pass the test cases to the program for running. Could an

  • Calendar colours broken suddenly, and odd new calendar called, "New List"?

    Hi, So, suddenly today iCloud has changed the colours of two or three of my calendars spontaneously after them being the same colour for months, and won't let me change them back - after a sync they just revert to whatever iCloud has decided they mus

  • Enhancements/User-Exits in ABAP

    hi all. if anyone have material on Enhancements/User-Exits in ABAP ..please mail me on [email protected]

  • HELP IN CURRENECY

    hI I WANT TO USE FM CONVERT_TO_FOREIGN_CURRENCY TO CALCULATE THE RATE OF DOLLAR COMPARE TO IL'S THE PROBLEM THAT I WANT TO KNOW THE AVERAGE RATE ACCORDING TO MONTH FOR EXAMPLE I WANT TO KNOW WHAT IS THE AVERAGE RATE BETWEEN 01012007 TO 01032007 AND I