How to delete a whole line in cmd prompt in Linux

Hi all,
How to delete a whole line in cmd prompt in Linux using short key?
ex: [oracle@host1 ~]$ cd /u01/app/oracle/product/11.2.0/dbhome_1/
Thanks

yes ctrl+ak or ctrl+eu both are better. if you look from that perspective, go end and delete will be the same job too. (ctrl+eu) (but for me in such a command line, for example cding in to the directories ,the cursor will be at the end of the line %99 of the time :) )
about ctrl-t,
Drag the character before the cursor forward over the character at the cursor, moving the cursor forward as well. If the insertion point is at the end of the line, then this transposes the last two characters of the line.
for ex:
misspelled command date -> daet -> ctrl+t -> date
or
misspelled command $APPPL_TO -> place the cursor on third P press ctrl+t repeateadly till the P will come to the end -> APPL_TOP

Similar Messages

  • How to delete string or line from unix file(dataset) of application server

    Hi  All,
    After transfer workarea information or all records into dataset(unix file). When I see the file in application server automatically the last line is shown a blank line. I am not passing any blank line.
    I have tried for single record than also the file generates the last line(2nd line) also a blank line.
    When I m reading the dataset, it is not reading the last blank line but why it is showing the last blank line?
    How to delete string or line from unix file(dataset) of application server?
    Please give your comments to resolve this.
    Thanks
    Tirumula Rao Chinni

    Hi Rio,
    I faced similar kind of issue working with files on UNIX platform.
    The line is a line feed to remove it use
    DATA : lv_carr_linefd TYPE abap_cr_lf VALUE cl_abap_char_utilities=>cr_lf. 
      DATA : lv_carr_return TYPE char1,                                   
             lv_line_feed   TYPE char1.                                          
      lv_line_feed   = lv_carr_linefd(1).
      lv_carr_return = lv_carr_linefd+1(1).
    Note: IMP: The character in ' ' is not space but is a special
    character set by pressing ALT and +255 simultaneosly
      REPLACE ALL OCCURRENCES OF lv_line_feed IN l_string WITH ' '.
      REPLACE ALL OCCURRENCES OF lv_carr_return IN l_string WITH ' '.

  • How to delete the specified line in file?

    How to delete the specified line in file? In case of deleting a specified line in a file, how to do?
    Line 1
    Line 2
    Line 3
    Line 4
    Line 5
    The case is a file including the above content. Now I wanna to delete the "Line 3" and how to realize the action in Java?

    An alternative solution can be :
    import java.io.LineNumberReader;
    import java.io.IOException;
    import java.io.File;
    import java.io.FileReader;
    import java.io.BufferedWriter;
    import java.io.FileWriter;
    import java.io.PrintWriter;
    public class LineDeleter {
    public static void main(String args[]){
    try {
    //suppose you want to delete line 3
         int lineToBeDeleted = 3;
         File f = new File("line.txt");
         long fileSize = f.length();
    //Wrap the FileReader with a LineNumberReader. It will help you
    //identify the lines.
    LineNumberReader lnr = new LineNumberReader( new FileReader(f));
    //Wrap the FileWriter object with BufferedWriter object. Create it with the buffersize
    //equal to the file size.
         BufferedWriter bw = new BufferedWriter(new FileWriter(new File("line1.txt")),(int)fileSize);
    //Wrap BufferedWriter object with PrintWriter so that it allows you
    //to print line by line
    PrintWriter pw = new PrintWriter(bw);
         String s=null;
         while ( (s=lnr.readLine())!=null ){
              System.out.println(s);
              int lineNumber = lnr.getLineNumber();
    //match the line number
              if(! (lineNumber==lineToBeDeleted)){
                   pw.println(s);
              pw.flush();
              lnr.close();
              pw.close();
         catch(Exception e){System.out.println(e);}
    If you want you can rename the line1.txt to the original file name.
    I hope this helps.Good luck!!!!!!

  • How to delete a whole cd?

    How to delete a whole cd....I've done this forever and the other day I put on a cd and decided to delete it. Just the ONE cd. it was a Beatles cd and it deleted every single Beatles cd I have! I freaked! I got them all back now,  but am afraid to add Cds now and delete.
    Thank you!
    I have windows 7

    rexlibris wrote:
    You must be viewing the tracks in MUSIC and not from a playlist. You can edit things like album and title but you can't delete anything while viewing a playlist
    Select it in the playlist and press Delete to remove it from the playlist.
    You can Shift Delete to remove it from a playlist & also the library.

  • How to delete the horiz line of addresses beneath the address bar

    How to delete the horiz line of addresses beneath the address window. They are not affected by the "delete recent sites" tool.

    Do you mean the tab bar?
    See [[Tabbed browsing]]

  • AppleScript to delete the whole line if ..

    Im using the following code to find and replace with "target word" but I would like to DELETE the whole line instead of replacing the actual word.
    so it would be
    if the line contains www.network -> Delete the whole line.
    Thanks in advance!
    set theTargetWords to {"www.network"}
    tell application "Pages" to activate
    tell application "System Events" to tell process "Pages"
      -- Open the "Find & Replace" window:
      keystroke "f" using command down
              repeat until exists window "Find & Replace"
              end repeat
              tell tab group 1 of window "Find & Replace"
      -- Adjust the settings:
      click radio button 2 -- Advanced
                        if value of checkbox 2 is 1 then click checkbox 2 -- Don't match case
                        if value of checkbox 3 is 1 then click checkbox 3 -- Whole words
                        if value of checkbox 1 is 0 then click checkbox 1 -- Search previous text (loop)
      click pop up button 1 -- find in
      click menu item 1 of menu 1 of pop up button 1 -- Entire document
      click pop up button 2 -- replace style
      click menu item 1 of menu 1 of pop up button 2 -- Any
      -- Delete every target word:
                        set value of text area 1 of scroll area 2 to ""
                        repeat with thisWord in theTargetWords
                                  set value of text area 1 of scroll area 1 to thisWord -- the target word
                                  click button "Replace All"
                        end repeat
              end tell
    end tell

    if you want to script an application, read and use the application scripting dictionary. using System Events to script the GUI is something you should only do as a last resort. It creates clunky, slow, overly complex, and breakable scripts.
    try this to start:
    tell application "Pages"
              delete (every paragraph of body text of document 1 whose contents contains "some key phrase")
    end tell

  • How to delete THE WHOLE Reading List of Safari iOS 8 in one shot?

    I know how to delete individual items one by one by sliding them to the left, I know how to clear their cache in Settings and I know how to clear Safari's history but  nothing clears the whole Reading List in one stroke.
    How do you do?
    Thank you very much in advance for your answer.

    Please read this book.
    http://www.amazon.com/s?ie=UTF8&rh=i%3Astripbooks%2Cp_27%3AMatthias%20Zierke&field-author=Matthias%20Zierke&page=1
    Rg,
    Harshit

  • How to delete the logical lines in JTextArea

    Hi all,
    Now that I know how to find the logical line count in JTextArea as
    I found the following in the forum.
    public static int getLineCount (JTextArea _textArea)
    boolean lineWrapHolder = _textArea.getLineWrap();
    _textArea.setLineWrap(false);
    double height = _textArea.getPreferredSize().getHeight();
    _textArea.setLineWrap(lineWrapHolder);
    double rowSize = height/_textArea.getLineCount();
    return (int) (_textArea.getPreferredSize().getHeight() / rowSize);
    I want to delete the 4th line to the last line and append ... at the 4th, if the getLineCount exceeds 3. Does any body know how to do so?
    The intention is for the multiline tooltip as I just want to show
    the first three logical line and ... if the string is too long.
    Thanks
    Pin

    The code looks good to me. The only thought I have is that the y coordinate for the rowThree point is wrong and is referencing row four.
    I've been playing around with using a JTextArea as a renderer for a JTable. I have it working so that "..." appear when the text exceeds 2 rows. Try clicking on "B" in the letter column and then the update cell button a few times to add text. My code is slightly different than yours.
    import java.awt.*;
    import java.awt.event.*;
    import java.util.*;
    import javax.swing.*;
    import javax.swing.table.*;
    public class TestTable extends JFrame
         private final static String LETTERS = "ABCDEFGHIJKLMNOPQRSTUVWXYZ";
         JTable table;
         Vector row;
         public TestTable()
              Object[][] data = { {"1", "A"}, {"2", "B"}, {"3", "C"} };
              String[] columnNames = {"Number","Letter"};
              DefaultTableModel model = new DefaultTableModel(data, columnNames);
              table = new JTable(model)
                   public String getToolTipText( MouseEvent e )
                        int row = rowAtPoint( e.getPoint() );
                        int column = columnAtPoint( e.getPoint() );
                        if (row == 0)
                             return null;
                        else
                             return row + " : " + column;
              table.setRowSelectionInterval(0, 0);
              table.setColumnSelectionInterval(0, 0);
              table.setRowHeight(0,34);
              table.setRowHeight(1,34);
              table.setRowHeight(2,34);
              table.setDefaultRenderer(Object.class, new TextAreaRenderer(2));
              JScrollPane scrollPane = new JScrollPane( table );
              getContentPane().add( scrollPane );
              JPanel buttonPanel = new JPanel();
              getContentPane().add( buttonPanel, BorderLayout.SOUTH );
              JButton button2 = new JButton( "Update Cell" );
              buttonPanel.add( button2 );
              button2.addActionListener( new ActionListener()
                   public void actionPerformed(ActionEvent e)
                        int row = table.getSelectedRow();
                        int column = table.getSelectedColumn();
                        String value = (String)table.getValueAt(row, column);
                        value += value;
                        table.setValueAt( value, row, column );
                        DefaultTableModel model = (DefaultTableModel)table.getModel();
                        model.fireTableCellUpdated(row, column);
                        table.requestFocus();
         public static void main(String[] args)
              TestTable frame = new TestTable();
              frame.setDefaultCloseOperation( EXIT_ON_CLOSE );
              frame.pack();
              frame.setVisible(true);
         private class TextAreaRenderer extends JTextArea implements TableCellRenderer
              public TextAreaRenderer(int displayRows)
                   setRows(displayRows);
                   setLineWrap( true );
              public Component getTableCellRendererComponent(JTable table,
                                             Object value,
                                             boolean isSelected,
                                             boolean hasFocus,
                                             int row,
                                             int column)
                   setText( value.toString() );
                   Dimension d = getPreferredSize();
                   int maximumHeight = getRows() * getRowHeight();
                   if (d.height > maximumHeight)
                        setSize(d);
                        int offset = viewToModel( new Point(d.width, maximumHeight - 1) );
                        replaceRange( "...", offset-3, getDocument().getLength() );
                   return this;
    }

  • How to delete a whole directory in Contribute CS3

    Hello,
    Here is my problem :
    I've created a new page (html) in my site. This page contains
    some pictures.
    When I publish this new page, I choose a new directory to
    save it : "NewDirectory" for example.
    When I visit this new directory, I can see that Contribute
    creates an "images" directory and I can see my new html page.
    So, now I want to delete my (new) page. I know how to do
    that. But my problem is : how to delete the images.
    I can do delete them one by one but If I have a lot of image,
    it will be very long.
    Now my question : how can I delete a whole directory in
    contribute without having the following message:
    "CONTRIBUTE CAN'T DELETE THIS DIRECTORY. VERIFY DIRECTORY IS
    EMPTY" or something like that...
    Sorry for my bad english and thanks a lot for your help!!
    Victor

    Download FileZilla(free) and use FTP to delete the folder and
    its contents. Its not possible doing this using Contribute, even
    with 'Delete' permissions, you can only delete individual files
    that you're allowed to edit. I haven't found any admin-settings
    that allow you to delete folders with content (alas).

  • How to delete a whole bunch of emails at one time

    How do you delete a whole bunch of emails at one time or do you have to individually 'touch' each one in the editor and delete page by page

    Frog34 wrote:
    Maybe Apple will add a delete all or a way to select multiple ones in their next iteration1
    You can select multiple e-mails for deletion in iOS, no need to wait for an update ... tap Edit, select the ones you want deleted, then tap Delete.
    I can't see how a "delete all" function would be useful -- how often does one delete all messages in a folder?  If that did exist can you imagine the users who'd accidentally clear out their entire Inbox by mistake?

  • How to delete multiple empty lines in item assignment block in WebUI

    Hi Experts,
       When i am reading 'BTAdminI' context node data, I am getting empty lines along with data. I can able to delete only one empty lines when its executing second empty line its failing in loop. Can you suggest me how can i delete multiple empty lines. I am using below code.
    DATA: lr_entity1           TYPE REF TO cl_crm_bol_entity,
            lr_current          TYPE REF TO if_bol_bo_property_access,
            lr_iterator         TYPE REF TO if_bol_bo_col_iterator,
            lv_strukname        TYPE strukname,
            dref                TYPE REF TO data,
            lv_thtmlb_tableview TYPE REF TO cl_thtmlb_table_view,
            lr_cn               TYPE REF TO cl_bsp_wd_context_node_tv,
            cr_mixed_node_tv    TYPE REF TO cl_bsp_wd_mixed_node.
        FIELD-SYMBOLS: <fs_line_structure> TYPE data.
        lr_iterator = me->typed_context->btadmini->collection_wrapper->get_iterator( ).
        TRY.
            lr_current = lr_iterator->get_first( ).
          CATCH cx_root.
        ENDTRY.
        WHILE lr_current IS BOUND.
          lr_entity1 ?= lr_current.
          CHECK lr_entity1 IS BOUND.
          lr_entity1->get_attr_struct_name( RECEIVING rv_result = lv_strukname ).
          IF lv_strukname IS NOT INITIAL.
            CREATE DATA dref TYPE (lv_strukname).
            ASSIGN dref->* TO <fs_line_structure>.
            IF <fs_line_structure> IS ASSIGNED.
              lr_current->get_properties( IMPORTING es_attributes = <fs_line_structure> ).
              IF <fs_line_structure> IS INITIAL.
                me->typed_context->btadmini->collection_wrapper->remove( lr_current ).
                EXIT.
              ENDIF.
            ENDIF.
          ENDIF.
          TRY.
              lr_current = lr_iterator->get_next( ).
            CATCH cx_root.
          ENDTRY.
        ENDWHILE.

    Hi Nitish,
    Try below code instead of your code,
    Data:
    lt_empty_lines  TYPE TABLE OF REF TO cl_crm_bol_entity,
    lr_entity TYPE REF TO cl_crm_bol_entity.
    After getting collection from BTadmini use the below code.
    lr_iterator ?= lr_coll->get_iterator( ).
        lr_entity ?= lr_iterator->get_first( ).
        WHILE lr_entity IS BOUND.
          IF lr_entity->is_send_active( ) EQ abap_false.
            APPEND lr_entity TO lt_empty_lines.
          ENDIF.
          lr_entity ?= lr_iterator->get_next( ).
        ENDWHILE.
        LOOP AT lt_empty_lines INTO lr_entity.
          typed_context->btadmini->collection_wrapper->remove( lr_entity ).
          lr_entity->delete( ).
        ENDLOOP.
    Best Regards,
    Dharmakasi.

  • How to delete a whole project.

    Hi, expert:
    There is a project, which have WBS, and Network, and Activity and milestone.
    there is no actual cost. but the whole project have been released.
    now the user find that the project must be delete.
    how to delete the project?
    regards!

    Hi,
    if no posting is done then just try following
    delete the activities and milestone from bottom up approach in cj20n.
    then mark network as tech. complete and then from above wbs element delete the network
    then delete the  wbs 
    then delete project
    reagards,
    Sameer

  • Xcode - delete the whole line shortcut missing

    Hi,
    Is there any way to have a shortcut to delete the line? you know, like D from Vi, or CMD+D from Eclipse, o CTRL+D from JEdit, or ... you got it.
    please tell me I'm blind and there is a shortcut for that.
    just for the record, there is a shortcut option to SELECT LINE, so why not one for DELETE LINE ?
    please help,
    Thanks,

    Hi Grimmac
    Many of the applications that Apple themselves make include a sub-set of commands from the emacs editor. Xcode is no exception to this. One of the useful commands from emacs is control-K (or ^K). The first press deletes from the cursor to the end of the line, the second press deletes the carriage return and brings up the next line. Subsequent presses repeat this sequence of events.
    Other useful commands are ^A and ^E to move to the start/end of a line, so to delete a complete line from the beginning you can use ^A^K^K.
    What makes these commands really worth knowing is that you can use them in Safari to edit URLs, or in Terminal to edit Unix commands, and in many other Apple made applications.
    If you do a Google search for "emacs" then you can quickly find the full list of commands. Xcode only supports a few of them, mainly the control + single key ones.
    You can also make your own personal keyboard shortcuts from the Xcode Preferences menu option.
    Bob

  • How to delete header condtion line of sales order by BAPI

    Hi,
    I want to delete the condtion line of sales order header using BAPI "BAPI_SALESORDER_CHANGE",
    it is work well in item level condition type, but it is not work for header condition type. show error message "missing item number" since of pass item number "000000" for header condition line.
    Below is reference source code, thanks in advance.
    *& Report  ZTEST_BAPI_SO_DELETECONDLINE
    *& Sample program to call BAPI_SALESODRER_CHANGE to
    *& delete condition line of so line item
    REPORT  ZTEST_BAPI_SO_DELETECONDLINE.
    ***--- Structures for create BAPI
    DATA: SALESDOCUMENT LIKE BAPIVBELN-VBELN.
    DATA: ORDER_HEADER_INX LIKE BAPISDH1X,
          BEHAVE_WHEN_ERROR LIKE BAPIFLAG-BAPIFLAG,
          SIMULATION LIKE BAPIFLAG-BAPIFLAG.
    DATA: BEGIN OF ORDER_ITEM_IN OCCURS 2.
            INCLUDE STRUCTURE BAPISDITM.
    DATA: END OF ORDER_ITEM_IN.
    DATA: BEGIN OF ORDER_ITEM_INX OCCURS 2.
            INCLUDE STRUCTURE BAPISDITMX.
    DATA: END OF ORDER_ITEM_INX.
    DATA: BEGIN OF SCHEDULE_LINES OCCURS 2.
            INCLUDE STRUCTURE BAPISCHDL.
    DATA: END OF SCHEDULE_LINES.
    DATA: BEGIN OF SCHEDULE_LINESX OCCURS 2.
            INCLUDE STRUCTURE BAPISCHDLX.
    DATA: END OF SCHEDULE_LINESX.
    DATA: BEGIN OF ORDER_CFGS_REF OCCURS 2.
            INCLUDE STRUCTURE BAPICUCFG.
    DATA: END OF ORDER_CFGS_REF.
    DATA: BEGIN OF ORDER_CFGS_INST OCCURS 2.
            INCLUDE STRUCTURE BAPICUINS.
    DATA: END OF ORDER_CFGS_INST.
    DATA: BEGIN OF ORDER_CFGS_VALUE OCCURS 2.
            INCLUDE STRUCTURE BAPICUVAL.
    DATA: END OF ORDER_CFGS_VALUE.
    DATA: BEGIN OF CONDITIONS_IN OCCURS 2.
            INCLUDE STRUCTURE BAPICOND.
    DATA: END OF CONDITIONS_IN.
    DATA: BEGIN OF CONDITIONS_INX OCCURS 2.
            INCLUDE STRUCTURE BAPICONDX.
    DATA: END OF CONDITIONS_INX.
    DATA: BEGIN OF EXTENSIONIN OCCURS 2.
            INCLUDE STRUCTURE BAPIPAREX.
    DATA: END OF EXTENSIONIN.
    DATA: BEGIN OF RETURN OCCURS 2.
            INCLUDE STRUCTURE BAPIRET2.
    DATA: END OF RETURN.
    DATA: TMP_POSNR  LIKE VBAP-POSNR,
          L_KNUMV    LIKE VBAK-KNUMV,
          L_KSCHL    LIKE KONV-KSCHL,
          L_STUNR    LIKE KONV-STUNR,
          L_ZAEHK    LIKE KONV-ZAEHK.
    ***--- Selection
    PARAMETERS: P_VBELN LIKE VBAK-VBELN OBLIGATORY MEMORY ID AUN DEFAULT '7000510', "'0001007443', " SO
                P_POSNR LIKE VBAP-POSNR OBLIGATORY DEFAULT '000000' , " so item
                P_CONDN LIKE  KONV-KSCHL  DEFAULT 'ZOSP',    " condition type
                P_CONDI LIKE  KONV-ZAEHK  DEFAULT '01',      " Condition item number
                P_TEST  AS CHECKBOX DEFAULT 'X'.             " test mode
      CALL FUNCTION 'CONVERSION_EXIT_ALPHA_INPUT'
        EXPORTING
          INPUT         = P_VBELN
        IMPORTING
          OUTPUT        = P_VBELN.
      CLEAR: L_KNUMV.
      SELECT SINGLE KNUMV INTO L_KNUMV
      FROM VBAK
      WHERE VBELN  = P_VBELN.
      IF SY-SUBRC = 0.
        CLEAR: L_KSCHL,L_ZAEHK,L_STUNR.
        SELECT SINGLE KSCHL ZAEHK STUNR INTO (L_KSCHL, L_ZAEHK, L_STUNR)
        FROM KONV
        WHERE KNUMV = L_KNUMV
          AND KPOSN = P_POSNR
          AND ZAEHK = P_CONDI
          AND KSCHL = P_CONDN.
        IF SY-SUBRC <> 0.
          WRITE:/ 'Condition type or condition item is not exist.'.
          EXIT.
        ENDIF.
      ELSE.
        WRITE:/ 'Sales order number is not exist'.
        EXIT.
      ENDIF.
    IF L_ZAEHK IS INITIAL.
          WRITE:/ 'Condition type or condition item is not exist.'.
          EXIT.
    ENDIF.
    SALESDOCUMENT = P_VBELN.     " Sales order number
    ORDER_HEADER_INX-UPDATEFLAG = 'U'.   "U = change sales order
    ***Item Data
    ORDER_ITEM_IN-ITM_NUMBER = P_POSNR.
    APPEND ORDER_ITEM_IN.
    ORDER_ITEM_INX-UPDATEFLAG = 'U'.   "I = add, U= update, D=delete
    ORDER_ITEM_INX-ITM_NUMBER = P_POSNR.
    APPEND ORDER_ITEM_INX.
    ***--- Begin delete a condition line
    ***--- Make sure to use update flag 'D'. Here I = add, U= update, D=delete
    CLEAR: CONDITIONS_IN,CONDITIONS_INX.
    REFRESH: CONDITIONS_IN,CONDITIONS_INX.
    CONDITIONS_IN-ITM_NUMBER = P_POSNR.
    CONDITIONS_IN-COND_ST_NO = L_STUNR.
    CONDITIONS_IN-COND_COUNT = L_ZAEHK.
    CONDITIONS_IN-COND_TYPE  = L_KSCHL.
    APPEND CONDITIONS_IN.
    CONDITIONS_INX-UPDATEFLAG = 'D'.
    CONDITIONS_INX-ITM_NUMBER  = P_POSNR.
    CONDITIONS_INX-COND_ST_NO  = L_STUNR.
    CONDITIONS_INX-COND_COUNT  = L_ZAEHK.
    CONDITIONS_INX-COND_TYPE   = L_KSCHL.
    APPEND CONDITIONS_INX.
    ***--- End delete a condition line
    BEHAVE_WHEN_ERROR = 'P'.
    SIMULATION = P_TEST.   " Test mode or not
    "=== call BAPI
    CALL FUNCTION 'BAPI_SALESORDER_CHANGE'
      EXPORTING
        SALESDOCUMENT               = SALESDOCUMENT
        ORDER_HEADER_INX            = ORDER_HEADER_INX
        LOGIC_SWITCH                = '    U'
      TABLES
        RETURN                      = RETURN
        ORDER_ITEM_IN               = ORDER_ITEM_IN
        ORDER_ITEM_INX              = ORDER_ITEM_INX
        CONDITIONS_IN               = CONDITIONS_IN
        CONDITIONS_INX              = CONDITIONS_INX .
    CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'.
    WRITE: / 'Return code =', SY-SUBRC.
    SKIP 1.
    LOOP AT RETURN.
      WRITE: / RETURN-MESSAGE.
    ENDLOOP.
    Edited by: hank jiang on May 21, 2010 5:07 AM
    Edited by: hank jiang on May 21, 2010 5:25 AM
    Edited by: hank jiang on May 21, 2010 5:27 AM

    SALESDOCUMENT = P_VBELN.     "Sales order number
    ORDER_HEADER_INX-UPDATEFLAG = 'U'.   "U = change sales order
    ORDER_ITEM_IN-ITM_NUMBER = P_POSNR.
    APPEND ORDER_ITEM_IN.
    ORDER_ITEM_INX-UPDATEFLAG = 'U'.   "I = add, U= update, D=delete
    ORDER_ITEM_INX-ITM_NUMBER = P_POSNR.
    APPEND ORDER_ITEM_INX.
    "Begin delete a condition line
    "Make sure to use update flag 'D'. Here I = add, U= update, D=delete
    CLEAR: CONDITIONS_IN,CONDITIONS_INX.
    REFRESH: CONDITIONS_IN,CONDITIONS_INX.
    CONDITIONS_IN-ITM_NUMBER = P_POSNR.
    CONDITIONS_IN-COND_ST_NO = L_STUNR.
    CONDITIONS_IN-COND_COUNT = L_ZAEHK.
    CONDITIONS_IN-COND_TYPE  = L_KSCHL.
    APPEND CONDITIONS_IN.
    CONDITIONS_INX-UPDATEFLAG = 'D'.
    CONDITIONS_INX-ITM_NUMBER  = P_POSNR.
    CONDITIONS_INX-COND_ST_NO  = L_STUNR.
    CONDITIONS_INX-COND_COUNT  = L_ZAEHK.
    CONDITIONS_INX-COND_TYPE   = L_KSCHL.
    APPEND CONDITIONS_INX.
    "End delete a condition line
    BEHAVE_WHEN_ERROR = 'P'.
    SIMULATION = P_TEST.   " Test mode or not
    "=== call BAPI
    CALL FUNCTION 'BAPI_SALESORDER_CHANGE'
      EXPORTING
        SALESDOCUMENT               = SALESDOCUMENT
        ORDER_HEADER_INX            = ORDER_HEADER_INX
        LOGIC_SWITCH                = '    U'
      TABLES
        RETURN                      = RETURN
        ORDER_ITEM_IN               = ORDER_ITEM_IN
        ORDER_ITEM_INX              = ORDER_ITEM_INX
        CONDITIONS_IN               = CONDITIONS_IN
        CONDITIONS_INX              = CONDITIONS_INX .
    CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'.
    WRITE: / 'Return code =', SY-SUBRC.
    SKIP 1.
    LOOP AT RETURN.
      WRITE: / RETURN-MESSAGE.
    ENDLOOP.

  • How to execute a Scenario from Windows CMD prompt

    Please can you let me know how to execute the Scenario from a Windows CMD prompt? I am not sure if it is any different from "ODIStartScen" command that ODI uses to execute the scenario.
    Appreciate your help.
    Regards
    B

    Hi SH,
    I tried running the scenario from the command line, but the process was not completed and it came back with the below message
    Session : 131774001 finished with return code : 7000
    Do I need to set up any environmental variables or any other setups before I can run the scenario from the command line?
    Appreciate your help.
    Regards
    B

Maybe you are looking for

  • After updating to iTunes 11.1.2 constantly hanging then crashing

    I am no longer able to use 64-bit iTunes at all on Windows 7 64-bit. I downloaded and installed the latest version and now cannot access any of my content. I am constantly receiving "Unable to load class data" errors, then iTunes hangs and eventually

  • Error message when trying to access the free Sudoku game I downloaded from Blackberry Owners' Forum

    I downloaded the free Sudoku game from the Blackberry Owners' Lounge (at http://na.blackberry.com/eng/ownerslounge/downloads/games.jsp) to my PC and then used the Blackberry Desktop Manager to transfer it to my Blackberry Curve 8300. But, when I try

  • How can I see reviews in English?

    For many apps in App Store I don't see any rating or reviews, and if there are any they are in Polish. How can change Appstore settings(also on iPad) to see also english reviews?(cause in Polish there aren't many...) Appstore itself is in English.

  • Why can't I connect to my home WiFi after the 8.3 update?

    I have updated my iPhone 6 to the latest iOS 8.3 and now I cannot connect to my WiFi at home, why? I've done a clean install and rebooted my home router and still no connection. However the device does connect to my workplace WiFi.  All my other devi

  • Installing AS and Database on one machine

    Hi all I want to install Oracle Database 10.2.0.3 and Oracle AS 10.1.2.0.2 (Business Intelligence and Forms Developer Topology) on one linux machine (AS 4). I can install the database and the AS as suggested in the installation guides. But now my mac