WRITE statement and editable fields

Hi,
i don't think it's possible but my customers wants the following in an existing program.
Data is written to the screen by WRITE statement (list processing), but one of the fields must be open for input and the data filled in must be handled by the program and stored into an internal table.
Is this possible ?
regards
Hans

For a rough example, try this program. 
Enter some values, and double click on any line to force the transfer to the Itab, and see the results.
REPORT  ztest  .
START-OF-SELECTION.
  DATA: BEGIN OF itab OCCURS 0,
          id       TYPE i,
          text(10) TYPE c,
          linno LIKE sy-linno,
          pagno LIKE sy-pagno,
        END OF itab.
  DO 5 TIMES.
    itab-id = itab-id + 1.
    APPEND itab.
  ENDDO.
  LOOP AT itab.
    WRITE: /1 itab-id,
           itab-text INPUT HOTSPOT.
    HIDE itab-text.
    itab-linno = sy-linno.
    itab-pagno = sy-pagno.
    MODIFY itab INDEX sy-tabix.
  ENDLOOP.
AT LINE-SELECTION.
  LOOP AT itab.
    READ LINE itab-linno OF PAGE itab-pagno FIELD VALUE itab-text INTO itab-text.
    MODIFY itab INDEX sy-tabix.
  ENDLOOP.
  WRITE: 'you entred:'.
  LOOP AT itab.
    WRITE: /1 itab-id,
           itab-text.
  ENDLOOP.

Similar Messages

  • CFMAIL and Editing Fields

    Hi all,
    I need to allow a user to fill out some forms with the
    following info: Name, Title, Supervisor, Division, Status, Salary,
    Effective Date and Remarks. After filling out the info, it needs to
    be sent via a link that will allow the recipient access to the
    table to edit if necessary. Then the recipient can 'Approve' or
    'Deny' the information and send it back for review and distribution
    by the original sender.
    The forms are already complete but I'm confused as to how the
    emailing and editable fields will work. I already have a CFMAIL
    page completed that used to display the information once it was
    input then simply mail it to the recipient. Well, now, the user
    wants the ability to have the recipient edit the information then
    email it back so that they can distribute it. So now I have to use
    a DB table, whereas before, it was just being sent as an email. So
    I've created the table with the columns for the info I mentioned
    before. What I'm confused with is how to make the transfer from
    just emailing information, to emailing a link that will allow the
    recipient to access the table, edit it if necessary, then Approve
    or Deny it and send it back in the same format. The Approval can
    simply be in the form of a field.
    So I basically need to make it so that I'm taking this and
    making it into an editable table via a link sent though an email
    after the user has filled out the necessary information in the
    forms before. Sorry for all the explaining and confusion. I've
    attached some code to look at and modify. I can provide more code
    from the form input pages if you'd like though I figured the logic
    of the email and the ability to allow the recipient to update the
    DB then actually send it back is in the page I attached. It's
    probably not as bad as it looks or sounds but it's confusing the
    hell out of me...
    Thanks a ton,
    Eric

    I have never used REUSE_ALV_GRID_DISPLAY function module for such scenario but i have used OO ALV to get data realtime.
    CALL METHOD GRID1->SET_TABLE_FOR_FIRST_DISPLAY
           EXPORTING
             IS_LAYOUT        = GS_LAYOUT
             IS_VARIANT       = GS_VARIANT
             I_SAVE           = X_SAVE
             IT_TOOLBAR_EXCLUDING = TEMP_UI
           CHANGING
             IT_FIELDCATALOG  = ITAB_FIELDCAT[]
             IT_OUTTAB        = I_ORDER[]
             IT_SORT          = I_SORT[]."
    I display ALV using above statement and whenever user clicks some button on the container, i use
    "* refresh screen display with new data.
      CALL METHOD GRID1->REFRESH_TABLE_DISPLAY.
    method to get new data populated into internal table after this statement.

  • Interactive report with checkbox and editable field

    Hi,
    For a project I'm working on I need to create a interactive report in Apex 3.2 with the ability to select lines and to modify one of the columns in the report.
    To do this, I started off by adding these two fields to the selection query of my IR:
    apex_item.checkbox(1, product_number) cb
    and
    apex_item.text (2,QTY_TO_ORDER) QTY_TO_ORDER
    cb is the checkbox files, and QTY_TO_ORDER is the editable field.
    That worked like a charm and I got my two fields in the report.
    To process the values, I added this page process, wich for now should only store the "product number" and "QTY_TO_ORDER" fields in a table.
    BEGIN
    FOR i in 1..APEX_APPLICATION.G_F01.count LOOP
    insert into mytmptable values (APEX_APPLICATION.G_F01(i),APEX_APPLICATION.G_F02(i));
    END LOOP;
    commit;
    end;
    However, this doesn’t work the way I want it to work. When I check the checkboxes of two rows, it will store two rows with the right product numbers, but it will take the top two QTY_TO_ORDER field of the table regardless of which ones are checked. I was able to solve this problem, by adding a rownum to the query and using the rownum as the value for the checkbox. Since I still need the product_number and qty_to order fields I made them both text fields.
    I changed my page process to:
    BEGIN
    FOR i in 1..APEX_APPLICATION.G_F01.count LOOP
    insert into mytmptable values (APEX_APPLICATION.G_F02(APEX_APPLICATION.G_F01(i)),
    APEX_APPLICATION.G_F03(APEX_APPLICATION.G_F01(i)));
    END LOOP;
    commit;
    end;
    This seemed to solve the problem, and I now got the right values in the table, unless I used sorting in the report... As soon as I sorted the report in a way different than by rownum, I got the wrong values in the table. The reason for this is of course that my insert just selects the nTh row from the table, and my rownums aren't dynamic.
    I've found a lot of examples on the internet using '#ROWNUM#' in the selection, which should dynamically generate a rownum in the report. This seems to work in normal report, but in a interactive reports, the literal values '#ROWNUM#' shows up.
    Is there any way to solve this issue?

    Hi,
    Try with 3 fields:
    apex_item.checkbox(1, product_number) cb,
    apex_item.text (2,QTY_TO_ORDER) QTY_TO_ORDER,
    apex_item.hidden(3, product_number) prod_no
    The hidden field should be display as a hidden column.
    Then your process can be:
    BEGIN
    FOR i in 1..APEX_APPLICATION.G_F01.count LOOP
    FOR j in 1..APEX_APPLICATION.G_F03.count LOOP
    IF APEX_APPLICATION.G_F01(i) = APEX_APPLICATION.G_F03(j)) THEN
    insert into mytmptable values (APEX_APPLICATION.G_F01(i),APEX_APPLICATION.G_F02(j));
    exit;
    END IF;
    END LOOP;
    END LOOP;

  • Make simultaneously or sequentially moveable and editable fields or text sprites in movie.

    I am having a bit of a problem with creating field or text sprites that are both editable and moveable. I want a user to be able to enter text into the sprites and move them around on the stage to serve as labels for schematics they are making. I can easily make them moveable or editable, but when trying to do both one property interferes with the other. I have been using various combinations of the properties on the mouseenter, mouseleave, and mousedown handlers. One version of my non-workable efforts are below. Seems I can move a sprite but once editable gets focus can't move it anymore.  Any ideas?
    rod
    property spritenum
    on mouseenter me
      sprite(spritenum).moveablesprite = true
    sprite(spritenum).editable = false
    end
    on mouseleave me
      sprite(spritenum).editable = false
      sprite(spritenum).moveablesprite = false
    end 
    on mousedown me
      sprite(spritenum).moveablesprite = true
      sprite(spritenum).editable = false
    end
    on mouseup me
      sprite(spritenum).moveablesprite = false
      sprite(spritenum).editable = true
    end

    Just set your text properties in the property inspector and attach a drag sprite behavior.
    --  Drag sprite
    property  sp  -- this sprite
    property  pStartLoc  --  sprite location upon mouseDown
    property  pMouseStart  -- mouse location upon mouseDown
    property  pMoving  -- flag for enterFrame. True/False
    on beginSprite me
      sp = sprite(me.spriteNum)
      pMoving = false
    end beginSprite
    on mouseDown me
      pStartLoc = sp.loc
      pMouseStart = _mouse.mouseLoc
      pMoving = true
    end mouseDown
    on mouseUp me
      pMoving = false
    end
    on mouseUpoutside me
      pMoving = false
    end
    on enterFrame me
      if not pMoving then exit
      deltaMouse = _mouse.mouseLoc - pMouseStart
      sp.loc = pStartLoc + deltaMouse
    end enterFrame

  • Country ,state and city checklist XML by JAVA

    Hi friends,
    I have textboxes for entering the country ,state and city values and all these 3 fields are related by primary/foreign keys.
    I wan now store and retrieve values entered by users for country state and city by xml files .I also wan all these 3 field to be interrelated so that based on value of country I can populate the related states dropdownlist and based on value of state I can populate the related cities dropdownlist.Can some one pls answer my question about STORING AND RETRIEVING COUNTRY STATE AND CITY FIELDS USING XML FILES?
    I also did this application using string(short cut) way but is not efficient and all I want is direct modification in XML file by java?
    I didnt put my codes here bcos it so long and still if any one want my codes i wll email u sperately.
    All I need is any example approach for this kind?
    Any one help will be appreciated...

    Using XMLEncoder
    by Philip Milne
    This article covers advanced use of XMLEncoder, showing how it can be configured to create archives of any Java objects -- even when they don't follow the JavaBeans conventions. We include examples of how to make properties 'transient' and how to create archives that call constructors with arguments, use static factory methods, and perform non-standard initialization steps. We also cover exception notification, the 'owner' property (which can be used to a link an archive to the outside world), and methods for creating internationalized archives.
    http://java.sun.com/products/jfc/tsc/articles/persistence4/index.html

  • How to use Write statement along with ALV output

    Hi expert,
    currently i have a requirement where i am first displaying message with write statement and after that ALV should be displayed ...something like below:
    vendor number is wrong.
    material number is wrong.
    plant is wrong.
    and then here ALV output -list of records updated in the database.
    but as of now the ALV is shown first and when going back then the write message information is dispayed.
    can anyone help how we can get this in only one screen?
    Thanks!!!
    Rajesh

    May below example give you some idea.
    TYPE-POOLS: slis.
    DATA: BEGIN OF it_kna1 OCCURS 0,
            kunnr TYPE kna1-kunnr,
            name1 TYPE kna1-name1,
            ort01 TYPE kna1-ort01,
          END OF it_kna1.
    DATA: it_fcat TYPE slis_t_fieldcat_alv WITH HEADER LINE.
    START-OF-SELECTION.
      SELECT kunnr name1 ort01
        FROM kna1 INTO TABLE it_kna1 UP TO 10 ROWS.
    END-OF-SELECTION.
      WRITE:/ 'Write Statement Display' HOTSPOT ON.
    AT LINE-SELECTION.
      CLEAR it_fcat.
      it_fcat-fieldname = 'KUNNR'.
      it_fcat-tabname = 'IT_KNA1'.
      it_fcat-seltext_l = 'Customer'.
      APPEND it_fcat.
      CLEAR it_fcat.
      it_fcat-fieldname = 'NAME1'.
      it_fcat-tabname = 'IT_KNA1'.
      it_fcat-seltext_l = 'Customer Name'.
      APPEND it_fcat.
      CLEAR it_fcat.
      it_fcat-fieldname = 'ORT01'.
      it_fcat-tabname = 'IT_KNA1'.
      it_fcat-seltext_l = 'City'.
      APPEND it_fcat.
      CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
        EXPORTING
          i_callback_program = sy-repid
          it_fieldcat        = it_fcat[]
        TABLES
          t_outtab           = it_kna1[].

  • Does anyone know why I cant save (dnloaded) form to edit fields with Cute PDF Writer?

    Please Help!!  I am trying to get stuff out to a customer, and I have to keep re-entering information each time.........For some reason after I download a form and complete the fields from internet,  I PRINT/SAVE to Adobe Cute PDF Writer.  Later when I open the file from harddrive I am unable to edit the fields....But I notice even after saving to the Writer,  it automatically opens as reader not writer.   I have tried to associate to the Writer but I cant find it, although I know its on my computer it isnt under program files. 
    My main question - Before I go through the trouble of reinstall, does cute PDF Writer actually allow edits or do I have to get a real PDF writer?
    So if the software does allow editing forms, is it maybe just not fully loaded, and should I reinstall the Cute PDF Writer???? Id appreciate any ideas at this point, this has caused alot of wasted time so far....

    Go to the Acrobat forum here to discuss PDF form creation and editing with Adobe's own Acrobat products. CutePDF Writer, created by another company, only writes PDF. It cannot create or edit forms.

  • EDIT field in ALV GRID and on SAVE it has to update the DB Table

    Hi Experts,
    I have searched lot of forums...
    But i had not got the exact solution for this...
    I have multiple records that displayed in the ALV output screen and i had modified more than one record and then click on save.
    It has to modify all the lines that i had changed in the EDITABLE FIELD.
    Can any one help me in doing so...
    Sample code will be more help full....
    Thanks in advance,
    Kruthik

    Hi Kruthik
    Check [=> OO ALV Event DATA_CHANGED <= |http://abaptips.com/?p=70], hope you will get idea.
    Please reply in case of any confusion.
    Thanks and Best Regards,
    Faisal

  • Urgent : Problem with Editable  ALV Grid  for Quantity and Currency Fields

    Hi All,
    I am using Editable ALV Grid display and have quantity and value as editable fields in the display.
    When user changes these values these values are not changing properly .
    For the quantity field the domain is MENG13 with 3 deciamal places and here  if we enter 500 it takes it as 0.500   .
    The same problem is for the currency field. Here the Domain is WERT7 with 3 decimal places.
    Here also it takes last 2 digits after decimal places by default.
    Please advice how to get proper values in this case from ALV editable fields.
    Thanks and Regards
    Harshad
    Edited by: Harshad Rahirkar on Dec 25, 2007 7:39 AM

    for all the currency field , it will display like that only.
    u have to manipulate uin program before displaying.
    if they are giving 500, in program multiply with 100 and move it to table.
    when u are getting from table, divinde and display.
    this is what I am doing.
    Reward if helpfull.

  • How to make a particular row and column field editable in ALV

    Hi Experts,
    I have a requirement to make a particular row and column field editable in ALV output. Like i need to make 2nd row - 4th column editable of ALV output.
    Kindly help me out to solve this.
    Any help would be appreciated.
    Thanks,
    Ashutosh

    Hi Ashutosh,
    please check below, explained by some experts.
    In the below link  editing two columns MOD_RANK and TECH_RANK.
    These two columns will be in edit mode once after selecting the required record
    Editing single cell in a row of ALV table
    And also look for more info
    http://scn.sap.com/thread/884976

  • Detect fields and edit imported Excel spreadsheet

    i would like to know how I can detect fields for imported Excel spreadsheets so I can add and edit the spreadsheet

    I have an excel spread sheet that i would like to import into form central & I would like the fields to be editable by other users.  When i try exporting the excel file as a PDF Form Central  I get this message "FormsCentral could not import the PDF document because it does not contain interactive form fields. You need to add fields to your PDF using Adobe Acrobat and import again" Is there any other way for me to do this or do i have to purchase a version of Adobe Acrobat?

  • HT204053 support states you can't merge apple ids, but it does give you an option to edit. Im sure there's a reason, but why can't I sign in to 1 account and edit the name to match the 2nd account?

    support states you can't merge apple ids, but it does give you an option to edit. Im sure there's a reason, but why can't I sign in to 1 account and edit the name to match the 2nd account?

    Shelady wrote:
    ... (wasn't even aware my gmail account had anything to do with Microsoft) ...
    It doesn't.  Gmail is owned by Google.
    Shelady wrote:
    Also can someone tell me how I report spam on my iPhone and iPad in a gmail account?
    Report it to Google:

  • How could i block a document in Pages from editing and create editable fields in it?

    could anybody help me?

    Construct your document with spaces for the editable fields, then use Print > PDF > Save PDF file to convert that to a PDF image file.
    Insert the file into a new pages word processing document as a floating object, then resize it to match the original size.
    Move the image to the background and Lock it.
    Insert a text box, place and size it for each field, and add some Placeholder text to each field. When set as Placeholder text, clicking on the text will select all of it, and anything typed will immediately replace the placeholder.
    Limitations:
    The text box cannot be locked in position without also preventing it from bring edited.
    An editable textbox will not adjust to accommodate extra text. Adjusting it manually will not affect the underlying image.
    Regards,
    Barry

  • Write stat below alv report .if i use field  catalog.

    hi experts,
    i want to use write statment  after alv report.
    note: i am useing fieldcatalog.
    i got it if i use standard table with : end_of_list event event.
    thank you.

    Hi snk,
    1. It won't work in GRID display.
    2. The reason is when grid comes,
       it comes on a screen which has container and the grid control.
    3. Write statement is displayed on a special screen,
       which is generally used for list output.
       Normal screens (where we can put textboxes/checkboxes etc),
       do not support write statements.
    regards,
    amit m.

  • LSMW - Problem with copied and edited Project - missing new field

    I have copied an LSMW project to a new Project to load a Journal Entry to FI - Transaction Code FB01.  I added a new field VALUT (value date) to both the Maintain Source Fields and Maintain Field Mapping Steps.  The data with the new field shows up in Display Read Data, but it does not show up in Display Converted Data.  This new field is the last field in the csv file, i added it to the end of the Source fields.
    I think perhaps i need to create a new Batch Input Session, because when i run the Start Direct Input Program, one of the messages that comes up refers back to the original project name - not my renamed Project. --> "Session Name OLD PROJECT NAME was opened"
    (The steps available on my screen do not include a "Create Batch Input Session" step, as some of the posted answers show)
    Thank you for your help.

    Hi Sandra, Thank you for your reply.  I am not sure what you mean by restart.  if you mean go through all the steps- yes, i went through all the steps again. I also exited out of the LSMW screen completely and went back in to my project and redid the read and convert data again, just to be sure, but i am still missing the new field in display converted data. 
    The only change i made to the Project was to change the name of the Project, subproject, and object and to add a field to the Source Fields and Field Mapping - for field mapping i used the default rule of Transfer(move)and my source and code seems to be correct - in that i followed the example of all the other fields.  i also changed the name of the file where my new csv file was located, but i did not change the names of the read and converted data files. Perhaps i need to change something else? It seems to me that it is still using the instructions from the old project to convert the data.  Thanks again.

Maybe you are looking for

  • Not able to Print the report

    <p>Hello All,</p><p>I am not able to print the report. When i click on the icon a blank form opens up. Is there something i need to do to see the form with some details.</p><p>Thanks</p><p>ram</p><p> </p>

  • IPhone won't sync after upgrading to Leopard

    My iPhone won't sync, or even show up in iTunes, after upgrading to Leopard. I've tried restarting my Macbook Pro, trying different USB slots, closing and reopening iTunes, everything. Has anyone else had this problem?? I've tried everything apple su

  • Can't download my purchased copy of Elements 12

    I purchased Photoshop Elements 12 on Dec 23, 2013. Adobe later offered an update to version 12.1.  I installed the update. I just bought a new computer running Windows 7, and I would like to download and install the Photoshop Elements that I had purc

  • Windows 7 only gives me active USB ports when the DISABLE DRIVER SIGNATURE ENFORCEMENT is selected during system boot

    I can only use the computer if I press 8 and select "DISABLE DRIVER SIGNATURE ENFORCEMENT". Without this, the system comes up OK but I do not have access to the keyboard and mouse. If I select any other boot option the system boots up but I am unable

  • Full Table Scans / Index Scans /Index Organized Tables...

    Can anyone give me an example where an index would be the best option to query 99% of data. Can anyone give me an example where a FTS is the best option to query 1% of data. If IOT are better in terms of performance and also in terms of saving storag