Skip to Content
author's profile photo Former Member
Former Member

BAPI_QPMK_SAVEREPLICA MIC Assignment

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

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

1 Answer

  • Posted on Aug 01, 2006 at 09: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

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.