cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Problems with BAPI_ROUTING_CREATE

Former Member
0 Likes
1,516

Hello,

I'm trying to create a standard routing for a material by using the BAPI_ROUTING_CREATE function.

I can create a routing and I receive the export parameters GROUP and GROUPCOUNTER back without errors in RETURN. The routings exist and I can view the with the transaction CA03.

However the routings are not beeing linked to the material. They only exist as GROUP and therefore produciton orders can not be created for the material as there's no routing for it.

Am I missing a parameter? I've been trying everything. I populate the tables:

TASK STRUCTURE BAPI1012_TSK_C

MATERIALTASKALLOCATION STRUCTURE BAPI1012_MTK_C OPTIONAL

OPERATION STRUCTURE BAPI1012_OPR_C OPTIONAL

Thanks,

Nick

Accepted Solutions (0)

Answers (3)

Answers (3)

Former Member

so, in case anyone else steps over that, I got it figured out.

The whole problem was that I parameterized the values 'VALID_TO_DATE', without it works. Holdup of 3 days!

Isn't SAP lovely?

former_member156446
Active Contributor
0 Likes

did u try a where used list with the bapi ?

se37 > BAPI_ROUTING_CREATE > where used list (ctrlshiftf3)

Former Member
0 Likes

the BAPI is not used anywhere....also founs some source code on the web where used, but not with the parameters I need or otherwise helpful

Former Member
0 Likes

so, I tried to do the component allocation:

VALID_FROM = "1.1.2009"

VALID_TO_DATE = 31.12.9999"

ACTIVITY ="0010"

BOM_TYPE = " "

BOM_NO = " 00002901"

ALTERNATIVE_BOM = "1"

ITEM_ID = "00000001"

ITEM_NO = "0010"

COMP_QTY = "1"

COMP_UNIT = "ST"

PLANT = "1000"

MATERIAL = "MB_002"

BOM_TYPE_ROOT = " "

BOM_NO_ROOT = "00002901"

ALTERNATIVE_BOM_ROOT = "1"

also tried:

SEQUENZE_NO and OPERATION_ID

I always get the error "CPCC_DT 206 The component to be assigned has not been completely..."

Anyone has some help here please? I didn't find any solution by searching.

Regards, Nick