Type pool SLIS is used in ALV as all related data types are defined in type pool
FIELD TYPE DESCRIPTION Program CHAR(8) Program name of
Synchronous Database update. During processing, no transaction is started until the previous transaction has been written to the database. No batch input processing log
Detailed Log will be generated for all the sessions
While execution it starts from the first.
While executing it won’t start from the first. It will start from the place where it ends with error.
Faster than session method Not as fast as call transaction method
Write the BDCDATA table structure. BDC table structure
FIELD TYPE DESCRIPTION Program CHAR(8) Program name of transaction
DynPro CHAR(4) Screen number of transaction
DynBegin CHAR(1) new screen
Fnam CHAR(35) Name of database field from screen
Fval CHAR(80) Value to submit to field Write the BDC table structure.
BDC table structure
FIELD TYPE DESCRIPTION Program CHAR(8) Program name of transaction
DynPro CHAR(4) Screen number of transaction
DynBegin CHAR(1) Indicator for new screen Fnam CHAR(35) Name of database field from screen
Fval CHAR(80) Value to submit to field What is Dataset and how you use it?
ABAP/4 provides three statements for handling files: The OPEN DATASET statement opens a file.
The CLOSE DATASET statement closes a file. The DELETE DATASET statement deletes a file.
To open a file for read access, use the FOR INPUT option of the OPEN DATASET statement
To open a file for write access, use the FOR OUTPUT option of the OPEN DATASET statement
To open a file for appending data to the file, use the FOR APPENDING option of the OPEN DATASET statement
To process a file in binary mode, use the IN BINARY MODE option of the OPEN DATASET statement
To process a file in text mode, use the IN TEXT MODE option of the OPEN DATASET statement
To open a file at a specific position, use the AT POSITION option of the OPEN DATASET statement
When you work with the operating systems UNIX or WINDOWS NT, you can send an operating system command with the statement OPEN DATASET. To do so, use the option FILTER
To receive the operating system message after trying to open a file, use the MESSAGE option of the OPEN DATASET statement
To close a file on the application server, use the CLOSE DATASET statement To delete a file on the application server, use the DELETE DATASET
statement
To write data to a file on the application server, use the TRANSFER statement To read data from a file on the application server, use the READ DATASET statement
What is BDC_OKCODE ?
The command field is identified by a special name in batch input called BDC_OKCODE. This name is constant and always identifies the command field.
How do you save data in BDC tables ?
The data in BDC tables is saved by using the field name ‘BDC_OKCODE’ and field value of ‘/11’
40. Difference b/w synchronous update and asynchronous update? Synchronous update: is used to no transaction is stored until the previous transaction has been written into the sap database.
Asynchronous: is used to the program is need not wait for the previous transaction. Any kind of transaction is stored into the database.
How you trap errors in call Transaction?
Errors while updating the database using call transaction technique are trapped using a structure bdcmsgcall, whose field msgtyp become ‘e’ when an error record is encountered. Those records are formatted using
format_message function call in the desired format and stored in an internal table for listing of all error records in one shot.
38. Difference between BDC and Bapi?
BDC stands for Batch Data Communication, Through BDC you are going to update screens.
BAPI stands for Business Application Programming Interface. Through bapi you are going to update Data Base Tables directly.
Whenever screen of a particular transaction changes, you need to redo the work in case of BDC.
Whereas in case of BAPI SAP will take care as it will update the Database Tables Directly.
BAPI is directly updated the database instead BDC run through the screen flow.
So BAPI can't handle all the flow logic checking and enhancement put by programmer to facilitate the user requirement.
BAPI is a higher end usage for transferring the data from SAP to non-SAP and vice-versa. for ex: if we are using VB application, where in that we want to connect to SAP and retrieve the data, and then change and update the data in SAP for that purpose we can use that.
There is one more advantage using BAPI instead of BDC. When we go for up gradation, there might be possibility to change the screen elements for transactions depending on the requirement.
In that case, our BDC program may or may not work (depending on the screen changes they have made).
BAPI is used only when it is available for the particular transaction like Delivery Sales order. but BDC can be used for any transaction which have screen and fields.
bapi supports upgradation
What need to be taken care while handling database transaction in BAPI ?
• A transaction is completed either using a COMMIT WORK command or a ROLLBACK command. A BAPI transaction must be ended by calling the BAPIs BapiService.TransactionCommit() or BapiService.TransactionRollback().
• The call of a BAPI must not trigger further LUWs that are independent of the BAPI. For this reason BAPIs must not contain the following commands:
CALL TRANSACTION SUBMIT REPORT
SUBMIT REPORT AND RETURN
What is BOR (Business Object Repository) ?
• The Business Object Repository (BOR) is the central access point for the SAP business object types and their BAPIs. The BOR contains all the relevant information on the SAP business object types, their key fields, and their BAPI methods that are needed to integrate the correct object type definitions and BAPI calls in an application program. This makes the integration of
middleware (such as the DCOM Connector, ActiveX Controls, CORBA Gateway, and so on) possible.
• Creates instances of SAP business objects. The runtime environment of the BOR receives requests to create runtime objects from client applications and creates the appropriate object instances.
What is SAP Business Objects ?
• A business object type, which represents of a business entity in the SAP R/3 System, encompasses both the functionality (in the form of methods) and the data (in the form of attributes) of this entity. The implementation details of the business object type are hidden from the user. The business object type is accessed through defined functions (methods). This is referred to as encapsulation.
• Business object types form the point of entry to the data and the
functionality of the SAP R/3 System. At the business object type level, both non-SAP systems and the various SAP business components can
communicate with each other.
• The business object type SalesOrder represents a customer’s request to the company to supply a particular quantity of material at a certain point in time or to perform services at a certain point in time. A specific sales order is identified by a sales document number. The business object type contains all the necessary information for a sales order: sold-to party, sales organization, document date, net value of the order, and currency of the sales and
distribution document.
41. Tell any 2 standard Bapi function modules used for uploading sales order data?
1.
BAPI_SALESORDER_CREATEFROMDAT22.
Bapi_salesorder_getstatus3. BAPI_CUSTOMER_CREATEFROMDATA
4. BAPI_PROJECT_MAINTAIN 5. BAPI_COMPANYCODE_GETLIST 6. BAPI_COMPANYCODE_GETDETAIL 7. BAPI_CUSTOMER_GETDETAIL2 8. BAPI_PO_CREATE 9 BAPI_PO_getdetail 10. BAPI_MATERIAL_GET_DETAIL 42. Difference b/w bapi and fm?BAPI is a remote enabled function module i.e. it can be accessed from anywhere and from any system, where as a normal function module can't. * BAPI perform accurate validation checks,
Each BapiObject has Interface, Key Fields, Attributes, Methods and Events. Bapi Function Modules can be attached to these Bapi objects.
Function module has a single bound functionality While a BAPI object can contain many functionalities.