Skip to main content

YCLASSICAL_JOINING

*&---------------------------------------------------------------------* *& Report  YCLASSICAL_JOINING *& *&---------------------------------------------------------------------* *& *& *&---------------------------------------------------------------------* REPORT   yclassical_joining  NO   STANDARD   PAGE  HEADING                               LINE - SIZE   110                               LINE - COUNT   255                               MESSAGE - ID  zsan. ** T Y P E    D E C L A R A T I O N ** TYPES  :  BEGIN   OF  ty_mara,          matnr  TYPE  matnr,          ernam  TYPE  ernam,          pstat  TYPE  pstat_d,          END   OF  ty_mara,          BEGIN   OF  ty_makt,          matnr  TYPE  matnr,          spras  TYPE  spras,          maktx  TYPE  maktx,          END   OF  ty_makt,          BEGIN   OF  ty_final,          matnr  TYPE  matnr,          ernam  TYPE  ernam,          pstat  TYPE  pstat_d,          maktx  TY

Difference Between BAPI and RFC Function Module in SAP

Difference Between BAPI and RFC Function Module in SAP
From this tutorial ,we will learn what is the difference BAPI and RFC in SAP?BAPI and RFC definitions.
IBAPIs are standardized programming interfaces (methods) enabling external applications to access business processes and data in the R/3 System.
BAPIs provide stable and standardized methods to achieve seamless integration between the R/3 System and external applications, legacy systems and add-ons.
BAPIs are defined in the BOR(Business object repository) as methods of SAP business object types that carry out specific business functions.
BAPIs are carried out as RFC-enabled characteristic modules and are created within the Function Builder of the ABAP Workbench.
The most critical difference btwn BAPI and FM is that BAPI can be wrapped in Business objects whereas RFC cant.
The following standardized BAPIs are provided:
Reading times of SAP commercial enterprise objects
GetList ( ) With the BAPI GetList you could select a range of object key values, as an example, organization codes and material numbers.
The BAPI GetList() is a class method.
GetDetail() With the BAPI GetDetail() the details of an example of a enterprise item kind are retrieved and back to the calling software. The instance is identified via its key. The BAPI GetDetail() is an instance approach. BAPIs which could create, trade or delete times of a commercial enterprise object type
The following BAPIs of the equal object type must be programmed so that they can be called several times within one transaction. For example, if, after income order 1 has been created, a 2nd sales order 2 is created inside the same transaction, the second one BAPI name ought to not affect the consistency of the sales order 2. After completing the transaction with a COMMIT WORK, each the orders are saved consistently in the database.
Delete( ) and Undelete( ) The BAPI Delete() deletes an example of an SAP business item type from the database or sets a deletion flag.
The BAPI Undelete() eliminates a deletion flag. These BAPIs are example methods.
Cancel ( ) Unlike the BAPI Delete(), the BAPI Cancel() cancels an example of a enterprise object type. The instance to be cancelled stays in the database and an extra instance is created and that is the only that is sincerely canceled. The Cancel() BAPI is an instance technique.
Create( ) and CreateFromData! ( )
The BAPIs Create() and CreateFromData() create an example of an SAP commercial enterprise object kind, for example, a purchase order. These BAPIs are class techniques.
Change( )
The BAPI Change() adjustments an present instance of an SAP enterprise object kind, for example, a purchase order. The BAPI Change () is an instance approach.
Add<subobject> ( ) and Remove<subobject> ( ) The BAPI Add<subobject> adds a subobject to an existing item inst! Ance and the BAPI and Remove<subobject> removes a subobject from an object instance. These BAPIs are example strategies.
BAPI are RFC enabled characteristic modules. The difference among RFc and BAPI are commercial enterprise objects. You create business items and people are then registered in your BOR (Business Object Repository) which may be accessed outdoor the SAP gadget through the usage of a few other applications (Non-SAP) which include VB or JAVA. In this example u best specify the commercial enterprise item and its approach from external gadget in BAPI there is no direct machine name. While RFC are direct gadget name Some BAPIs provide simple capabilities and may be used for most SAP commercial enterprise object types. These BAPIs need to be applied the equal for all business object sorts. Standardized BAPIs are easier to apply and prevent customers having to deal with a number of exceptional BAPIs. Whenever viable, a standardized BAPI must be used in choice to an character BAPI.
RFC
A remote function call is a call to a function module running in a system different from the caller's. The remote function can also be called from within the same system (as a remote call).
RFC consists of two interfaces : A calling interface for ABAP Programs and a calling interface for Non-SAP programs.
The RFC Interface takes care of :-
- Converting all parameter data to the representation needed in the remote system
Calling the communication routines needed to talk to the remote system.
Handling communications errors, and notifying the caller, if desired ( using EXCEPTIONS paramater of the CALL FUNCTION).
End

Comments

Popular posts from this blog

How to Create SAP ABAP Query Using SQ01 Step by Step Guide

How to Create SAP ABAP Query Using SQ01 Step by Step. You can create ABAP query objects ,if they are not exist in the SAP system. You can create SAP query without  ABAP programming knowledge. ABAP Query provides users with a variety of ways to define and create different types of  reports , such as  Basic Lists ,  Stats , and  Sorted Lists . ABAP query consists of four elements: Queries InfoSets Groups Translation query Queries The query component is used by end users for Queries. You can create queries, change and queries executed. Transaction  SQ01. Trnslation component / QUERY Many texts to define queries, InfoSets and user groups are generated. These texts are displayed in the language we choose to access the SAP system. We can compare the text or languages ​​that use this component. InfoSets InfoSets are the views of the Special Data Sources. An InfoSet Describes the fields of a data source that can be reported in the query. An InfoSet can be assig

BADI in SAP ABAP Step by Step

BADI in SAP ABAP Step by Step BAdI Acronym of Business Add Ins As a customer outsider, it helps BAdI to improve SAP functionality. Why is BADI? Unlike previous improvement methods, BADI continues the approach aimed at re-use objectives. BADI can be used in a number of times that these standard evaluation techniques can only be used once. For example, if you are upgrading a custom project, you can not map the extension on other custom projects. In order to overcome this disadvantage, SAP provided a new evaluation technique called BADI. Code of transaction for BADI definition: SE18 When you create a BAdI definition, you create a class interface automatically and you can define the methods in the interface. The application of the methods can be made in SE19 transactions. When created BAD, they are generated automatically: An interface with 'IF_EX_' is inserted between the first and second characters of the BAdi name Class classified as 'CL_EX_' inserted betwee

BDC Recording in SAP ABAP

BDC Recording in SAP ABAP Here ,I explained The Steps to record any  Transaction (Example: VA01) to create BDC(Batch Data Communication) Program. Step 1  Execute transaction  SHDB  . Step 2  Enter  name  for recording  Step 3  Enter  transaction  to be executed Step 4  The transaction will now be executed, simply enter the values in the screen fields which you want to record.  Step 5  Once you have finished the recording and selected the  save  button or exit the transaction you  Creating an ABAP program Using a BDC recording   Go to SHDB Transaction Code and Click on New Recording. Give the Record name and Transaction code and click on Start New Recording Button. Now enter the Bank country and Key Now enter the Bank name ,City ,country and street.  Now Save the Recording . Now select the created record and click on Program. Now give the program title and select radio button transfer from recording. Now give the program title and click on