02-12-2010 9:31 AM
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.
02-12-2010 9:46 AM
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
02-12-2010 9:49 AM
hi,
No need to create ZBAPI .....call bapi passed required parameter & after that use BAPI_TRANSACTION_COMMIT.
regards
Gaurav
02-12-2010 9:53 AM
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.
02-12-2010 9:53 AM
HI,
You can try with one of the below BAPIs.
BAPI_SALESORDER_CREATEFROMDAT1
BAPI_SALESORDER_CREATEFROMDAT2
Thanks,
Vinod.
02-12-2010 9:57 AM
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.
02-12-2010 10:10 AM
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.
02-12-2010 10:11 AM
Hi Vinod...
Thanks for your reply...
Zfms are not allowed in our project...
Cheers,
Lokeswari.
02-12-2010 11:49 AM
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.
02-12-2010 4:11 PM
Hi,
what ever project this is. If no programming is allowed, then, no way, turn back to batch input.
Regards,
Clemens
02-12-2010 4:25 PM
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.
02-15-2010 10:00 AM