Table cntrol field to be display/Change only For each record

Hi all,
How to set a particular Field in table control either as display only or
change only for <b>each row</b> based on certain condition.I need to set this property for each record in table control not for the entire coloumn?.I know the procedure for setting up an entire coloumn in table control either as diplay or change only using <b>Loop at screen</b> statement.
Conditions:
If Material is batch managed:
itab-batch field has to be <b>Display only</b> mode.
if material is not batch managed:
itab-batch field has to be <b>change mode</b>.
<b>O/p of Table Control :</b>
Material     Batch
1000         Display only
2000        Change only
8000        Change only
3500        Display only
3600        Display only

Hi Ravi,
          Thanks for your reply.I have put the code as u said. It is modifying the whole coloumn insted of  modifying Current row of the coloumn.
I have tried to modify the screen property using  Table control attributes (TC-COLS).The following commented code is that logic.Even that also doing the same thing.Can yoy please tell me how to do it.
MODULE tc_get_lines OUTPUT.
LOOP AT SCREEN.
    IF screen-name = 'X_ZPINV-CHARG'.
      IF fg_batch = ' '.
        screen-input = 0.
      ELSE.
        screen-input = 1.
      ENDIF.
    ENDIF.
    MODIFY SCREEN.
  ENDLOOP.
LOOP AT tc-cols INTO tc_wa
  WHERE screen-name = 'X_ZPINV-CHARG'.
   IF x_zpinv-matnr IS NOT INITIAL.
     CALL FUNCTION 'CONVERSION_EXIT_ALPHA_INPUT'
       EXPORTING
         input  = x_zpinv-matnr
       IMPORTING
         output = v_matnr.
     SELECT SINGLE * FROM marc WHERE matnr = v_matnr
     AND werks = w_plant.
     IF marc-xchar IS INITIAL.
       tc_wa-screen-input = 0.
     ELSE.
       tc_wa-screen-input = 1.
     ENDIF.
     MODIFY tc-cols FROM tc_wa INDEX sy-tabix."    transporting screen-input
   ENDIF.
ENDLOOP.
ENDMODULE.                    "TC_GET_LINES OUTPUT

Similar Messages

  • Conditionally display an icon for each record in a multi record block

    Hi,
    I am using Forms 6i. Is there any way to conditionally display an icon for each record in a multi record block. The SET_ITEM_INSTANCE_PROPERTY builtin does not have many choices. Thanks for your help.

    Henry,
    I doubt that. You would have to replace the text item with an image item. This however can't be done for individual cells in a table but only for the whole column.
    On the web chances are that these could be handled with a custom PJC, but this solution doesn't work in client/server
    Frank

  • Change field value in a table, based on another field value in the same row (for each added row)

    Please Help, I want to change field value in a table, based on another field value in the same row (for each added row)
    I am using this code :
    <HTML>
    <HEAD>
    <SCRIPT>
    function addRow(tableID) {
    var table = document.getElementById(tableID);
    var rowCount = table.rows.length;
    var row = table.insertRow(rowCount);
    var colCount = table.rows[0].cells.length;
    for(var i=0; i<colCount; i++ ) {
    var newcell = row.insertCell(i);
    newcell.innerHTML = table.rows[1].cells[i].innerHTML;
    switch(newcell.childNodes[0].type) {
    case "text":
    newcell.childNodes[0].value = "";
    break;
    case "checkbox":
    newcell.childNodes[0].checked = false;
    break;
    case "select-one":
    newcell.childNodes[0].selectedIndex = 0;
    break;}}}
    function deleteRow(tableID) {
    try {var table = document.getElementById(tableID);
    var rowCount = table.rows.length;
    for(var i=0; i<rowCount; i++) {
    var row = table.rows[i];
    var chkbox = row.cells[0].childNodes[0];
    if(null != chkbox && true == chkbox.checked) {
    if(rowCount <= 2) {
    alert("Cannot delete all the rows.");
    break;}
    table.deleteRow(i);
    rowCount--;
    i--;}}}catch(e) {alert(e);}}
    </SCRIPT>
    </HEAD>
    <BODY>
    <INPUT type="button" value="Add Row" onClick="addRow('dataTable')" />
    <INPUT type="button" value="Delete Row" onClick="deleteRow('dataTable')" />
    <TABLE id="dataTable" width="350px" border="1">
    <TR>
    <TD width="32"></TD>
    <TD width="119" align="center"><strong>Activity</strong></TD>
    <TD width="177" align="center"><strong>Cost</strong></TD>
    </TR>
    <TR>
    <TD><INPUT type="checkbox" name="chk"/></TD>
    <TD>
    <select name="s1" id="s1">
    <option value="1">1</option>
    <option value="2">2</option>
    <option value="3">3</option>
    </select>
    </TD>
    <TD><input type="text" name="txt1" id="txt1"></TD>
    </TR>
    </TABLE>
    </BODY>
    </HTML>

    Hi,
    Let me make sure u r working with table control.
    First u have to create a event(VALIDATE) to do the validation.
    Inside the event,
    1. First get the current index where user has pointed the curson
    2. Once u get the index read the internal table with index value.
    3. Now u can compare the col1 and col2 values and populate the error message.
    1. DATA : lo_elt TYPE REF TO if_wd_context_element,
                   l_index type i.
    lo_elt = wdevent->get_context_element( name = 'CONTEXT_ELEMENT' ).
         CALL METHOD LO_ELT->GET_INDEX( RECEIVING  MY_INDEX = l_index.
    above code should be written inside the event.
    Thanks,

  • Sap Banking - Display change documents for accounts

    Hello,
    Can anybody help me? I need to write a report that shows all the change documents for a range of accounts, and I don't know how to retrieve this info. I know that there's a table BCA_CN_LINK that storages what object type was modified and by whom. But I don't know in which table the old and new data is stored for each change document.
    Any idea is welcome!!!
    Thanks a lot.
    Regards, Marcela Sanchez

    You can see the change documents for a single account vía transaction BCA_CN_ACCT_03 (Account Management -> Account -> Account Master Data -> Display Account) and then click the ChangeDocuments Account pushbutton

  • How to append parameter with URL for each record in table control?

    Hi,
    I have one table control which contains 5 columns.
    (tripno, startdate, destination, reason, activities)
    In 5th column, i need to display URL for each record.
    for ex:
    www.abc.com/test?tripno=1
    www.abc.com/test?tripno=2
    www.abc.com/test?tripno=3
    when user clicks a particular hyperlink, it navigates to another page/component thru URL with one key field(tripno) to retrieve related records in next page.
    1) i am not able to assign tripno to each record. when i assign tripno, its taking the last value which i assigned. ie. tripno=3 only.
    How to assign URL to Reference field of LINK_TO_URL element at run time?
    OR
    2) we can do like this.
    Simply assign url to reach record without key field.
    www.abc.com/test
    www.abc.com/test
    www.abc.com/test
    when user clicks a particular link, we can assign corresponding key field to the URL.
    Where should i write this event? Bcoz, LINK_TO_URL doesnot have event.
    how to do?

    Hi MOg.
    Not sure whether I understand you .. but in the 5th column you want to have the reference URL. Is this the activities columen from you example?
    Nevertheless, you need a attribute (String) in your context node which contains the URL. Bind this to the reference filed of linktourl. If you can not extend the structure you can create a sub node (cardinality 1:1)  which contains the refernce attribute.
    Then loop over all elements and concatenate www.abc.com/test?tripno= with the tripno of the current element into the reference field.
    Hope tis helps,
    Sascha.
    Bind the

  • Can I plot 2 locations at the same time for each record in a table

    I'm trying to plot 2 Locations (2 points on a Power View Map) at the same time for each record/project in a table
    I can plot 1 location for each project of course with no problem
    but I'm trying to show the Begin Point and the
    End Point for each project at the same time
    Is this even possible?

    First of all THANKS this worked!
    But now I stumbled on another issue. So I actually have 3 tables (and I've adopted them to the file you sent)
    Table 1 => TripData
    Trip
    LongLat
    Location
    Type
    TypeCode
    Size
    NW Tour
    47.568077, -122.320800
    Seattle, WA
    Begin
    0
    1
    NW Tour
    47.035608,   -122.884812
    Olympia,   WA
    End
    1
    1
    Cali Trip
    37.808848, -122.412580
    San Francisco, CA
    Begin
    0
    1
    Cali Trip
    32.682611, -117.178348
    San Diego, CA
    End
    1
    1
    Table 2 =>
    TripInfo
    Trip
    OneLongLat
    NTP
    NW Tour
    47.568077, -122.320800
    1/1/2015
    Cali Trip
    37.808848, -122.412580
    1/5/2015
    Table 3 =>
    ALLTrips
    Trip
    Stop
    Owner
    NW Tour
    1
    Owner1
    NW Tour
    2
    Owner2
    NW Tour
    3
    Owner3
    NW Tour
    4
    Owner4
    NW Tour
    5
    Owner5
    Cali Trip
    1
    Owner6
    Cali Trip
    2
    Owner7
    Cali Trip
    3
    Owner8
    Cali Trip
    4
    Owner9
    Cali Trip
    5
    Owner10
    Cali Trip
    6
    Owner11
    This is how the Diagram View looks like in PowerPivot
    Trip Data => Trip Info <= ALLTrips
    Since I don't know how to post pictures
    The MAP FIELDS are as follows
    SIZE - Count of Stop(s)
    LOCATIONS - OneLongLat followed by
    LongLat (drill down feature)
    COLOR - Trip
    The problem now happens with the drill down feature
    You can either plot OneLongLat which is the general location for each trip
    Or LongLat of each trip which shows the begin and end points
    But you can't use the drill down feature???
    If instead of OneLongLat you use a
    State Column it actually works!!!
    I wonder if it has to do with the fact that both locations used for the drill down are Long/Lat numbers???
    Any suggestions???
    And again Thanks for the response!

  • How to call webservice for each record in a table using ODI

    Hi
    I am new to ODI and Webservice. I want to invoke a scenario in ODI using web service. I hava a weblogic application server with axis 2 deployed.
    But I want call webservice for each record in a table
    For eg: "EMP" table have 50 records, for each record web service should invoke
    Can any one help me on it.
    Thanks,
    phani
    Edited by: user12774166 on Jun 6, 2010 11:16 PM

    If your goal is "call" a web service, Jason's Straub's [flex-ws-api|https://flex-ws-api.samplecode.oracle.com/] is by far the best I've seen. You might want read more about it on [his blog|http://jastraub.blogspot.com/search?q=+flex_ws_api+].
    Tyler Muth
    http://tylermuth.wordpress.com
    [Applied Oracle Security: Developing Secure Database and Middleware Environments|http://sn.im/aos.book]

  • Can't make a selection of my pathes even if i have set a program change number for each one.Why is that happening?

    Hi everybody!
    I send program change messages from my midi controller and the messages are accepted by mainstage 3 as shown in the midi message window,but i can't make a selection of my pathes even if i have set a program change number for each patch.Why is that happening?
    I use a novation SL mki or a KORG Triton Le or a m-audio axiom 49 as midi controllers.The program change messages are transmitted by all the devices i mentioned above and shown as received in the midi messages window of mainstage 3.
    Has anyone the same experience?

    Hi
    Have you selected the correct device as the Program Change device and MIDI channel in the Concert Inspector?
    CCT

  • Can Encore cs5.1 do auto chapters & displays a thumbnail for each??? Please help...

    Can Encore cs5.1 do auto chapters & display a thumbnail for each??? Please help...
    Can it be a moving thumbnail? I see where it can create index marks at auto intervals but no associated thumbnail.
    I've searched everywhere & cant seem to find this feature. Many other programs have this feature. Does Encore 5

    Use a video thumbnail submenu for the first submenu, add the auto chapters, then use the chapter index feature:
    http://help.adobe.com/en_US/encore/cs/using/WS185296FB-D1BB-4d52-ABC4-316DF795FD05.html
    Then make each submenu animate buttons. (Perhaps that last step can be done after the first submenu is added; not sure about that.)

  • Displaying change documents for custom fields  in FPP2

    I have added a new subscreen to the Business partner via BUPT. The new fields are on a custom table. I have created change documents for the new fields and all that is working fine - details are being written to CDHDR/CDPOS as expected. In the standard FPP2 transaction the user can select Extras / Partner changes which will display a list of the change documents. This does not include my custom fields.
    Does anyone know if it is possible to include my custom field changes in this list? I have searched several forums but cannot find any reference to this.

    Hi,
    Fix a break-point in the following function modules and check whether you are passing custom fields
    CHANGEDOCUMENT_SINGLE_CASE
    or
    CHANGEDOCUMENT_MULTIPLE_CASE
    SAP uses the above said function modules to update change documents. Its have two import paratmeters
    WORKAREA_OLD
    WORKAREA_NEW 
    or
    TABLE_OLD          
    TABLE_NEW 

  • How to set Display Only for some records in CAT2 Worklist

    Hi,
    I have a requirement to modify an attributes for some records in the Worklist of CAT2.
    We have an external system where we book our time. Weekly we import data from that external system into CATSDB using BAPI for every single employee.
    We would like when the user wants to modify his time sheet to be able to add/modify all records except those which were imported from the external system. Which means that those records should be in Display only mode / grayed out / before release.
    Is there any user exit or BADI that could help to modify that attribute and that will be triggered before displaying the Worklist ?
    Please advise !
    Thanks,
    Stefan

    I've solved the problem.
    First I've added customer field in CI_CATSDB structure and when I am importing the data I am populating that field with 'X', which means that this is record from the external application.
    I've created enhancement implementation in Function group->CATS, screen->2003 MODULE->D2000_MODIFY_LOOP, subroutine->modify_d2000_loop where I am checking the field mentioned above if it is 'X' I am modifying the screnn-output = off.
    It works, thak you for your help.
    Regards,
    Stefan

  • Why can't Apple make 'publish changes only' for non .mac users?

    The recent iWeb update to 1.1 and the now increasingly obvious differential between .mac and non .mac features has prompted me to post here today.
    I can understand comments, passwords and search facilities being a .mac only experience because it requires server side technology. I can also understand that .mac users get enhanced features like slideshows as well.
    But why is the fundamentally *basic* option to 'publish the changes only' not available to non .mac users?
    I know uploading to .mac uses a different protocol to uploading via FTP, but I don't think it is about that. Obviously the software engine in iWeb 1.1 can now track the pages that have changed, and flag those for uploading. So if the facility to do this is not available with non .mac uploading, is this some form of crippleware? Can any software engineers comment on this or am I talking off the top of my head? [And please mods, don't delete this post - I use the word 'crippleware' in its harshest form, clearly I can still use iWeb to make fantastic websites - I am asking a technical question here.]
    Michael
    A Trusty Quicksilver G4 Dual 1GHz

    OK, from reading this thread:
    http://discussions.apple.com/thread.jspa?threadID=486335&tstart=0
    There is a pattern: An error occurred while publishing file “/blah/blah", while file "/blah/blah" seems to be random from one person to the next, but they all share one thing and that is communication protocol.
    For iWeb to be able to publish changes to .Mac, it has to:
    1. identify if the file exists
    2. do the following:
    2a. if not exists, copy it to .Mac
    2b. if exist, do some sort comparison - CRC checksum -
    2b1. if checksums match, don't copy
    2b2. if checksums don't match copy it to .Mac
    At least I think that's what going on, I don't have .Mac so that is best I can think of. Perhaps, some Apple SW engineers can jump in here.
    Now, the bad part is iWeb has to (and I'm assuming iWeb uses WebDAV):
    1. go thru each file locally
    2. crawl its way into .Mac (WebDAV is a slow protocol) to find the the counter part.
    3. when it finds a file that matches a client side file, it has to (some how) do checksum on-the-fly across the net work (which is slow and congested)
    #3 is I think where it failed, there are many factors here: 1) networks congestion 2) latency 3) protocol overhead 4) checksum calculation time etc...
    iWeb eventually times out because any/all of the above.
    It's nice that WebDAV can author to the host yada, yada, but it's so SLOOOOOW.
    What I would do is for every publishing, I would build a files and their checksums keep it on the host (or local, must be hidden).
    For subsequence publishing, I would (use a fast protocol like FTP) download this pre-built files/checksums list. Locally, do a full publishing, making checksum comparison, the result is delta changes; upload only those. Build a new files/checksums list upload that too.
    What I mean to say is offload everything that is possible to local machine, bandwidth is PREMIUM!

  • Display changes done for reservation

    Hi Guys
    I have client requirement as below
    They  need to view changes done for reservation
    Can any boy help on this
    Thanks in Advance
    SAP MM

    Dear,
    We have this requirement and we raised OSS to SAP also on this.
    Reservation changes cannot be tracked in SAP system due to least importance it has. One work around through ABAP development but its not supported by SAP due to abnormal increase in data volume of change recording in data base which impacts system performance.
    For this we, go with authorization matrix by which remove MB22 authorizations from all users and make one super user like concept. Means one plant only one user has authorizations for MB22 for which he can change the reservation. He get instructions whenever any user want to change reservation - must shoot a mail to all concerning inventory team before he changing with MB22.
    Regards,
    Syed Hussain.

  • Display error messages for each material

    Hi All,
    I am using a BAPI which gives errors in return table.I am executing this BAPI for several materials in a LOOP.I need to display the error messages for each of these materials as shown below:
    Material 1:
    error1
    error2
    Material 2:
    error 1
    error 2.
    What is the best way to display this?Also plz let me know how to use REUSE_ALV_HIERSEQ_LIST_DISPLAY?
    Thanks,
    Rakesh.

    I did the same thing in the below code, go thru it and check it.
    * calling the BAPI to update the Asset Master AS02
      loop at it_final into is_final.
    * If updating of floor area only
        if p_farea = 'X'.
    * passing new area value to the BAPI
          is_realestate-area     = is_final-grufl.
          is_realestatex-area    = 'X'.
          call function 'BAPI_FIXEDASSET_CHANGE'
               exporting
                    companycode = is_final-bukrs
                    asset       = is_final-anln1
                    subnumber   = is_final-anln2
                    realestate  = is_realestate
                    realestatex = is_realestatex
               importing
                    return      = it_return.
    * If Asset Master is changed with out any errors
          read table it_return with key type = 'E'.
          if sy-subrc = 0.
            flag = ' '.
          else.
            flag = 'X'.
    * Call the COMMIT BAPI
            call function 'BAPI_TRANSACTION_COMMIT'
                 exporting
                      wait = 'X'.
            wait up to 2 seconds.
          endif.
    * If the Asset Master is changed with out any errors
          if flag = 'X'.
            read table it_output into is_output with key
                                      bukrs = is_final-bukrs
                                      anln1 = is_final-anln1
                                      anln2 = is_final-anln2
                                      binary search.
            if sy-subrc = 0.
    *          is_output-c_icon  = c_green.
              is_output-grufl_n = is_final-grufl.
              is_output-message = it_return-message.
    * Modify the output internal table with the changed new values
              modify it_output from is_output
                               transporting grufl_n message
                               where bukrs = is_output-bukrs
                                 and anln1 = is_output-anln1
                                 and anln2 = is_output-anln2.
            endif.
          elseif flag = ' '.
            read table it_output into is_output with key
                                      bukrs = is_final-bukrs
                                      anln1 = is_final-anln1
                                      anln2 = is_final-anln2
                                      binary search.
            if sy-subrc = 0.
    *          is_output-c_icon  = c_red.
              is_output-grufl_n = is_realestate-area.
              is_output-message = it_return-message.
    * Modify the output internal table with the changed new values
              modify it_output from is_output
                               transporting grufl_n message
                               where bukrs = is_output-bukrs
                                 and anln1 = is_output-anln1
                                 and anln2 = is_output-anln2.
            endif.
          endif.
        endif.
    * If updating of lease commencement date only
        if p_ldate = 'X'.
    * Passing new lease start date value to the BAPI
          is_leasing-start_date  = is_final-leabg.
          is_leasingx-start_date = 'X'.
    * Call the BAPI to change the Asset Master
          call function 'BAPI_FIXEDASSET_CHANGE'
               exporting
                    companycode = is_final-bukrs
                    asset       = is_final-anln1
                    subnumber   = is_final-anln2
                    leasing     = is_leasing
                    leasingx    = is_leasingx
               importing
                    return      = it_return.
    * If Asset Master is changed with out any errors
          read table it_return with key type = 'E'.
          if sy-subrc = 0.
            flag = ' '.
          else.
            flag = 'X'.
    * Call the COMMIT BAPI
            call function 'BAPI_TRANSACTION_COMMIT'
                 exporting
                      wait = 'X'.
            wait up to 2 seconds.
          endif.
    * If the Asset Master is changed with out any errors
          if flag = 'X'.
            read table it_output into is_output with key
                                      bukrs = is_final-bukrs
                                      anln1 = is_final-anln1
                                      anln2 = is_final-anln2
                                      binary search.
            if sy-subrc = 0.
    *          is_output-c_icon  = c_green.
              is_output-leabg_n = is_final-leabg.
              is_output-message = it_return-message.
    * Modify the output internal table with the changed new values
              modify it_output from is_output
                               transporting leabg_n message
                               where bukrs = is_output-bukrs
                                 and anln1 = is_output-anln1
                                 and anln2 = is_output-anln2.
            endif.
          elseif flag = ' '.
            read table it_output into is_output with key
                                      bukrs = is_final-bukrs
                                      anln1 = is_final-anln1
                                      anln2 = is_final-anln2
                                      binary search.
            if sy-subrc = 0.
    *          is_output-c_icon  = c_red.
              is_output-leabg_n = is_leasing-start_date.
              is_output-message = it_return-message.
    * Modify the output internal table with the changed new values
              modify it_output from is_output
                               transporting leabg_n message
                               where bukrs = is_output-bukrs
                                 and anln1 = is_output-anln1
                                 and anln2 = is_output-anln2.
            endif.
          endif.
        endif.
        clear : is_final, is_realestate, is_leasing,
                it_return, flag , is_output.
      endloop.
    * Display the report out with old and new values
      PERFORM output_report.
    *&      Form  output_report
    *       text
    *  -->  p1        text
    *  <--  p2        text
    *FORM output_report.
    *  DATA : it_fieldcat TYPE slis_t_fieldcat_alv,
    *         is_layout TYPE slis_layout_alv.
    ** Sub routine for filling the field catalog
    *  IF it_fieldcat[] IS INITIAL.
    *    PERFORM field_fill USING it_fieldcat.
    *  ENDIF.
    ** Sub routine to set the layout
    *  PERFORM set_layout USING is_layout.
    ** Function module to display the data in ALV format
    *  CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
    *       EXPORTING
    *            i_callback_program = l_repid
    *            it_fieldcat        = it_fieldcat
    *            is_layout          = is_layout
    *       TABLES
    *            t_outtab           = it_output
    *       EXCEPTIONS
    *            program_error      = 1
    *            OTHERS             = 2.
    *  IF sy-subrc <> 0.
    *    MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
    *            WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
    *  ENDIF.
    *ENDFORM.                    " output_report
    *&      Form  field_fill
    *       text
    *      -->P_IT_FIELDCAT  text
    *FORM field_fill USING pt_fieldcat TYPE slis_t_fieldcat_alv.
    *  DATA : ls_fieldcat TYPE slis_fieldcat_alv,
    *         pos TYPE i VALUE 1.
    *  ls_fieldcat-col_pos       = pos.
    *  ls_fieldcat-fieldname     = 'C_ICON'.
    *  ls_fieldcat-seltext_m     = 'Change Status'.
    *  ls_fieldcat-tabname       = 'IT_OUTPUT'.
    *  APPEND ls_fieldcat TO pt_fieldcat.
    *  CLEAR ls_fieldcat.
    *  pos = pos + 1.
    *  ls_fieldcat-col_pos       = pos.
    *  ls_fieldcat-fieldname     = 'BUKRS'.
    *  ls_fieldcat-ref_fieldname = 'BUKRS'.
    *  ls_fieldcat-ref_tabname   = 'ANLA'.
    *  APPEND ls_fieldcat TO pt_fieldcat.
    *  CLEAR ls_fieldcat.
    *  pos = pos + 1.
    *  ls_fieldcat-col_pos       = pos.
    *  ls_fieldcat-fieldname     = 'ANLN1'.
    *  ls_fieldcat-ref_fieldname = 'ANLN1'.
    *  ls_fieldcat-ref_tabname   = 'ANLA'.
    *  APPEND ls_fieldcat TO pt_fieldcat.
    *  CLEAR ls_fieldcat.
    *  pos = pos + 1.
    *  ls_fieldcat-col_pos       = pos.
    *  ls_fieldcat-fieldname     = 'ANLN2'.
    *  ls_fieldcat-ref_fieldname = 'ANLN2'.
    *  ls_fieldcat-ref_tabname   = 'ANLA'.
    *  APPEND ls_fieldcat TO pt_fieldcat.
    *  CLEAR ls_fieldcat.
    *  pos = pos + 1.
    *  IF p_farea = 'X'.
    *    ls_fieldcat-col_pos       = pos.
    *    ls_fieldcat-fieldname     = 'GRUFL'.
    *    ls_fieldcat-ref_fieldname = 'GRUFL'.
    *    ls_fieldcat-ref_tabname   = 'ANLA'.
    *    APPEND ls_fieldcat TO pt_fieldcat.
    *    CLEAR ls_fieldcat.
    *    pos = pos + 1.
    *    ls_fieldcat-col_pos       = pos.
    *    ls_fieldcat-fieldname     = 'GRUFL_N'.
    *    ls_fieldcat-seltext_l     = 'New Floor Area'.
    *    ls_fieldcat-tabname       = 'IT_OUTPUT'.
    *    APPEND ls_fieldcat TO pt_fieldcat.
    *    CLEAR ls_fieldcat.
    *    pos = pos + 1.
    *  ENDIF.
    *  IF p_ldate = 'X'.
    *    ls_fieldcat-col_pos       = pos.
    *    ls_fieldcat-fieldname     = 'LEABG'.
    *    ls_fieldcat-ref_fieldname = 'LEABG'.
    *    ls_fieldcat-ref_tabname   = 'ANLA'.
    *    APPEND ls_fieldcat TO pt_fieldcat.
    *    CLEAR ls_fieldcat.
    *    pos = pos + 1.
    *    ls_fieldcat-col_pos       = pos.
    *    ls_fieldcat-fieldname     = 'LEABG_N'.
    *    ls_fieldcat-seltext_l     = 'New Lease St.Date'.
    *    ls_fieldcat-tabname       = 'IT_OUTPUT'.
    *    APPEND ls_fieldcat TO pt_fieldcat.
    *    CLEAR ls_fieldcat.
    *    pos = pos + 1.
    *  ENDIF.
    *  ls_fieldcat-col_pos       = pos.
    *  ls_fieldcat-fieldname     = 'MESSAGE'.
    *  ls_fieldcat-seltext_l     = 'Status Message'.
    *  ls_fieldcat-tabname       = 'IT_OUTPUT'.
    *  APPEND ls_fieldcat TO pt_fieldcat.
    *  CLEAR ls_fieldcat.
    *  pos = pos + 1.
    *ENDFORM.                    " field_fill
    Regards
    Gopi

  • How to display multiple records in smart forms in new page for each record

    Hi,
              How to display the data from a internal table in a smart form.
    I want each record to be displayed in seperate page.
    please tell me with example.
    thank u,
    Sarath

    Do this ,
       in the main window - open a loop on your internal table ,
    within the loop open the text and give the output fields,
    after this text  use the Command node and in this set the next page as page1,
    so when the loop gets executed its first record will be on the first page and the second record will be on the next page and so on ..
    Reward to usefull answers.

Maybe you are looking for