Bdc Error Handling
Contents |
ABAP DevelopmentWhere is this place located?All Places ABAP Development 4 Replies Latest reply: Aug 29, 2006 8:48 AM by Vishal Tyagi Tweet Handling errors in BDC? Vijay Shenoy Aug 29, 2006 8:26 AM Currently Being Moderated HiHow do handle errors in Session and call Transaction method?Thanks 5685Views
Error Handling In Bdc Session Method
Tagsnone (add) Topics: abap Re: Handling errors in BDC? Sailatha Nagasamudram Aug 29, 2006 8:31 bdcmsgcoll AM (in response to Vijay Shenoy) Currently Being Moderated Hi, In Session method, error log will be generated by the system with
Bdc In Sap Abap
the details of the error & the description, In call transaction this needs to be done handled explicitely using the structure BDCMSGCOLL, you can declare an internal table to trap the messages with the type BDCMSGCOLL and use fm FORMAT_MESSAGE to get it in to an internal table,Refer the following statment,Call transaction 'TCode'using IT_BDCDATAmode A/N/Eupdate S/Amessages into IT_BDCMSGCOLL.Hope this helps,Rgds, Alert Moderator Like (0) Re: Handling errors in BDC? Jay Tripathy Aug 29, 2006 8:37 AM (in response to Vijay Shenoy) Currently Being Moderated higoodSession method. 1) synchronous processing. 2) can tranfer large amount of data. 3) processing is slower. 4) error log is created 5) data is not updated until session is processed. Call transaction. 1) asynchronous processing 2) can transfer small amount of data 3) processing is faster. 4) errors need to be handled explicitly 5) data is updated automatically Batch Data Communication (BDC) is the oldest batch interfacing technique that SAP provided since the early versions of R/3. BDC is not a typical integration tool, in the sense that, it can be only be used for uploading data into R/3 and so it is not bi-directional. BDC works on the principle of simulating user input for transactional screen, via an ABAP program. Typically the input comes in the form of a flat file. The ABAP program reads this file and formats the input data screen by screen into an internal table (BDCDATA). The transaction is then started using this internal table as the input and executed in the background. In Call Transaction, the transactions are triggered at the time of processing itself and so the ABAP program must do the error handling. It can also be used for real-time interfaces and custom error handling & logging features. Whereas in Batch Input Sessions, the ABAP program creates a session with all the transactional data, and this session can be viewed, scheduled and processed (using Transaction SM35) at a later time. The latter technique has a built-in error processing mechanism too. Batch Input (BI) progr
error handling is done by using the BDCMSGCOLL structure.The error messages are collected into an internal table for messages(say it_message) which is of type structure BDCMSGCOLL.Example : CALL TRANSACTION 'MM01' USING it_bdcdata MODE 'N' UPDATE 'S' http://scn.sap.com/thread/205445 MESSAGES INTO it_message.However, it_message here contains only the message id and message number values.So, we have to get the message out of it using the function http://saptechconcepts.weebly.com/home/how-to-do-error-handling-in-call-transaction-method-in-bdc module 'MESSAGE_TEXT_BUILD' or 'FORMAT_MESSAGE'.Example :LOOP AT it_message INTO wa_message WHERE msgtyp EQ 'E'.CALLFUNCTION'MESSAGE_TEXT_BUILD' EXPORTING MSGID = wa_message-msgid MSGNR= wa_message-msgnr *MSGV1='' *MSGV2='' *MSGV3='' *MSGV4=''IMPORTING MESSAGE_TEXT_OUTPUT= wa_textENDLOOP.Here, wa_text holds the actual message which we can append to an internal table for further use. 0 Comments Leave a Reply. Author Vamsi Bodda. Archives October 2014 September 2014 August 2014 July 2014 June 2014 May 2014 RSS Feed Categories All BDC Data Dictionary Enhancements Function Modules Generic ABAP OOPS SAP Query & LDB SAP R/3 Architecture Tips And Tricks Tricky Interview Q's Create a free website Powered by Create your own free website Start your own free website A surprisingly easy drag & drop site creator. Learn more. ✕
Technology and Trends Enterprise Architecture and EAI ERP Hardware IT Management and Strategy Java Knowledge Management Linux Networking Oracle PeopleSoft Project and Portfolio Management SAP SCM Security Siebel Storage UNIX Visual Basic Web Design and Development Windows < Back CHOOSE http://sap.ittoolbox.com/groups/technical-functional/sap-dev/fw-error-handling-in-bdc-182745 A DISCUSSION GROUP Research Directory TOPICS Database Hardware Networking SAP Security Web Design MEMBERS Paul_Pedant MarkDeVries DACREE Inside-ERP MacProTX VoIP_News Inside-CRM I_am_the_dragon PCMag maxwellarnold Michael Meyers-Jouan TerryCurran Chris_Day Andrew.S.Baker JoeTorre bracke Richard Locutus DukeGanote Ramnath.Awate Dennis Stevenson Craig Borysowich Nikki Klein AbhaiTripathi bluesguyAZ59 iudithm knowscognosdoi Clinton Jones mircea_luca Iqbalyk COMPANIES VAI SendGrid Apperian Panaya Inc. View All Topics View All Members View All Companies Toolbox for IT Topics SAP Groups Ask a New Question SAP Development error handling The SAP Development group is for the discussion of specific technical and functional issues that arise when utilizing Enterprise Development (ABAP, SAPScript, etc). Home | Invite Peers | More SAP Groups Your account is ready. You're now being signed in. Solve problems - It's Free Create your account in seconds E-mail address is taken If this is your account,sign in here Email address Username Between 5 and 30 characters. No spaces please The Profile Name is already bdc error handling in use Password Notify me of new activity in this group: Real Time Daily Never Keep me informed of the latest: White Papers Newsletter Jobs By clicking "Join Now", you agree to Toolbox for Technology terms of use, and have read and understand our privacy policy. FW: Error handling in BDC. Unknown User asked Dec 12, 2002 | Replies (2) > -----Original Message----- > From: Deshmukh Nikhil, IBM (New) > Sent: Thursday, December 12, 2002 11:34 AM > To: ABAP4, IBM > Subject: Error handling in BDC. > > > HI Everybody > > I have a small query regarding error handling in BDC. How are errors > handled in Call Transaction method ? When we give the Mode as " A" in Call > Transaction method, and when an error occurs during the execution of BDC, > how do we come to know that an error has occured ..does system create any > error log for that as in Batch Session Input method.. > > I just want to know in short how do we handle erors in BDC. > > Any comments or suggestions are most welcome. > Thanxs in advance > > Regards > Nikhil > Join this group Best Answer Updated html error Hi Nikhil, U can record all the message occurs during the BDc session. Define a internal table and include s