SAP R/3 форум ABAP консультантов
Russian ABAP Developer's Club

Home - FAQ - Search - Memberlist - Usergroups - Profile - Log in to check your private messages - Register - Log in - English
Blogs - Weblogs News

Функция BAPI_EQUI_INSTALL



 
Post new topic   Reply to topic    Russian ABAP Developer's Club Forum Index -> ABAP
View previous topic :: View next topic  
Author Message
Hanna_89
Участник
Участник



Joined: 01 Nov 2011
Posts: 29

PostPosted: Wed Mar 28, 2012 4:15 pm    Post subject: Функция BAPI_EQUI_INSTALL Reply with quote

Добрый день! Хочу монтировать одну ЕО на другую. Код такой:
DATA:
data_install LIKE BAPI_ITOB_EQ_INSTALL_EXT,
lt_return LIKE bapiret2.
data_install-supequi = '10006396'. "номер существующей машины


CALL FUNCTION 'BAPI_EQUI_INSTALL'
EXPORTING
EQUIPMENT = '10006397' "номер существующего насоса
DATA_INSTALL = data_install
IMPORTING
RETURN = lt_return.

IF lt_return-type = space.
COMMIT WORK.
ENDIF.

В этом случае выдаёт lt_return-type = 'E'.

Насос создавался так:
data_specific-equicatgry = 'M'. "Тип объекта
data_general-manfacture = 'Concern AUDI'.
data_general-objecttype = '3000'.
CALL FUNCTION 'BAPI_EQUI_CREATE'
EXPORTING
data_general = data_general
data_specific = data_specific
valid_date = sy-datum
data_fleet = data_fleet
IMPORTING
equipment = equipment
return = lt_return.

IF lt_return-type = space.
COMMIT WORK.
ENDIF.

А машина:
data_specific-equicatgry = 'M'. "Тип объекта
data_general-manfacture = 'Concern AUDI'.
data_general-objecttype = '5000'.

data_fleet-chassis_num = '9876-F-123'.
data_fleet-engine_type = 'B'.
data_fleet-engine_snr = '1459-36-X9'.
CALL FUNCTION 'BAPI_EQUI_CREATE'
EXPORTING
data_general = data_general
data_specific = data_specific
valid_date = sy-datum
data_fleet = data_fleet
IMPORTING
equipment = equipment
return = lt_return.

И проблем при этом не было, в EQUI мои есть. Так в чём моя ошибка? При создании ЕО надо было что-то ещё прописать?
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    Russian ABAP Developer's Club Forum Index -> ABAP All times are GMT + 4 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


All product names are trademarks of their respective companies. SAPNET.RU websites are in no way affiliated with SAP AG.
SAP, SAP R/3, R/3 software, mySAP, ABAP, BAPI, xApps, SAP NetWeaver and any other are registered trademarks of SAP AG.
Every effort is made to ensure content integrity. Use information on this site at your own risk.