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 'BAPI_RESERVATION_CREATE1' error E-KI-102

Former Member
0 Likes
2,702

Hi gurus!!

I call bapi    'BAPI_RESERVATION_CREATE1' within a report in this way:

   DATA: p_head     LIKE bapi2093_res_head.

   DATA: BEGIN OF p_items OCCURS 0.
          INCLUDE STRUCTURE   bapi2093_res_item.
   DATA: END OF p_items.

 

  CLEAR head.

  head-res_date = '18032013'.
  head-move_type  = '261'.
  head-orderid    = 'BN-1202'.

   CLEAR p_item.

  p_item-material  = '00000000007000248'.
  p_item-plant     = 'G000'.
  p_item-stge_loc  = '001'
  p_item-entry_qnt = 1..
   p_item-movement  = 'X'.

   APPEND v_item TO p_items.

   CALL FUNCTION 'BAPI_RESERVATION_CREATE1'
          EXPORTING
            reservationheader    = p_head
          IMPORTING
            reservation          = p_headret
          TABLES
            reservationitems     = p_items
            profitabilitysegment = p_segment
            return               = p_return.

I get error:

E - KI - 102 -  " No existe ningun indicador de control para la sociedad CO 1111'

Thanks in advance.

1 ACCEPTED SOLUTION
Read only

RaymondGiuseppi
Active Contributor
0 Likes
1,440

Go and talk with the head of Customizing, the parameters of the year 1803 are incomplete, this is clearly unacceptable!

  head-res_date = '18032013'. " Try 20130318

Regards,

Raymond


5 REPLIES 5
Read only

Former Member
0 Likes
1,440

Hello Jaione,

This message is related to the controlling area.  The program cannot determine the proper controlling area.

The instructions for the BAPI say:

"The system transfers the header data of the reservation in the
ReservationHeader parameter. The following data is required for this:

- movement type (Field MOVE_TYPE)

- the account assignment object (for example, the cost center in the
COSTCENTER field) if the movement type requires an account assignment

Does your movement type require an account assignment?  If so, did you send the account assignment?

Regards,

Kim

Read only

0 Likes
1,440

Hi!!

The assignment object is the order id ->

head-orderid    = 'BN-1202'.

If I execute the bapi from se37 with the same data there is no problem. That´s why I suspect it has something to do with data format.

Thanks anyway.

Read only

RaymondGiuseppi
Active Contributor
0 Likes
1,441

Go and talk with the head of Customizing, the parameters of the year 1803 are incomplete, this is clearly unacceptable!

  head-res_date = '18032013'. " Try 20130318

Regards,

Raymond


Read only

0 Likes
1,440
Read only

0 Likes
1,440

Thanks!!!!