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: 

FM ROUTING_MAINTAIN AND QPCP_CHARACTERISTICS_CREATE

mario_ecker
Explorer
0 Kudos

Hi experts,

I'm trying to write a small program to perform a mass change in the work plan. I would like to create a master inspection characteristic. Please look at my code below.

  it_charac-TASK_LIST_GROUP = plpo-plnnr.
  it_charac-GROUP_COUNTER   = plpo-plnkn.
  it_charac-OPERATION_ID    = plpo-arbid.
  it_charac-ACTIVITY        = plpo-vornr.
  it_charac-MSTR_CHAR       = pa_pm.
  it_charac-PMSTR_CHAR      = '0001'.
  it_charac-CHAR_DESCR      = 'master inspection characteristic'.
  it_charac-CHA_MASTER_IMPORT_MODUS = 'L'.
  it_charac-ATTRIBUTE_REQUIRED_IND = 'X'.
  it_charac-SEL_SET1 = 'QM-02'.
  it_charac-PSEL_SET1 = '0001'.
  it_charac-RESULT_RECORDING_TYPE = '+'.
  Append it_charac.
**********************************************************************
  CALL FUNCTION 'QPCP_CHARACTERISTICS_CREATE'
    EXPORTING
      IV_CHECK           = ''
      iv_plnty                 = plko-plnty
      iv_plnnr                = plko-plnnr
      iv_plnal                 = plko-plnal
      iv_datuv                = sy-datum
   IMPORTING
     ET_RETURN          = it_return
   TABLES
      it_characteristic     = it_charac[]        .

Now i have the inspection characteristic, but they are not linke to the master inspection characteristic. It is not locked. So i have the problem, that it will not update changes on the master inspection characteristic.

I didn´t think that the problems will be in the code. I think it is not able to create it with this FM.

Thanks in advance,

Mario Ecker

1 REPLY 1

mario_ecker
Explorer
0 Kudos

Or is it possible to make it with a Batch-Input? When yes, how?