Differnces
difference b/w AT NEW <field> and ON CHANGE OF <field>
on-change
Syntax
ON CHANGE OF <f> [OR <f1> OR <f2>...].
Opens an ON control structure, which ends with ENDON. The statement block is executed whenever the contents of the field <f> or one of the other fields <fi> has changed since the statement was last executed.
At-NEW.
AT for group change
Change of group when processing loops of extracts and internal tables.
Syntax
AT NEW <f>.
AT END OF <f>.
AT FIRST.
AT LAST.
AT <fg>.
The statements are used to process group levels within a loop using an extract dataset or an internal table. They introduce statement blocks that must be closed with ENDAT. The statements between AT and ENDAT are only executed if the corresponding group change occurred.
On change - should not use in new version.
The Major Difference is :
a) When AT NEW occurs,
the alpha-numeric fields have ******* in their value,
b) where as in case of ON CHANGE,
the alpha-numeric fields have their corresponding value,
of that particular record,
where the Event gets fired.
Other differences are :
ON CHANGE OF can be used any where in the program..
on change of differs from at new in the following respects:
1.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.
2.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.
3.When used within a loop, a change in a field to the left of the control level does not trigger a control break.
4.When used within a loop, fields to the right still contain their original values; they are not changed to contain zeros or asterisks.
5.You can use else between on change of and endon.
6.You can use it with loop at it where . . ..
7.You can use sum with on change of. It sums all numeric fields except the one(s) named after of.
8.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.
while
AT NEW can be used only within a loop of an INTERNAL TABLE..
5. Sample program to get the taste of it
(just copy paste)
6.
REPORT ABC.
DATA : BEGIN OF ITAB OCCURS 0,
bukrs like t001-bukrs,
f1(10) type c,
end of itab.
itab-bukrs = '1000'.
itab-f1 = '1111111'.
append itab.
itab-bukrs = '1100'.
itab-f1 = '3333333'.
append itab.
itab-bukrs = '1200'.
itab-f1 = '555555'.
append itab.
AT NEW
loop at itab.
at new bukrs.
write :/ itab-bukrs , itab-f1.
endat.
endloop.
AT ONCHANGE
loop at itab.
ON CHANGE OF ITAB-BUKRS.
write :/ itab-bukrs , itab-f1.
ENDON.
endloop.
Thanks
Seshu
Similar Messages
-
pls tell the differnce b'w lsmw and bdc . when we use bdc and when we use lsmw .for uploading master data (ex: cusomer data ) in tosap which method s u prrefer out of thhse 4
method scall transaction
session input
lsmw bapi whic one is the better one
when use session method and when we use call tran sac
which method is better for bacjground processing call tran s or session method . pls tell
the reason
answres as soon as possibleHi,
LSMW IS JUST A TOOL TO GET THE DATA FROM A LEGACY SYSTEM.
IN BDC WE HAVE 2 WRITE THE CODE AND CALL THE REQUIRED METHOD
THATS IT. IN FUNCTIONALITY PERSPECTIVE THERE IS NO
DIFFERENCE.
BDC is Batch Data Communication. It is basically a program
either generated by SAP after a recording or programmed by a
abaper.Its like running the transaction manually but all the
data is populated on the screens automatically.It is a
little complex when the screens contain table controls.
LSMW is legacy system migration workbench is a more user-
friendly tool thru which one can do the same as a BDC. One
just has to follow some 14 steps, click buttons and the data
is set to be uploaded ….LSMW offer you 4 ways to import data
into SAP, they are BDC, Direct Input, BAPI(BO), IDOC.
To spell out the differences in detail:
look at the below threads to know more
Diff between LSmw and Bdc
Diff. between LSMW & BDC
Regards
Sudheer -
IN MIR4 one qty is showing in GR/IR and one qty in Price differnce
Dear Sir,
We have made a PO for 10 QTy. frist 8 qty deliverd . we have made miro transaction.GR qty is equal to IR Qty.In Next sRest two quantity recived. AFter good receipt (MIGO) when we will do MIR4 & simulate it. One qty is showing in GR/IR & one is showing in Price differnce.
Why it is so.
Pls solve the prob.
Regards
Abhishek TiwariIf there is any additional frieght cost added with bill,then it will go to inventory account if stock is not consumed
if stock is consumed then it will hit price difference account. -
What is the differnce bitween widget and gadget???
hi all,
can you tell me about gadget and widget differnce??
or both or same,,
advance thx for your reply.,hi,
i developed my jsp using jmaki widget,,,
is there any API to develop the gadget in jsp.
thx for your reply, -
Basic differnce between 000 and 001 clients.
what is the basic differnce between 000 and 001 clients?
why do we use client 000 as source client while client copy?Hi Kumar
The basic difference between Client 000 and Client 001 is that Client 000 is client independent instace while Client 001 is Client dependent.
Client 000 is SAP source client while Client 001 doesn't exits for every installation.
Regards
Shashank -
Differnce between SAP-XI and SAP PI
hi can any body tell me what is the differnce between SAP-XI and SAP-PI
Hi vijay,
u can get lot of information regarding PI and XI in sdn.There already exists a no. of thread.just search with keyword "XI 3.0 and PI 7.0" u can get a lot.
XI 3.0
1. J2Se adapter engine was replaced with J2EE Adapter Engine.
2. BPM was available from XI 3.0
3. Part of Netweaver 2004
PI 7.0
1XI renames as Process Integration
2.. Part of Netweaver 2004s.
3. Has all features of XI 3.0 and every SP of Pi 7.0 has a corresponding release for XI 3.0.
4. Runs on WAS 7.0 and has same features as XI 3,0
From functional point, there is no difference between XI3.0 and PI7.0. There are changes only wrt SP. For every SP release on PI7.0 a corresponding SP for XI3.0 is also released.
A comparision of the service packs in 2004 and 2004s;
in 2004 - in 2004s
SP12 & < - SP04
SP13 + 14 - SP05
SP15 - SP06
SP16 - SP07
SP17 - SP08
SP18 - SP09
For release notes
ref:http://help.sap.com/saphelp_nw04/helpdata/en/cf/9844428e9cbe30e10000000a155106/frameset.htm
There is no f'nal difference between XI 3.0 and PI 7.0. In order to bring all netweaver releases on par with each other , SAP released / renamed XI as PI and it is a part of NW04s
For every release of PI 7.0, there is a parallel Support Pack on XI.
<a href="https://www.sdn.sap.comhttp://www.sdn.sap.comhttp://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/706005a3-3bd6-2910-91ae-a2016239bdcf">SAP NetWeaver Process Integration 7.1 Overview of New Capabilities</a>
Also check these threads.
Difference between NetWeaver 2004 and NetWeaver 7.0 or 7.1
All the diff between XI 3.0 and PI 7.0
differences between xi 3.0 and pi 7.0
Difference/ changes from XI 3.0 to PI 7.0
regards
Bill -
Differnce between AT NEW AND ON CHANGE OF
Hi,
Differnce between AT NEW AND ON CHANGE OF
Iam waiting foryour reply
Thanks & Regards
Raja Sekhar.THai Raja
check the following Documents
1. AT NEW f.
2. AT END OF f.
3. AT FIRST.
4. AT LAST.
5. AT fg.
Effect
In a LOOP which processes a dataset created with EXTRACT , you can use special control structures for control break processing. All these structures begin with AT and end with ENDAT . The sequence of statements which lies between them is then executed if a control break occurs.
You can use these key words for control break processing with extract datasets only if the active LOOP statement is proceesing an extract dataset.
The control level structure with extract datasets is dynamic. It corresponds exactly to the sort key of the extract dataset, i.e. to the order of fields in the field group HEADER by which the extract dataset was sorted .
At the end of a control group ( AT END OF , AT LAST ), there are two types of control level information between AT and ENDAT :
If the sort key of the extract dataset contains a non-numeric field h (particularly in the field group HEADER ), the field CNT(h) contains the number of control breaks in the (subordinate) control level h .
For extracted number fields g (see also ABAP/4 number types ), the fields SUM(g) contain the relevant control totals.
Notes
The fields CNT(h) and SUM(g) can only be addressed after they have been sorted. Otherwise, a runtime error may occur.
The fields CNT(h) and SUM(g) are filled with the relevant values for a control level at the end of each control group ( AT END OF , AT LAST ), not at the beginning ( AT FIRST , AT NEW ).
When calculating totals with SUM(g) , the system automatically chooses the maximum field sizes so that an overflow occurs only if the absolute value area limits are exceeded.
You can also use special control break control structures with LOOP s on internal tables.
Variant 1
AT NEW f.
Variant 2
AT END OF f.
Effect
f is a field from the field group HEADER . The enclosed sequence of statements is executed if
the field f occurs in the sort key of the extract dataset (and thus also in the field group HEADER ) and
the field f or a superior sort criterion has a different value in the current LOOP line than in the prceding ( AT NEW ) or subsequent ( AT END OF ) record of the extract dataset.
Example
DATA: NAME(30),
SALES TYPE I.
FIELD-GROUPS: HEADER, INFOS.
INSERT: NAME INTO HEADER,
SALES INTO INFOS.
LOOP.
AT NEW NAME.
NEW-PAGE.
ENDAT.
AT END OF NAME.
WRITE: / NAME, SUM(SALES).
ENDAT.
ENDLOOP.
Notes
If the extract dataset is not sorted before processing with LOOP , no control level structure is defined and the statements following AT NEW or AT END OF are not executed.
Fields which stand at hex zero are ignored by the control break check with AT NEW or AT END OF . This corresponds to the behavior of the SORT statement, which always places unoccupied fields (i.e. fields which stand at hex zero) before all occupied fields when sorting extract datasets, regardless of whether the sort sequence is in ascending or descending order.
Variant 3
AT FIRST.
Variant 4
AT LAST.
Effect
Executes the relevant series of statements just once - either on the first loop pass (with AT FIRST ) or on the last loop pass (with AT LAST ).
Variant 5
AT fg.
Addition
... WITH fg1
Effect
This statement makes single record processing dependent on the type of extracted record.
The sequence of statements following AT fg are executed whenever the current LOOP record is created with EXTRACT fg (in other words: when the current record is a fg record).
Addition
... WITH fg1
Effect
Executes the sequence of statements belonging to AT fg WITH fg1 only if the record of the field group fg in the dataset is immediately followed by a record of the field group fg1 .
Basic form
ON CHANGE OF f.
Addition
... OR f1
Effect
Executes the processing block enclosed by the " ON CHANGE OF f " and " ENDON " statements whenever the contents of the field f change (control break processing).
Normally, you use the statement to manipulate database fields during GET events or SELECT / ENDSELECT processing.
Note
There are special control structures for processing control breaks in LOOP s on internal tables or extract datasets AT ).
ON CHANGE OF is unsuitable for recognizing control levels in loops of this type because it always creates a global auxiliary field which is used to check for changes. This global auxiliary field can only be changed in the relevant ON CHANGE OF statement. It is not reset when the processing goes into loops or subroutines, so unwanted effects can occur if the loop or subroutine is executed again. Also, since it is set to its initial value when created (like any other field), any ON CHANGE OF processing will be executed after the first test, unless the contents of the field concerned happen to be identical to the initial value.
Example
TABLES T100.
SELECT * FROM T100 WHERE SPRSL = SY-LANGU AND
MSGNR < '010'
ORDER BY PRIMARY KEY.
ON CHANGE OF T100-ARBGB.
ULINE.
WRITE: / '**', T100-ARBGB, '**'.
ENDON.
WRITE: / T100-MSGNR, T100-TEXT.
ENDSELECT.
Displays all messages with their numbers in the logon language, provided the number is less than '010'.
Each time the message class changes, it is output.
Addition
... OR f1
Effect
Also executes the code whenever the contents of the field f1 changes.
You can use this addition several times.
Example
Logical database F1S
TABLES: SPFLI, SFLIGHT, SBOOK.
GET SBOOK.
ON CHANGE OF SPFLI-CARRID OR
SPFLI-CONNID OR
SFLIGHT-FLDATE.
ULINE.
WRITE: /5 SPFLI-CARRID, SPFLI-CONNID,
5 SFLIGHT-FLDATE, SPFLI-FLTIME,
5 SFLIGHT-SEATSMAX, SFLIGHT-SEATSOCC.
ENDON.
WRITE: / SBOOK-CUSTOMID.
The code between ON CHANGE OF and ENDON is executed only if at least one of the fields SPFLI-CARRID , SPFLI-CONNID or SFLIGHT-FLDATE has changed, i.e. there is a different flight connection (which also has bookings).
Notes
Thanks & regards
Sreenivasulu P -
Differnce Between OBIEE and BO And Cognos
Hi experts.
I would like to know the differnce between OBIEE , BO And Cognos. Is there is any white paper regarding this.
Thanks in advance
Regards
FrndsHi Friend ;)
Check out this.. http://www.forumtopics.com/busobj/viewtopic.php?p=543325&sid=21c3e9a1b9dd85679d5e51c335b8a74e
also http://oracle.ittoolbox.com/groups/strategy-planning/oracle-projectmanagement/what-is-obiee-1681803
Thanks & Regards
Kishore Guggilla
Edited by: Kishore Guggilla on Nov 20, 2008 11:52 AM -
Differnce between unicode and non unicode
Hi every body i want to differnce between unicode and non unicode and for what purposes this ulities are used explain me little brief what is t code for that , how to checj version, how to convert uni to non uni ?
Advance Thanks
Vishnuprasad.GHello Vishnu,
before Release 6.10, SAP software only used codes where every character is displayed by one byte, therefore character sets like these are also called single-byte codepages. However, every one of these character sets is only suitable for a limited number of languages.
Problems arise if you try to work with texts written in different incompatible character sets in one central system. If, for example, a system only has a West European character set, other characters cannot be correctly processed.
As of 6.10, to resolve these issues, SAP has introduced Unicode. Each character is generally mapped using 2 bytes and this offers a maximum of 65 536 bit combinations.
Thus, a Unicode-compatible ABAP program is one where all Unicode checks are in effect. Such programs return the same results in UC systems as in non-UC systems. To perform the relevant syntax checks, you must activate the "UC checks" flag in the screens of the program and class attributes.
With TC: /nUCCHECH you can check a program set for a syntax errors in UC environment.
Bye,
Peter -
Differnce between portal and collaboration
Hi All
What is differnce between portal and collaboration & uses as well?
Thanks in advance
Raja.SPeriodic billing is used when you want to bill the customer at different points of time based on the periodicity or progress of the work. Milestone billing can be used for this type of billing purposes when you want to have billing control from the project.
Resource billing is based on the resource consumption for the particular activities. Dynamic Item Processor (DIP) profile is used for the resource related billing.
Further information acn be had from the link
[http://help.sap.com/saphelp_47x200/helpdata/en/aa/96853478616434e10000009b38f83b/frameset.htm]
Hope this is of some help
Venu -
Differnce between MMPV and OB52
Wat is the differnce between OB52 and MMPV,
Thanks
RamkiHi Ramki,
This question has been answered already in several threads before.
Please use the search before posting new threads.
Hi Priyanka,
Sam has already answered the question.
Why are you replying with same answer and requesting points for that please do not do that.
Thank you -
Differnce Between /n and /BEND
Hi,
Differnce Between /n and /BEND?
thanks and regards
sarathHi ,
/n ends the particular transaction .
/bend - This means batch end .
This comes only in BDC concept .This is where you transfer data from the legacy system to sap R/3 system .When you are performing recording process and you dont want to continue any more you give /bend . -
Differnce between periodic and Resourse billing.
Differnce between periodic and Resourse billing, and how to do it in sap?..
Can anyone suggest me step wise
Thanks in advancePeriodic billing is used when you want to bill the customer at different points of time based on the periodicity or progress of the work. Milestone billing can be used for this type of billing purposes when you want to have billing control from the project.
Resource billing is based on the resource consumption for the particular activities. Dynamic Item Processor (DIP) profile is used for the resource related billing.
Further information acn be had from the link
[http://help.sap.com/saphelp_47x200/helpdata/en/aa/96853478616434e10000009b38f83b/frameset.htm]
Hope this is of some help
Venu -
Differnce between business name and physical name
What is the differnce between business name and physical name in OWB
Hi Vibhuti,
What I have noticed is that Physical name is THE important thing that is required while importing and synchronising. It has a length limitation of 30. The mappings appear with this name in the left panel in design center. The Business name is just for reference I believe.
Cheers,
Swagata -
STO DIFFERNCE BETWEEN UB AND NB
HI all
can someone plz tell me the differnces between po type NB and UB
and y do we use UB for Intra Company and NB for Intercompany
where exactly is the contrl\ol
olz clarifyhi
UB: If the supplying plant and Receiving Plant belong to the same company code. then we use UB document type.
If you use own document type you should ensure transport control field.
NB : If the Supplying plant and Receiving plant belong to different company code then use document type NB.
difference : IF the company need billing document for stock transfer use NB document.
else use UB document for the stock transfer .
regards
murali -
Differnce between getCurrentRow() and firrst() method
Hi
what is the differnce in vo.getCurrentRow() and vo.first().
I have executed one view which returns only one row.When i use vo.getCurrentRow() I get null but vo.first() gives the row.
What the reason can be???
Naveenwhat is the differnce in vo.getCurrentRow() and vo.first().
As the name suggests getCurrentRow, gives the row at which Vo pointer is at that moment of time, while getFirstRow, will always give u the first row.I have executed one view which returns only one row.When i use vo.getCurrentRow() I get null but vo.first() gives the row.
When u execute the VO query , your VO pointer is just above the first row, so points to no row, this is very similar, to resultset in jdbc, while when u do vo.first(), pointer gives the first row.I hope this is clear.
--Mukul
Maybe you are looking for
-
Help with starting raid on the k9a2 platnium
ok well i just got a k9a2 platnium specs- amd 9950 BE edition 4gb of 800mhz ddr2 cas 3 2x 80 gb hard drives 1x 640gb hard drive ati hd 4870 k9a2 platnium 750 watt corsair psu ok. i finished my computer. and i wanted to raid the two 80's. but for some
-
Will Horizon 2 Battery work in Horizon 1?
I would love to buy a new Horizon 2 battery (4 hrs) to replace my Horizon 1 battery (2 hours). If anyone has a Horizon 2 can you please post a picture of the batterry, hopefully they are compatable.
-
Calling a stored procedures and using its output parameters in a report
Hi,, I have a procedure defined in a package on the database. This procedure returns a number of output parameters. How do I call this procedure and use the output parameters in my report ? Thanks, Mark
-
Use DVI PC with thunderbolt iMac (target display)
Hello everybody, I'm looking forward to buy the amazing new iMac. My concern is that I use also a PC (it's my companie's choice) and I would like to use it with my iMac as a second display. I found articles on the web that indicate target display onl
-
I have various images inside an .indd file I used the rectangle frame tool , sized then placed images inside. I now need to have captions ( text )underneath the images within the rectangled box. I can't seem to get the text in there which tells me th