‎2008 Jul 07 11:49 PM
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)??
‎2008 Jul 08 12:22 AM
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