Include structure and extra fields in the same Internal Table

Hi developers,
im trying to declare an internal table with include structure and extra fields,
something like this:
data: BEGIN OF it_loans occurs 0,
      include structure zthrca006,   
      status(10),
      pernr   like pa0001-pernr,
      sname   like pa0001-pernr,
      tipomov(20),
      monto   like zthrca006-monto,
data: END of it_loans.
zthrca006 is huge so i dont want to type everithing.

What is the issue?
data: BEGIN OF it_loans occurs 0.
             include structure zthrca006.
data :     status(10),
data :     pernr like pa0001-pernr.
data :     sname like pa0001-pernr.
data :     tipomov(20).
data :     monto like zthrca006-monto,.
data:  END of it_loans.
Regards,
Ravi
Note - Please mark all the helpful answers

Similar Messages

  • Monthly and Yearly info on the same Pivot Table

    Hi everyone,
    I have a couple of questions.
    1) I want to show the same results by month and by year on the same pivot table. Is there any way this can be done?
    2) I would also like to show data on graphs by month. To do this i have added my date field to the table (hidden) and used the function MONTHNAME(expr). This works fine except that any transactions in April 2007 get grouped with any transactions in April 2008, and the same with the rest of the months. Is there any MONTHYEAR function or the like, that differentiates between months from different years?
    Any help would be great!
    Thanks

    1) I believe you need 2 pivot tables
    2) Can you give me more details on which object and which date you are using? I think it should be possible to get the required output.

  • With in the internal table can I READ the same internal table for a record?

    With in the internal table can I READ the same internal table?
    For Suppose
    LOOP AT itab.
    can I do as below
    READ TABLE itab with key bukrs = itab-bukrs
                       belnr = itab-belnr.
    *and I have to compare
    IF itab-shkzg = itab-shkzg_ia.
    ENDIF.
    ENDLOOP.

    Hi,
    Yes..But use work area to differentiate..
    EX.
    DATA: WA LIKE ITAB.
    DATA: WA_READ LIKE ITAB.
    LOOP AT itab <b>INTO WA</b>.
    can I do as below
    READ TABLE itab <b>INTO WA_READ</b>
               with key bukrs = itab-bukrs
    belnr = itab-belnr.
    *and I have to compare
    IF <b>WA</b>-shkzg = <b>WA_READ</b>-shkzg_ia.
    ENDIF.
    ENDLOOP.
    Please reward for helpful answers.
    Thanks,
    Naren

  • Can it be possible to use SUM twice for the same internal table

    Hi Guru,
    my requirement is follewing.
    I need to use a SUM for the same internal twice. 
    itab.
    first : like SUM  will sum up all the value
    and second like
    if  wa_tab-field = ' S'
    sum.
    ...some logic
    else  if wa_tab-field = h
    some logic
    endif.
    can i use  SUM in above way.
    Many thanks,
    Anuj.

    Hi,
    yes it could be use multiple time.
    Here example.
    sort GT_COLLECTHI by atnam ATWRT.
      loop at GT_COLLECTHI into gs_collecth.
        at end of ATWRT.
          sum.
          append gs_collecth to gt_collecth.
          clear:gs_collecth.
          sum.
        endat.
        at end of ATNAM.
          sum.
          append gs_collecth to gt_collecth.
          clear:gs_collecth.
          sum.
        endat.
      endloop.
    Thank you
    Jan

  • Getting Blank Rows and Good Rows in the same bound table

    Hi, a little brief here I am a developer at Oracle and am trying to use ADF and Oracle BC's on my webpages.
    I am using Oracle TopLink and ADF to display the contents of several tables. The issue I encounter is that TopLink for some reason (I hypothesize memory constraints) does not return the actual contents of the rows but instead nulls to the front end for my ADF Read-Only Table on the page. The number of rows is correct but only the first 11 rows are displayed and after that the rows are completely blank, I cannot navigate to the third set of rows (the second set of rows I can navigate to because there is one good row there) and when I select one of the blank rows and try to perform an action it gives null for the contents of the actual row and throws an exception. How can I resolve this issue?
    I have tested that I can see the full contents of the table correctly on another page with less content, but when I put the table on the page that has multiple iterators and also BC's on it only the first 11 rows are visible. Is there an easy solution to this issue, why does it occur, and why is there no error thrown when the null rows are given to the page? Does anyone know of a solution to this issue?

    Resolved the issue, the problem was that I had a refresh that was on ALWAYS on the component, I change the refresh to a RENDER MODEL refresh and now can see the whole table.

  • How to compare two entries in the same internal table

    Hi
    I hav e an internal table. I want to compare the entries in the internal table and delete the entries which is duplicates from the internal table. for ex. if plant 1000 is repeated two times. Then both the record of plant 1000 should be removed .
    Please suggest some idea.
    Thanks
    Subha

    Hi,
    Apply this code.
    include one more field in itab & jtab as delete_flag(1) type c.
    move itab to jtab.
    Loop at itab into wa_itab.
    lv_tabix = sy-tabix.
    Loop at jtab into wa_jtab where plant = wa_itab-plant.
    if sy-tabix ne lv_tabix.
    wa_itab-delete_flag = 'X'.
    endif.
    Endloop.
    modify itab from wa_itab transporting delete_flag.
    clear: wa_itab,wa_jtab.
    endloop.
    delete itab where delete_flag = 'X'.
    Now you have filtered ITAB with your desired results.
    It will surely help.
    Edited by: Adarsh Jain on Aug 18, 2010 7:57 AM
    Edited by: Adarsh Jain on Aug 18, 2010 7:58 AM

  • Sum of  fileds to be stored in the same internal table

    Hi SDNners,
    i hav an internal table with fileds f1,f2 ,f3,f4,f5 of which f1,f2 are key fields
    for each of the key combination i want to hav the sum of the field f4 into the field
    f5.
    ex.
    f1   f2     f3      f4    f5
    k1  k2    d1    10
    k1  k2    d2    20
    k1  k2    d3    30
    i want the sum of k1 & k2 combination i.e 102030 into f5
    plz give me sample code
    Thanks in advance
    Ganesh M

    Hi,
    say your internal table is declared as
    data: t_f1f2f3f4f5 ...
    and you fill it in somw way.
    declare
    data: t_f1f2f3f4f5_coll like table of t_f1f2f3f4f5 with header line.
    loop at t_f1f2f3f4f5.
      collect t_f1f2f3f4f5 into t_f1f2f3f4f5_coll.
    endloop.
    * now all key combinations (char fields K1 and K2) are summed up.
    sort t_f1f2f3f4f5_coll.
    * should already be sorted but this is not guaranteed!
    loop at t_f1f2f3f4f5.
      read table t_f1f2f3f4f5_coll
        with key k1 = f1f2f3f4f5-k1
                     k2 = f1f2f3f4f5-k2
                     binary search.
    * put sum of f4 for key kombination k1 k2 into f5
      t_f1f2f3f4f5-f4 = t_f1f2f3f4f5_coll-f5.
      modify t_f1f2f3f4f5.
    endloop.
    Now, for for each of the key combination you hav the sum of the field f4 in the field
    f5.
    Regards,
    Clemens

  • Mandatory fields on the same page with dependent LOVs

    Hi,
    I am working on an ADF-BC application using JDeveloper 10.1.3.4
    I have an ADF Creation form with dependent LOVs and while implementing dependent LOVs we set the autoSubmit property of the selectOneChoiceListBox as true.
    If I have some mandatory fields on the same page then because of the autoSubmit property set as true whenever I select a value in the list the page gets submitted and the mandatory fields give an error that the values are required therefore I had to remove the mandatory fields.
    I tried using f:subview but even that dint serve the purpose because what I want is something like partialSubmit so that my mandatory fields do no give an error when I select a value in the list.
    Can somebody help me on this, how to have a dependent list and mandatory fields on the same page.
    P.S: It is very crucial for my application
    Thanks,
    Raksha

    Hello,
    This bug has been around since 10.1.3, its even still present in Trinidad and now in 11.
    One of the ways to avoid is to make your fields use:
    showRequired="true"instead of
    required="true"I have not found a decent way to avoid this in general.
    My idea was that this shiould be possible with a phaselistener and determine if this is a partial page event instead of a normal submit, but this didnt work.
    -Anton

  • Which is the suitable Internal table.

    Hi,
    I want to know which type of internal table would be suitable for the below mentioned process.
    There is some initial set of data in a internal table. The table is looped and i do operation on the data available in that line and get another data which has to be added to the same internal table. So that when the control is done with the intial set of data in the table, it starts reading the newly added line and do the same operations mentioned below.
    Warm Regards,
    Aruna G

    Hi,
    The loop wont be infinite, cos at  one point the above mentioned processiing of data wont happen since it wont meet some of the criteria. Its just i want to use a table sequentially and append data to it at the end.
    Warm Regards,
    Aruna G

  • How to display or generate PDF417 barcode dynamically in PDF form? I am using Acrobat XI Professional and there is a Bar Code Field in the same through which I generated the same. But I want to generate the same dynamically.

    How to display or generate PDF417 barcode dynamically in PDF form? I am using Acrobat XI Professional and there is a Bar Code Field in the same through which I generated the same. But I want to generate the same dynamically.

    What do you mean by dynamically? When yo set up a 2D bar code field you specify which field name/value pairs you want to include, along with other parameters. But be aware that they won't work with Reader unless you Reader-enable the document with LiveCycle Reader Extensions and include the bar code usage right. It will work with Acrobat Standard/Pro.

  • Column Headings in the report and adding an extra field to the report

    Hi All.
    I had an issue like i need to put column headings for a report and I want to add an extra field to the report.
    The problem here is that the report was actually cloned from a Query.At the time of cloning,they forgot to add the column headings.
    Now we need to add the column headings for the same.How can we proceed for this and where we need to add our code?
    How to add an extra field  to the existing report?
    Any pointers will be very much helpful.
    Regards,
    SSR.

    Hi,
    you can get this done in 2 ways:
    1 - Change the query to add another column and the re-generate the report
    2 - If changing query is not possible, you can change the report it self for adding extra field. If you look at the code, it will be more like normal ABAP code. you can easily modify it (If you are ABAPer) for your additional requirements.
    thnx,
    ags.
    Edited by: Agasti Kale on Jun 12, 2008 6:26 PM

  • We now use Acrobat xi for special active forms we created that include certifications and signature fields, some of the forms are programmed to create other forms, will we have a problem upgrading to DC

    We now use Acrobat xi for special active forms we created that include certifications and signature fields, some of the forms are programmed to create other forms, will we have a problem upgrading to DC
    Our users use a form template to create other adobe forms with calculated fields, signature fields (using digital signatures)
    , and buttons. Will we be able to continue developing these forms if we upgrade to Acrobat DC?

    Hi Alex ,
    In general ,you would not have any issues and problems moving to Acrobat DC .It has a different user interface and with more enhanced features .
    You would be able to develop the kind of forms you are referring to .
    You could refer to the following document to get more information about Acrobat DC .
    FAQ | Adobe Acrobat DC
    If in case you are referring to any particular issue or problem or if you face any regarding Acrobat DC ,we are always here to help you with that .
    Please feel free to write us back .
    Regards
    Sukrit Dhingra

  • How to compare two fields from the same table in the select statement

    Hi, friends
    I try to compare tow fields from the same table, but no result,
    For example, this
    data: cptotchek tyep i.
    select count(*) into cptotchek
    from aufk where erdat = aufk-idat2 .
    The result is  cptotchek = 0, but there are the records in aufk , where,  aufk-erdat = aufk-idat2.
    Please, help me, i don't use the loop statement for optimize my program.
    Regards

    Hi  ,
           it will not return  any value   when you are using   column of same table 
           such as Date Field   , Because  while Using Aggregate Function  it will not check with self column
    .      For that you have to take data in one internal table and then you can work on it  .
         And if you are worried about Performance  it will not affect  , untill you are selecting only required data  .
    you can try this way  .
    data: cptotchek type i.
    types : begin of  w_aufk.
            include structure aufk  .
          types : end of  w_aufk .
    data : it_aufk type standard table of w_aufk with header line  .
    select * into corresponding fields of table it_aufk
    from aufk  .
    loop at it_aufk .
    if it_aufk-erdat  = it_aufk-idat2 .
    write : / it_aufk-erdat , it_aufk-idat2 .
    else .
    delete it_aufk .
    endif  .
    endloop.
    Regards
    Deepak.

  • Extra field in the WOrklist

    Hi Specialist
    I would like to ask about add one extra field in the layout of the worlikst.
    there is a field: VERZN  --> Days in Arrears by Net Due Date that I would like to add in my layout.
    I check by the standard way using the "change layout" but the field doesnt appear.
    How can I add the field in my worklist?
    thank you

    Heya,
    This is indeed possible with a few changes to the structures used. The structure UDM_S_WORKLIST_ITEM_ATTR_C will need to have the customer include (CI_WORKLIST_ITEM_ATTR) implemented to add any new fields to the worklist.
    Similarily the table UDM_WL_ITEM needs to have the customer include (CI_WORKLIST_ITEM) implemented with the same fields.
    Once this is completed the BAdI UDM_WL_ITEM_DISP_C will need to be implemented to fill the data in the new fields added.
    Once you have done that it should be able to be shown within the worklist.
    Hope that helps,
    Brenton.

  • Difference between include structure and Append structure

    Could you please tell me
    I have bsis table and it contains append structure  in 4.7 SAP System.
    my program in 4.7 system contains internal table which used same structure of bsis table ( which contains additonal field in its append structure ).
    I need to have same table structure in 4.6 C because I am copying the same program into 4.6 system.
    As I could not append structure to bsis table in 4.6C SAP system,
    instead of that shall I add the field or Shall include the structure to run .
    What is the difference between Include structure and Append structure ( I forgot )
    How to achieve this please help me ?

    Hi ,
      As you know append structure can be used only once in table ,that to at last of all entries,
    Append structures are used for enhancements that are not included in the standard. This includes special developments, country versions and adding customer fields to any tables or structures.
    An append structure is a structure that is assigned to exactly one table or structure. There can be more than one append structure for a table or structure.
    The following enhancements can be made to a table or structure TAB with an append structure:
    Insert new fields in TAB,
    Define foreign keys for fields of TAB that already exist,
    Attach search helps to fields of TAB that already exist,
    These enhancements are part of the append structure, i.e. they must always be changed and transported with the append structure.
    When a table or structure is activated, all the append structures of the table are searched and the fields of these append structures are added to the table or structure. Foreign keys and search help attachments added using the append structure are also added to the table. If an append structure is created or changed, the table or structure assigned to it is also adjusted to these changes when the append structure is activated.
    Since the order of the fields in the ABAP Dictionary can differ from the order of the fields on the database, adding append structures or inserting fields in such append structures does not result in a table conversion.
    The customer creates append structures in the customer namespace. The append structure is thus protected against overwriting during an upgrade. The fields in the append structure should also reside in the customer namespace, that is the field names should begin with ZZ or YY. This prevents name conflicts with fields inserted in the table by SAP.
    The new versions of the standard tables are imported after an upgrade, and the fields, foreign key definitions and search help attachments contained in the append structures are added to the new standard tables at activation.
    A standard table contains the fields Field 1, Field 2 and Field 3. An append structure containing the fields ZZA and ZZB is defined for this table. After activating the table, the corresponding database table contains fields Field 1, Field 2, Field 3, ZZA and ZZB.
    Further Remarks:
    An append structure can only be assigned to exactly one table or structure. If you want to append the same fields to several tables or structures, you can store these fields in an include structure. In this case you must create an append structure for each of these tables or structures and include the include structure there.
    Adding an append structure to an SAP standard table is supported by the  Modification Assistant.
    If you want to insert a field that is to be delivered with the R/3 standard in the next Release in the customer system in advance, you must include it in the table itself as a repair. If you include such a field in an append structure for the table, it will occur twice when the new standard table is imported. This will result in an activation error.
    No append structures may be added to tables with long fields (data types VARC, LCHR or LRAW). This is because a long field must always be the last field in the table. However, structures with long fields can be enhanced with append structures.
    If a table or structure with an append structure is copied, the fields of the append structure become fields of the target table. Foreign key definitions and search help attachments appended with the append structure are copied to the target table.
    Foreign keys for the appended fields must be defined within the append structure. Fields of the table or structure assigned to the append structure may be defined when assigning the key field and foreign key field.
    Indexes on the appended fields must be defined in the original table.
    A table or structure TAB can only be enhanced with new foreign keys or search help attachments using an append structure. You therefore cannot change an existing foreign key definition or search help attachment for a field of TAB with the append structure.
    Thanks
    Manju

Maybe you are looking for

  • JTable - isEditing does not work in Java 1.4

    I just upgraded jdk1.1.8 with swing 1.1.1 to Java1.4. The isEditing method doesn't work on Java1.4. When I edit a cell in the JTable and click a button , the value of the last edited cell is lost. I was able to catch the edited value by calling isEdi

  • Stock qty/value on specifiec date

    Hi All Can anybody explain how  can we find the Stock qty and value on paricular date period through the table instead of transaction MB5B.I am waiting for your valid inputs. Thanx

  • Query RMAN catalog to view my controlfile backup in backup piece

    version: 11.1.0.7 We need to restore an year old database and its backup is availble in TAPE, RMAN directly takes backup to TAPE. we have dropped the database, Now there is a requirement to restore the database. we Know DBID, I can restore the db onc

  • IPhone and Tunes Runtime Error

    I connected my iPhone to my computer and opened iTunes in order to sync my phone. iTunes started up but I got the following message: Microsoft Visual C++ Runtime Libray Rutime Error! Program: c:\Program Files\iTunes\iTunes.exe This application has re

  • QuickTime Version 7.0.3 dropping frames

    Hello there, A search in the forums yielded a few posts describing my problem but I was unable to find a solution to solve it. I am playing HD Movies Trailers from Apple's page: http://www.apple.com/trailers/ When playing the trailer QuickTime drops