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_INTERNALORDER_CREATE Call Problem

Former Member
0 Likes
1,571

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

6 REPLIES 6
Read only

arindam_m
Active Contributor
0 Likes
1,034

Hi,

Check this thread see if it gives you some clues on the same.

http://scn.sap.com/thread/1947856

Cheers,

Arindam

Read only

Former Member
0 Likes
1,034

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

Read only

Former Member
0 Likes
1,034

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

Read only

0 Likes
1,034

Hi,

where do I get the variables p_viqmel-psp_nr, p_viqmel-qmtxt, con_clm?

Regards

Vladislav

Read only

0 Likes
1,034

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

Read only

Former Member
0 Likes
1,034

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