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

Range Numbers Object

Former Member
0 Likes
322

Hi. Could you tell me please how can I read and write over a Range Number Object??

Also, i would like to know if there is a BAPI that replaces transaction MSC1N (Create Batch)??

1 REPLY 1
Read only

Former Member
0 Likes
292

call function 'NUMBER_GET_NEXT'

exporting

nr_range_nr = '01'

object = Object name

importing

number = var1

exceptions

interval_not_found = 1

number_range_not_intern = 2

object_not_found = 3

quantity_is_0 = 4

quantity_is_not_1 = 5

interval_overflow = 6

others = 7.

if sy-subrc <> 0.

w_subrc = sy-subrc.

message a010(ad) with text-a12 w_subrc.

endif.

creating Batch.

CALL FUNCTION 'BAPI_BATCH_CREATE'

EXPORTING

material = in_material

plant = in_plant

IMPORTING

batch = ext_batch

batchattributes = ext_batchattributes

TABLES

return = return.

Regards

Vinay Kolla