ABAP Skip Line/Lines

Hi,
Is there any facility in ABAP, where i can skip the code while debugging. i.e. I dont want a certain set of lines to be executed while debugging.
This is required during a bug found and to test in production whether proper results are obtained if i skip a code.
Further i would also like to know is there any functionality where a code can be directly added or edited in production server itself.
Regards,
Priya

Hi,
we can skip the code using watch-point technique or put d break-point at 2 place like between  begin and end.
for example :
In loop statement, we do not want to excute all lines. then put break-point at loop line and put the other break-point at endloop.
Ram.

Similar Messages

  • Skipping Blank Lines in text File

    I am working on an assignment in which i have to read from a text file and store the strings individually. The problem i have is that the text file has blank line between each set of strings. So i figured to use "fin.nextLine();" to skip that blank line and continue with storing the values. but i get
    "Exception in thread "main" java.util.NoSuchElementException: No line found
         at java.util.Scanner.nextLine(Unknown Source)
         at processmsg.ProcessMessages.choice1(ProcessMessages.java:68)
         at processmsg.ProcessMessages.main(ProcessMessages.java:25)"
    which is where the fin.nexLine() is at. How can i just skip that blank line?
    System.out.println("Please enter the file location");
              Scanner stdin = new Scanner(System.in);
              String fileName = stdin.nextLine();
              // read the information from the file
              try {
                   Scanner fin = new Scanner(new File(fileName));
                   String tSendName = fin.nextLine();
                   while(tSendName != null)
                        String tRecieveName = fin.nextLine();
                        String tPhoneNumber = fin.nextLine();
                        String tDate = fin.nextLine();
                        String tTime = fin.nextLine();
                        String tStatus = fin.nextLine();
                        String tMessage = fin.nextLine();
                        PhoneMessage phonemessage = new PhoneMessage(tSendName, tRecieveName,
                                  tPhoneNumber, tDate, tTime, tStatus, tMessage);
                        fin.nextLine();
                        tSendName = fin.nextLine();

    don't know if you want the whole code, the whole code is kind of large and spread out over 3 different classes. and yes the text file is standard
    sender
    reciever
    phone number
    date
    time
    status
    message
    sender
    reciever
    phone number
    date
    time
    status
    message
    sender
    reciever
    phone number
    date
    time
    status
    message
    private static void choice()
              // scan the file location from the user
              System.out.println("Please enter the file location");
              Scanner stdin = new Scanner(System.in);
              String fileName = stdin.nextLine();
              // read the information from the file
              try {
                   Scanner fin = new Scanner(new File(fileName));
                   String tSendName = fin.nextLine();
                   while(tSendName != null)
                        String tRecieveName = fin.next();
                        String tPhoneNumber = fin.next();
                        String tDate = fin.nextLine();
                        String tTime = fin.nextLine();
                        String tStatus = fin.nextLine();
                        String tMessage = fin.nextLine();
                        PhoneMessage phonemessage = new PhoneMessage(tSendName, tRecieveName,
                                  tPhoneNumber, tDate, tTime, tStatus, tMessage);
                        // skip blank line between entries
                        fin.nextLine();
                        // test date string for correct format
                        int month = Integer.parseInt(tDate.substring(0,2));
                        int day = Integer.parseInt(tDate.substring(3,5));
                        int year = Integer.parseInt(tDate.substring(6,10));
                        // test time string for correct format
                        int hour = Integer.parseInt(tTime.substring(0,2));
                        int minute = Integer.parseInt(tTime.substring(3,5));
                        int second = Integer.parseInt(tTime.substring(6,8));
                        tSendName = fin.nextLine();
                        msgList.add(phonemessage);
                   fin.close();
              } catch (FileNotFoundException e) {
                   System.out.println("The file " + fileName + " was not found!");
              } catch (java.lang.NumberFormatException e) {
                   System.out.println("The date and/or time is not of the correct format");
         }

  • Output skips few line item texts

    Hi All,
    In smartform output for purchase order it displays line item and their text in main window.
    For some PO's it works fine and for some it skips few lines of some line item text.
    In debugging i could find all line items populated.
    Steps Taken:
    1) In table defination i checked no page-break. Problem is it works fine but the first page comes blank and rest is fine.
    Is there any way to resolve this?
    Thanks,
    M Mishra

    Hi All,
    In smartform output for purchase order it displays line item and their text in main window.
    For some PO's it works fine and for some it skips few lines of some line item text.
    In debugging i could find all line items populated.
    Steps Taken:
    1) In table defination i checked no page-break. Problem is it works fine but the first page comes blank and rest is fine.
    Is there any way to resolve this?
    Thanks,
    M Mishra

  • Why  do we use SKIP TO LINE

    Q]     Why  do we use
    SKIP TO LINE Syntax  ?

    hi,
    hope this helps u
    If the list cursor is positioned in the first list line using SKIP TO LINE, and the list has a standard page header, the output in the first line is overwritten by the standard header. If, however,the cursor is positioned using SKIP TO LINE in the lines of page headers and page footers that are defined for TOP-OF-PAGE and END-OF-PAGE, the page headers or footers are overwritten.
    REPORT demo_skip NO STANDARD PAGE HEADING.
    DATA sum TYPE i.
    TOP-OF-PAGE.
      SKIP.
      ULINE.
    START-OF-SELECTION.
      DO 10 TIMES.
        WRITE / sy-index.
        sum = sum + sy-index.
      ENDDO.
      SKIP TO LINE 1.
      WRITE: 'Numbers with sum' COLOR COL_HEADING,
              sum               COLOR COL_TOTAL.

  • How to skip a line like !-- PJG STAG 4700 -- ?

    I am doing a project that requires me to parse a documents.
    The documents have different tags, and main text area between <TEXT> and </TEXT>, here is an example:
    <DOC>
    <DOCNO> FT911-3 </DOCNO>
    <HEADLINE>
    FT 14 MAY 91 / International Company News: Contigas plans DM900m east
    German project
    </HEADLINE>
    <!-- PJG 0012 frnewline -->
    <TEXT>
    CONTIGAS, the German gas group 81 per cent owned by the utility Bayernwerk, said yesterday that it intends to invest DM900m in the next four years.
    </TEXT>
    </DOC>
    Since the main porpuse is to read text body, so I will skip those text between tags except <TEXT></TEXT>.
    I can use switch statement to skip the text between tags, but I can't find a way to skip a line like:
    <!-- PJG 0012 frnewline -->
    any suggestions?

    Let me correct my former statement for jesper1, this is SGML( Standard Generalized Markup Language)
    document, early version for XML, so jesper1 are kind of right.
    For freekee:
    First step:
    /** returns a hashmap of initialized tags
        *  This way we can have more than one tagstring map to the same
        *  tag type.  For example, we might have DOCID and DOCUMENTID both
        *  map to the BEGIN_DOCID tag.
       private HashMap initTags() {
            int NUM_TAGS = 20;
            Integer tagVals[] = new Integer[NUM_TAGS];
            HashMap tags = new HashMap();
            for (int i = 0; i < NUM_TAGS; i++) {
                tagVals[i] = new Integer(i);
            tags.put("<DOC>",             tagVals[0]);
            tags.put("</DOC>",            tagVals[1]);
            tags.put("<PARENT>",          tagVals[2]);
            tags.put("<TITLE>",           tagVals[2]);
            tags.put("<TL>",              tagVals[2]);
            tags.put("<HEADLINE>",        tagVals[2]);
            tags.put("</PARENT>",         tagVals[3]);
            tags.put("</TITLE>",          tagVals[3]);
            tags.put("</TL>",             tagVals[3]);
            tags.put("</HEADLINE>",       tagVals[3]);
            tags.put("<TEXT>",            tagVals[4]);
            tags.put("</TEXT>",           tagVals[5]);
            tags.put("<DOCID>",           tagVals[6]);
            tags.put("<DOCNO>",           tagVals[6]);
            tags.put("</DOCID>",          tagVals[7]);
            tags.put("</DOCNO>",          tagVals[7]);
            tags.put("<DATELINE>",        tagVals[8]);
            tags.put("</DATELINE>",       tagVals[9]);
            return tags;
    second step:
    /* this will read the file of documents, parse them and return a list of document */
      /* objects.  Could be called the document factory since it generates useful       */
      /* document objects that can then be indexed.                                     */
      /* Documents are created when an end of document tag is encountered.              */
      public ArrayList readDocuments() {
          String      dateline     = null;
          String      docName      = null;
          ArrayList   documentList = new ArrayList();
          boolean     done         = false;
          int         documentID   = 0;
          int         length       = 0;
          int         offset       = 0;
          String      title        = null;
          boolean endOfFile = false;
          while (! done) {
              System.out.println("Token --> " + in.sval);
              /* check to see if we hit the end of the file */
              try {
                  if (in.nextToken() == in.TT_EOF) {
                      done = true;
                      endOfFile = true;
                      continue;
                  /* now test for a tag */
                  switch (in.ttype) {
                    // where does "END_DOC" come from?
                    // Since: tags.put("</DOC>", tagVals[1]), so </DOC> is mapped to value 1.
                    // and since in the initialization: private final static int END_DOC = 1;
                    // in.ttype returns a int, like TT_WORD
                 case END_DOC:
                            /* when we hit the end of a document, lets create a new object */
                            /* to store info needed for indexing                           */
                            length = in.currentPosition - offset;
                            Document d = new Document (documentID, docName, title, dateline,
                                             inputFileName, offset, length, distinctTerms);
                            ++documentID;
                            documentList.add(d);
                            break;
                    /* initialize document attributes when we start a new doc */
                    case BEGIN_DOC:
                            System.out.println("Started new document");
                            offset = in.currentPosition;
                            docName = null;
                            dateline = null;
                            title = null;
                            distinctTerms = new HashMap();
                            break;
                 case BEGIN_DOC_NAME:
                         docName = readNoIndex(in, END_DOC_NAME);
                            break;
                 case BEGIN_TITLE:
                            title = readNoIndex(in, END_TITLE);
                            break;
                    case BEGIN_DATELINE:
                            dateline = readNoIndex(in, END_DATELINE);
                            break;
                    case BEGIN_TEXT:
                            readText(in, stopWords);
                            break;
                    /* only time we get a word here is if its outside of any tags */
                    case WORD:
                            break;
                 default: {
                        System.out.println("Unrecognized tag: "+in.sval);
                        System.exit(-1);
              } catch (IOException e) {
                      System.out.println("Exception while reading doc ");
                      e.printStackTrace();
          return documentList;
       }Did I answer your question correctly?

  • Skip 1 Line in ALV report.....

    Hi Experts,
    I have made ALV report in which user wants one blank line after each row.
    How to skip one line after each row in ALV ?
    Yusuf

    Hi Yusuf,
    It is really a typical requirement.
    There is a solution to that.
    In the internal table that you are passing to the function module, append a blank line to that itself.
    Like:
    LOOP AT itab INTO wa.
      APPEND wa TO itab3.
      CLEAR wa.
      APPEND wa TO itab3.
    ENDLOOP.
    REFRESH itab.
    itab[] = itab3[].
    But remember not to do sorting after that or not to pass the sorting table parameters.
    If you have an extra line at the bottom you can delete that by reading the number of lines through the describe statement and delete  the last row of the table.
    Try this hiope this will work.
    Reward points if found useful.
    Thanks & regards
    Abhijit

  • How to SKIP a line in REPORTS 2.5 ?

    Hi
    I am trying to print something on a sheet which has perforations in the middle of the sheet. I need to skip the perforation line from my repeating frame which keeps printing the data. For eg. If I cross line no 11 then I need to skip one line and then start printing.
    Could someone help with this one.
    Thanks
    Prabs
    null

    Hi,
    Add "SKIP 1" to the BREAK command:
    BREAK   ON  amount      SKIP    1

  • Why does the cursor skip a line every time I start a new contact?

    I just got my first iPhone, and I love many things about it, but I'm pretty frustrated about other things. One frustrating thing is that if I go to save a number as a contact, it brings up the new contact page, and EVERY time I click on the first name line, it goes there and immediately jumps to line 2. Same if I click on line 3, it skips to line 4. Or I'll type a letter or two and it skips one or several lines. Anybody else have this issue? Anybody know any fixes? Please help. This will make me lose my cool if I can't get this glitch fixed.

    Hi drewskiiiiiiiii,
    If you are having issues with your iPhone's Contacts application acting oddly, you may want to try some things to troubleshoot.
    First, quit all running applications and test again -
    Force an app to close in iOS
    Next, I would try restarting and if needed resetting the iPhone -
    Restart or reset your iPhone, iPad, or iPod touch
    If the issue is still present, you may want to restore the iPhone as a new device -
    How to erase your iOS device and then set it up as a new device or restore it from backups
    Thanks for using Apple Support Communities.
    Best,
    Brett L  

  • When typing an email, when I go to next line, it skips two lines instead of one line. How do I correct it?

    I was typing an email and when I would go to the next line, it will skip two lines instead of one line. How do I correct the problem?

    I am not sure I understand the problem. Could you include a screenshot of it right after it happens?
    If you need help to create a screenshot, please see [[How do I create a screenshot of my problem?]]
    Once you've done this, attach the saved screenshot file to your forum post by clicking the '''Browse...''' button below the ''Post your reply'' box. This will help us to visualize the problem.
    Thank you!

  • Org.w3c.dom.Document skip a lines between Elements

    Hello,
    I'm generating an XML file from an org.w3c.dom.Document and I'd like to know how can I manually skip a line in the generated xml file.
    <root>
    <myElement>...</myElement>
    skip a line here !
    <myElement>...</myElement>
    </root>
    Thanks,
    Tex

    It's hard to skip half a line, so I don't understand what that last comment means.
    Anyway, with the code you have there your document should end like this:
    <myElement>...</myElement>
    </root>That's because you added a newline as the last child of your root element. If you wanted to add a newline where your original post said you wanted to add a newline, then adding one at the end isn't the right thing to do.

  • Typing double letters...skipping double lines?

    I'm using a new iPad Air 2 with the Apple Keyboard.  Often it double types letters and skips two lines and backspaces two spaces, etc.  Anyone else have this problem.
    Also, what does it mean when I can't get the cursor to settle on the Log-In box...it takes forever to get it to work right.  And navigating this comment box isn't exactly easy.  If this isn't due to needing to replace the AA batteries in my keyboard, do you know what could be the cause of these problems?

    Thanks for your response.
    Yes, it's double typing everywhere, not just here.  But I do have a lot of problems here and don't want to come back.  Do you know of any other forums that are good for discussing apple stuff?  I had to do a copy/paste to post this comment as it wouldn't let me type in the comment box. 
    Hopefully nobody will think I'm rude if I just can't get back in here for one reason or another having to do with apple's software problems.

  • Return key skips a line

    Sometimes when I hit the return key at the end of a line, the cursor jumps a line. Sometimes it doesn't. I don't know why. I can just do shift+return, so it's not a big problem. I'm just wondering how change the setting.

    It doesn't really skip a line, it just looks like it because the default after paragraph spacing is 12 points. You can change it in the text inspector. You may want to make this the default paragraph style for your documents.
    While you're at it, you may want to insert an object & change its color & wrap extra space & then go to Format > Advanced > Define Default Shape Style. You can do similar settings for tables & text boxes. After setting the default style you can delete the objects.
    Then save this document as a template & set it as the default in Preferences & your new documents will have your settings.

  • Total Computing not happening on Sub line, line and header level

    Hi All,
    Iam using below code to compute the contract total, but below api is not populating any values at sub line, line as well on header level.
    Can someone please suggest me whether I am using the correct API or not and also if this is correct one why it is not populating total in service contracts form.
    {DECLARE
    l_input_details OKS_QP_PKG.INPUT_DETAILS;
    l_output_details OKS_QP_PKG.PRICE_DETAILS;
    l_modif_details QP_PREQ_GRP.LINE_DETAIL_TBL_TYPE;
    l_pb_details OKS_QP_PKG.G_PRICE_BREAK_TBL_TYPE;
    l_return_status VARCHAR2(20);
    l_msg_count NUMBER;
    l_msg_data VARCHAR2(2000);
    l_status_tbl oks_qp_int_pvt.Pricing_Status_tbl;
    l_final_status_tbl oks_qp_int_pvt.Pricing_Status_tbl;
    l_count NUMBER;
    BEGIN
    l_input_details.intent := 'LP';
    -- l_input_details.lse_id := 1;
    l_input_details.chr_id :='245003';
    l_input_details.line_id := '301498277568510712147018743801056692954';
    l_input_details.subline_id := '301498277568522801405214890092803754714';
    oks_qp_int_pvt.compute_price
    p_api_version => 1.0,
    p_init_msg_list => 'T',
    p_detail_rec => l_input_details,
    x_price_details => l_output_details,
    x_modifier_details => l_modif_details,
    x_price_break_details => l_pb_details,
    x_return_status => l_return_status,
    x_msg_count => l_msg_count,
    x_msg_data => l_msg_data
    dbms_output.put_line(l_return_status);
    END;
    Best Regards
    Ragni Gupta

    I've never used this API, but you could use the following code to display any error message. (add declaration for l_msg_index_out NUMBER)
    IF l_return_status != 'S'
    THEN
    FOR i IN 1..l_msg_count
            LOOP
              fnd_msg_pub.get (p_msg_index     => -1,
              p_encoded     => 'F' ,
              p_data          => l_msg_data,
              p_msg_index_out=> l_msg_index_out);
              dbms_output.put_line(i||'.'||SUBSTR(l_msg_data,1,255));
    END LOOP;
    END IF;HTH
    Alka

  • My new iPhone6 has horizontal light gray lines lines! Best visible in the white or bright areas, such as the SMS or the Healt App Button...

    My new iPhone6 has horizontal light gray lines lines! Best visible in the white or bright areas, such as the SMS or the Healt App Button...

    I think this is an excellent indicator that not only is Palm reviewing the feedback from the support forums here, but actively reviewing feedback/comments/wishes on other sites as well.
    As the original poster copied this (quite solid, IMO) wishlist from Pre Central, the palm support staff acknowledged first seeing it there.

  • Datasource with PO#,PO line,Line desc and PO line amount

    Hi Everybody,
    I am looking for datasoure that can provide PO #,PO line, Line Desc and PO line amount from r/3. Please provide me with necessary information.
    Warm Regards,
    Virinchi.

    Try http://help.sap.com/saphelp_nw70/helpdata/en/58/f6383fdb800804e10000000a114084/content.htm

Maybe you are looking for

  • How to handle a custom tab in PCUI??

    Hi everyone... I have added a custom tab for the standard pcui opportunity application. If i click on that custom tab I want a new view or page to be dispalyed. Can anyone please let me know how to get this done or how to configure this. This is a bi

  • Macbook Pro makes a faint/light clicking sound.

    I just recently purchased my macbook pro and over the last week, I noticed a light/fint clicking sound on the right side of the keyboard. I do not think it is the hard drive because it has not been slow or lagging or anything else and I verified the

  • Images in texts are blinking/flashing in iOS7

    I recently am having an issue with images/pictures in text message blinking/flashing and not a static picture.  What is causing this? Thanks.

  • Getting image from Microsoft Access database to display in browser

    Hey! anybody please help me I've been trying with no success to get an image from a microsoft access database so far this is what i have: package Servlets; import java.io.*; import java.net.*; import utils.*; import javax.servlet.*; import javax.serv

  • Terminal name

    Hi, we are using oracle 10g, My query is that One user created one table in database 2 month back, now I want to know the terminal name from which that table was created. Can anybody please suggest how to check terminal name for that table in oracle.