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_DELIVERYPROCESSING_EXEC

Former Member
0 Likes
3,999

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.

16 REPLIES 16
Read only

Jelena_Perfiljeva
Active Contributor
3,789

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.

Read only

0 Likes
3,789

leaving blank the new delivery number to be created, does the function automatically create a delivery number for me?

Read only

3,789

If it the functional set as internal number in SNRO yes, otherwise no

Read only

0 Likes
3,789

yes set as internal number in SNRO, but in the bapi where I pass the range of the object number RV_BELEG

Read only

3,789

Normaly it should be automatic with the delivery type LFART or something like that

commit & you will have your number

Read only

0 Likes
3,789

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

Read only

0 Likes
3,789

the structure RETURN does not contains a message ?

Read only

0 Likes
3,789

no it's all empty

Read only

0 Likes
3,788
Read only

3,788

And what is the return of the function BAPI_TRANSACTION_COMMIT ?

Read only

0 Likes
3,788

also this empty.

 CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'

*      EXPORTING
*        wait   = 'X'
      IMPORTING
        return = tbl_return.

Read only

3,788

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.

Read only

0 Likes
3,788

which other bapi you advise me?

Read only

0 Likes
3,788

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.

Read only

srikanthnalluri
Active Participant
0 Likes
3,788

Why do you need to generate the number, whenever you create delivery the standard functionality will pick up the next available number for you.

Read only

Nawanandana
Active Contributor
0 Likes
3,788