05-08-2013 8:04 AM
I am trying to call BAPI_INTERNALORDER_CREATE and I get return message "K090 object type of receiver cannot be determined". Can you please help me, what is the reason of it? With transaction 'ko01' I can create new order but not with this BAPI. Is this customizing issue and how can I resolve it? Is any information how to call this BAPI and what happens?
Regards
Vladislav
05-08-2013 10:57 AM
Hi,
Check this thread see if it gives you some clues on the same.
http://scn.sap.com/thread/1947856
Cheers,
Arindam
05-08-2013 11:02 AM
Hi,
I have read this thread and have seen this structure but I still don't undestand how can I customize which table in order then to call this BAPI.
Regards
Vladislav
05-08-2013 11:32 AM
Hi ,
Please refer the below codes lines.
* master data for internal order
CLEAR ls_master_data.
ls_master_data-order = p_viqmel-qmnum.
ls_master_data-ext_ord_no = p_viqmel-qmnum. "a copy of qmnum
ls_master_data-order_type = p_aufart.
ls_master_data-co_area = p_viqmel-kokrs.
ls_master_data-comp_code = p_viqmel-bukrs.
IF NOT p_viqmel-psp_nr IS INITIAL.
CALL FUNCTION 'CJPN_INTERN_TO_EXTERN_CONV'
EXPORTING
int_num = p_viqmel-psp_nr
IMPORTING
ext_num = ls_master_data-wbs_element.
ELSE.
CLEAR ls_master_data-wbs_element.
ENDIF.
MOVE p_viqmel-qmtxt+0(36) TO lv_txt.
CONCATENATE con_clm lv_txt INTO ls_master_data-order_name.
ls_master_data-currency = p_viqmel-waers.
ls_master_data-ext_ord_no = p_viqmel-qmnum.
* check data for internal order
CLEAR ls_return.
REFRESH lt_return.
CALL FUNCTION 'BAPI_INTERNALORDER_CREATE'
EXPORTING
i_master_data = ls_master_data
testrun = con_yes
IMPORTING
orderid = lv_orderid
TABLES
return = lt_return.
Regards,
Amit
05-08-2013 2:39 PM
Hi,
where do I get the variables p_viqmel-psp_nr, p_viqmel-qmtxt, con_clm?
Regards
Vladislav
05-09-2013 5:03 AM
Hi,
Looks like
p_viqmel-psp_nr -> Order WBS
p_viqmel-qmtxt-> Looks like a text field with any value upto length 36
con_clm-> Could be a Constant value used in order_name field.
Please execute the BAPI with possible values and check if that works.
Cheers,
Arindam
05-09-2013 5:40 AM
Hi Vladislav,
Debug your code and Create a Watch point by using "Variable : SY-MSGID"
and Condition : SY-MSGID = 'K0' , if you check your error you got Message id with Number if i hope your error message "K090 object type of receiver cannot be determined" .
Note: You can easily find what is the error cause and which condition fail .
Regard's
Smruti