Application Development 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: 

BAPI_QPMK_SAVEREPLICA MIC Assignment

Former Member
0 Kudos

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

1 REPLY 1

jeff_shafer2
Explorer
0 Kudos

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