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

Regarding Create Routing using BAPI_ROUTING_CREATE

Former Member
0 Likes
1,290

Hi All,

My requirement is as follows,

I am able to create routing with operation.

I am not able to create routing with sub-operation.

Please suggest!!!.

Regards,

Pavan.

4 REPLIES 4
Read only

Flavio
Active Contributor
0 Likes
902

Hi Pavan,

Assuming that you are passing the   bapi1012_sub_opr_c   structure for suboperation, is there any message in the Return parameter after calling the BAPI?

Thank you and bye,

Flavio

Read only

Former Member
0 Likes
902

Hi Pavan,

Have you read the documentation? what kind of error message are you getting?

Sub operations in CREATE-BAPI for routings

Description

The data of the suboperations to be generated is copied into this table.

To identify the suboperation you can flag each suboperation in the field SUB_OPERATION_ID with a unique key. This has to include at least one character that is not a number (such as UV0010/1) and not be changed for the entire life time of the suboperation.

The assignment of the suboperation to its subordinated operation takes place in the field OPERATION_ID by entering the identifier of the operation. If there is no entry here, the system tries to determine the correct operation from the operation number in the field ACTIVITY.

The following attributes have to have a value, otherwise the consistency of the suboperation can not be ensured:

    • SUB_ACTIVITY (suboperation number)
    • CONTROL_KEY (control key) or
    • WORK_CNTR (work center) and PLANT (work center plant)

If a profile is entered, when calling up the BAPI, which defines a default value for the control key, then the corresponding attribute in the structure SUBOPERATION can be blank.

You can only enter a task list group (attribute TASK_LIST_GROUP) in the case of external number assignment. In the case of internal number assignment the task list group is automatically assigned during processing.

Information about the individual parameter fields can be found in the relevant data element documentation in the ABAP dictionary.

Rg, Kiran

Read only

0 Likes
902

Hi,

Thanks for the reply.

I am trying to create Routing without sub operation,

even it is giving error,

same item is being updated twice.

error is given as below:

Inspection characteristic 0010 already exists

Message no. QP452

Read only

0 Likes
902

Hi Pavan,

Can you debug the program in below include:

Include : CQCL_CHA_CHECK

*  check user input for inspection characteristic number
     perform cha_new_key_check


inside the routines, the FM in calling and raising the error



***********************************************************************
* check if the characteric number exists                              *
***********************************************************************

   call function 'CQ_CL_S_CHA_LOAD_CHECK'
     exporting
       i_date_from      = i_key_date_s                    "#EC DOM_EQUAL
       i_date_to        = i_key_date_s                    "#EC DOM_EQUAL
       i_plnty          = i_plnty
       i_plnal          = i_plnal
       i_plnnr          = i_plnnr
       i_plnfl          = i_plnfl
       i_plnkn          = i_plnkn
       i_ident          = i_ident
       i_kzeinstell     = i_kzeinstell
       i_merknr         = i_merknr