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_MATERIAL_SAVEREPLICA Performance ISSUE for one material, query at STPO

Former Member
0 Kudos

Good morning,

I need to extend some materials with plant data, so I call BAPI_MATERIAL_SAVEREPLICA.

I call it for singular plant and material.

For some material, it takes 5 or more minutes to execute the BAPI; reason? I tracet it and a discovered that it looks for the BOM of the material launcing the Function GET_STPO_IDNRK (tables STPO).

Why this selection?

I only pass plant data with MRP Data (data passed reported under).

Debugging, seems that it do this selection when the field mrtype is different in this structure:

MDCP-DISMM NE MDCP-ALTDI

If I extend the material using MM01, I no have problems.

Help me please to resolve this issue performance..

Thanks

*Marc

plantdatax-function = 'INS'.

plantdatax-material = tb-material.

plantdatax-plant = tb-plant.

plantdatax-mrp_type = 'X'.

plantdatax-mrp_ctrler = 'X'.

plantdatax-lotsizekey = 'X'.

plantdatax-minlotsize = 'X'.

plantdatax-maxlotsize = 'X'.

plantdatax-round_val = 'X'.

plantdatax-proc_type = 'X'.

plantdatax-spproctype = 'X'.

plantdatax-plnd_delry = 'X'.

plantdatax-gr_pr_time = 'X'.

plantdatax-safety_stk = 'X'.

plantdatax-availcheck = 'X'.

plantdatax-loadinggrp = 'X'.

plantdatax-auto_p_ord = 'X'.

plantdatax-mrp_group = 'X'.

plantdatax-backflush = 'X'.

plantdatax-sm_key = 'X'.

plantdatax-dep_req_id = 'X'.

IF tb-flgfa = 'X'.

plantdatax-prodprof = 'X'.

ELSE.

CLEAR plantdatax-prodprof.

ENDIF.

plantdatax-profit_ctr = 'X'.

plantdatax-comm_code = 'X'.

IF tb-flgfa = 'X'.

plantdatax-production_scheduler = 'X'.

ENDIF.

plantdatax-iss_st_loc = 'X'.

plantdatax-sloc_exprc = 'X'.

APPEND plantdatax.

2 REPLIES 2

Former Member
0 Kudos

yess

0 Kudos

Hello,

I have the same problem when I extend a Material or even when I create a new Storage Location via MMSC.

What was the answer to solve this problem?

Thanks in advance!