Getting OS name output

My script needs to check the target machine's OS version, and output that to the screen (I'm also writing it to a log file).
The problem is, the OS Name that is displayed has the full name of the OS, as well as the hard drive that it's installed on:
Microsoft Windows 7 Professional |C:\Windows|\Device\Harddisk0\Partition1
What I'd like for it to say is:
Microsoft Windows 7 Professional
Is there an easy way to drop the Drive informatino from this?
$wmiOS = Get-WmiObject -ComputerName $server -Class Win32_OperatingSystem;
$OS = $wmiOS.Name;
$ServicePack = $wmiOS.ServicePackMajorVersion;

Grant,
i forgot to remvoe the servicepack thingy. The issue is most likely because i'm so new to it that i don't get that you guys refer to this
$wmiOS = Get-WmiObject
-ComputerName $server -Class
Win32_OperatingSystem;
$OS = $wmiOS.caption
I know that $wmios is a variable but how come you can specify the .caption option directly attached to a variable name ( i.e. $wmios.caption ).
At work i don't have to ask about it cause the admins are scared i'm going to make one script too much and make them less all powerful.
I would like to know how i can get from "Get-WmiObject Win32_OperatingSystem | select Caption" to $wmios.caption
Hope they don't block me for asking so much
Edwin

Similar Messages

  • How can I get the name of a output module template

    Hey guys,
         SDK newbie here.
         How can I get the name of every output module template?
         Thanks
    Zhiqiang Li

    Ok. Bravo
    Please mark this as 'Answered' - it will help others on the forum -

  • How to get Variable name in output (Report Writer/Painter)

    Hello Experts,
    We have maintained one Repot by using Report Writer, this is the report for Cost center (periodic report), input fields are Fiscal year, Period and Cost Center. In out put system will display the selected cost center balances for individual cost element.
    Output: Excel format: in first sheet it will display balance of the total cost centers selected and from second sheet it will display individual cost center balances.
    My requirement is in the output system is displaying sheet name as CC1,CC2,CC3.......CC50, but my user want to display this as Cost Center 1, Cost Center 2, Cost Center 3...... like this. we have maintained variable name as Cost center 1, cost center 2....., but why system is displaying as CC1,CC2,.... .
    Please help me how to get the full description as sheet name in excel.
    Thanks ......Sudheer

    Hello Everybody,
    Please help me how to get variable name in Report Painter outout ( Excel format ).
    Thanks

  • Manipulati​ng the outputs of the Get Channel Names.VI version 5.1

    Using the get Channel Name VI. I get two arrays. One array lists the channel names acquired from the measurement and automation utility and the second array lists the accompanied units of those channels. The problem is in the order of channels listed. The VI sorts the array by date the channel was created in the measurement and automation utility. When I resort the channels in alpha numberic order I want to keep the units associated with their correct channels. How can this be done. Or can the get channel names.vi be modified to sort alpha numberically while outputing the correct units associated with those channels.
    Attachments:
    getnames.vi ‏19 KB

    Here's something to try (Sort 2D array ala index and bundle cluster array):
    http://sine.ni.com/apps/we/niepd_web_display.DISPL​AY_EPD4?p_guid=B45EACE3EA4356A4E034080020E74861&p_​node=DZ52026&p_submitted=N&p_rank=&p_answer=&p_sou​rce=External
    You just need to remove the indexing portion and directly feed in the names to the upper terminal of the index/cluster array and units to the bottom.
    2006 Ultimate LabVIEW G-eek.

  • OS command to get file name

    Hello All,
    Using a single receiver communication channel I have to generate 2 output files.
    One output file name is OUTPUT.txt and the second output file name is OUTPUT<YYYYMMDD>.txt
    I am generating first output file name using standard file name scheme.
    And for generating second output file name I am using Run OS command option.
    can some one tell me the OS command to get the file name OUTPUT<YYYYMMDD>.txt?
    Thanx,
    Regards,
    Moorthy

    We would really like like to know how you are going to create 2 file (with different names) using same CC.
    If you are going to use "Add timestamp" then both the files will have timestamp at the end (unlike your requirement for the first file).
    I think its better to create 2 CC ..first with output.txt and the other OUTPUT<YYYYMMDD>.txt
    Also, please tell us more about ur requirment..if the content is same then..u can simply use a CC and use OS command (after processing option ) to copy it to the other location with required file name (OUTPUT<YYYYMMDD>.txt)
    Something like this  if u r using unix system and both the files are at same location:
    cp OUTPUT.txt OUTPUT2.txt

  • How to get Application name of a current running process in LiveCycle??

    Hi,
    I want to get the Application name of current running process in LiveCycle as a output value.
    I have 3 applictions, the 3 applications are calling same SubProcess, so I want get the name of the application from which the sub process has been called.
    I want to retrieve the Application name and asssign this value to a output variable.
    I have searched for the solution I found a method getApplicationName() but inorder to get the current running process's Application Name this might not be useful..
    So suggest the way to resolve this..
    Thanks in Advance.....
    Regards,
    Kalyan Urimi

    Use an input/output string variable in the subprocess and set its value in each calling process as respective Application name.
    May be if this could help.
    Thanks,
    Wasil

  • In urgent need of help regarding getting month name and dates

    Hi Experts
    I have a table called MONTHLYBILL with Column TRANSACTIONMONTH. I need one query / function / SP to do return ouput based on following combination. I am using Oracle 9i
    Have researched on various forums, documents but unable to get the desired output. Finally here in hope of help.
    Input
    From Date: 06/01/2011
    To Date: 12/03/2011
    Output
    Month: DECEMBER-2010 (previous month of From Date). Now if DECEMBER-2010 is not available in table, then returns the
    month which is available immediately the month preceeding DECEMBER-2010
    Begin Date: 01/01/2011 (1st day following the month returned in output)
    End Date: 31/03/2011 (last date of month based on input To Date)
    Input
    From Date: Null
    To Date: 12/03/2011
    Output
    Month: First available transactionmonth in DB (say JANUARY-2010)
    Begin Date: 01/02/2011 (1st day following the month returned in output)
    End Date: 31/03/2011 (last date of month based on input To Date)
    Input
    From Date: Null
    To Date: Null
    Output
    Month: First available transactionmonth in DB (say JANUARY-2010)
    Begin Date: 01/02/2011 (1st day following the month returned in output)
    End Date: Current month's last date

    What is your application release?
    I am in big trouble now.. can anyone help....
    I have a backup of an EBS instance, lets say it was taken one month ago, and now we got some datas lost in the current production server..
    some one deleted some datas...
    Now we need some specific data from the old backup and restore it to the production
    or can it be restored? please help me guys...What kind of data? What is the table name?
    Since this is a production issue, I would suggest you log a SR.
    Thanks,
    Hussein

  • Getting table name from a query

    Hi, I'm trying to get the table name from my sql query
    My code is as follows;
    ResultSetMetaData metadata = rs.getMetaData();
    for (int i = 1; i < metadata.getColumnCount(); i++)
    System.out.println(metadata.getTableName(i));
    I just get a blank output. Yet my sql query executes and I can pull down the records, and grab the column names from the result sets.
    Any ideas on how I can get the table name for the columns. The reason being is on one of my querys I'm using join statements and i need to retrieve the table name for the column i'm displaying, as some tables have similar column names.
    Thanks in advance.

    Hi,
    What db are you using?
    I also get a blank output with ResultSetMetaData.getTableName because Oracle doesn't implement this method.
    Why do you not know the table name anyway?
    regards
    Nick

  • Possible to get variable name?

    Is it possible to get the name that you have used in your code of a variable?
    ie.
    procedure main_procedure
    is
       l_var varchar2(10) := 'Hello';
    begin
       dbms_output.put_line(get_var_name(l_var));
    end;
    function get_var_name(p_var in varchar2)
    return varchar2
    is
    begin
       -- insert magic here
    end;
    -- End code; Now call the procedure
    exec main_procedure;-- Needed output:
    "variable passed had name l_var and value Hello"

    Hi Sam,
    OK, this is definitely for fun only and NOT recommended for any production database!!
    With that out of the way, this has been adapted from Tom Kyte's who_called_me:
    SQL> create or replace procedure get_var_name (
      2     p_var in varchar2
      3  )
      4  as
      5     call_stack   varchar2(4096) default dbms_utility.format_call_stack;
      6     n            number;
      7     found_stack  boolean default false;
      8     l_line       varchar2(255);
      9     cnt          number := 0;
    10     l_owner      varchar2(255);
    11     l_name       varchar2(255);
    12     lineno       number;
    13     caller_t     varchar2(255);
    14     calling_line varchar2(4000);
    15     var_name     varchar2(1000);
    16  begin
    17     loop
    18        n := instr( call_stack, chr(10) );
    19        exit when ( cnt = 3 or n is null or n = 0 );
    20        l_line := substr( call_stack, 1, n-1 );
    21        call_stack := substr( call_stack, n+1 );
    22        if ( not found_stack ) then
    23           if ( l_line like '%handle%number%name%' ) then
    24              found_stack := true;
    25           end if;
    26        else
    27           cnt := cnt + 1;
    28           -- cnt = 1 is ME
    29           -- cnt = 2 is MY Caller
    30           -- cnt = 3 is Their Caller
    31           if ( cnt = 2 ) then
    32              lineno := to_number(substr( l_line, 13, 6 ));
    33              l_line   := substr( l_line, 21 );
    34              if ( l_line like 'pr%' ) then
    35                 n := length( 'procedure ' );
    36              elsif ( l_line like 'fun%' ) then
    37                 n := length( 'function ' );
    38              elsif ( l_line like 'package body%' ) then
    39                 n := length( 'package body ' );
    40              elsif ( l_line like 'pack%' ) then
    41                 n := length( 'package ' );
    42              elsif ( l_line like 'anonymous%' ) then
    43                 n := length( 'anonymous block ' );
    44              else
    45                 n := null;
    46              end if;
    47              if ( n is not null ) then
    48                 caller_t := ltrim(rtrim(upper(substr( l_line, 1, n-1 ))));
    49              else
    50                 caller_t := 'TRIGGER';
    51              end if;
    52 
    53              l_line := substr( l_line, nvl(n,1) );
    54              n := instr( l_line, '.' );
    55              l_owner := ltrim(rtrim(substr( l_line, 1, n-1 )));
    56              l_name  := ltrim(rtrim(substr( l_line, n+1 )));
    57           end if;
    58        end if;
    59     end loop;
    60     select text
    61     into calling_line
    62     from all_source
    63     where line = lineno
    64     and type = caller_t
    65     and name = l_name
    66     and owner = l_owner;
    67     var_name := trim ( substr (
    68        calling_line
    69        , instr(calling_line, '(') + 1
    70        , instr(calling_line, ')') - instr(calling_line, '(') - 1
    71     ));
    72     dbms_output.put_line('variable passed had name '||var_name||' and value '||p_var);
    73  end;
    74  /
    Procedure created.
    SQL> create or replace procedure main_procedure
      2  is
      3     l_var varchar2(10) := 'Hello';
      4  begin
      5     get_var_name(l_var);
      6  end;
      7  /
    Procedure created.
    SQL> exec main_procedure;
    variable passed had name l_var and value Hello
    PL/SQL procedure successfully completed.cheers,
    Anthony

  • Flash CC HTML5 Get instance names on click?

    I make escape games and often have lots of items in a scene each with flash instance names that on mouse over or mouse click make some event happen or some text is displayed.
    I'm using Flash CC and HTML 5 output and cannot get it to output the instance names in the log, is this not possible? Can anyone suggest an alternative method of responding to lots of movieclips/buttons etc
    Here's my test code:-
    //stage.enableMouseOver(24);
    var clicked = "";
    var clickedname = "";
    //NEED TO FIND OUT MOVIECLIP INSTANCE NAME??
    var key1 = exportRoot.key1
    //key1.name = "key1"
    //console.log(key1ref.name)
    stage.on("click", function (evt) {
        //clickedname = stage.getObjectUnderPoint(evt.stageX, evt.stageY)
        //clicked = evt.target
        clicked = evt.target
        console.log(clicked)
        //output result to log
        /*if (clicked == "key1"){
            console.log("clicked key 1")

    Thanks Ned, I really appreciate the help as I've been stuck on this seemingly obvious thing for a few days now and can't progress until I can figure it out...
    Basically using currentTarget it outputs this:-
    a {id: 24, _matrix: a, _rectangle: a, children: Array[1], canvas: canvas#canvas…}
    so comparing it to a name/instance name is not going to work ;-)
    using evt.target gets me this:-
    lib.key1 {id: 21, _matrix: a, _rectangle: a, image: img, x: -40…}
    so again useless, a reference to the key1.png in the library but not to the named instances placed on the stage!!
    Am I assigning the instance name correctly??
    var key1 = exportRoot.key1
    key1.name = "key1"
    Any help from anyone appreciated!!

  • How to get application names currently running on Windows?

    Hi Experts,
    Please help me how do I get application names (tasks) currently running (as shown in Windows Task Manager-Application Tab) in Windows.
    Thanks,
    Deepak

    Hi....
    probably it's a unusual solution but you could try it....
    Create a *.bat file   call it test.bat .. Create it on your local machine or on your server folder..
    PARAMETERS: DOSCMD(30) DEFAULT 'c:\test.bat' LOWER CASE.
    call function 'GUI_EXEC'
      exporting
        command          = DOSCMD.
    Inside your test.bat file put this code..(it's a dos command to create a txt file containing the output  of tasklist.exe command
    tasklist > c:\test.txt
    In your test.txt file you will have a list of tasks running on windows...
    Hope to help...
    bye...

  • How to get mangled names?

    I have a need to use one of Sun Studio C++ features, i.e.,  #pragma align.
    But I noted that if I use "#pragma align" in a namespace, I must name variables with their mangled names.
    See the link below:  
    http://dsc.sun.com/sunstudio/documentation/ss12u1/mr/READMEs/c++.html#cpragma
    I do know there is a tool (c++filt) to demangling names, but I have no idea what kind of tools can help me
    to get mangled names.
    Regards.

    To find the mangled name of a symbol, run "nm -C" on an object file (.o, .so, or a.out) that contains a definition of or reference to the symbol. To reduce the amount of output, grep for the unmangled name. Here is an example:
    % cat foo.cc
    int bar(int);
    int foo(int i) {  return bar(i); }
    double foo(double d) { return d; }
    % CC -c foo.cc
    % nm -C foo.o | grep foo
    foo.o:
    [8]     |        80|      60|FUNC |GLOB |0    |2      |double foo(double)
                                                           [__1cDfoo6Fd_d_]
    [1]     |         0|       0|FILE |LOCL |0    |ABS    |foo.cc
    [10]    |        16|      44|FUNC |GLOB |0    |2      |int foo(int)
                                                           [__1cDfoo6Fi_i_]
    % nm -C foo.o | grep bar
    [9]     |         0|       0|FUNC |GLOB |0    |UNDEF  |int bar(int)
                                                           [__1cDbar6Fi_i_]The -C option fo nm shows both the mangled and demangled names of symbols. This example has 2 functions called foo. You can tell which one you want by matching the demangled name to the mangled name.
    There is no "name mangler" that takes a symbol and mangles it, because the mangling in general depends on the context where the symbol is declared. You need almost all of a C++ compiler front end to create the mangled name.

  • Get Partition name using 'NLS_CALENDAR=GREGORIAN' shows incorrect year

    I'm trying to get the name of the partition which is the latest one. But using this sql I'm getting something not appropriate. It shows year as 2020 Any help is appreciated.
    SQL> alter session set nls_date_format='YYYY-MM-DD';
    Session altered.
    SQL> SELECT TO_CHAR(TO_DATE(MAX(SUBSTR(PARTITION_NAME, -6)), 'RRMMDD'), 'SYYYY-MM-DD HH24:MI:SS', 'NLS_CALENDAR=GREGORIAN')
    FROM DBA_TAB_PARTITIONS
    WHERE table_name= 'T_TEST'
    and table_owner = 'TEST'
    Output:
    TO_CHAR(TO_DATE(MAX(SUBSTR(PAR
    *2020*-09-06 00:00:00
    Structure of the table:
    CREATE TABLE TEST.T_TEST
    MESSAGE_ID VARCHAR2(60 BYTE) NOT NULL,
    MESSAGE_TYPE VARCHAR2(50 BYTE),
    LAST_CHANGE_DT TIMESTAMP(6),
    MESSAGE_TEXT CLOB,
    ACCOUNT_ID VARCHAR2(18 BYTE),
    EVENT_ID VARCHAR2(18 BYTE)
    TABLESPACE TOOLS
    PCTUSED 0
    PCTFREE 10
    INITRANS 1
    MAXTRANS 255
    PARTITION BY RANGE (LAST_CHANGE_DT)
    PARTITION P_TEST_200904 VALUES LESS THAN (TIMESTAMP'2009-04-15 00:00:00')
    LOGGING
    NOCOMPRESS
    TABLESPACE TOOLS
    LOB (MESSAGE_TEXT) STORE AS
    ( TABLESPACE TOOLS
    ENABLE STORAGE IN ROW
    CHUNK 8192
    PCTVERSION 10
    NOCACHE
    STORAGE (
    INITIAL 64K
    MINEXTENTS 1
    MAXEXTENTS UNLIMITED
    PCTINCREASE 0
    FREELISTS 1
    FREELIST GROUPS 1
    BUFFER_POOL DEFAULT
    PCTFREE 10
    INITRANS 1
    MAXTRANS 255
    STORAGE (
    INITIAL 64K
    MINEXTENTS 1
    MAXEXTENTS UNLIMITED
    BUFFER_POOL DEFAULT
    PARTITION P_TEST_200905 VALUES LESS THAN (TIMESTAMP'2009-05-15 00:00:00')
    LOGGING
    NOCOMPRESS
    TABLESPACE TOOLS
    LOB (MESSAGE_TEXT) STORE AS
    ( TABLESPACE TOOLS
    ENABLE STORAGE IN ROW
    CHUNK 8192
    PCTVERSION 10
    NOCACHE
    STORAGE (
    INITIAL 64K
    MINEXTENTS 1
    MAXEXTENTS UNLIMITED
    PCTINCREASE 0
    FREELISTS 1
    FREELIST GROUPS 1
    BUFFER_POOL DEFAULT
    PCTFREE 10
    INITRANS 1
    MAXTRANS 255
    STORAGE (
    INITIAL 64K
    MINEXTENTS 1
    MAXEXTENTS UNLIMITED
    BUFFER_POOL DEFAULT
    PARTITION P_TEST_200906 VALUES LESS THAN (TIMESTAMP'2009-06-01 00:00:00')
    LOGGING
    NOCOMPRESS
    TABLESPACE TOOLS
    LOB (MESSAGE_TEXT) STORE AS
    ( TABLESPACE TOOLS
    ENABLE STORAGE IN ROW
    CHUNK 8192
    PCTVERSION 10
    NOCACHE
    STORAGE (
    INITIAL 64K
    MINEXTENTS 1
    MAXEXTENTS UNLIMITED
    PCTINCREASE 0
    FREELISTS 1
    FREELIST GROUPS 1
    BUFFER_POOL DEFAULT
    PCTFREE 10
    INITRANS 1
    MAXTRANS 255
    STORAGE (
    INITIAL 64K
    MINEXTENTS 1
    MAXEXTENTS UNLIMITED
    BUFFER_POOL DEFAULT
    NOCOMPRESS
    NOCACHE
    NOPARALLEL
    MONITORING;

    Hi,
    Why are you using 'RRMMDD' in your query when your partition name is like P_TEST_<RRRRMM>. This seems to be the issue.
    Regards
    Anurag Tibrewal.

  • BAPI to get user name

    Hi ,
    Is there any BAPI to get the user name while importing employee number ?
    input parameter : employee number
    output parameter : user name
    Regards,
    Pavani
    With a little more effort you would have
    found CATSXT_GET_USER_ID_OF_PERNR in
    your system
    Edited by: Suresh Datti on Sep 1, 2009 2:42 PM

    For this  BAPI_USER_GET_DETAIL   input parameter is user name .i want to pass employee number and get user name .
    i am looking for BAPI not normal functional modules.if there are any BAPIs pls send .
    Regards,
    Pavani

  • GET FILE NAME C:\temp\ADIBO.txt

    Hi,
    How to get file name?
    I used Get_File_NAME, but I'am getting an error.
    lv_lfilename is not the type LOGICAL_FILENAME
    C:\temp\ADIBO.txt
    I need to get  ADIBO ??
    tnh, Adibo..:)
    I am using this code to download file and after that I need to get FILE_NAME:
    DATA:  lv_lfilename TYPE string.
    PARAMETERS:
      pa_lfile TYPE zlocalfile
               DEFAULT 'C:temp'.
        CONCATENATE pa_lfile ''INTO lv_lfilename.
        CALL FUNCTION 'GUI_DOWNLOAD'
             EXPORTING
                  filename = lv_lfilename
                  filetype = 'ASC'
             TABLES
                  data_tab = it_billit_down.
        IF sy-subrc <> 0.
    * MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
    *         WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
        ENDIF.

    Hii..
    You have to Maintain the Logical filenames and their Physical Paths in Tcode FILE.
    Then create a program like this..
    REPORT  ZSEL_FILES1.
    DATA : V_LOGFILE TYPE STRING.
    DATA :V_PHYFILE TYPE STRING.
    DATA : ITAB TYPE TABLE OF SCARR.
    START-OF-SELECTION.
    SELECT * FROM SCARR INTO TABLE ITAB.
    **To get the Physical file based on the Logical file names - Maintained in Tcode FILE
    CALL FUNCTION 'FILE_GET_NAME'
      EXPORTING
       CLIENT                        = SY-MANDT
        LOGICAL_FILENAME              = VlOGFILE
      OPERATING_SYSTEM              = SY-OPSYS
      PARAMETER_1                   = ' '
      PARAMETER_2                   = ' '
      PARAMETER_3                   = ' '
      USE_PRESENTATION_SERVER       = ' '
      WITH_FILE_EXTENSION           = ' '
      USE_BUFFER                    = ' '
      ELEMINATE_BLANKS              = 'X'
    IMPORTING
      EMERGENCY_FLAG                =
      FILE_FORMAT                   =
       FILE_NAME                     = V_PHYFILE
    EXCEPTIONS
      FILE_NOT_FOUND                = 1
      OTHERS                        = 2
    IF SY-SUBRC <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
            WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.
    **To download the file to PC.
    CALL FUNCTION 'GUI_DOWNLOAD'
      EXPORTING
      BIN_FILESIZE                    =
        FILENAME                        = V_PHYFILE
       FILETYPE                        = 'ASC'
      APPEND                          = ' '
       WRITE_FIELD_SEPARATOR           = 'X'
      HEADER                          = '00'
      TRUNC_TRAILING_BLANKS           = ' '
      WRITE_LF                        = 'X'
      COL_SELECT                      = ' '
      COL_SELECT_MASK                 = ' '
      DAT_MODE                        = ' '
      CONFIRM_OVERWRITE               = ' '
      NO_AUTH_CHECK                   = ' '
      CODEPAGE                        = ' '
      IGNORE_CERR                     = ABAP_TRUE
      REPLACEMENT                     = '#'
      WRITE_BOM                       = ' '
      TRUNC_TRAILING_BLANKS_EOL       = 'X'
      WK1_N_FORMAT                    = ' '
      WK1_N_SIZE                      = ' '
      WK1_T_FORMAT                    = ' '
      WK1_T_SIZE                      = ' '
    IMPORTING
      FILELENGTH                      =
      TABLES
        DATA_TAB                        = ITAB
      FIELDNAMES                      =
    EXCEPTIONS
      FILE_WRITE_ERROR                = 1
      NO_BATCH                        = 2
      GUI_REFUSE_FILETRANSFER         = 3
      INVALID_TYPE                    = 4
      NO_AUTHORITY                    = 5
      UNKNOWN_ERROR                   = 6
      HEADER_NOT_ALLOWED              = 7
      SEPARATOR_NOT_ALLOWED           = 8
      FILESIZE_NOT_ALLOWED            = 9
      HEADER_TOO_LONG                 = 10
      DP_ERROR_CREATE                 = 11
      DP_ERROR_SEND                   = 12
      DP_ERROR_WRITE                  = 13
      UNKNOWN_DP_ERROR                = 14
      ACCESS_DENIED                   = 15
      DP_OUT_OF_MEMORY                = 16
      DISK_FULL                       = 17
      DP_TIMEOUT                      = 18
      FILE_NOT_FOUND                  = 19
      DATAPROVIDER_EXCEPTION          = 20
      CONTROL_FLUSH_ERROR             = 21
      OTHERS                          = 22
    IF SY-SUBRC <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
            WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.
    <b>reward if helpful</b>

Maybe you are looking for

  • How to disable a single row of a multi-line text item

    I am trying to disable a date and a price on each row where the date is current or in the past (on theory the user can't update reference data that is in effect or past, only data which is not yet in use). It appears that forms 6i will make this an a

  • Infinite loop - "Some actions taken while...offline could not be completed"

    I have 4 IMAP accounts (.Mac, Gmail and 2 at SpamArrest). Occasionally, I get in this infuriating state where I keep getting the following error: "Some actions taken while the account "ClickMarkets-SA" was offline could not be complete online. Mail h

  • Start, restart, stop and status stored procedure - howto?

    First: - this and other otn forums are awesome! - apex is neat Second: - I have O'Reilly books: "Oracle pl/sql programming" and "Mastering Oracle SQL" - Also tried to search / google best practices around stopping 'hanging stored procedures' and crea

  • Order book without dust cover

    Hello, I have iPhoto '08, in the past when I ordered a Hard cover 8.5 x 11 book via iPhoto it came with a canvas cover with the picture on the front. The latest book I ordered came with a dust cover and a picture on the dust cover by default. I was w

  • What is System Change Option Used For?

    Hi, I need help on security. we use scc4 settings for client protection. the settings are 'No changes allowed' for client-specific objects and 'No Changes to Repository and cross-client customizing objects' for cross-client object changes. system cha