Question re. inserting extra lines on a PDF table

How do I insert extra lines in a table contained on a PDF?

Hi Steve,
That isn't something that you can do in Acrobat. However, you could use ExportPDF or Acrobat to save that PDF as an Excel spreadsheet, and add the extra line in Excel. For more information, see cloud.acrobat.com/exportpdf or www.adobe.com/products/acrobat.html cloud.acrobat.com/exportpdf.
Best,
Sara

Similar Messages

  • IF statement inserts extra line.

    I am having problems with IF statements inserting extra lines;
    POH_VENDOR_NAME<?if:POH_PO_NUM != ''?>(POH_PO_NUM)<?end if?>
    Returns:
    Consolidated Supplies
    (1085)
    Instead of:
    Consolidated Supplies (1085)
    I have tried using CHOOSE but get the same results. Any help appreciated.
    Thanks
    Carl.

    Hi Carl,
    Hope your development is going ok. Not sure why the choose wouldn't work with @inline, if the IF statement did. What I would suggest instead is using a series of IF statements. So <?if@inline:x=1?> and the opposite <?if@inline:x!=1?>
    Its a bit of a pain, but I can't think of any other way to get around this.
    Regards,
    Cj

  • Safari inserts extra lines in postings causing formating problems

    I am currently using Safari on the University of Phoenix website as an instructor. Whenever I post a reply to the students and post feedback to them, Safari inserts extra lines in the posting where ever, on when ever, the return key is used. For every carriage return, an extra line is ultimately inserted into the post. Does anyone know how to stop this?

    Please see this thread:
    http://discussions.apple.com/thread.jspa?threadID=1467276&tstart=0
    It might be the logic board, but indications are that it's an overheated graphics card. I have the exact same iMac you do (even with 3 gigs memory upgrade) and have similar problems.

  • Problem while inserting extra line item in XVBAP

    Hi Experts,
    I have to add extra line item in the Sale order through user exit.
    So i added new line item in the internal table XVBAK of the subroutine USEREXIT_SAVE_DOCUMENT_PREPARE (MV45AFZZ). Its working fine with the sales order. But when I create delivery of the same new iserted line item is not going to the delivery.
    Please give me solution...
    Thanks
    Sameer

    Hi Sameer,
    i think, you have added the line in XVBAP - not in XVBAK.
    And what's about VBEP - without an entry in VBEP, there will be no delivery note. There are also several indexes for the delivery.
    I hav'n dared to put an extra Line into the oder while Save_prepare.
    Perhaps try the bapi for order changing.
    You can get the new order-number while userexit Save. Save the need of change in an extra teble and change is via bapi with a background - job.
    Hans

  • Insert specific line in an internal table at a specific place

    Hi
    i have an internal table (itab) let's say
    Name1 Name2 NUM1 NUM2 NUM3
    Which already populater with data.
    i have to do a subtotal for every NAME1 and insert a line just after the NAME1 in the internal table
    and another subtotal by every NAME1 NAME2 and insert a line just after every NAME1 and NAME2 in the internal table
    then another Grand total at the end of the table
    My psudeo code is a bit like that but the insert is done in the wrong row
    Index=1
    LOOP at itab index
    if itab-name1 NE old
      insert structure in itab index
    elseif itab-name1 NE old and itab-name2 NE old
      insert structure in itab index
    elseif itab EQ last line
      insert structure in itab index
    else
      structure-num1 = structure-num1 + itab-num1
      structure-num2 = structure-num2 + itab-num2
    endif
    index = index + 1
    endloop
    Do you think i need to use a temporary table here. can u guide me in code plz..

    sort internal table by name1 and name2. <b>Have name1 and name2 as the first two variables in the internal table</b>
    declare a work area and an internal table with the same structure as internal table.
    declare num1 as type itab-num1.
    num2 and i_num2 type itab-num2.
    sort itab by name1 and name2.
    loop the internal itab1.
    append itab1 to itab2.
    wa-num1 = structure-num1 + itab-num1
    wa-num2 = structure-num2 + itab-num2.
    i_num2 = i_num2 + itab-num2.
    num1 = num1 + itab-num1.
    num2 = num2 + itab-num2.
    at end of name2.
    append wa to itab2.
    clear wa_name2.
    endat.
    at end of name1.
    wa-num2 = i_num2.
    append wa to itab2.
    clear: i_num2, wa.
    endat.
    at last.
    wa-num1 = num1.
    wa-num2 = num2.
    append wa_itab2.
    endat.
    endloop.
    Thanks.

  • Inserting a line in a internal table

    Hello guys , I want to insert in the forst line of my internal table son titles in order to move the entire table to txt file , But I dont kno how I can put the titles in the first line, any suggestion ? DO I have to use a index?

    Where are you writing the text file??
    If you are using GUI_download, then you can pass the header text( in a different internal table) to the FM.
    If you are using open dataset you can write the header first and then the internal table.
    I dont think inserting text in the data table is a good idea.

  • Inserting Extra Lines dynamically in Iprocurement

    Hi,
    We have a rqquirement in iProcurement. Here are the rules
    1. Typically user queries for a item, adds it to the shpping cart.
    2. Clicks on the 'Proceed To Checkout' button.
    3. This takes him to the ShoppingCart page which lists all the items that have been selected. The users clicks next...and submits the requisition for approval.
    In step1, sometimes the item selected is a 'Kit' i.e. it has multiple items within it. When such a kit is selected, the shopping cart(Step3) page should not display a single row for the kit but should 'blowup' the single line to multiple lines that makeup the kit. These constituent item lines should replace the would-have-been kit line in the shopping cart page.
    I can write a query to determine if an item is a kit and retrieve the details of it's constituent items. When the shopping cart page is displayed it should have created and should display the extra rows for the constituent items with their details populated.
    Lets say user added to the cart 3 items. Item1- a regular item, item2-a kit item with 2 detail items and item3-once again a regular item. The shopping cart will look like this:
    Current Functionality;
    Line1: Item1 $10 //(Regular Item) -
    Line2: Item2 $20 //(Kit with items item21, item22)
    Line3: Item3 $40 //(Regular item)
    New Functionality:
    Line1: Item1 $10 //(Regular Item)
    Line2: Item21 $10 //blow up to detail
    Line3: Item22 $10 //blow up to detail
    Line4: Item3 $40 //(Regular Item)
    What is the best way to achieve this in OAF? Where do I write the code?
    Thanks

    Hi Tapash,
    Thanks for the info.
    We are trying to change an iprocurement seeded page. I am new to the OAF and Java . I attended an OAF class last week and took an online java course the week before - info overload. So I have a lot of rookie questions
    Based on your suggestion I am calculating this is what happens. Just my thought process. Please advise if it makes sense.
    1. User selects a bunch of items and adds them to the shopping cart.
    2. These selected items' numbers are stored somewhere (where?)
    2. Clicks on 'proceed to checkout' button.
    3. This causes the VO to build a query something like
    select details from items_table where item_numbers in (those selected in 1 and stored in 2).
    What I will need to do is extend the VORowImpl and in init_query method change the query from 3 to somehow include the constituent Kit items.
    Is this correct?
    BTW I have seen some of your posts and you are doing a great job making the transition to OAF palatable to a lot of people. If you don't already work for Oracle, they should be paying you for this.
    Thanks
    Sandeep

  • Need help in inserting line details in custom table in oaf

    Dear All,
    I have a requirement as below.
    I have a page having few LOVS and few text fields and below to that i have a table region that i am populataing from another page means i have a button to open another page from that i am passing selected rows to base page, so my base page structure looks like below:
    LOV1        TEXTFIELD1
    LOV2        TEXTFIELD2 .......SO ON
    LINE DETAILS
    LINENUM  ITEM ITEM DESC
    1             AAAA           TEST
    SO my requirement is i have a button in my base page after clicking thsi the header information should insert to a table and line information should insert into another table,
    Header information i am able to insert into table by EO based VO, but how i can insert the line data from the table region to another custom table, please help me out on ths.
    Thanks

    Hello Everyone!
    DataObject fileUploadData = (DataObject)pageContext.getNamedDataObject("UploadFile");
    String fileName = null;
    String contentType="";
    try {
    fileName = (String)fileUploadData.selectValue(null, "UPLOAD_FILE_NAME");
    System.out.println("File Name : "+fileName);
    } catch(NullPointerException ex)
    throw new OAException("Please Select a File to Upload", OAException.ERROR);
    contentType = (String)fileUploadData.selectValue(null, "UPLOAD_FILE_MIME_TYPE");
    System.out.println("contentType : "+contentType);
    System.out.println("Creating object uploadedByteStream for file name : "+fileName);
    BlobDomain uploadedByteStream = (BlobDomain)fileUploadData.selectValue(null, fileName);
    I was using the above code to load the MS Excel 2010 .xlsx file, but when i checked uploadedByteStream is returning null value.
    Could anyone let me know why is this happening because i found in my post on google the same way (Above mentioned) code has been written for loading the .xlsx file?
    Thanks & Advanced,
    CAK

  • Getting a extra space between the line in the PDF output

    I an having the rtf templete contains a table . That table contains 3 row and for the second row i have a for loop start at 1st column and end's at last column . first and 3rd row are the simple data donot have any for loop .
    So in the PDF out put of the templete gives me extra blank line between the data for the 2nd row.
    Example
    1st row ------ Contains data field
    2nd row For Each grouph data fields End for
    3rd row --------- Contains data field
    On the PDF output the data which is in the for loop ( 2nd row ) takes one more extra line ( space ) between the record .

    I an having the rtf templete contains a table . That table contains 3 row and for the second row i have a for loop start at 1st column and end's at last column . first and 3rd row are the simple data donot have any for loop .
    So in the PDF out put of the templete gives me extra blank line between the data for the 2nd row.
    Example
    1st row ------ Contains data field
    2nd row For Each grouph data fields End for
    3rd row --------- Contains data field
    On the PDF output the data which is in the for loop ( 2nd row ) takes one more extra line ( space ) between the record .

  • Extra line after first item in quiz questions

    I just started using Captivate 7.  I made a template with some quiz questions and there is an extra line after the 2nd radio button in the templates for multiple choice and true false questions.  Is that normal ?
    Screen shot.

    I'm experiencing the same problem, also on Captivate 7.
    The alignment is fine on the master slide, but every time I load a multiple choice or true/false question the "B" answer appears like this.
    I've tried it with every theme and the same thing is happening. I've also had the program uninstalled and reinstalled and still the error is there.
    I've searched on different forums, but no one seems to have the answer.

  • Insertion of extra line item in delivery creation

    Hi,
    I have a requirement like after the creation of delivery from sale order, if we insert new line item in sale order , created delivery should be overwrite with newly added line item in sale order.
    Im using RV_DELIVERY_CREATE for creation of delivery and BAPI_OUTB DELIVERYCHANGE for change of delivery. But for the above mentioned requirement is not getting by these Function Modules.
    Let me know which parameters should i pass for insertion .
    Code will be more sufficient.
    Thanks in Advance

    Try with this FM WS_DELIVERY_UPDATE where u can modify the created delivery

  • Strange characters inserted when I create a PDF

    I am using Acrobat 11, Windows 7, PC.  Someone sent me a Word Document file and when I create a PDF from it, there are questions marks inserted in many places.  The original word doc has charts inserted as "pictures".  This is where the strange characters are occurring.  Regular text is fine.  A colleague created a PDF using an earlier version of Acrobat and it worked fine. 

    I have figured out that I was not creating the PDF correctly (was doing it through Windows instead of Adobe).  Now that I am doing it correctly (using the Adobe tab when I'm in the word doc, then clicking Create Adobe PDF), the chart does not have the questions marks anymore but it is NOT as crisp and clean as it should be.  Text is blurred, lines in chart are faded or missing in some spots.  In the word doc the chart is crisp and clear.
    Of note:  The charts that have been inserted into the document using my Windows 7 PC are fine when PDF'd.  The chart that is in question was I believe created on a Mac.  That shouldn't matter in my book but unfortunately sometimes it does.
    Any help would be much appreciated!

  • Line item dimension wont insert sid values in infoobject sid table

    Hi all,
       I have a strange problem, whenever I load data into a cube which has a line item dimension on 0customer without first loading the master data I am getting inconsistency in RSRV saying that no corresponding DIMid exists in sid table.
    So there are Dimids in the fact table but the dimension table, which is same as the sid table in the the case of line item dimension, doesnt have them.
    Can someone explain me why is this happening?  I thought if a characteristic value doesnt exist in the master data but comes in through the transaction data it inserts the same in the sid table. 
    Is there a different rule for line item dimensions? Can someone point me to some OSS or documentation?
    thanks

    Thanks all..
    To clear up a few questions:
    1. What I mean by <i>"So there are Dimids in the fact table but the dimension table, which is same as the sid table in the the case of line item dimension, doesnt have them"</i> is:
    the line item dimension table /bic/D<cubename>9 which is really a view on the sid table for characteristic /bic/s<ch. name> does have all the sid values (or all the dim values) as the fact table.
    So fact table has more entries for that dimension than the sid table.
    2. Yes we are facing reporting errors where we cannot drill down by that infoobject and LISTCUBE doesnt show us any cube data when that characteristic is chosen for display.
    3. I have checked notes where it seems to be a RSRV bug but in our case it doesnt seem to be as observed in the actual table mentioned in #1
    Now it is apparent that I am right both from help.sap.com link and what I am observing that for line item dimensions master data HAS TO BE LOADED FIRST for the characteristics used as a line item.

  • GUI_DOWNLOAD : Extra Line

    Hi All,
    I am downloading the the internal table into a flat file using GUI_DOWNLOAD.
    I am getting an extra line at the end which is not required.
    I have debugged and found the content is correct.
    However in note pad a blank line apprers.
    Any help would be great.
    reagrds,

    REPORT  ZPP_GROSS_REQUIREMENT_UPLOAD.
    data : zwerks like BAPISITEMR-PLANT.
    DATA : BEGIN OF ITAB_REQ OCCURS 0,
              RECTYPE(4),
              PLANT(3),
              MATERIAL(12),
              MAT_TYPE(1),
              START_DATE(8),
              END_DATE(8),
              QTY(14),
              SIGN(1),
              FILLER(9),
           END OF ITAB_REQ.
    DATA : BEGIN OF ITAB_REQ2 OCCURS 0,
              RECTYPE(4),
              PLANT(3),
              MATERIAL(12),
              MAT_TYPE(1),
              START_DATE(8),
              END_DATE(8),
              QTY(14),
              SIGN(1),
              FILLER(9),
           END OF ITAB_REQ2.
    DATA : BEGIN OF ITAB_PLAN OCCURS 0,
            MANDT TYPE SY-MANDT,
            PLANNO LIKE ZPP_PLAN_NUMBER-PLANNO,
            PLNTIME LIKE ZPP_PLAN_NUMBER-PLNTIME,
            PLNDATE LIKE ZPP_PLAN_NUMBER-PLNDATE,
            ACTIVE LIKE ZPP_PLAN_NUMBER-ACTIVE,
           END OF  ITAB_PLAN .
    DATA : BEGIN OF ITAB_STATUS  OCCURS 0,
            MATERIAL LIKE MARA-MATNR,
            TYPE(1),
            DESC(200),
           END OF ITAB_STATUS  .
    data : p1(14) type p decimals 5.
    data : p2(13) type p decimals 3.
    data : p(15) type C.
    DATA : REQ_OUT LIKE BAPISITMEO OCCURS 0 WITH HEADER LINE,
           REQ_OUT1 LIKE BAPISITMEO OCCURS 0 WITH HEADER LINE,
           RET2 LIKE BAPIRETURN1 OCCURS 0 WITH HEADER LINE.
    DATA : REQ_IN LIKE BAPISSHDIN OCCURS 0 WITH HEADER LINE,
           RET3  LIKE BAPIRETURN1 OCCURS 0 WITH HEADER LINE.
    DATA : BEGIN OF T1 OCCURS 0 ,
            MATNR LIKE MARA-MATNR,
            DATE_TYPE TYPE BAPISSHDIN-DATE_TYPE,
            REQ_DATE TYPE BAPISSHDIN-REQ_DATE,
            REQ_QTY TYPE BAPISSHDIN-REQ_QTY,
            UNIT TYPE BAPISSHDIN-UNIT,
          END OF T1.
    DATA: BEGIN OF ITAB_OLDPLAN OCCURS 0,
            MANDT TYPE ZPP_PLAN_NUMBER-MANDT,
            PLANNO TYPE ZPP_PLAN_NUMBER-PLANNO,
            PLNTIME TYPE ZPP_PLAN_NUMBER-PLNTIME,
            PLNDATE TYPE ZPP_PLAN_NUMBER-PLNDATE,
            ACTIVE TYPE ZPP_PLAN_NUMBER-ACTIVE,
           END OF ITAB_OLDPLAN.
    DATA: BEGIN OF ITAB_OLDPLAN1 OCCURS 0,
            MANDT TYPE ZPP_PLAN_NUMBER-MANDT,
            PLANNO TYPE ZPP_PLAN_NUMBER-PLANNO,
            PLNTIME TYPE ZPP_PLAN_NUMBER-PLNTIME,
            PLNDATE TYPE ZPP_PLAN_NUMBER-PLNDATE,
            ACTIVE TYPE ZPP_PLAN_NUMBER-ACTIVE,
           END OF ITAB_OLDPLAN1.
    DATA : PLNNO TYPE I.
    DATA : PLNNO1(10) TYPE C.
    DATA : PLNNO_NEW TYPE I.
    DATA : PLNNO_NEW1(10) TYPE C.
    DATA : RET LIKE BAPIRETURN1 OCCURS 0 WITH HEADER LINE.
    DATA : SCHEDULE_IN LIKE BAPISSHDIN OCCURS 0 WITH HEADER LINE.
    DATA : ITEMS LIKE BAPISITEMR OCCURS 0 WITH HEADER LINE .
    DATA : BEGIN OF T OCCURS 0,
             MATERIAL(12),
             DATE_TYPE(1),
             REQ_DATE LIKE SY-DATUM,
             REQ_QTY(13),
           END OF T.
    DATA : L_DATTIME(10) .
    *DATA : D1 like VTBBEWE-DBERVON, D2 like VTBBEWE-DBERBIS, D3 like VTBBEWE-ATAGE.
    DATA : D1 TYPE D, D2 TYPE D, D3 TYPE I.
    DATA QN(9) TYPE C.
    DATA DEC(9) TYPE C.
    DATA : TMAT(12).
    DATA : ACTIVE_REQ LIKE BAPISITEMR-REQ_NUMBER,
           DEACTIVE_REQ(10) TYPE C .
    SELECTION-SCREEN BEGIN OF BLOCK BLK WITH FRAME TITLE TEXT-001.
    PARAMETER: P_FILE TYPE STRING DEFAULT
                                          'c:\data\gross_upload.txt'.
    *PARAMETER: P_PLAN LIKE AM60X-PBDNR.
    *PARAMETER: P_OLDPLN LIKE BAPISITEMR-REQ_NUMBER.
    SELECTION-SCREEN END OF BLOCK BLK.
    AT SELECTION-SCREEN ON VALUE-REQUEST FOR P_FILE.
      PERFORM GETFILE_NAME CHANGING P_FILE.
    TOP-OF-PAGE.
      WRITE :/35  '** GROSS REQUIREMENT UPLOAD **'.
      WRITE :/35  '******************************'.
    START-OF-SELECTION.
    perform CHECK_PLAN_NUMBER USING P_OLDPLN.
      PERFORM READ_FILE.  "Reads the input file using GUI_UPLOAD.
      PERFORM GET_OLD_PLAN. " GETS THE OLD PLAN NUMBER.
      PERFORM CREATE_PLAN_NUMBER. " Creates a new plan number for this week.
      PERFORM CREATE_GROSS_REQUIREMENT. " Creates the gross requirement.
      PERFORM WRITE_STATUS.
    *&      Form  READ_FILE
          Reads the input file using GUI_UPLOAD.
    -->  p1        text
    <--  p2        text
    FORM READ_FILE .
      CALL FUNCTION 'GUI_UPLOAD'
        EXPORTING
          FILENAME                      = P_FILE
       FILETYPE                      = 'DAT'
      HAS_FIELD_SEPARATOR           = ' '
      HEADER_LENGTH                 = 0
      READ_BY_LINE                  = 'X'
      DAT_MODE                      = ' '
      CODEPAGE                      = ' '
      IGNORE_CERR                   = ABAP_TRUE
      REPLACEMENT                   = '#'
      CHECK_BOM                     = ' '
      VIRUS_SCAN_PROFILE            =
      NO_AUTH_CHECK                 = ' '
    IMPORTING
      FILELENGTH                    =
      HEADER                        =
        TABLES
          DATA_TAB                      = ITAB_REQ
    EXCEPTIONS
      FILE_OPEN_ERROR               = 1
      FILE_READ_ERROR               = 2
      NO_BATCH                      = 3
      GUI_REFUSE_FILETRANSFER       = 4
      INVALID_TYPE                  = 5
      NO_AUTHORITY                  = 6
      UNKNOWN_ERROR                 = 7
      BAD_DATA_FORMAT               = 8
      HEADER_NOT_ALLOWED            = 9
      SEPARATOR_NOT_ALLOWED         = 10
      HEADER_TOO_LONG               = 11
      UNKNOWN_DP_ERROR              = 12
      ACCESS_DENIED                 = 13
      DP_OUT_OF_MEMORY              = 14
      DISK_FULL                     = 15
      DP_TIMEOUT                    = 16
      OTHERS                        = 17
      IF SY-SUBRC <> 0.
        MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
                WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
      ENDIF.
       DESCRIBE TABLE ITAB_REQ LINES LIN.
         IF SY-TABIX = '1' OR SY-TABIX = LIN.
           CONTINUE.
         ENDIF.
    delete ITAB_REQ where MATERIAL+11(1) = 'I' and MAT_TYPE = 'P'.
    ENDFORM.                    " READ_FILE
    *&      Form  CREATE_GROSS_REQUIREMENT
          Creates the gross requirement
    -->  p1        text
    <--  p2        text
    FORM CREATE_GROSS_REQUIREMENT .
    *read table ITAB_REQ with  key RECTYPE = 'OP01'.
    *zwerks =  ITAB_REQ-PLANT.
      DELETE ITAB_REQ WHERE  RECTYPE NE 'PFAI'.
      SORT ITAB_REQ  BY MATERIAL.
      ITAB_REQ2[] = ITAB_REQ[] .
      DELETE ADJACENT DUPLICATES FROM ITAB_REQ2 COMPARING MATERIAL.
      LOOP AT ITAB_REQ .
        T-MATERIAL = ITAB_REQ-MATERIAL.
        D1 = ITAB_REQ-START_DATE.
        D2 = ITAB_REQ-END_DATE.
        IF D2 EQ '        '.
          D2 = D1 .
        ENDIF.
       D3 = D2 - D1.
       CALL FUNCTION 'CONVERT_DATE_FORMAT'
         EXPORTING
           I_DATE      = D1
         IMPORTING
           E_CALC_DATE = D1.
       CALL FUNCTION 'CONVERT_DATE_FORMAT'
         EXPORTING
           I_DATE      = D2
         IMPORTING
           E_CALC_DATE = D2.
       D3 = D2 - D1.
        CALL FUNCTION 'HR_SGPBS_YRS_MTHS_DAYS'
          EXPORTING
            BEG_DA     = D1
            END_DA     = D2
          IMPORTING
            NO_CAL_DAY = D3.
    *CALL FUNCTION 'FIMA_DAYS_AND_MONTHS_AND_YEARS'
    EXPORTING
       I_DATE_FROM          = d1
      I_KEY_DAY_FROM       = '00'
       I_DATE_TO            = d2
      I_KEY_DAY_TO         = '00'
      I_FLG_SEPARATE       = ' '
    IMPORTING
      E_DAYS               = d3
      E_MONTHS             =
      E_YEARS              =
        IF D3 < 7 AND D3 > 0.
          T-DATE_TYPE =  '2'. " Weekly
        ELSE.
          T-DATE_TYPE =  '3'. " Monthly
        ENDIF.
        IF SY-SUBRC <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
            WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
        ENDIF.
        T-REQ_DATE = ITAB_REQ-START_DATE.
        QN = ITAB_REQ-QTY+0(9).
        DEC = ITAB_REQ-QTY+9(5).
        CONCATENATE QN '.' DEC INTO p.
        p1 = p.
       p2 = p1.
       T-REQ_QTY = p2.
    T-REQ_QTY = p.
      T-REQ_QTY = ITAB_REQ-QTY+0(9).
        APPEND T.
        CLEAR : T, D1, D2, D3.
      ENDLOOP.
      DATA PNO LIKE BAPISITEMR-REQ_NUMBER.
      LOOP AT ITAB_REQ2.
        LOOP AT T WHERE MATERIAL = ITAB_REQ2-MATERIAL.
          SCHEDULE_IN-DATE_TYPE =  T-DATE_TYPE .
          SCHEDULE_IN-REQ_DATE = T-REQ_DATE .
          SCHEDULE_IN-REQ_QTY = T-REQ_QTY.
          APPEND SCHEDULE_IN.
        ENDLOOP.
        ITEMS-MATERIAL = ITAB_REQ2-MATERIAL .
        ITEMS-PLANT = zwerks .
        ITEMS-REQU_TYPE = ' ' .
        ITEMS-VERSION = '00' .
        ITEMS-VERS_ACTIV = 'X'.
        ITEMS-REQ_NUMBER = L_DATTIME.
        ACTIVE_REQ = L_DATTIME.
       APPEND ITEMS.
       D1 = ITAB_REQ-START_DATE.
       D2 = ITAB_REQ-END_DATE.
       D3 = D2 - D1.
       IF D3 > 7.
         SCHEDULE_IN-DATE_TYPE =  '3'. " MONTHLY
       ELSE.
         SCHEDULE_IN-DATE_TYPE =  '2'. " WEEKLY
       ENDIF.
       SCHEDULE_IN-REQ_DATE = ITAB_REQ-START_DATE .
       SCHEDULE_IN-REQ_QTY = ITAB_REQ-QTY.
       APPEND SCHEDULE_IN.
        CALL FUNCTION 'BAPI_REQUIREMENTS_CREATE'
          EXPORTING
            REQUIREMENTS_ITEM              = ITEMS
      REQUIREMENT_PARAM              =
           DO_COMMIT                      = 'X'
           UPDATE_MODE                    = 'X'
      REFER_TYPE                     = ' '
      PROFILID                       = ' '
    IMPORTING
      MATERIAL                       =
      PLANT                          =
      REQUIREMENTSTYPE               =
      VERSION                        =
       REQMTSPLANNUMBER               =
      MRP_AREA                       =
      MATERIAL_EVG                   =
          TABLES
            REQUIREMENTS_SCHEDULE_IN       = SCHEDULE_IN
      REQUIREMENTS_CHAR_IN           =
            RETURN                         = RET
       if sy-subrc ne 0.
       loop at ret.
       write :/  ret.
       endloop.
       endif.
        ITAB_STATUS-MATERIAL = ITAB_REQ2-MATERIAL.
       ITAB_STATUS-TYPE = RET-TYPE.
        ITAB_STATUS-DESC = RET-MESSAGE.
        IF RET-MESSAGE IS INITIAL.
          ITAB_STATUS-DESC = 'Requirement Created '.
        ENDIF.
        APPEND ITAB_STATUS.
        CLEAR ITAB_STATUS.
        CLEAR SCHEDULE_IN.
        REFRESH SCHEDULE_IN.
        CLEAR ITAB_REQ2.
        CLEAR T.
      ENDLOOP.
      ITAB_PLAN-MANDT = SY-MANDT.
      ITAB_PLAN-PLANNO = L_DATTIME.
      ITAB_PLAN-PLNTIME = SY-UZEIT.
      ITAB_PLAN-PLNDATE = SY-DATUM.
      ITAB_PLAN-ACTIVE = 'X'.
      APPEND ITAB_PLAN.
      CLEAR ITAB_PLAN.
      INSERT ZPP_PLAN_NUMBER FROM TABLE ITAB_PLAN.
      IF SY-SUBRC = 0.
        COMMIT WORK.
      ENDIF.
    ENDFORM.                    " CREATE_GROSS_REQUIREMENT
    *&      Form  WRITE_STATUS
          text
    -->  p1        text
    <--  p2        text
    FORM WRITE_STATUS .
      WRITE :/ ' REQUIREMENT PLAN NUMBER ACTIVATED   : ', ACTIVE_REQ.
      WRITE :/ ' REQUIREMENT PLAN NUMBER DEACTIVATED : ', DEACTIVE_REQ.
      ULINE.
      IF NOT ITAB_STATUS[] IS INITIAL. " WRITES ERROR MESSAGES
        WRITE SY-ULINE(110).
        WRITE :/1 SY-VLINE NO-GAP,
                6 'Material Number',
                24 SY-VLINE NO-GAP,
               25 'Return Code',
               38 SY-VLINE NO-GAP,
                39 'Return Message',
                110 SY-VLINE NO-GAP.
        WRITE SY-ULINE(110).
        LOOP AT ITAB_STATUS.
          WRITE :/1 SY-VLINE NO-GAP,
                  6 ITAB_STATUS-MATERIAL,
                  24 SY-VLINE NO-GAP,
                 25 ITAB_STATUS-TYPE,
                 38 SY-VLINE NO-GAP,
                  39 ITAB_STATUS-DESC,
                  110 SY-VLINE NO-GAP.
        ENDLOOP.
        WRITE SY-ULINE(110).
      ENDIF.
    ENDFORM.                    " WRITE_STATUS
    *&      Form  getfile_name
          text
         <--P_P_FILE  text
    FORM GETFILE_NAME  CHANGING P_P_FILE.
      DATA : TMP_FILE LIKE RLGRAP-FILENAME.
      TMP_FILE = P_P_FILE.
      CALL FUNCTION 'KD_GET_FILENAME_ON_F4'
       EXPORTING
      PROGRAM_NAME        = SYST-REPID
      DYNPRO_NUMBER       = SYST-DYNNR
      FIELD_NAME          = ' '
      STATIC              = ' '
         MASK                = ' .'
        CHANGING
          FILE_NAME           = TMP_FILE
       EXCEPTIONS
         MASK_TOO_LONG       = 1
         OTHERS              = 2.
      IF SY-SUBRC = 0.
        P_P_FILE = TMP_FILE.
      ENDIF.
    ENDFORM.                    " getfile_name
    *&      Form  DEACTIVATE_OLD_REQUIREMENT
          text
    -->  p1        text
    <--  p2        text
    FORM DEACTIVATE_OLD_REQUIREMENT .
      CALL FUNCTION 'BAPI_REQUIREMENTS_GETDETAIL'
        EXPORTING
          MATERIAL               = ' '
          PLANT                  = zwerks
          REQUIREMENTSTYPE       = ' '
          VERSION                = '00'
          REQMTSPLANNUMBER       = ITAB_OLDPLAN-PLANNO
      MRP_AREA               =
      MATERIAL_EVG           =
        TABLES
         REQUIREMENTS_OUT        = REQ_OUT
          RETURN                 = RET2
      IF SY-SUBRC = 0.
        LOOP AT REQ_OUT.
          T1-MATNR = REQ_OUT-MATERIAL.
          T1-DATE_TYPE = REQ_OUT-DATE_TYPE.
          T1-REQ_DATE = REQ_OUT-REQ_DATE.
          T1-REQ_QTY = REQ_OUT-REQ_QTY.
          T1-UNIT = REQ_OUT-UNIT.
          APPEND T1.
          CLEAR T1.
        ENDLOOP.
        REQ_OUT1[] = REQ_OUT[].
        SORT REQ_OUT1 BY MATERIAL.
        DELETE ADJACENT DUPLICATES FROM REQ_OUT1 COMPARING MATERIAL.
        LOOP AT REQ_OUT1.
          LOOP AT T1 WHERE MATNR = REQ_OUT1-MATERIAL.
            REQ_IN-DATE_TYPE = T1-DATE_TYPE.
            REQ_IN-REQ_DATE  = T1-REQ_DATE.
            REQ_IN-REQ_QTY   = T1-REQ_QTY.
            REQ_IN-UNIT      = T1-UNIT.
            APPEND REQ_IN.
            CLEAR REQ_IN.
          ENDLOOP.
          CALL FUNCTION 'BAPI_REQUIREMENTS_CHANGE'
            EXPORTING
              MATERIAL                       = REQ_OUT1-MATERIAL
              PLANT                          = zwerks
              REQUIREMENTSTYPE               = ' '
              VERSION                        = '00'
              REQMTSPLANNUMBER               = ITAB_OLDPLAN-PLANNO
              VERS_ACTIV                     = ' '
        REQUIREMENT_PARAM              =
        MRP_AREA                       =
              DO_COMMIT                      = 'X'
              UPDATE_MODE                    = 'X'
              DELETE_OLD                     = 'X'
        NO_WITHDR                      = ' '
        MATERIAL_EVG                   =
      IMPORTING
        REQUIREMENT_ITEM_OUT           =
             TABLES
              REQUIREMENTS_SCHEDULE_IN       = REQ_IN
        REQUIREMENTS_CHAR_IN           =
              RETURN                         = RET3
        ENDLOOP.
      ENDIF.
    ENDFORM.                    " DEACTIVATE_OLD_REQUIREMENT
    *&      Form  CHECK_PLAN_NUMBER
          text
    -->  p1        text
    <--  p2        text
    FORM CHECK_PLAN_NUMBER . "USING P_P_OLDPLN.
    DATA : ITAB_PBIM TYPE PBIM .
    DATA MSG TYPE STRING.
    SELECT SINGLE * FROM PBIM INTO ITAB_PBIM WHERE PBDNR = P_PLAN.
    IF SY-SUBRC = 0.
       CONCATENATE 'THE PLAN NUMBER :  ' P_PLAN ' ALREADY EXIST' INTO MSG.
       MESSAGE MSG TYPE 'E'.
    ENDIF.
    SELECT SINGLE * FROM PBIM INTO ITAB_PBIM WHERE PBDNR = P_OLDPLN.
    IF SY-SUBRC NE 0.
       CONCATENATE 'THE PLAN NUMBER :  ' P_OLDPLN ' DOES NOT EXIST' INTO MSG.
       MESSAGE MSG TYPE 'E'.
    ENDIF.
    ENDFORM.                    " CHECK_PLAN_NUMBER
    *&      Form  GENERATE_PLAN_NUMBER
          text
    -->  p1        text
    <--  p2        text
    FORM CREATE_PLAN_NUMBER.
      PLNNO_NEW1 = PLNNO_NEW.
      CONDENSE PLNNO_NEW1.
      CONCATENATE SY-DATUM+2(6) PLNNO_NEW1 INTO L_DATTIME.
    ENDFORM.                    " CREATE_PLAN_NUMBER
    *&      Form  GET_OLD_PLAN
          text
    -->  p1        text
    <--  p2        text
    FORM GET_OLD_PLAN .
      SELECT * FROM ZPP_PLAN_NUMBER INTO TABLE ITAB_OLDPLAN WHERE ACTIVE = 'X'.
      IF SY-SUBRC = 0.
        READ TABLE ITAB_OLDPLAN WITH KEY ACTIVE = 'X'.
        PLNNO1 = ITAB_OLDPLAN-PLANNO+6(4).
        CONDENSE PLNNO1.
        PLNNO = PLNNO1.
        read table ITAB_REQ with  key RECTYPE = 'OP01'.
        zwerks =  ITAB_REQ-PLANT.
        PERFORM DEACTIVATE_OLD_REQUIREMENT. " PREVIOUS PLAN IS DEACTIVATED.
        ITAB_OLDPLAN1[] = ITAB_OLDPLAN[].
        CLEAR ITAB_OLDPLAN.
        REFRESH ITAB_OLDPLAN.
        READ TABLE ITAB_OLDPLAN1 WITH KEY ACTIVE = 'X'.
        ITAB_OLDPLAN-PLANNO = ITAB_OLDPLAN1-PLANNO.
        ITAB_OLDPLAN-PLNTIME = ITAB_OLDPLAN1-PLNTIME.
        ITAB_OLDPLAN-PLNDATE = ITAB_OLDPLAN1-PLNDATE.
        ITAB_OLDPLAN-ACTIVE = ' '.
        APPEND ITAB_OLDPLAN.
        CLEAR ITAB_OLDPLAN.
        DEACTIVE_REQ = ITAB_OLDPLAN1-PLANNO.
        MODIFY ZPP_PLAN_NUMBER FROM TABLE ITAB_OLDPLAN.
        IF SY-SUBRC = 0.
          COMMIT WORK.
        ENDIF.
      ENDIF.
      PLNNO_NEW = PLNNO + 1.
    ENDFORM.                    " GET_OLD_PLAN

  • Inserting new line to a text file at position #

    Hi,.
    Is it possible to do this in java?
    1. Open a new text File (woutFile)
    2. woutFile.write(" line #1\r\n"); // write new line
    3. woutFile.write(" line #2\r\n"); // write new line
    4.woutFile.write(" line #3\r\n"); // write new line
    5. Go to line #2 position on a text file
    6. Insert NEW LINE between line #2 and Line #3
    7. move to the end-of-file
    8.Close the file
    Please help

    Is it possible to do this? please look at question
    inside comments.Your question has already been answered. Beyond that,
    if you have some code and you want to know if it will
    work, then run it and see.The answer was no. It's one of the fundamental properties of files that you cannot insert content in the middle, just at the end. To insert content you first have to make room for it. In this respect a file works like an array and not like a linked list.

Maybe you are looking for

  • Prevent multiple users from updating coherence cache data at the same time

    Hi, I have a web application which have a huge amount of data instead of storing the data in Http Session are storing it in coherence. Now multiple groups of users can use or update the same data in coherence. There are 100's of groups with several t

  • Error message "disk was not properly ejected" while syncing to iPod Classic

    Hello, I am having a terrible problem with my iPod Classic. All was fine until this morning. For some reason now when I try to sync iPod I receive several error messages. The iPod will start syncing slowly then I receive "Disk was not properly ejecte

  • Two bug fixes in 1.03 firmware

    It looks like the constant rebooting bug is fixed. I loaded something over with an equalizer set and nothing bad happened. The other more trivial bug fix is that world times now work properly if you are in a time zone where daylight savings time is s

  • FYI: Push only works when the apps are open (in the background)

    Hi fellows, I have made a rather annoying discovery. Emails are being pushed, provided the app runs in the background. In Mobile Me times this was not necessary. I think you should know that before wasting your time. Cheers, Phillip

  • Patch 11077701

    Hi patch 11077701 read me instructions clarifications Can you please help me with the following : 1. There is no instruction to apply the patch. Would there be a unified driver that I need to apply before running the data install utility? 2. The read