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

General BAPI Question

Former Member
0 Likes
436

In several of the "Create" type BAPIs that I've looked at, the BAPI requires you provide the document number as a field in the input parameters.

Take for example BAPI_PO_CREATE1 requires a PO_NUMBER. How would an external system know what the next PO_NUMBER would be? Even if some lookup was provided, another PO could be created before this BAPI was called.

3 REPLIES 3
Read only

Former Member
0 Likes
415

Hi,

You would only need to populate this if you had an external number range defined. If you are using internal number ranges then the system will allocate it and you do not need to pass anything.

Regards,

Darren

Read only

Former Member
0 Likes
415

you need to pass it only in case of external number ranges, and even there, We follw the practice of assigning the different set of ranges to different systems ( if the same txn can be called from more than 1 partners ); so that even for the external numbering those should not conflict with the different systems or users using the same #s in SAP

Read only

former_member156446
Active Contributor
0 Likes
415

if you can search the forum or google about number ranges.. it will give you a better picture..