What are the internal table events
hi experts
can u help me for this
Hi ramesh,
There are basically internal table events are as below...
at first / endat
at last / endat
at new / endat
at end of / endat
sum
on change of / endon
Use the at first and at last statements to perform processing during the first or last loop pass of an internal table.
Use the at new and at end of statements to detect a change in a column from one loop pass to the next. These statements enable you to execute code at the beginning and end of a group of records.
Use the sum statement to calculate totals for the rows of a control level.
Another statement you can use to perform control break processing is on change of. It behaves in a manner similar to at new.
on change of differs from at new in the following respects:
It can be used in any loop construct, not just loop at. For example, it can be used within select and endselect, do and enddo, or while and endwhile, as well as inside get events.
A single on change of can be triggered by a change within one or more fields named after of and separated by or. These fields can be elementary fields or field strings. If you are within a loop, these fields do not have to belong to the loop.
When used within a loop, a change in a field to the left of the control level does not trigger a control break.
When used within a loop, fields to the right still contain their original values; they are not changed to contain zeros or asterisks.
You can use else between on change of and endon.
You can use it with loop at it where . . ..
You can use sum with on change of. It sums all numeric fields except the one(s) named after of.
Any values changed within on change of remain changed after endon. The contents of the header line are not restored as they are for at and endat.
<b>Reward Points if it useful....</b>
Thanks and Regards
Sreenivasa sharma k.
Similar Messages
-
What are dyanmic internal tables and what s the exact use of forall entries
what are dyanmic internal tables and what s the exact use of forall entries?
hi,
<u><b>dynamic internal table.</b></u>
http://searchsap.techtarget.com/tip/1,289483,sid21_gci912390,00.html
http://www.sap-img.com/ab030.htm
<u><b>
FOR ALL ENTRIES</b></u> is an effective way of doing away with using JOIN on two tables.
You can check the below code -
SELECT BUKRS BELNR GJAHR AUGDT
FROM BSEG
INTO TABLE I_BSEG
WHERE BUKRS = ....
SELECT BUKRS BELNR BLART BLDAT
FROM BKPF
INTO TABLE I_BKPF
FOR ALL ENTRIES IN I_BSEG
WHERE BUKRS = I_BSEG-BUKRS
AND BELNR = I_BSEG-BELNR
AND BLDAT IN SO_BLDAT.
*******************************8
look another example
what is the use of FOR ALL ENTRIES
1. INNER JOIN
DBTAB1 <----
> DBTAB2
It is used to JOIN two DATABASE tables
having some COMMON fields.
2. Whereas
For All Entries,
DBTAB1 <----
> ITAB1
is not at all related to two DATABASE tables.
It is related to INTERNAL table.
3. If we want to fetch data
from some DBTABLE1
but we want to fetch
for only some records
which are contained in some internal table,
then we use for alll entries.
1. simple example of for all entries.
2. NOTE THAT
In for all entries,
it is NOT necessary to use TWO DBTABLES.
(as against JOIN)
3. use this program (just copy paste)
it will fetch data
from T001
FOR ONLY TWO COMPANIES (as mentioned in itab)
4
REPORT abc.
DATA : BEGIN OF itab OCCURS 0,
bukrs LIKE t001-bukrs,
END OF itab.
DATA : t001 LIKE TABLE OF t001 WITH HEADER LINE.
itab-bukrs = '1000'.
APPEND itab.
itab-bukrs = '1100'.
APPEND itab.
SELECT * FROM t001
INTO TABLE t001
FOR ALL ENTRIES IN itab
WHERE bukrs = itab-bukrs.
LOOP AT t001.
WRITE :/ t001-bukrs.
ENDLOOP.
Hope this helps!
Regards,
Anver -
What are nested Internal tables
Hi Guru's,
I am new to ABAP ...just trying to learn things.Can you please explain me what are nested internal tables and what is the purpose of nested internal table?where can it be used and why a header line is not written in a Nested Internal table...
Kindly explain it (scenario where nested internal tables are used) with an example it will be helpful.
Cheers,
PriyankaHi,
When storing data in internal tables, you often use one internal table for each database you read.
Each one contains some or all columns of the relevant database table. It is up to you whether
you create an internal table with a flat structure for each database table or if you create, for
example, internal tables with nested structures. If you have several tables, each one with a flat
structure, you have to work with redundant key fields to link the tables. If, on the other hand, you
use nested internal tables, you can store the data from the database tables hierarchically.
Saving and processing very large amounts of data in internal tables has disadvantages. If you
divide up the data into different internal tables, processing it can be very runtime-intensive, since
the tables have to be processed individually. Furthermore, it requires a lot of storage space,
since internal tables are not stored in compressed form. The system may even need to store the
dataset outside of its working memory. This means that processing it takes even longer.
An example of nested internal table:
Assume the following program is linked to the logical database [Page 1163] F1S.
REPORT DEMO.
DATA: SUM TYPE I, CNT TYPE I.
NODES: SPFLI, SFLIGHT, SBOOK.
DATA: BEGIN OF WA_SBOOK,
BOOKID TYPE SBOOK-BOOKID,
SMOKER TYPE SBOOK-SMOKER,
CLASS TYPE SBOOK-CLASS,
LUGGWEIGHT TYPE SBOOK-LUGGWEIGHT,
WUNIT TYPE SBOOK-WUNIT,
END OF WA_SBOOK.
DATA: BEGIN OF WA_SFLIGHT,
FLDATE TYPE SFLIGHT-FLDATE,
SBOOK LIKE TABLE OF WA_SBOOK,
END OF WA_SFLIGHT.
DATA: BEGIN OF WA_SPFLI,
CARRID TYPE SPFLI-CARRID,
CONNID TYPE SPFLI-CONNID,
CITYFROM TYPE SPFLI-CITYFROM,
CITYTO TYPE SPFLI-CITYTO,
SFLIGHT LIKE TABLE OF WA_SFLIGHT,
END OF WA_SPFLI.
DATA TAB_SPFLI LIKE TABLE OF WA_SPFLI.
START-OF-SELECTION.
GET SPFLI.
REFRESH WA_SPFLI-SFLIGHT.
GET SFLIGHT.
REFRESH WA_SFLIGHT-SBOOK.
GET SBOOK.
MOVE-CORRESPONDING SBOOK TO WA_SBOOK.
APPEND WA_SBOOK TO WA_SFLIGHT-SBOOK.
GET SFLIGHT LATE.
MOVE-CORRESPONDING SFLIGHT TO WA_SFLIGHT.
APPEND WA_SFLIGHT TO WA_SPFLI-SFLIGHT.
GET SPFLI LATE.
MOVE-CORRESPONDING SPFLI TO WA_SPFLI.
APPEND WA_SPFLI TO TAB_SPFLI.
END-OF-SELECTION.
SORT TAB_SPFLI BY CITYFROM CITYTO CONNID.
LOOP AT TAB_SPFLI INTO WA_SPFLI.
SKIP.
WRITE: / WA_SPFLI-CARRID,
WA_SPFLI-CONNID,
'from', (15) WA_SPFLI-CITYFROM,
'to', (15) WA_SPFLI-CITYTO.
ULINE.
SORT WA_SPFLI-SFLIGHT BY FLDATE.
LOOP AT WA_SPFLI-SFLIGHT INTO WA_SFLIGHT.
SKIP.
WRITE: / 'Date:', WA_SFLIGHT-FLDATE.
WRITE: 20 'Book-ID', 40 'Smoker', 50 'Class'.
ULINE.
SORT WA_SFLIGHT-SBOOK BY CLASS SMOKER BOOKID.
SUM = 0.
CNT = 0.
LOOP AT WA_SFLIGHT-SBOOK INTO WA_SBOOK.
WRITE: / WA_SBOOK-BOOKID UNDER 'Book-ID',
WA_SBOOK-SMOKER UNDER 'Smoker',
WA_SBOOK-CLASS UNDER 'Class'.
SUM = SUM + WA_SBOOK-LUGGWEIGHT.
CNT = CNT + 1.
ENDLOOP.
ULINE.
WRITE: 'Number of bookings: ', (3) CNT,
/ 'Total luggage weight:',
(3) SUM, WA_SBOOK-WUNIT.
ENDLOOP.
ENDLOOP.
Thanks. -
What are the main tables using in vendor performance report.
what are the main tables using in vendor performance report.
how many select statements are in ABAP reports.Refer the links -
vendor performance report !!!
vendor performance report
vendor performance report
I need standard vendor performance report
Regards,
Amit
Reward all helpful replies. -
What are the Update tables?
In LO Delta scenario, Data posted parallel into document tables and update tables. What are the Document tables? What are the Update tables?
Give example for Application 11, which is document tables, and update tables?Hello Mannev,
Document tables are the actual application tables where the data is posted when you post a document in R/3.
Examples can be MSEG, VBRK etc.
Update tables are the intermediate tables which store data read from document tables. The V3 runs collects deltas in form of LUWs from these update tables and populates the delta queues.
hope this helps..
thanks, -
What are the main tables to refer in ASAP(asap 7.2)?
what are the main tables to refer in ASAP(asap 7.2)?
what are the main tables to refer in ASAP(asap 7.2)?
-
What are the payment tables in R12?
Hello,
What are the payments tables in R12,
I need retrieve the below columns from tables in R12
Payment_id,
Invoice_num, Invoice_amount
Payment_num, Payment_amount
please help us,
Thanks,
RajHello,
Thanks for your helping,
1). DUNS_NUMBER
2). JP_DUNS_NUMBER
3). CHECK_AMOUNT
4). CHECK_NUMBER
5). BANK_NUMBER
6). DISB_BANK_ACCT
7). COMPANY,
8). VENDOR_NAME
9). CMP_IDF
Please help me to get this columns in payments
If you know anything about NACHA Payment Format report customization in R12 please help me, Im struggling to customize this report in R12
Thanx,
<-- Raj --> -
What are the main tables of SITs?
Hi
What are the main tables of SITs? How can I find out the tables related to SITs?
Regards
RahmanPER_SPECIAL_INFO_TYPES: This table holds the definitions of SITs that are available to each Business Group. Each special information type is a user defined structure for the personal analysis key flexfield. The name of the special information type is the same as the name of the corresponding key flexfield structure.
PER_SPECIAL_INFO_TYPES_V : This table has the Employee's SIT info. A supplementary view used to simplify forms coding
PER_SPECIAL_INFO_TYPES_V2 : A supplementary view used to simplify forms coding. -
What are the other tables in B2 cluster
hi experts,
what are the other tables like ZL table in B2 cluster..and what data is stored in them.Results related to a time evaluation period in cluster B2
PSP
Personal work schedule
Time evaluation result
For each day
QTACC
Generation of quota entitlement
Time evaluation result
For each day
QTTRANS
Transfer pool
Time evaluation result
For each day
ZES
Time balances for each day
Time evaluation result
For each day
SALDO
Cumulated time balances
Time evaluation result
Time evaluation period
ZL
Time wage types
Time evaluation result
For each day
VS
Variable balances
Time evaluation result
For each day
CVS
Cumulated variable balances
Time evaluation result
Time evaluation period
FEHLER
Messages
Time evaluation result
For each day
PT
Time pairs
Raw data/time evaluation result
For each day
KNTAG
Core night work (relevant only for the German country version)
Time evaluation result
For each day
Results related to a time period in cluster B2
Table
Description
Origin
Time Dependency
VERT
Substitutions
Copy of infotype 2003
Period
ABWKONTI
Absence quotas
Copy of infotype 2006
Period
AB
Absences
Copy of infotype 2001
Period
ANWES
Attendances
Copy of infotype 2002
Period
RUFB
On-call availability
Copy of infotype 2004
Period
MEHR
Overtime
Copy of infotype 2005
Period
ANWKONTI
Attendance quotas
Copy of infotype 2007
Period
SKO
Time transfer specifications
Copy of infotype 2012
Period
ALP
Different payment
Raw data
Pointer to table entry
C1
Cost distribution
Raw data
Pointer to table entry
Edited by: BALAPANI on Oct 19, 2009 10:38 AM -
MDM 2.0.1 - What are the "_k" table in mdm database?
What are the "_k" table in mdm database? What do they contain? Examples:
* d1_dvc_k
* d1_contact_k
* d1_sp_k
* d1_install_evt_kThese tables are the 'key' tables. This concept is part of the Oracle Utilities Application Framework and is used to maintain unique key values for entities among different environments. In the past it was for example used by the archive engine to ensure the key value of entries transferred to your archive, would still remain in your live system. This would prevent the system from creating a new entry having the same key value as an entry in your archive.
-
What are the Master Table validations required for below fields
Hi,
I have created a selection screen with following fields.
Can anybody tell me what are the exact master table vaidation i can do for the same!
<b>Order Type[VBAK-AUART],
Order Number[VBAK-VBELN],
Customer PO #[VBKD-BSTKD],
Sold-to Party No[VBPA-PARVW - SP as key],
Ship-to Party No[VBPA-PARVW - SH as key],
Division[VBAK-SPART].</b>
Agaist which master tables i need to vaidate above fields!
Also please clarify what is meant by [SP as Key] & [SH as key]! Is it needs to be defaulted!
Thanks in advance.
Thanks,
Prasad.Hi Prasad,
For your another Query
SH- Ship To Party,
SP - Sold To party.
You can set anyone of them as Default depending on ur Bsuiness requirement ie. You are Forwarding ur Invoice to ship to or sold to Party.
Regards,
Leo -
Can anyone tell what are the fact tables and dimension tables available in banking domian
what are the fact and dimension tables available in banking domain.
maximum how many fact and dimension tables we can keep in the banking projectHi Srikanth Korrapati,
Please have a look on this book
The Data Warehouse Toolkit: The Complete Guide to Dimensional Modeling By Ralph Kimball & Margy Ross.
Here is the below link completely about the Banking Case Study from DW Toolkit.
The Data Warehouse Toolkit: The Complete Guide to Dimensional Modeling - Banking Case Study
Hope this will help you out
Regards,
Akhileshkiran. -
What are the DB tables for 0FI_GL_4
Hi experts,
Can any one tel me what are DB tables for the data source like 0FI_GL_4.
regrds
manojTables:
BSEG - Segment
BKPF- Header
0FI_GL_O02 - Standard ODS - FIGL: Line Item
Regards
Naga -
What are the main tables for BOM (Bill of Materials)
Hi Gurus,
I need to know the tables involved in BOM (Bill of Materials) for Oracle EBS.
Can anyone point out the list of related tables?
ThanksHi Sudipta,
Following are the BOM main tables.
bom_bill_of_materials
bom_inventory_components
bom_reference_designators
bom_substitute_components
mtl_item_revisions
bom_operational_routings
bom_operation_sequences
bom_operation_resources
BOM_BILL_OF_MTLS_INTERFACE
BOM_INVENTORY_COMPS_INTERFACE
BOM_REF_DESGS_INTERFACE
BOM_SUB_COMPS_INTERFACE
MTL_ITEM_REVISIONS_INTERFACE
BOM_OP_ROUTINGS_INTERFACE
BOM_OP_SEQUENCES_INTERFACE
BOM_OP_RESOURCES_INTERFACE
MTL_RTG_ITEM_REVS_INTERFACE
=======================
Following are all tables of BOM.
BOM_ALTERNATE_DESIGNATORS
BOM_ALTERNATE_DESIGNATORS_TL
BOM_ATO_CONFIGS_TEMP
BOM_ATO_CONFIGURATIONS
BOM_BILLS_HEADER_TEMP
BOM_BILL_OF_MATERIALS
BOM_BILL_OF_MATERIALS_ARCHIVE
BOM_BILL_OF_MATERIALS_TEMP
BOM_BILL_OF_MTLS_INTERFACE
BOM_BILL_REVISIONS_B
BOM_BILL_REVISIONS_TL
BOM_CALENDARS
BOM_CALENDAR_DATES
BOM_CALENDAR_EXCEPTIONS
BOM_CALENDAR_SHIFTS
BOM_CAL_WEEK_START_DATES
BOM_CAL_YEAR_START_DATES
BOM_CMP_USR_ATTR_INTERFACE
BOM_COMPARISON_TEMP
BOM_COMPONENTS_B
BOM_COMPONENTS_EXT_B
BOM_COMPONENTS_EXT_TL
BOM_COMPONENT_COLUMNS
BOM_COMPONENT_OPERATIONS
BOM_COMPONENT_OPS_INTERFACE
BOM_COMPONENT_TYPES
BOM_COMP_OPTCLASS_TEMP
BOM_COMP_OPTIONS_TEMP
BOM_CONFIG_EXPLOSIONS
BOM_COPY_ORGANIZATION_LIST
BOM_COPY_STRUCTURE_ACTIONS
BOM_COPY_STRUCTURE_REQUEST
BOM_CTO_MLSUPPLY_MAIN_TEMP
BOM_CTO_MODEL_ORGS
BOM_CTO_ORDER_DEMAND
BOM_CTO_ORDER_LINES
BOM_CTO_ORDER_LINES_UPG
BOM_CTO_OSS_COMPONENTS
BOM_CTO_OSS_ORGS_LIST
BOM_CTO_SRC_ORGS
BOM_CTO_SRC_ORGS_B
BOM_DELETE_ENTITIES
BOM_DELETE_ERRORS
BOM_DELETE_GROUPS
BOM_DELETE_SQL_STATEMENTS
BOM_DELETE_SUB_ENTITIES
BOM_DEPARTMENTS
BOM_DEPARTMENT_CLASSES
BOM_DEPARTMENT_RESOURCES
BOM_DEPENDENT_DESC_ELEMENTS
BOM_DEPEND_DESC_ELEM_ARCHIVE
BOM_DEPT_RES_INSTANCES
BOM_EAM_DEPT_APPROVERS
BOM_EXCEPTION_SETS
BOM_EXCEPTION_SET_DATES
BOM_EXCLUSION_RULE_ARCHIVE
BOM_EXCLUSION_RULE_DEF
BOM_EXPLOSIONS
BOM_EXPLOSIONS_ALL
BOM_EXPLOSION_TEMP
BOM_FORM_QUERY
BOM_IMPLOSION_TEMP
BOM_INTERFACE_DELETE_GROUPS
BOM_INVENTORY_COMPONENTS
BOM_INVENTORY_COMPONENTS_TEMP
BOM_INVENTORY_COMPS_ARCHIVE
BOM_INVENTORY_COMPS_INTERFACE
BOM_INV_COMPONENTS_TEMP
BOM_ITEM_ATTACH_CATEGORY_ASSOC
BOM_ITEM_BACKFLUSH_SUBINV
BOM_LISTS
BOM_LOW_LEVEL_CODES
BOM_MIXED_MODEL_MAP_CELLS
BOM_MIXED_MODEL_MAP_HEADER
BOM_MIXED_MODEL_MAP_PROCESSES
BOM_MIXED_MODEL_MAP_RES
BOM_OPERATIONAL_ROUTINGS
BOM_OPERATION_NETWORKS
BOM_OPERATION_RESOURCES
BOM_OPERATION_RESOURCES_EFC
BOM_OPERATION_SEQUENCES
BOM_OPERATION_SEQUENCES_TEMP
BOM_OPERATION_SKILLS
BOM_OP_NETWORKS_INTERFACE
BOM_OP_RESOURCES_ARCHIVE
BOM_OP_RESOURCES_INTERFACE
BOM_OP_ROUTINGS_ARCHIVE
BOM_OP_ROUTINGS_INTERFACE
BOM_OP_SEQUENCES_ARCHIVE
BOM_OP_SEQUENCES_INTERFACE
BOM_PARAMETERS
BOM_PERIOD_START_DATES
BOM_REFERENCE_DESGS_ARCHIVE
BOM_REFERENCE_DESIGNATORS
BOM_REF_DESGS_INTERFACE
BOM_RESOURCES
BOM_RESOURCES_EFC
BOM_RESOURCE_CHANGES
BOM_RESOURCE_DOWNCODES
BOM_RESOURCE_EMPLOYEES
BOM_RESOURCE_EQUIPMENTS
BOM_RESOURCE_FLEX_FENCES
BOM_RESOURCE_SETUPS
BOM_RESOURCE_SHIFTS
BOM_RES_INSTANCE_CHANGES
BOM_RTGHEADER_TEMP
BOM_RTG_ITEM_REVISIONS_ARCHIVE
BOM_RTG_NETWORK_TEMP
BOM_RTG_OPERATION_TEMP
BOM_RTG_OPER_RES_TEMP
BOM_RTG_RESOURCE_TEMP
BOM_RTG_SUB_RESOURCE_TEMP
BOM_RULES_B
BOM_SETUP_TRANSITIONS
BOM_SETUP_TYPES
BOM_SHIFT_DATES
BOM_SHIFT_EXCEPTIONS
BOM_SHIFT_TIMES
BOM_SMALL_EXPL_TEMP
BOM_SMALL_IMPL_TEMP
BOM_STANDARD_OPERATIONS
BOM_STD_OP_BONUS_CODES
BOM_STD_OP_RESOURCES
BOM_STD_OP_RESP_EXCLUSIONS
BOM_STD_OP_SCRAP_CODES
BOM_STD_SUB_OP_RESOURCES
BOM_STRUCTURES_B
BOM_STRUCTURES_EXT_B
BOM_STRUCTURES_EXT_TL
BOM_STRUCTURE_EXT_B
BOM_STRUCTURE_REVISIONS_B
BOM_STRUCTURE_REVISIONS_TL
BOM_STRUCTURE_TYPES_B
BOM_STRUCTURE_TYPES_TL
BOM_SUBSTITUTE_COMPONENTS
BOM_SUBSTITUTE_COMPS_ARCHIVE
BOM_SUB_COMPS_INTERFACE
BOM_SUB_OPERATION_RESOURCES
BOM_SUB_OPERATION_RESOURCE_EFC
BOM_SUB_OP_RESOURCES_INTERFACE
BOM_WORKDAY_PATTERNS
HTH
Sanjay -
What are the Cluster tables and pooled tables
pls give some examples for the above table
Thankyou
raviHi
<b>Pooled Table</b>
Pooled tables are logical tables that must be assigned to a table pool when they are defined. Pooled tables are used to store control data. Several pooled tables can be cominied in a table pool. The data of these pooled tables are then sorted in a common table in the database.
<b>Cluster Table</b>
Cluster tables are logical tables that must be assigned to a table cluster when they are defined. Cluster tables can be used to strore control data. They can also be used to store temporary data or texts, such as documentation.
check this link also
http://help.sap.com/saphelp_47x200/helpdata/en/81/415d363640933fe10000009b38f839/frameset.htm
Rewards if helpfull
Regards
Pavan
Maybe you are looking for
-
I'm interesting on buying a Firefox Smart Phone, but I would like to know if are any app to install on Firefox OS smart phone in order to work with cisco call manager 10.5. Something like Cisco Jabber for Android o iOS. Thanks,
-
Flickering finder and safari, and sound not working?
Firstly the screen froze whilst the radio was still playing. I could move the mouse cursor but not click on anything. So, I did a safe reboot and the desktop reset. Everything now responds to the mouse but Finder is flickering when scrolling and Safa
-
Making few fileds mansatory in vendor master
Hi All, We want to make few field s in vendor master as mandatory, like Mobile number, Type of Business , type of industry etc., How can we make these field as mandatory. Please let me know the configuration setting and path required for this setting
-
Sun ONE Studio Compiler Collection Portal Launched
A new portal with resources for application developers using the Sun ONE Studio Compiler Collection (C, C++, and Fortran) has been launched. Go to http://forte.sun.com/s1scc/ Technical articles, knowledgebase items, code samples, full documentation,
-
How to convert decimal to binary
example: source:254254254254 target:11111110111111101111111011111110