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

Routing Upload - error for insp char

Former Member
0 Likes
407

Hi Guru's,

I am uploading routing data through 'BAPI_ROUTING_CREATE', in test run data is going correct. But in Porgram it is throwing error message

' Inspection Char can not be uniquely assigned to one operation'.

Except this data related to Routing, Operations, Component Allocation is going correct.

I am passing sequence_no, operation_id,activity, insp_char, valid_from, master_insp_char,pmaster, modus,char_description,sampling_procedure, samplingunit, sampling_qty.

error message " you can not uniquely assign insp_char to a single operation."

With Regards,

Pravin

Hi Guru's,

I am uploading routing data through 'BAPI_ROUTING_CREATE', in test run data is going correct. But in Porgram it is throwing error message

' Inspection Char can not be uniquely assigned to one operation'.

Except this data related to Routing, Operations, Component Allocation is going correct.

I am passing sequence_no, operation_id,activity, insp_char, valid_from, master_insp_char,pmaster, modus,char_description,sampling_procedure, samplingunit, sampling_qty.

error message " you can not uniquely assign insp_char to a single operation."

With Regards,

Pravin

1 REPLY 1
Read only

athavanraja
Active Contributor
0 Likes
374

since you are saying that it works from SE37 and not in the program i would guess that some of the values passed (which requires to be in the internal format) are not in the right format. when generally used from se37 system would automatically convert them to internal format.

for example sequence_no is of type PLNFOLGE (data element) which has got a alpha conversion.

to convert the values to the right format, double click on the dataelement to get into domain and in definition tab of domain you could see a field called convers. routine. if it has got any value (ALPHA) double click on the value and take the FM name (CONVERSION_EXIT_ALPHA_INPUT in the case of sequence number) using this FM convert the value from external format to internal format.

for example to convert sequence number from external format to internal format you hve to have a function call like below.

CALL FUNCTION 'CONVERSION_EXIT_ALPHA_INPUT'

EXPORTING

input = sequence_no

IMPORTING

OUTPUT = sequence_no .

like wise inspect all the variables involved and find whether there is any alpha conversion for any fieldand carry out the necessary conversion before passin it to the BAPI

Regards

Raja