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: 

Bapi Requirement

Former Member
0 Kudos

Hi All...

we have a Bapi Requirement for craetion of Returns order.

we tried bapis

SD_SALESDOCUMENT_CREATE-order is created successfully but this bapi has no internal commit. as no customization is allowed in my project we can't create a Zbapi of this bapi.

BAPI_SALESDOCU_CREATEFROMDATA and BAPI_CUSTOMERRETURN_CREATE have no maitenance support from SAP.

so, can you please suggest us any other bapi which is used to create Returns order , also which is supported in versions starting from SAP4.7 and maitenace is possible by SAP.

Thank you.

Cheers,

Lokeswari.

11 REPLIES 11

Former Member
0 Kudos

Hi Lokeswari,

Normally few BAPI will not have COMMIT in it. So we could externally call another BAPI_TRANSACTION_COMMIT immediately after the original BAPI to commit any of the action performed by that BAPI.

Hope it will be useful

Regards,

Saravanan R

Former Member
0 Kudos

hi,

No need to create ZBAPI .....call bapi passed required parameter & after that use BAPI_TRANSACTION_COMMIT.

regards

Gaurav

0 Kudos

Hi...

All these bapis are called in Middleware. So, there is no possibility of calling "BAPI_TRANSACTION_COMMI" bapi after calling this Bapi.

Any inputs..

Cheers,

Lokeswari.

vinod_vemuru2
Active Contributor
0 Kudos

HI,

You can try with one of the below BAPIs.

BAPI_SALESORDER_CREATEFROMDAT1

BAPI_SALESORDER_CREATEFROMDAT2

Thanks,

Vinod.

0 Kudos

Hi Vinod...

By using the Bapis you provided , we are not able to craete returns order because those are meant for only Business object BUS2032. But returns order Business Object is BUS2102.

Any inputs..

Cheers,

Lokeswari.

0 Kudos

Hi,

In that case, you can create a Z RFC FM as a wrapper FM of the BAPI which meets your requirement. ZFM and BAPI will have the same interface parameters. Call the BAPI inside your Z-FM and if it is success, call transaction commit also.

Thanks,

Vinod.

0 Kudos

Hi Vinod...

Thanks for your reply...

Zfms are not allowed in our project...

Cheers,

Lokeswari.

0 Kudos

Hi,

Vinod suggested the exact way.

If its not allowed to create a Z object then its upto you.

Only using the standard objects will not suit the cistomer requirement in such cases.

0 Kudos

Hi,

what ever project this is. If no programming is allowed, then, no way, turn back to batch input.

Regards,

Clemens

0 Kudos

But BAPIs that are released for customer user are supposed to be called from custom Z programs; it's the purpose for their existence. If you're not allowed to create Z programs then you might as well forget about doing any effective custom development.

Former Member
0 Kudos

thank you