Application Development and Automation 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: 
Read only

BAPI_ROUTING_CREATE istance missing

SimoneMilesi
Active Contributor
0 Likes
3,210

Hi Gurus!

I'm using the BAPI in the object to create some new routing.

I got a strange (for me at least) issue: if i'm debugging the program, everything works fine.

If i execute the program, i got the message 'No instance of object type Routing has been created. External reference: ".

How i can solve it?

1 ACCEPTED SOLUTION
Read only

former_member206377
Active Contributor
1,984

You have missed out COMMIT WORK after some LUW..

3 REPLIES 3
Read only

former_member206377
Active Contributor
1,985

You have missed out COMMIT WORK after some LUW..

Read only

0 Likes
1,984

Ty!

I see that in the program i create the materials via direct input (BMV0) before create the Routings but the job isn't finished yet.

Read only

Former Member
0 Likes
1,984

I had the same error ... this note helped me .

https://launchpad.support.sap.com/#/notes/0002530183

Cause

Leading zero is required for field group counter(Char2), alternative BOM(Char2) and also for sequence number(char6) if using non-standard sequence.

Resolution

Please add leading zero for the following fields in the template:

1. The field "group counter" should be leading zero, like using 01, not 1

2. The field "sequence number" should be leading zero, like using 000001, not 1

3. The field "alternative BOM" should be leading zero, like using 01, not 1

It is a workaround and we will update the template with tooltips in the future releases.

If the problem still occurs, please create an incident under CA-GTF-MIG with test data template and a description on how to reproduce the issue to SAP.