Whats the meaning of Synchronous and Asynchronous Retrieval ?
whats the meaning of Synchronous and Asynchronous Retrieval ?
can you provide any example ?
// async
consumer.setMessageListener( someMessageListenerObject );
// asynchronously someMessageListenerObject will be notified as messages arrive
// sync
Message message = consumer.receive();
// now do something with message
James
http://logicblaze.com/
Similar Messages
-
Re : what is diffrent Between Synchronies and Asynchronies process
Hi ,
what is diffrent between Synchronies and Asynchronies process in session Method and call Transcation method pls give one Example...
Thanks
Arief .SSynchronus data processing is that in which the program calling the update task waits for the update work process to finish the update before it continues processing.
In Asynchronus update the callng program does not wait for update work process to finish the update and continues as normal.
A BDC done with sessions is always synchronus.
A BDC with call transaction is by default asynchronus
unless you define it explicitly as
call transaction 'XXXX' ...... update 'S'.
( If you donot define update option it is defaulted to "A" ).
The update method is of importance when one transaction locks data which may be required by a subsequent transaction . The subsequent transaction will fail if data is locked from previous one. An example would be you are creating sales order for same material in succession ( with asynchronus update ). Quite likely that some of transactions would fail due to material locked.
For large volume of data Call Transaction will be faster but you have no restart capability here. Suppose from 1000 transactions 100 fails . You will have to run the BDC program again exclusing the ones which wrere successful. However with session method you have the option to process the error transactions again in SM35 . So if you are sure that errors will not occur use call transaction else use session method. -
Meaning of synchronous and Asynchronous in BDC
Hi Guys,
1) What is a maning of synchronous and Asynchronous in BDC, what is a diffrence betwwen both?
2) Can you please provide ABAP OOPS real time question and answer?
Thanks
Jigarin simple,
Synchronous:
- COMMIT WORK AND WAIT:
-System waits until the database updation is completed.....then, system continues to execute after the piece.....if some thing wrong in updation, then, the rest piece do not executes!!
-here, we get sy-subrc return value, so, some times, we can write rest prog. based on this retun value, either sucess or failure, like in some scenarios, we write CALL TRANSACTION with 'S', other wise its normally, Asynchronous!!
- takes more time
-mostly, batch input
-example, say, there is Materail doc posting and associated accouting doc posting.....so, if material doc is successful, then only acc. doc will be get posted
Asynchronous:
-COMMIT WORK
-does not depend on the updation
-quick relatively
-mostly CALL TRANSACTION
- no return code
for further, pls. go thru SDN
thanq -
Difference between synchronous and asynchronous
Hi, i´m doing a t01 syncbo... what is the difference between synchronous and asynchronous?
What is better for syncbo t01, and for syncbo s01?
Thanks,Hi
There are two options available:
Synchronus in which the data is exchanged while the mobile is online. The mobile sends the messages to the middleware and gets the response there and then, while it is online.
ASynchronus in which the mobile sends the messages to the middleware and goes offline. The responses are calculated and stored in the outbox. When the mobile again comes online and syncs, it gets the response messages.
The choice depends actually on the type of the syncBO, like if there is an Order being created on the mobile and its approval (which will come from the backend) is needed, most of the time immediately. This SyncBO must be Synchronus.
The other data, to which response is not immediately needed can be made as Syncronus.
The choice has serious performance considerations, So it should be made wisely.
Please ask if you need more information.
Thanks
Ankur
(Award Points if the info is useful) -
hello gurus....
can u give the definitions for synchronous and asynchronous updates.....
i mean how u have to answer the definition when asked in an interview...
Thnaks
PavanHi Pavan,
Asynchronous Update The program does not wait for the work process to finish the update. Commit Work.
Synchronous Update The program wait for the work process to finish the update. Commit Work and Wait.
Asynchronous updating. In this mode, the called transaction does not wait for any updates it produces to be completed. It simply passes the updates to the SAP update service. Asynchronous processing therefore usually results in faster execution of your data transfer program.
Asynchronous processing is NOT recommended for processing any larger amount of data. This is because the called transaction receives no completion message from the update module in asynchronous updating. The calling data transfer program, in turn, cannot determine whether a called transaction ended with a successful update of the database or not.
If you use asynchronous updating, then you will need to use the update management facility (Transaction SM12) to check whether updates have been terminated abnormally during session processing. Error analysis and recovery is less convenient than with synchronous updating.
Synchronous updating. In this mode, the called transaction waits for any updates that it produces to be completed. Execution is slower than with asynchronous updating because called transactions wait for updating to be completed. However, the called transaction is able to return any update error message that occurs to your program. It is much easier for you to analyze and recover from errors.
DataBase Commit:
This statement will apply any outstanding database updates and wait until they have actually been put on the database before proceeding to the next statement.
An ordinary commit work will initiate the process to update the databases in a separate task and will press on in your abap.
COMMIT WORK: ( Asynchronous)
Your program does not wait for any acknowledgement. it just start executing the next statment after COMMIT WORK.
Reward if useful.
Thanks
Aneesh. -
Synchronous and Asynchronous updating in LIS
Dear experts
What is the difference between
Synchronous and Asynchronous updating in LIS ?
There are three radio buttons for ASYNCHRONOUS UPDATING [1],[2],[3]
What is the significanse of each of them?
Regards
SiddharthHi siddarth
Difference between synchronous update & asynchronous update
Synchronous update -Immediate start, i.e., when an event takes place that triggers an update
Asynchronous update - Delayed start, i.e., updating is slightly delayed after an event that triggers an update
Regards
Srinath -
What is a gateway proxy?? what are synchronous and asynchronous calls?
bapis are rfc enabled. but are there any other rfc's available in sap? what is a gateway proxy?? what are synchronous and asynchronous calls?
Hello:
Lets st art at the beginning.
There are NO documented viruses that affect a Mac running OS X - none (there are instances of Malware).
Gateway GEO-IP/BOTNET Alert
This is a Youtube video that explains what you have (I assume you installed it somehow) on your computer:
http://www.youtube.com/watch?v=JwRi2me2hSk
For openers, I would uninstall any A/V software you have put on your system. It is certainly possible that that junk has put some other stuff on your computer.
I'm also afraid my computer might have been hacked?
Highly unlikely.
Barry -
What is synchronous and asynchronous FM calls
Hi All,
Can you tell me that what is synchronous and asynchronous FM calls?
Full points will be rewarded for the answer of this simple question !!
Best Regards,
Chandan DubeyHi Chandan,
You can refer the below document for a good explanation.
https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/f078394a-4469-2910-c4bf-853c75674694
Thnaks,
Siva. -
Synchronous and asynchronous IO on the same file descriptor
Hi does any body knows about problems in combining synchronous and asynchronous IO on the same file descriptor? It appears that I may miss SIGIOs in that case.
I don't think there is any real easy way to do an insert. If writing to a file, I would use a FileWriter, a FileOutputStream, or a RandomAccessFile class. I don't know of any class that will automatically do an insert so you might have to write your own method that does this. This is pretty easy: use RandomAccessFile might be the best for most situations for doing this (ie, if you are inserting many times at different locations in the file). Just copy all the bytes from the point in the file you want to insert to the end of the file, and then write your bit, and then rewrite all the read bytes to the file again. Depending on how many times you are writing to the file and how big the file is, you may want to keep the file in memory at all times because writing to disk is extremely slowwww. If the file is huge, and you are inserting seldomly, then do what I said above. If the point of insertion is closer to the start of the file, then it might be a good idea to do the above but instead of copying the bytes from the point of insertion to the end of the file, copy the bytes from the start of the file to the point of insertion.
-
What is the meaning of "PSEUDO" and "NONE" in v$session table.
Hi
What is the meaning of "PSEUDO" and "NONE" in v$session table.
V$SESSION:
SERVER VARCHAR2(9) Server type (DEDICATED| SHARED| PSEUDO| NONE)
thanks
sivaPSEUDO is the server column's value of killed sessions, until they are cleaned up by PMON.
A dedicated server session will always have DEDICATED as server value, while a shared server session has SHARED when it's active, and NONE when it's inactive. -
What is the meaning of 'WE' and 'RE' in FI?
developing a report in FI
what is the meaning of 'WE' and 'RE' 'KP' 'SA' in FI terms?Hi
SA G/L account document
WE Goods receipt
RE Gross inv. receipt
KP Account maintenance
Regards
Shiva -
What is the mean of standard and HTML in report generation?
What is the mean of standard and HTML in report generation? I need your help.Thank you!
1110340020check these links for your query they will help you
http://www.ni.com/white-paper/13926/en/
http://www.ni.com/example/27568/en/ -
Synchronous and asynchronous communication
Hi all
i am very new to jms and java. I have the task of developing an application for communication for a global company. The application must support most if not all of the following features:
-synchronous messages
-Asynchronous ('offline') messages
-Authentication/identification
-Saving a log of all conversations
-Conference rooms
-Secure (encrypted) communication
-User information database (e.g. postal addresses, email addresses, -pictures, etc)
-Sophisticated GUI
-Resilience to network breakdown
-Multimedia messages (styled text, pictures, file attachments)
-Shared document editing
-Shared whiteboard facility
what can I use to develop this application...will JMS be able to do this??
thank youThis appears to be more like a user coomunication application. I would look for the architecture of commonly available instant messaging applications, such as MSN, Yahoo, Jabber.
I would think of JMS to be used for transmitting business messages, like stock quotes, etc. Creating a PTP connection or a Topic in a pub-susb message would be an over-kill for such a usage scenario. -
User exits-- also ---synchronous and asynchronous struc..
dear all
pls. let me know the basics of user exits. i have gone thro williams iam unable to follow. does it require abap knowledge. i sincerely request one and all (experts) to let me know about user exits. it seems very imp as per interviews.
also what is synchronous and asynchronous structures whats the difference. can anybody share knowledge on this.
thanks in advance
regardsDear Sekhar,
Please find the info regarding User-Exit's in the following links:
http://help.sap.com/saphelp_nw04/helpdata/en/bf/ec07a25db911d295ae0000e82de14a/frameset.htm
http://www.sap-img.com/abap/a-short-tutorial-on-user-exits.htm
Re: doubt on user exits
user exits and Badis
User exits is the enhancements provided by SAP
You can use them in transactions. Each transaction will have user exits.
If you want to use your own requirements by making your coding while the transaction is run you can use user exits.
For example if you want to run the MRP in MD02 specific to MRP controller you can user exit.
Please also refer the document below.
USEREXIT
Userxits allow us to add our own functionality to SAP standard program
without modifying it . These are implemented in the form of subroutines and hence are also known as FORM EXITs. The userexits are generally collected in includes and attached to the standard program by the SAP.
All Userexits start with the word USEREXIT_...
FORM USEREXIT_..
z..
ENDFORM.
The problem lies in finding the correct userexit and how to find it if one exists for the purpose. Once the correct userexit is found the necessary customer code is inserted in the customer include starting with the z.. in the form routine.
e.g. USEREXIT_SAVE_DOCUMENT_PREPARE
Certain application like SD still provide this form of enhancement using userexit but this practice is no longer being followed for newer extensions instead they are using EXITs which come bundeled in enhancement packages . Neverthiless existing USEREXITS will be supported by SAP an all the newer versions of SAP.
HOW TO FIND USEREXITS
Userexits can be found in number of ways:
1) To find userexits in SD module , goto object navigator(SE80) and select
development class from the list and enter VMOD in it. All of the userexits in SD are contained in the development class VMOD. Press enter and you will find all the includes which contain userexits in SD for different functions like PRICING, ORDER PROCESSING etc. Select the userexit according to the requirement and read the comment inserted in it and start coding .
Some examples of userexits in SD(SALES & DISTRIBUTION ) are:
1)ADDING OF NEW FIELDS IN PRICING
In Pricing in SD the fields on the basis of which pricing is done are derived from the FIELD CATALOG which is a structure KOMG .This structure is used to transfer transaction data to the pricing procedure in SD and is also known as communication structure.This structure KOMG consists of two tables KOMK for Header related fields and KOMP for item related fields. The fields which are not in either of the two tables KOMK and KOMP cannot be used in pricing .Sometimes a need arises when the pricing is to be based on some other criteria which is not present in the form of fields in either of the two tables. This problem can be solved by using USEREXITS which are provided for pricing in SD. Pricing takes place both when the SALES ORDER ( Transaction VA01) is created as well as when INVOICING ( Transaction VF01) is done.Hence SAP provides 2 userexits ,one for sales order processing which is
USEREXIT_PRICING_PREPARE_TKOMP or
USEREXIT_PRICING_PREPARE_TKOMK
Depending upon which table (KOMK or KOMP) the new fields were inserted we use either of the above two userexits.These userexits are found in include MV45AFZZ of the standard SAP sales order creation program SAPMV45A.
In the case of userexit which will be called when invoicing is done ,these
are provided in the include RY60AFZZ which is in the standard SAP program SAPMV45A. The name of the userexits are same. i.e
USEREXIT_PRICING_PREPARE_TKOMP or
USEREXIT_PRICING_PREPARE_TKOMK
These userexits are used for passing the data from the communication structure to the pricing procedure, for this we have to fill the newely created field in the communication structure KOMG for this we fill the code in the above userexit using the MOVE statement after the data that has to be passed is taken from the database table by using the SELECT statement. The actual structure which is visible in these userexits and which is to be filled for that particular field is TKOMP or TKOMK.
Before the coding for these userexits is done ,it is necessary to create a new field in either of the two tables KOMK or KOMP .For this purpose includes are provided in each of them .
To create the field in header data(KOMK) the include provided is KOMKAZ
and to create the field in item data(KOMP) the include provided is KOMPAZ.
One possible example for the need of creating new fields can be e.g. Frieght to be based upon transportation zone ,for this no field is available in field catalog and hence it can be created in KOMK and then above userexits can be used to fill the transportation data to it.
2)The other method of finding userexit is to find the word USEREXIT in the
associated program of the transaction for which we want to determine userexit using SE38.
3)The other method of finding userexits is to find the include in case of SD/MM applications where the userexits are located ,this can be found in the SAP reference IMG generally in the subfolder under SYSTEM MODIFICATION.
Some other examples of userexits in SD are:
USEREXIT_NUMBER_RANGE
This userexit is used to assign a different internal document number to the
sales order(VA01) when it is created depending on some criteria like a different SALES ORGANIZAION(VKORG) .
USEREXIT_SAVE_DOCUMENT_PREPARE
This userexit is used to insert the ABAP code which will be called when
the document (sales order VA01) is just about to be saved.This userexit is used generally for custom checks on different fields , to display some information before the order will be saved or for making changes to certain fields before the sales order will be saved.
Exits & Enhancements
There are mainly six types of EXITs in sap which have been collected in the form of enhancement packages and attached to standard code in SAP.
These are different from USEREXIT in the way that they are implemented
in the form of FUNCTIONs while in USEREXITS we use form routines for their implementation. These are also sometimes known as function exits .
These start from the word EXIT_ followed by the program name and then followed by a three digit number.
e.g. EXIT_SAPMV45A_002
This exit is found in SD in enhancement V45A0002.
TYPES OF EXITS
1)MENU EXITS
2)FUNCTION EXITS
3)TABLE EXITS
4)SCREEN EXITS
5)KEYWORD EXITS
6)FIELD EXITS
We use SAP transactions CMOD and SMOD to manage exits. Before implementing an exit , it is required to create the project by using CMOD
selecting the enhancement e.g. V45A0002 and selecting the component
(one which fulfills our need) i.e the exit which will be implemented in SMOD and after coding has been done the project has to be activated.
An exit can be coded only once.
FUNCTION EXITS
These are used to add functionality through ABAP code . These start from the word EXIT_programname_NNN ending in a 3 digit number. No access code is required to implement any tupe of exit including function exits.
The function exits are called from the standard SAP program in the form
of ABAP statement
CALL CUSTOMER-FUNCTION 'NNN'
This is in contrast to USEREXITs where PERFORM statement is used to call
the required userexit.
To implement the FUNCTION EXITs first of all the project is created and a suitable enhancement package is selected and from its compnents the function exit to be implemented is selected and on double clicking it the exit code will appear in ABAP EDITOR(se38) where a Z include will be found and the customer code should be entered in this include.
e.g.
ADDING A DEFAULT SOLD-TO-PARTY in Sales Order Creation
To show a default sold-to-party in this field when the user creates a sales order (VA01) we can use a function exit .This function exit is located in enhancement no V45A0002 . Before we can choose the exit we have to create a project in CMOD after that enter V45A0002 in the enhancement field and click on the components . In the components you will see the exit EXIT_SAPMV45A_002 . This exit is used for our purpose.
Double clicking on this exit will takes us to function builder (SE37) . This
function exit has one exporting parameters and two importing parameters, we are interested in exporting parameter which is E_KUNNR of type KNA1-KUNNR i.e if we move the desired customer name to this structure(E_KUNNR) it will be shown in the field as the default value when we create the sales order. This function also contains a customer include ZXVVA04 . This include will be used to write our custom code .
Double clicking on this include and it will prompt us that this include does not exists do you want to create this object ,select yes and the include will be created .In this include we can write our own code that will fill the field E_KUNNR.
e.g. E_KUNNR = 301.
Activate the include and Activate the project. Now when ever the SALES ORDER will be created , sold-to-party field will come up with a predefined customer .
FIELD EXITS
The field exits are managed,created,activated through program RSMODPRF. The field exit is associated with a data element existing in ABAP dictionary and hence to the screen field using that data element.
The format of field exit is :
FIELD_EXIT_dataelement_A-Z or 0-9
If a particular screen and program name is not specified than the field exit will effect all the screens containing that data element.
The function module associated with field exit shows two parameters
INPUT and OUTPUT. Input parameter contains the data passed to the field exit when the field exit was invoked by the R/3 , We can write our own code to change the output parameter depending upon our requirements.
Before the field exit can have any effect the system profile parameter
ABAP/FIELDEXIT in all the application servers should be set to YES
ABAP/FIELDEXIT = YES.
Regards
Naveen. -
Synchronous and asynchronous transformations in SSIS
Hi Can someone pls tell, when and in what scenarios it is better to use synchronous and asynchronous transformations in SSIS. And what are the pros and cons of using transformations that falls under above mentioned category.
A good and well documented resource is available at Technet Library which will determine better about your concern. Please check this :
http://technet.microsoft.com/en-us/library/aa337074.aspx
Maybe you are looking for
-
Service Plan Simulation in CRM 5.0 SR1
Hello, When simulating a contract-based service plan, I am getting the error "CRM_LEASING_COPY103". This is strange as I am not working in LAM. The error text: "..You want to determine a pricing process for sales organization and distribution channe
-
Displaying Medium Text in Variable screen (WAD)
Hello Experts, When I run one of my reports in BEx, the input help for an infoobject shows key, Short Description and Medium Description. But the same report when I run in WEB it does not show the Medium Description but only the key and Short Descrip
-
How to open program developed using labview 8.2 in labview 7.1?
Dear friends, I need to open program developed by using labview 8.2 in labview 7.1.help me in this regard?
-
Photoshop CS5 will not let me open NEF files from my camera, I have download the file for my camera but still will not let we open the files I have down load a few now and its want let me open the files any help would be great thanks
-
CS2 can not be activated (discontinued?).
I have built a new 64bit computer and my legal Photoshop CS2 activation is not accepted either on-line or by automated phone (Obviously Adobe have discontinued it and subsequently locked me out). My dilemma is which Adobe Product should I purchase. T