Skip to main content

Custom BAPI creation - Step-by-step Procedure

To create the custom BAPI, we need to follow this step-by-step procedure. The steps are 
  1. Create the BAPI structure.
  2. Create Remote Function Module.
  3. Place the Remote Function Module into BOR (Business Object Repository).
  4. Implement, Generate and Release the BAPI.
Step 1: To create BAPI structure, the structure name should start with the keyword ZBAPI. Here, Two BAPI structures are created in this scenario .The name of these BAPI structures are ZBAPI_IMPORT and ZBAPI_TABLE. 
Step 2:  ZBAPI_IMPORT structure contains the following fields. 
 
Step 3: ZBAPI_TABLE structure contains the following fields. 
 
Step 4: Now, define the Remote Enabled Function Module using T-Code SE37 starting with the ZBAPI . Provide the name of the function module as ZBAPI_DEMO_SD. We must pass the Import and export parameters as value parameters
Attribute Parameters:   
Import Parameters:   
Export Parameters:   
Return parameter in the Export parameter contains the error messages. Here, we must create a parameter of type structure BAPIRETURN either in Export Parameter or Table Parameter. 
Table Parameters:   
Source Parameter:   
Step5: Place this Function Module in to BOR using the T-code SWO1. Provide the name of the object and press create button. 
 
Provide the following details. 

Step 6: Add our Custom BAPI using Utilities->API Method->Add Method 
 
Now, Provide the created Custom Function Module name and click enter. 
 
Press the Next Step Button. 
 Press the Next Step Button. 
 
Click the YES button. 
 
Now, Method is added in the BOR. 
 
And Press Save button. 
Step 7: Now Implement the BAPI. 
 
Now, Generate the BAPI by clicking symbol ‘ball’. 
 
Lastly, Release the BAPI. 
Step 8: Now test the BAPI by clicking Execute Button. 
 
The following screen appears and click execute button. 
Provide the sales document number and press execute button. 
 
Now check the output as follows… 

Comments

Popular posts from this blog

Step by Step guide on BADI with Filter implementation

Step 1 à Before implementing filter objects to a BADI. We need to deactivate all the implementation for that BADI. Go to SE18 (BADI definition) and from there navigate to all BADI implementation to view all the active implementations for that BADI Select the BADI implementations listed on the screen and deactivate the implementation. Once done, return back to the initial screen of SE18 and proceed with next step. Step 2 à go to SE18 – BADI Definition screen and change the existing BADI definition that we created in the earlier tutorial.   Select the FILTER –DEPENDENT check box under the TYPE section. This will open up the FILTER TYPE field for inputs. And do an F1 on the FILTER TYPE field. Click on the F4 on the FILTER TYPE field name and enter some search criteria to find a relevant data element. And click on the continue button   Select the data element from the list to set up your filter and hit enter. Click on the save button and act

Create Data Source in SAP

Data Sources are extraction structure. Data Sources are used to extract data from various source system. In the below steps, we will see how to create a data source using a SAP table VBAK. 1) Execute transaction RSO2 2) Enter data source name to be created 3) Press Create 4) Enter description of the data source 5) Enter the name of table or view on which data source has to be created. Data Source can also be created using a View, Info set or a Function Module. 6) Save the data source 7) Execute RSO2 again and click Change 8) Select VBELN field as selection 9) Save the Data Source 11) To check whether data is getting extracted, execute transaction RSA3 12) Enter the name of data source as shown below and press 'Extraction' 13) An information message will appear stating no. of records fetched 14) Additional button 'Display list' will appear, press button 15) Select one of the data packet and double click to get records fetched 16) Data Source is ready to be used!

Responsibilities of BW Data Architect

Responsibilities of an implementation project... For ex, Lets say If its a fresh implementation of BI or for that matter you are implementing SAP... First and foremost will be your requirements gathering from the client. Depending upon the requirements you will creat a business blueprint of the project which is the entire process from the start to the end of an implementation... After the blue print phase sign off we start off with the realization phase where the actual development happens... In our example after installing the necessary softwares, patches for BI we need to discuss with the end users who are going to use the system for inputs like how they want a report to look like and what are the Key Performance Indicators(KPI) for the reports etc., basically its a question and answer session with the business users... After collecting those informations the development happens in the development servers... After the development comes to an end the same objects are tested in quality