Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

Create ZBAPI FROM BAPi

Former Member
0 Kudos

Hi

Can u pls tell me How to create a ZBAPI from a STD BAPI with example?

Ur answer will be rewarded.

Regards

chand

5 REPLIES 5

Former Member
0 Kudos

Hi Chandri,

Go to SE37>Go to>Function Groups-->Create Group.

Again SE37-->Give the name of the BAPI that you want to copy and press COPY(CTRL+F5). Give the names as required there.

Regards

Aneesh.

P.S : Y do u want to copy a standard BAPI. I mean what can be the requirement??

0 Kudos

Aneesh,

Thanks for the fast reply.

I would like to know when do we create zbapi and need an example as how to create?

Regards

chandri

0 Kudos

Hi Chandri,

Look at this link,

http://www.erpgenie.com/abap/bapi/example.htm

Reward if useful.

Thanks

Aneesh.

0 Kudos

Let me say one example :

In my system sales order ( VA01,VA02,VA03) ,we have custom fields and it is available in Additional data B Screen.

We created append structure to VBAK,

So we want to update custom fields regularly using batch job from other syste.

as we have Standard FM for Sales order - BAPI_SALESORDER_CREATEFROMDAT and when we use this FM ,this will not update custom fields.

we created new function module -> this fm calls BAPI_SALESORDER_CREATEFROMDAT and here we written logic to update custom fields using EXTENSIONIN structure

Thanks

Seshu

0 Kudos

Hi Seshu,

Thanks for ur reply.

Can u pls explain me in detail that how we write logic to update custom fields using EXTENSIONIN structure with code?

Regards

chand