2013 Mar 26 12:34 PM
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.
2013 Mar 26 1:29 PM
2013 Mar 26 1:17 PM
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
2013 Mar 26 1:25 PM
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.
2013 Mar 26 1:29 PM
2013 Mar 26 1:32 PM
2013 Mar 26 1:34 PM