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
Add a comment