Application Development and Automation 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: 
Read only

Bapi Requirement

Former Member
0 Likes
1,349

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
Read only

Former Member
0 Likes
1,307

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

Read only

Former Member
0 Likes
1,307

hi,

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

regards

Gaurav

Read only

0 Likes
1,307

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.

Read only

vinod_vemuru2
Active Contributor
0 Likes
1,307

HI,

You can try with one of the below BAPIs.

BAPI_SALESORDER_CREATEFROMDAT1

BAPI_SALESORDER_CREATEFROMDAT2

Thanks,

Vinod.

Read only

0 Likes
1,307

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.

Read only

0 Likes
1,307

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.

Read only

0 Likes
1,307

Hi Vinod...

Thanks for your reply...

Zfms are not allowed in our project...

Cheers,

Lokeswari.

Read only

0 Likes
1,307

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.

Read only

0 Likes
1,307

Hi,

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

Regards,

Clemens

Read only

0 Likes
1,307

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.

Read only

Former Member
0 Likes
1,307

thank you