Visual Basic Calling SAP - using BAPI Calls

BAPI is a useful resource provided by SAP though which we can communicate with SAP also from external envirnment / sources. The following code shows the example of how to call BAPI externally, although SAP authentication for the user is done.

The example is a program developed in Visual Basic which I developed in my learning phase. It gives an idea about the hierarchy that needs to be followed when calling BAPI.

The example consists of three BAPI calls namely, for PO, GRN and Sales Order creation. The code is also available for download, but may require a bit tweaking.

Continue Reading…

Difference Between BAPI and RFC

The main difference between BAPI and RFC and difference between BAPI and BDC-

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 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 faciliate the user requirement.

Difference between BAPI and BDC:

BAPI is a higher end usage for tranfering 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 retireve the data,and then change and update the data in SAP for that purpose we can use that.

Apart from that, we can also use it for Uploading/Downloading the data from SAP to Non-SAP like BDC, provided we have an existing BAPI for that.

BAPI function modules will also do all the checks required for data integrity like Transactions for BDC.

There is one more advantage using BAPI instead of BDC. When we go for upgradation, 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). Unless and until we prepare new BDC we cant use the old BDC program. But in BAPI, SAP promises that they are going to keep the old BAPI and for new functionality they will provide an upgraded BAPI. Until we write a new BAPI program, we can use the exisitng BAPI program.

Custom HR Infotypes Creation

There are requirements for an ABAP-HR programmer for creating custom HR infotypes.

The following PDF shows a walk-through of the steps required to set up custom Infotype from scratch.

The steps include creating new Infotype from PM01, to defining structure for it, to defining attributes, till dialog module assignment.

Download link: ABAP HR Infotype Creation

Complete Reference to ABAP Basics

The following ebook is for the ABAP beginners giving an overview of basic topics in ABAP.

This reference guide focuses on following topics:

  • ENTERPRISE RESOURCE PLANNING (ERP)
  • SAP ADVANTAGES
  • Role of ABAPer
  • R/3 ARCHITECTURE COMPONENTS
  • WHAT IS CLIENT IN SAP
  • Developemt Obects - REPOSITORY OBJECTS and DATA DICTIONARY OBJECTS
  • ABAP GUI
  • DATA DICTIONARY
  • INTERNAL TABLES
  • SUBROUTINES
  • Reports
  • MODULE POOL PROGRAMMING
  • Menu Painter
  • BATCH DATA COMMUNICATION
  • LSMW ( Legacy System Migration Workbench)
  • SAPSCRIPTS
  • SMARTFORMS

Continue Reading…

Page 1 of 11