07-06-2006 7:41 PM
Can I only use external number assignment for the M.I.C. when using this BAPI? It appears so, but thought perhaps there was an indicator I missed.
Thanks for your help, Dennis
08-01-2006 10:32 PM
Hi Dennis:
The function BAPI_QPMK_SAVEREPLICA will create master inspection characteristics in the internal number range. There is no indicator in any of the table structures that determines internal or external number assignment. The BAPI will create master inspection characteristics in either the internal number range or the external number range.
Before calling the BAPI get the next internally assigned master inspection characteristic number with function NUMBER_GET_NEXT.
data: plant like BAPIQPMK_QPMK-PLANT_QPMK,
number like BAPIQPMK_QPMK-MSTR_CHAR
rc like INRI-RETURNCODE.
call function 'NUMBER_GET_NEXT'
exporting
nr_range_nr = '01'
object = 'QMERKMALE'
subobject = plant
quantity = '1'.
importing
returncode = rc
number = number.
Use NUMBER returned from NUMBER_GET_NEXT to set the value of MSTCHA-MSTR_CHAR for function BAPI_QPMK_SAVEREPLICA.
Regards,
Jeff Shafer