Bdc questions asked in interv

Hi all
pls clarify doughts on below.
1. what is meant by synchronous and asynchronous ?  how can u capture errors while using call transaction in both synchronous and asynchronous.
pls tell the code.
2. while large amount of data is coming in  a file  , i want to split the  some amount of data into number of sessions( it may be 6 or 7 sessions  ) with same name of session  . how can we do this .

Hi Nagendra,
                  In the “CALL TRANSACTION USING” statement, you can specify the update mode as synchronous or asynchronous.  To restate the difference:
Synchronous updating indicates that an update is completed for the transaction before processing returns to the “calling” program.
Asynchronous updating indicates that processing returns to the “calling” program immediately after the transaction is completed, even before the update is completed.
The difference in these update modes creates a trade-off between the execution speed and the meaning of the return code.
With respect to the execution speed:
Synchronous updating is slower than asynchronous updating because processing does not return to the “calling” program until the update is complete. 
Remember that the update mode when processing batch input sessions is always synchronous.
With respect to the meaning of the return code:
The return code (SY-SUBRC) after synchronous updating indicates the success or failure of the actual update.  The return code after asynchronous updating only indicates the success or failure of the transaction, not the update.
Starting with the 3.1 release it is possible to specify the update mode also when we create a BDC session via a BDC program by setting the POST_LOCAL parameter equal to ‘X’ which would then set the update to asynchronous. 
This is synchronous :
DO.
     PERFORM FILL_BDC_TAB.
     CALL TRANSACTION ‘FK02’
          USING          BDC_TAB
          MODE          ‘N’
          UPDATE          ‘S’.
     IF SY-SUBRC <> 0.
          WRITE: / ‘Error’.
     ENDIF.
ENDDO.
With synchronous updating, we can check SY-SUBRC to determine the success of the transaction and the actual update to the database.
This is asynchronous ::
DO.
     PERFORM FILL_BDC_TAB.
     CALL TRANSACTION ‘FK02’
          USING          BDC_TAB
          MODE          ‘N’
          UPDATE          ‘A’.
     IF SY-SUBRC <> 0.
          WRITE: / ‘Transaction error’.
     ENDIF.
ENDDO.
With asynchronous updating, we can check SY-SUBRC to determine the success of the transaction only, not the actual update to the database
Error Handling :
With the “CALL TRANSACTION USING” statement (and the “CALL DIALOG” statement), errors are not handled automatically by the system.  Therefore, you must handle these errors in the batch input program.
After a “CALL TRANSACTION USING” statement (or a “CALL DIALOG” statement), the value of SY-SUBRC indicates the success or failure  of the transaction:
If SY-SUBRC is zero, the transaction (or dialog module) was successful.
If SY-SUBRC is not zero, the transaction (or dialog module) was  not successful.
You can handle an error in many ways:
Write an error report.
Send the record(s) in error to an error file.
Create a batch input session with the record(s) in error.
This list of error handling methods is not complete.  The exact method chosen will depend on your specific requirements.  Also, these methods can be combined (i.e., you can create an error report and send the records in error to an error file).
For ur second query read this.. It may be helpful..
The “BDC_INSERT” function module inserts transaction data into a batch  input session.
The exporting parameters are:
Tcode (required) - The transaction code that is to be executed.  In other words, the information in the BDC table refers to this transaction.
POST_LOCAL - if you set this parameter to ‘X’ the update will run in asynchronous mode instead of the default synchronous one (for the differences between the two update types see the chapter on CALL TRANSACTION)
The only tables parameter is:
Dynprotab (required) - The BDC table with the transaction data.
The “BDC_INSERT” function module is “called” for each transaction entered into the batch input session.
In our simple example where we update one vendor, we will only “call” this function module once.
In a more realistic example where we will read multiple records from a sequential file, we will “call” this function module for each record.
A batch input session can include data for different transactions.  The “TCODE” parameter indicates the appropriate transaction code.  The BDC table contents must mimic the transaction code specified or an error will occur when the batch input session is processed.
For example, if you read vendor information from a sequential file, you will use the “Change Vendor” transaction (“FK02”) if the vendor already exists or the “Create Vendor” transaction (“FK01”) if the vendor does not exist.  The BDC table for each of these transactions will be different because different screens are encountered and different fields must be filled.
Post local is a new, 4.0 parameter in the BDC_INSERT function module.
Reward Points if u find helpful.
Regards,
Rajesh

Similar Messages

  • I have some problem when I want to download app in iTunes some security question ask me about my visa when I right my visa number I got an errors and on top of the page told me go to iTunes support I do these things and now what should I do

    I have some problem when I want to download app in iTunes some security question ask me about my visa when I right my visa number I got an errors and on top of the page told me go to iTunes support I do these things and now what should I do

    Most of the people on these forums, including myself, are fellow users - you're not talking to iTunes Support here.
    You can contact iTunes Support via this link : http://www.apple.com/support/itunes/contact/ - click on Contact iTunes Store Support on the right-hand side of the page, then Purchases, Billing & Redemption

  • I've just bought an ipod touch. I cannot get beyond the question asking me for a network name. I don't have a mobile telephone which I think this question is referring to. All I want from an ipod is to listen to music. What should I do?

    I've just bought an ipod touch but I cannot get beyond the question asking me for a network name. I don't have a mobile telephone which I think this question is referring to. All I want from an ipod is to listen to music. What should I do?

    You have to activate a new iPod by either setting it up via wifi network that has an internet connection on to connect to a computer that has iTunes and an internet connection.
    You can go to an Apple store or or to a friend's house if necessary

  • I've never used acrobat. I've attempted to contact billing/payment through the Adobe site, but answering questions asked, I'm cycled to the same pages. I need to chat, email, or contact billing

    I've never used acrobat. I've attempted to contact billing/payment through the Adobe site, but answering questions asked, I'm cycled to the same pages. I need to chat, email, or contact billing

    You seem to have asked your question twice. Answred at I've never used acrobat. I've attempted to contact billing/payment through the Adobe site, but answering questions asked, I'm cycled to the same pages. I need to chat, email, or contact billing

  • I forget the secret answer of questions asked by account. I have also updated by account wiht alternative email (resque) but i am not getting any email from Apple. please help.

    I forget the secret answer of questions asked by account.
    I have also updated by account wiht alternative email (resque) but i am not getting any email from Apple for the restoreing my secret Ques Answer
    please help.

    The Best Alternatives for Security Questions and Rescue Mail
        a. Send Apple an email request at: Apple - Support - iTunes Store - Contact Us.
        b. Call Apple Support in your country: Customer Service: Contact Apple support.
        c. Rescue email address and how to reset Apple ID security questions.

  • Hello everyone I have a problem with the app store as secret questions asks me to download the application, the problem is that I do not remember the answers as I do?? thank you very much to all

    Hello everyone I have a problem with the app store as secret questions asks me to download the application, the problem is that I do not remember the answers as I do?? thank you very much to all

    Hello andreabn90
    If you can't remember your security questions go to  Express Lane.
    select iTunes from the list, then iTunes store.        On the next screen select account Management.          There, select iTunes store account security and write that you would like to reset your security questions and / or answers.
    You should get an eMail reply over the next 24 hours.

  • TS2755 why have we deleted all saved messages and the iphone 4s sitll says 6GB is devoted to messages. I have seen this question asked numerous times but Apple seems to be ignoring it.

    Can't update the Iphone operating system because 6.8 GB is devoted to messages despite the fact that all messages have been deleted.  Did a reset, back up and restore, still 6.8 GB allocated to messages.
    The local Verizon store, which is a company store, just said to back up and restore with itunes, but that didn't work.
    I have seen this question asked on support community blogs and various people have suggested different solutions, some very technical that involve changing settings on the backups saved on Itues files on your PC and lots of posts from people saying it worked for me, but many others saying no, that didnn't work.  
    It seem utterly irresponsible for Apple not to publish a fix that actually works.  With what you have to pay for these phones, it's ridiculous.

    Have yo looked here:
    https://discussions.apple.com/thread/5350408

  • How to forcibly close tab, no question asked

    I was looking for images of various PDAs on Google. One of the images obviously resided on a sketchy site, since I got a popup window saying that a I had a virus (or somesuch) and that I should scan my computer. I encountered a few windows in my tale of woe, so I can't recall whether this first one was an actual Windows window or one of those windows that are part of the webpage. When I tried to close the tab, I got two popups (I think they were real Windows windows). One asked for permission to download and exe file while another said that the web page wanted me to confirm that I actually wanted to navigate away from the page. The latter, I've seen before; the former, well that's obviously malware. However, I wasn't confident about any windows anymore. What if I clicked on the Cancel for downloading the exe, but it was a phony Cancel that actually downloaded the exe? What about the confirmation to navigate away, is there a way for malware designers to fake such a window so that if I confirm, it will actually do something else?
    And what if the answers to both were "no" as far as anyone knows at present, but it is theoretically possible for the answer to be "yes" (which means that it will likely happen at some undetermined time in future, given the resourcefulness of people)? Because of this last possibilty, I figure that best possible way to close such a tab is for a browser to allow the user to tyranically close a tab without any questions or confirmations. I don't want to the firefox window because I have other tabs that want to retain. (I'm not even sure it would been allowed to go ahead in the presence of the popup windows). I don't quite recall, but I might have killed the firefox process in the task manager, but if I restart firefox and restore tabs, the bad tab will also be restored.
    So is there a way to forcibly close a tab, no questions asked?

    Set the Integer pref browser.sessionstore.max_resumed_crashes to 0 on the about:config page to get the about:sessionrestore page immediately with the first restart after a crash has occurred or the Task Manager was used to close Firefox.
    * http://kb.mozillazine.org/browser.sessionstore.max_resumed_crashes
    That will allow you to deselect the tab(s) that you do not want to reopen, but will allow to reopen other tabs.
    See:
    * http://kb.mozillazine.org/Session_Restore#Restoring_a_session_after_a_crash
    * http://kb.mozillazine.org/Browser.sessionstore.max_resumed_crashes
    You can add this line to user.js to set that pref.
    *http://kb.mozillazine.org/user.js_file
    <pre><nowiki>user_pref("browser.sessionstore.max_resumed_crashes", 0);</nowiki></pre>

  • Where can I find the forum premiere elements? and how to find my own questions asked return?

    waar vind ik het premiere elements forum en hoe vind ik mijn eigen gestelde vragen terug?
    where can I find the forum premiere elements? and how to find my own questions asked return?

    arkitsa wrote:
    thank you 99jon, but still difficult to find your own questions back.
    Click on this:
    then this:
    and finally this:
    And your posts will be listed.

  • HT1920 forgot the answer to question: asks first job and favorite car

    forgot the answer to question: asks first job and favorite car

    You need to ask Apple to reset your security questions; ways of contacting them include clicking here and picking a method for your country, phoning AppleCare and asking for the Account Security team, and filling out and submitting this form.
    They wouldn't be security questions if they could be bypassed without Apple verifying your identity.
    (102965)

  • I forgot my security answers, is there somwhere i can go and get different questions asked?

    i forgot my security answers, is there somwhere i can go and get different questions asked?

    Security questions:
    https://discussions.apple.com/docs/DOC-4551
    http://support.apple.com/kb/HT5312
    If you don’t know your security questions, phone Apple (using the number listed here:  http://support.apple.com/kb/HE57  ) and ask for the Account Security Team.
    About 2-step verification of your Apple ID:
    http://support.apple.com/kb/ht5570
    This is also useful:
    http://www.macworld.co.uk/ipad-iphone/news/?newsid=3463233&olo=email

  • Some BDC question

    sir, plz help me to find out answer of the following question .
    1.You are running a report. It is taking long time for
    execution. What steps will you do to reduce the
    execution time.
    2.After running a BDC program in background, next
    day morning when you see the results, few records
    are not updated(error records). What will you do
    then?
    3.You are given functional specs for a BDC program
    and you need to decide whether to write a method
    call transaction or a session. How u will decide?
    4.What is the difference between report and script?

    HI
    1.You are running a report. It is taking long time for
    execution. What steps will you do to reduce the
    execution time.
    first find out the where it is taking time by going to into the debuging mode , here you will know at what step it is taking time , if it is a standard program then ask your basisi people to reduce the parameter load to increase the xecutuion time , if it is a z program then you can change the code where that taking time
    2.After running a BDC program in background, next
    day morning when you see the results, few records
    are not updated(error records). What will you do
    then?
    you need to update that eroors again
    3.You are given functional specs for a BDC program
    and you need to decide whether to write a method
    call transaction or a session. How u will decide?
    If any error occurs in a call transaction method, the user can either remove it at the same time (mode 'E') else, that record is discarded and all other records are updated in the database..
    However, session method does not update the database till the session is completed successfully.. It can be rescheduled after removing the error..
    However we can not reschedule the call transaction.. call transaction fast as compared to session method..
    In session method we can pass data to multiple transactions.. in call transaction.. only to one..
    I came across a requirement that no record should be updated if there is even a single error record.. in that case i used session method..
    online process used for call transcation.
    back ground job run used for session.
    4.What is the difference between report and script?
    both are used display output in a list but the main diffrence is output devise is there in script

  • BDC Questions

    Hi
    Can you give answers for these questions?
    1)What are the transactions we should use in BDC? How do we use it?
    2)How would you use BDC program to transfer material master record using MM01 transaction? Give me steps.
    3)Could we use ME21N transaction, and XK01 transaction, either which one of the transaction, or could we use both the transactions for creating purchase information.
    4)How can we use XD02 transaction to change the customer data for updating KNA1 table? Give the steps.
    5)How the transaction ME21N is used for to upload the purchase order in BDC?
    6)How many transaction we can used in BDC at a time?
    7)How the data get updated in BDC using transaction.
    8)Why BAPI need then BDC?
    Thanks
    Answers will be rewarded

    Hi,
    BDC:
    Batch Data Communication (BDC) is the process of transferring data from one SAP System to another SAP system or from a non-SAP system to SAP System.
    Features :
    BDC is an automatic procedure.
    This method is used to transfer large amount of data that is available in electronic medium.
    BDC can be used primarily when installing the SAP system and when transferring data from a legacy system (external system).
    BDC uses normal transaction codes to transfer data.
    Types of BDC :
    CLASSICAL BATCH INPUT (Session Method)
    CALL TRANSACTION
    BATCH INPUT METHOD:
    This method is also called as ‘CLASSICAL METHOD’.
    Features:
    Asynchronous processing.
    Synchronous Processing in database update.
    Transfer data for more than one transaction.
    Batch input processing log will be generated.
    During processing, no transaction is started until the previous transaction has been written to the database.
    CALL TRANSACTION METHOD :
    This is another method to transfer data from the legacy system.
    Features:
    Synchronous processing. The system performs a database commit immediately before and after the CALL TRANSACTION USING statement.
    Updating the database can be either synchronous or asynchronous. The program specifies the update type.
    Transfer data for a single transaction.
    Transfers data for a sequence of dialog screens.
    No batch input processing log is generated.
    For BDC:
    http://myweb.dal.ca/hchinni/sap/bdc_home.htm
    https://www.sdn.sap.com/irj/sdn/wiki?path=/display/home/bdc&
    http://www.sap-img.com/abap/learning-bdc-programming.htm
    http://www.sapdevelopment.co.uk/bdc/bdchome.htm
    http://www.sap-img.com/abap/difference-between-batch-input-and-call-transaction-in-bdc.htm
    http://help.sap.com/saphelp_47x200/helpdata/en/69/c250684ba111d189750000e8322d00/frameset.htm
    http://www.sapbrain.com/TUTORIALS/TECHNICAL/BDC_tutorial.html
    Check these link:
    http://www.sap-img.com/abap/difference-between-batch-input-and-call-transaction-in-bdc.htm
    http://www.sap-img.com/abap/question-about-bdc-program.htm
    http://www.itcserver.com/blog/2006/06/30/batch-input-vs-call-transaction/
    http://www.planetsap.com/bdc_main_page.htm
    call Transaction or session method ?
    reward if useful
    regards
    Anji

  • 2 questions: Asked below in details since I got an error saying to keep question 255 characters or less.

    1) I reverted back to Firefox 3.6.17 from 4.0.1 since the Garmin Communicator plugin is not compatible yet-and 3.6.17 is very slow but this plugin is important to me. Any idea when compatible? 2) I thought I would be able to use Safari (compatible with Garmin Communicator) after upgrading to Firefox 4.0.1, but I get an error since when it installed it apparently deleted this plugin, and prevents me from installing it while Firefox 4.0.1 is installed-is there anyway to get around this and use the plugin with Safari, while using Firefox 4.0.1 for everything else? Thanks!
    I think I provided the details, but following the prompt since the question hadn't been asked before. Please contact me if the questions don't make sense or you need more information.
    I would like to use Firefox 4, but also be able to run the plugin Garmin Communicator through Safari. Is there a way to do this? I tried to download the plugin after installing Firefox 4.0.1, but it wouldn't run and gave some 'plugin exception' error in Safari.
    My email is [email protected] My OS is Mac OS X, Version 10.6.7 and it running on the latest MacBook Pro 15".
    Thanks,
    Alan

    hi,
    Firstly, I suggest you could see the same error threads (http://social.msdn.microsoft.com/Forums/windowsazure/en-US/5cf817b3-1295-41d7-b156-ce7aa5e4d11e/502-web-server-received-an-invalid-response-while-acting-as-a-gateway-or-proxy-server?forum=windowsazurewebsitespreview
    ). And then, I recommend you could refer to this basic code sample(
    http://social.technet.microsoft.com/wiki/contents/articles/4027.wcf-soap-service-with-federated-authentication.aspx ). And I recommend you could download this code sample and try to use it(http://code.msdn.microsoft.com/Windows-Azure-AD-Access-0dcde385/sourcecode?fileId=71587&pathId=477793108
    Please try it.
    hope this helps.
    Will
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • Why do I never get an answer to any questions asked on this forum for years now? Why does Firefox Feedback not work? Why does Firefox Suggestion system not work? Why have I switched to Google Chrome (I can answer that last one).

    I keep asking questions about problems and see them posted in the "support" forum and usually with a note about how many other users have this problem. There are never any answers or replies even though some of the number for others with the problem are huge.
    As I say, I have only one answer to many questions, my last one, which is why have I switched to Google Chrome. I know the answer to that one.

    I so agree with what you say and am in exactly the same position - very sad. Was strong supporter of FF but will have to move elsewhere for my browser after many years with FF

Maybe you are looking for

  • New OSX 10.7 disadvantages 'paying' MobileMe members. Warning: with the use of Lion, MobileMe synchronization is no longer reliable!

    Today I received the following message from MobileMe advisor Caryn in a support chat: "MobileMe is actually not compatible with Lion yet which could be why you are having some issues. Since MobileMe is going away, it actually has not been designed fo

  • PC-Suite sync fails after Firmware upgrade of E65

    After firmware upgrade of E65 PC-Suite stops syncing Calendar & Contacts from outlook. No error messages, just "0 entries has been updated". - PC-Suite updated to 7.0.9.2 - Outlook 2003 - XP Prof. Any ideas? Solved! Go to Solution.

  • Radiogroups submitted to a report

    Hi, I'm new to apex, using Apex 4.1.1. I've created a report which contains two columns of dates and a radiogroup for each as follows: select apex_item.radiogroup(1,report1) "Radio 1" ,report1 ,apex_item.radiogroup(2,report2) "Radio 2" ,report2 from

  • Universal Region Code

    I had a question posed of me today: "Do you know if the DVD format is universal and is compatible with overseas DVD systems? I have purchased USA DVDs before only to find they don't work here in South Africa." I think that there are two issues at wor

  • Co code copy problem

    Hi, I copied 0001 co code to 555, i also copied INT chart of a/cs, now while changing the chart of a/c from INT to 111, it is showing error message "RESET COMPANY CODE DATA BEFORE CHANGING THE CHART OF A/CS" But after copy, i just changing the chart