Bdc Error Handling Call Transaction
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 bdc call transaction method step by step method?Thanks 5682Views Tagsnone (add) Topics: abap Re: Handling errors in BDC? Sailatha Nagasamudram Aug error handling in call transaction in abap 29, 2006 8:31 AM (in response to Vijay Shenoy) Currently Being Moderated Hi, In Session method, error log will be generated by
Error Handling In Bdc Session Method
the system with 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
Bdcmsgcoll
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) bdc in sap abap 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. Th
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 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 http://scn.sap.com/thread/205445 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 The SAP Development group is for the http://sap.ittoolbox.com/groups/technical-functional/sap-dev/fw-error-handling-in-bdc-182745 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 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 B
What is the function key values of BDC_OKCODE ie '/00' what this is for? How will we handle the errors in call transaction method? '/00' is generally http://www.erpgreat.com/abap/question-about-bdc-program.htm the BDC_OKCODE for the ENTER key. You don't need to know the list http://www.geekinterview.com/question_details/37416 of the BDC_OKCODE s. You go to the transaction SHDB. You can execute any transaction here. Then you can replay the execution of the trasaction afterwards. Select 'display all screens' mode. BDC_OKCODEs for each one functions you use is displayed on the screen. Now, regarding the error handling in call transaction. The BDCMSGCOLL does not error handling have the messages text. It has only the message type, number and message parameters. You have to read the message text. (recall that the database table T100 stores all the messages.) There are more than one method of doing this. Following is the psuedocode for one of the methods. LOOP for the internal table IT1 which has data value from flat file. call transcation using.... if SY-SUBRC <> error handling in 0. Read the dictionary table T100 FOR ALL ENTRIES in BDCMSGCOLL. (also use the condition T100-SPRAS = SY-LANGU (the log on language. This is because you need only the message texts in English if the user is logged in English language) IF message type is E , then, transfer the contents of this particular error record to file x. (TRANSFER......) ( Ignore all other messages. Only consider type 'E' messages. Ignore other types of messages.) (You can also store the message text from T100 and the error record in another internal table IT2) ..... .... ENDLOOP. Please note that the client might ask you for a file of records which could not be uploaded. Give him the file created in the above psuedocode. (most often you will have to do this). Otherwise just display the error messages and the error records in the internal table IT2 in the form of a list. Thats it. Alternatively, Instead of " Read the dictionary table T100 FOR ALL ENTRIES in BDCMSGCOLL." you can use the function module WRITE_MESSAGES to read the messages. Please refer to the function module for the list of parameters. Also refer FORMAT_MESSAGES function module. As, I said, there are more than
Management Accounting Operating System Operating System Android iOS Microsoft Coding Programming J2EE Languages Database Database Data Warehousing Oracle Applications Applications Clarify CRM Oracle Apps Peoplesoft Siebel Software Testing Testing Testing Tools Miscelleanous Helpdesk Mainframe Networking SAP R/3 Web Interview Coaching Career Counseling Job Interview Interview eBooks Accounting eBook C eBook Citrix eBook Job Interview eBook Career Advice Career Change Jobs Help Projects Requests Resume Help Training Advice Engineering Chemical Engineering Civil Engineering Electrical Engineering Electronics Engineering Micro Processor Mechanical Engineering By Company Ask Question Home Interview QuestionsSAP R 3BDC How to handle errors in CALL TRANSACTION BDC method without using bdcmsgcoll internal table? Interview Candidate Nov 4th, 2006 3 2921 BDC Answer First Prev Next Last Showing Answers 1 - 3 of 3 Answers sukanti Nov 9th, 2006 u can use funtion module WRITE_MESSAGES and FORMAT_MESSAGES to read the messeges in stead of BDCMSGCOLL.
Was this answer useful?Yes Reply DHANUNJAY Nov 9th, 2006 WE CAN USE SESSION METHOD LOGFILE IN CALL TRANSACTION.1. WE HAVE TO SEND ERROR RECORDS IN TO ONE INTERNAL TABLE .2. NEXT FOR THAT ITAB U CAN USE SESSION METHOD .3 WITH THIS U WILL GET SESSION METHOD LOG FILE IN CALL TRAN. Was this answer useful?Yes Reply prashant Nov 15th, 2006 format_messages Was this answer useful?Yes Reply Give your answer: If you think the above answer is not correct, Please select a reason and add your answer below. - Reason - Answer is wrong Spelling Mistakes Duplicate Answer Inappropriate Answer Other Answer Question Click here to Login / Register your free account Name: Email: Answer: Insert Code: Code Language: JCL COBOL ABAP ASP C C for Macs ColdFusion C++ C# CSS Delphi HTML Java Java 5 Javascript MySQL Objective C Oracle Pascal Perl PHP PL/SQL Python Rails Ruby SAS SQL T-SQL VisualBasic VB.NET XML Code: Send Reset Related Answered Questions Table name and trigger name Check manual entries in target table Handle rejects in transformer Write a query for split one column to multiple columns Load a date field value from sequencial file to databse table with out using transformer Which table will load first - fact or dimension table? SQ