ABAP Screen: Implicit transferring fields / LOOP AT TC

Hello experts,
I developed a table control in the following way:
process before output.
  module status_0110.
  loop with control tc_liqivp_items.
    module item_get.
    module screen_modify.
  endloop.
process after input.
  loop with control tc_liqivp_items.
    chain.
      field: gs_liqivp_items-umzeichart,
             gs_liqivp_items-endpa
             module endpa_check on chain-request.
    endchain.
    chain.
      field: gs_liqivp_items-umzeichart,
             gs_liqivp_items-umz_fenster,
             gs_liqivp_items-endpa
             module item_modify on chain-request.
    endchain.
  endloop.
The control is defined as following:
controls: tc_liqivp_items  type tableview using screen 110.
The screen 110 is defined as subscreen.
I use the classical table control (using loop at TCu2026); in PAI the fields will be transferred implicitly from the table control to the assigned structure gs_liqivp_items.
Within the table control loop, however in structure not all fields are filled correctly (some fields comes from the last line of the internal table).
E.g.:
10     Testline1 3.25 CHF     red      blue
20     Testline1 4.25 CHF     green      blue
30     Testline1 6.10 CHF     white      blue
40     Testline1 6.50 CHF     yellow     blue
If I change the value in line 1 from 3.25 to 4.25 CHF also the fields red and blue will be overwritten by the last line. The result is:
10     Testline1 4.25 CHF     yellow     blue
20     Testline1 4.25 CHF     green      blue
30     Testline1 6.10 CHF     white      blue
40     Testline1 6.50 CHF     yellow     blue
Only the price field is set as input field.
Do you have any idea for this issue?
Thanks for your support!
Regards,
Kurt

Hi,
In PAI  " Flow logic
process after input.
  loop with control tc_liqivp_items.
    chain.
      field: gs_liqivp_items-umzeichart,
             gs_liqivp_items-endpa
             module endpa_check on chain-request.
    endchain.
    chain.
      field: gs_liqivp_items-umzeichart,
             gs_liqivp_items-umz_fenster,
             gs_liqivp_items-endpa
             module item_modify on chain-request.
    endchain.
    module move_to_progam.  " Add this in your program
  endloop.
In program  " To Transfer the data of each row of Table control to Internal Table of the Program
MODULE MOVE_TO_PROGAM INPUT. " replace the following variables/Internal Tables with the ones you declared
  DESCRIBE TABLE itab LINES tc-lines.
  if  tc-lines < tc-current_line.
    append gs_liqivp_items to  itab.
  else.
    modify itab from gs_liqivp_items INDEX tc-current_line.
  endif.
ENDMODULE.
Hope this would serve your purpose
Cheerz
Ramchander Rao.K

Similar Messages

  • MM report screen having 10 fields

    Hi Everbody,
    we r having MM report screen with 10 fields,
    but my requirement is to show particular fields like 5 fields
    ca n any one plz help  me which iview i have to use and how to show particular fields on that..
    thanx

    Have you thought about :
    Loop at screen..  and deactivating the fields you don't need. You can also set it up so that when a user wants certain fields they just select a check box and over the loop at screen just those preselected fields will be showen.
    Regards
    Mark

  • Deleting line from ABAP screen..

    Hello,
    I have a ABAP report when excuted, showsn mulpiple reords one by one wirtten on screen using write statement along with checkboxes besides it and I am also appending an internal table with these values.
    Now, User can select the check boxes for the line records. Also there is a delete button in the application toolbar.
    Now, when the delete button is executed, I want the lines which are selected on the ABAP output screen to be deleted so that only records which were not selected using check box will be shown.
    I know for this I have to code in AT-User command but how do we delete the lines from ABAP screen.
    AT user-command.
      CASE SY-UCOMM.
        WHEN 'DELETE'.
    ENDCASE
    Regards,
    Jainam.

    Hello,
    Based on which ever field is selected you can delete from the internal table and then refresh the ALV.
    Hope it helps.
    Regards,
    Nabheet Madan

  • Adding attachment through ABAP screen

    Hi experts,
    I have a requirement where i need to add attachment from a ABAP screen or through SM30 screen. That is, we provide a transaction code for the users to maintain table entries. In additon to maintain values, the user wants to add attachment. The attachment is a image of a map of the house plan.
    So can someone tell me how to add attachment and the path or URL of the attachment need to be stored in a separate field in the Z table?
    Is that can be done through OAAR transaction?

    Look for GOS Attachments in the forum - probably it should help your need

  • How to give error message for the screen element text field when wrong i/p

    How to give error message for the screen element text field when wrong i/p
    when wrong input given
    eg. 
    I have a text box with SBOOK-CARRID
    so when user give wrong entry in text box i.e LG
    then I should give some error stating that the the input is invalid or not available ,
    now it showing the error of standard messages,
    i want manual message to be displayed when error comes.
    Thank you,
    Regards,
    Jagrut Bharatkumar Shukla

    Hi all,
    Thank you for your valuable reply,
    but the thing is that its a screen field,
    i.e text box not a selection screen
    i created in screen layout
    with name sbook-carrid
    now i want to get error message display if wrong i/p is given
    thank you.
    Regards,
    Jagrut bharatkumar Shukla,

  • Tcode F-48, Item 1 / Debit Advance / 29 L Screen not showing field Purchase

    Hi,
    Tcode F-48, Item 1 / Debit Advance / 29 L Screen not showing field Purchase doc. Field.
    When advance / payment made by Tcode F-48 against purchase order. Purchase Doc. field not showing in Item2Downpayment made 2 Screen.
    Is there any necessary custmization required.
    We want to maintain and link purchase order no. at the time of Downpayment by F-48. so that it refelect in purchase order screen status tab.

    Thanks for reply,
    Now i get field status grup G005 - Bank accounts (obligatory value date) and than i have changed :
    - G005 field status group by Tcode OBC4 in Materials management screen i have make Req. Entry of Purchase order.
    After than when i again run f-48, Purchase Doc. field still not showing. ?????
    Help

  • How to call WD ABAP screens in CE 7.3  Java webdynpro

    Hi,
    I have few developed applications in WD ABAP and I want use the same screen in Java WD using CE7.3 as a part of one  iview in a page. Which means I have one page which has 5 views and I would like to use one view - WD ABAP screen. How it is possible. Please let me know.
    regards,
    krshna

    Hi,
    Can u pls let me know how tie abap wd screen in java wd?I have not done this before.is there any doc...?
    Regards,
    Kris

  • To create a variant for a selection screen having invisible fields

    Hello All
    I am facing a peculiar problem. I have a screen for the program RSEIDOCB in which the following fields are hidden:
                    TAOUTPR FOR EDIDC-STATUS NO-DISPLAY,
                    STAINPR  FOR EDIDC-STATUS NO-DISPLAY,
                    STAOUTRS FOR EDIDC-STATUS NO-DISPLAY,
                    STAINTA  FOR EDIDC-STATUS NO-DISPLAY,
                    STAOUTES FOR EDIDC-STATUS NO-DISPLAY,
                    STAINTD  FOR EDIDC-STATUS NO-DISPLAY,
                    STAOUTST FOR EDIDC-STATUS NO-DISPLAY,
                    STAOUTDT FOR EDIDC-STATUS NO-DISPLAY,
                    STAINBK  FOR EDIDC-STATUS NO-DISPLAY,
                    STAOUTEI FOR EDIDC-STATUS NO-DISPLAY,
                    STAINEI  FOR EDIDC-STATUS NO-DISPLAY,
                    STAOUTEX FOR EDIDC-STATUS NO-DISPLAY,
                    STAINEA  FOR EDIDC-STATUS NO-DISPLAY,
                    STAOUTDS FOR EDIDC-STATUS NO-DISPLAY,
                    STAINDS  FOR EDIDC-STATUS NO-DISPLAY.
    I want to create a variant for the above program having values for the fields. These fields are basically for specifying the various status of the idocs. I am unable to do to so at the moment. Please help me out. Suitable points will be provided.
    Regards
    Ankit

    Hi Ankit
    Follow these steps..
    1. in SE38 enter Program name 'RSEIDOCB'.
    2. Click on variants button
    3. enter variant name click on create
    4. in selection screen enter default values
    5. Click on attributes
    4. Enter meaning
    5. Press Shft + F4
    6. Bottom of Screen will popup invisible fields
    7. go down to screen
    8. select field and click on selection variables button
       (you to have to tick selection variable check box)
    9. here click on down arrow button very next to field
    10.you can choose values from list and assign to field.
    then save variant.
    Message was edited by:
            Perez C

  • User presses F4 on the selection screen for the field ''Transport Request"

    Dear ALL,
                     I want to build up a functionality in my report where if the user presses F4 on the selection screen for the field ''Transport Request", then it will display all the Transport Requests involving that particular User...
    What I mean is the normal process that is provided by SAP on saving an object in a package & assigning it to TR...
    How do we Achieve it ?

    Hi.
    First we need to give the client after that client number related requestes display in second parameter F4 help for that purpose i used two function modules.First for read the client no dynamically after that pass the client number second function module.
    then u can get all the request for that client.
    DFIELD-FIELDNAME = 'P_MANDT'.
    APPEND DFIELD.
    CALL FUNCTION 'DYNP_VALUES_READ'
      EXPORTING
        dyname                               = 'Y9EZ_TR_COPYCLIENT'
        dynumb                               = SY-DYNNR
      tables
        dynpfields                           = DFIELD
    READ TABLE DFIELD INDEX 1 ."WITH KEY DFIELD-FIELDVALUE = 'P_MANDT'.
    V_MANDT = DFIELD-FIELDVALUE.
    CALL FUNCTION 'TR_F4_REQUESTS'
    EXPORTING
      IV_USERNAME                   = SY-UNAME
      IV_TRKORR_PATTERN             =
      IV_TRFUNCTIONS                =
       IV_TRSTATUS                   = 'RNDL'
      IV_FROM_DATE                  =
      IV_TO_DATE                    =
       IV_CLIENT                     = V_MANDT
      IV_PROJECT                    =
      IV_TITLE                      =
      IV_VIA_SELECTION_SCREEN       = 'X'
      IV_COMPLETE_REQUESTS          = 'X'
      IT_EXCLUDE_REQUESTS           =
    IMPORTING
       EV_SELECTED_REQUEST           = S_TRKORR-LOW.
      ES_SELECTED_REQUEST           =
    'TR_F4_REQUESTS' This function module for request
    Regards
    muralii

  • In screen painter when field status 'NOT POSSIBLE'

    hi all,
    i have created a screen with few  fields and each one having search help.
    i want the fields to be filled only by selecting values from search help.
    I don't want users to enter data in the fields,.
    I have tried my keeping 'NOT POSSIBLE'  for the field.I am able to view values from search help but can't place values in the fields.
    Can any one help me out please.

    Hi Sudhir,
    Well, you can clear the history of the input fields and do some validations on those fields which will throw some custom error message if the user is trying to enter invalid values.
    For clearing the history, you can use the below snippet in PBO
    data: rc type i.
      call method cl_gui_frontend_services=>disablehistoryforfield
        exporting
          fieldname                     = 'GW_OBSHEAD-VBELN'
          bdisabled                     = abap_on
        changing
          rc                            = rc
        exceptions
          field_not_found               = 1
          disablehistoryforfield_failed = 2
          cntl_error                    = 3
          unable_to_disable_field       = 4
          others                        = 5.
      if sy-subrc <> 0.
      endif.

  • Documentation about Screen, Menu and Field Exits

    Hi all!!
    I need some documentation about Screen, Menu and Field Exits.
    I´m very interested specially on steps by steps.
    My mail is [email protected]
    Helpful posts will be rewarded.
    Thanks in advance and regards,
    Manuel.

    <b>Types of Exits </b>
    There are several different types of user exits. Each of these exits acts as hooks where you can attach or "hang" your own add-ons.
    <b>Menu Exits</b>
    Menu exits add items to the pulldown menus in standard SAP applications. You can use these menu items to call up your own screens or to trigger entire add-on applications.
    SAP creates menu exits by defining special menu items in the Menu Painter. These special entries have function codes that begin with "+" (a plus sign). You specify the menu item’s text when activating the item in an add-on project.
    <b>Screen Exits</b>
    Screen exits add fields to screens in R/3 applications. SAP creates screen exits by placing special subscreen areas on a standard R/3 screen and calling a customer subscreen from the standard screen’s flow logic.
    <b>Function Module Exits </b>
    Function module exits add functions to R/3 applications. Function module exits play a role in both menu and screen exits. 
    When you add a new menu item to a standard pull down menu, you use a function module exit to define the actions that should take place once your menu is activated. 
    Function module exits also control the data flow between standard programs and screen exit fields. SAP application developers create function module exits by writing calls to customer functions into the source code of standard R/3 programs. 
    These calls have the following syntax: 
    CALL CUSTOMER-FUNCTION ‘001’.
    Field Exits
    Field exits allow you to create your own programming logic for any data element in the Dictionary. You can use this logic to carry out checks, conversions, or business-related processing for any screen field.  Example: The data element BBBNR identifies a company’s international location number. You might want to set up your R/3 System so that all international location numbers are larger than 100. 
    The field exit concept lets you create a special function module that contains this logic. 
    You assign the special function module to the data element BBBNR. You then assign the module to any programs and screens in which users can add new international location numbers. When you activate your field exit, the system automatically triggers your special routine whenever a user enters a company location number. 
    In 4.6c, you can use "RSMODPRF" program to create field exits.
    An example of a user exits :-
    MODULE user_exit_0001 INPUT 
        CASE okcode.
            WHEN 'BACK OR EXIT'.
                CASE sy-dynnr.
                        WHEN '100'.
                             SET SCREEN 0.
                             LEAVE SCREEN.
                        WHEN '200'.
    **** Note that you can write any code that satisfy your needs.                                                     ****
    **** But in this case, this was wrote as a sample code for reference sake.                                    ****
    **** And you can test it.                                                                                ****
                             SET SCREEN 100.
                             LEAVE SCREEN.
                 ENDCASE.
          ENDCASE.
    reward  points if it is usefull..
    Girish

  • How can I capture mouse click events on BSP or Web Dynpro ABAP Screen

    hi Guys,
    Currently we have a user inactivity problem,
    the requirement is: if user is clicking on BSP/Web Dynpro ABAP screen, he/she is considered active. so we need an mechanism to capture the mouse click event.
    Using Firebug, we found that this js is in the iframe which contains BSP/web dynpro scrren: /sap/public/bc/ur/nw5/js/languages/urMessageBundle_en.js
    we want to find this js file & put in some javascript code to track user's mouse click, but i cannot find it on server.
    while in ie if we type http://host:port/sap/public/bc/ur/nw5/js/languages/urMessageBundle_en.js
    this file can be downloaded, means this file is there.
    Any one can help on this issue? find the js file or another way to capture the mouse click event.
    Thanks a lot with points!

    Hi  Feng Guo,
                        We can not capture mouse click events on Web Dynpro ABAP Screen . I am not sure about BSP. But as for as I know the portal keep active the iViews until unless mouse clicks happens.
    But for your problem I think you can get solution by setting iView Expiration to some more time period.
    Regards,
    Siva

  • HT204350 Started the transfer process from my old MacBook to a new MacBook pro using Migration assistant 12 hours ago. The screen says transferring your information. Moving about 270 GB using an Ethernet cable  directly connected. Is this normal?

    Started the transfer process from my old MacBook to a new MacBook pro using Migration assistant 12 hours ago. The screen says transferring your information. Moving about 270 GB using an Ethernet cable  directly connected. Is this normal?

    You can get a thunderbolt to firewire adapter. You can then get a firewire 400 to 800 cable and put the old computer in target mode. Then you can follow these instructions.
    http://support.apple.com/kb/HT4889
    Choose migrate from other disk or volume.

  • Inserting Selection-screen above the Field-groups created.

    Hi guys,
           I am having problems on how to display my selection screen before the field-groups declared. How can I insert my selection-screen above those field-groups? Do i need to create a new field group for my selection-screen and how? thanks in advance! the sample code is below this message.
    regards,
    Mike
    <b>I.E.:</b>
    FIELD-GROUPS:  header, posten.
    selection-screen begin of block BOMREP WITH FRAME TITLE TEXT-429.
    PARAMETERS: rb_bhder  RADIOBUTTON GROUP g1 DEFAULT 'X',
                rb_bflvl  RADIOBUTTON GROUP g1,
                rb_dsply  RADIOBUTTON GROUP g1,
                rb_ndlpy  RADIOBUTTON GROUP g1,
                rb_alvl   RADIOBUTTON GROUP g1.
    selection-screen end of block BOMREP.

    >
    Akashdeep Basu wrote:
    > Hi,
    > I am using LDB : PNP in my report. I want to add a block on the selection screen ABOVE the standard LDB screen.
    >
    > Plz help....
    > Sample code appreciated.....
    >
    > Thanks,
    > Akash
    NOT possible. you can only append to the Std selection-screen. One option is to hide it altogether, so the user sees only the custom block...
    ~Suresh

  • Mobile Screen Compress Blank Field

    Hello!
    I have a problem when opening ITS mobile transaction with windows mobile 6.1 the mobile screen compress blank field
    and compress blank line. Does anyone to suggest or solution for solved the problem.
    My SAP NW 7.02 EHP5 generate template style MOBILE4 in SICF without set ~DYNPRO_COMPRESSION.
    Regrads,
    sup

    Hello Sup,
    What are the parameter settings of your ITSMobile service?
    Have you tried using the ITSGENMOBILE:  For generating style "Mobile Devices (Preserving Layout)"      
    rather than ITSGENMOBILE4:     For generating style "Mobile Devices (Without HTML Tables)"
    See the WIKI: [Getting to know ITSmobile by Checking out the Internet Services |http://wiki.sdn.sap.com/wiki/display/HOME/GettingtoknowITSmobilebyCheckingouttheInternet+Services]
    Regards,
    Oisin

Maybe you are looking for

  • I filed a complaint with the BBB of NJ for basically ripping people off! I wanted everyone to know this...

    I know in today's world everyone has a smart phone... Well I currently still have an old LG ENV VX9900 with the $50.00 prepaid unlimited plan. My charger recently broke and I tried looking for the charger at a few stores and realized this is going to

  • AD Reconciliation in oim 9.1

    Hi, We need your help to achieve the following requirement Existing Env: We already have two AD domains as integrated resources for Provisioning/DeProvisioning(no approval process) and reconciliation with two diff resources(ABC ADDomain,XYZ ADDomain)

  • ASP transfer script

    I'm setting up iTunes U for my institute. I've run the initial login email and currently researching solutions for the transfer script. Has anyone come across any ASP solutions for this? Thanks.

  • Installed GDM without installing Xorg

    As said in the topic, I've gone and installed GDM without installing Xorg, and when I rebooted, it hangs just before the login screen. I'm assuming this is because it can't find Xorg, and so can't load. Is there a way for me to disable GDM through th

  • Logitech Itouch 2.22 and Asus Update 6.x won´t install because of X-FI!Solution HER

    Cat please pass that on to the driver Team. Since I have installed (and many others here too!) the X-Fi card, I can not install my Logitech I-Touch and the Asus Update Software. Both quit with an error during setup. This all didnt happen before the X