‎2013 Dec 25 5:31 AM
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.
‎2013 Dec 25 6:31 AM
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
‎2013 Dec 25 6:44 AM
Hi Pavan,
Have you read the documentation? what kind of error message are you getting?
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:
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
‎2013 Dec 25 10:34 AM
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
‎2013 Dec 25 10:53 AM
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