‎2019 Nov 18 11:48 AM
Can you tell me where to go next delivery number to create? and where to pass the old delivery number.
I get the new delivery number from the function NUMBER_GET_NEXT.
‎2019 Nov 18 8:56 PM
This BAPI has warning "It has not been released for external use" in the documentation, so I wouldn't recommend using it.
With that disclaimer in mind, we do not generate new numbers beforehand when creating documents through BAPIs (unless it's an external number assignment). Standard SAP will handle it. You can see delivery number parameter in this BAPI is optional, so leave it blank. Read the BAPI documentation, it explains everything.
‎2019 Nov 19 9:21 AM
leaving blank the new delivery number to be created, does the function automatically create a delivery number for me?
‎2019 Nov 19 9:28 AM
If it the functional set as internal number in SNRO yes, otherwise no
‎2019 Nov 19 9:54 AM
yes set as internal number in SNRO, but in the bapi where I pass the range of the object number RV_BELEG
‎2019 Nov 19 10:04 AM
Normaly it should be automatic with the delivery type LFART or something like that
commit & you will have your number
‎2019 Nov 19 10:09 AM
ok thanks.
but I start the bapi and commit but it doesn't give me any message and I don't know where to see the delivery number
‎2019 Nov 19 10:20 AM
‎2019 Nov 19 10:22 AM
‎2019 Nov 19 10:30 AM
‎2019 Nov 19 10:32 AM
And what is the return of the function BAPI_TRANSACTION_COMMIT ?
‎2019 Nov 19 10:42 AM
also this empty.
CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'
* EXPORTING
* wait = 'X'
IMPORTING
return = tbl_return.
‎2019 Nov 19 4:54 PM
luca.treva - have you read the documentation for this BAPI? It's all written there. Created items will be in the table aptly named CREATEDITEMS.
But to reiterate, this BAPI is not released to the customers, so there is no guarantee it'll work and SAP will not support it for the customers.
You can use SQL trace and debugger to further troubleshoot any issues in your system.
‎2019 Nov 20 8:25 AM
‎2019 Nov 21 8:34 PM
If you're in ECC 6.0, go to SE37 and search by BAPI_OUTB_DELIVERY*
In S/4HANA you might also have an API / OData service available, look it up on api.sap.com.
‎2019 Nov 18 9:16 PM
Why do you need to generate the number, whenever you create delivery the standard functionality will pick up the next available number for you.
‎2019 Nov 19 7:04 PM