Skip to Content
Author's profile photo Madhu Vadlamani

Combination of Bapi and Bdc

All are familiar how to use BDC recording and update the records. Similarly using of BAPI function modules we can create and get the records. In this document we will see how to use the combination.

There is a good class CMD_EI_API   to create customer but we do not have any standard bapi to create customer. Few years back i got the requirement to map ba[i fields to create customers. I tried this combination and got it.


2) Record the  transaction XD01 and create customer with the record fields

3) Copy the BDC program into a zprogram

4) Create the required structure for the mapping fields.Need to declare a table with bdcdata,bapiret1,bdcmsgcol.

5)In the zprogram at the start-of-selection  import the data from bapi fm . In the zprogram  there is a function module used ‘CONVERT_BDCMSGCOLL_TO_BAPIRET2’. The return parameters if this fm is the input return parameter to zbapi _cust_create .

FM Input.PNG

Output after creating customer

Output FM.PNG

Yours Suggestions are Welcome


Assigned Tags

      You must be Logged on to comment or reply to a post.
      Author's profile photo Grant Turk
      Grant Turk

      Combination example is very talktosonic, i really found something interesting to learn.

      Author's profile photo brian wade
      brian wade

      All survey types, including online surveys, follow the same steps: Determine your objectives. Select respondents. Create a data analysis plan. Develop the survey. Pre-test the survey. Distribute and conduct the survey.

      Author's profile photo Daniel McLean
      Daniel McLean

      All are familiar how to use BDC recording and update the records. Similarly using of BAPI function modules we can create and get the records. In the zprogram there is a function module used 'CONVERT_BDCMSGCOLL_TO_BAPIRET2'. ...krogerfeed.........


      Author's profile photo anvesh jai
      anvesh jai
      *”*”Local Interface:
      *”  IMPORTING
      *”  EXPORTING
      *”  TABLES
      *”———————————————————————-select matnr werks from marc
      into TABLE ztable
      where matnr eq matnr.
      if sy-subrc eq 0.
      “Update BAPI return table accordingly to show success here
      “Update BAPI return table accordingly to show failure here

      Logic of our BAPI is simple; it fetches matnr and werks value from marc table based on input matnr values and fills the BAPI table. Lets test the FM, click execute and input a test data