Quantcast
Channel: SCN: Message List
Viewing all articles
Browse latest Browse all 9193

BAPI_EQUI_CHANGE

$
0
0

Hi Experts,

 

I have a requirement to change the MaintPlant and Location of an equipment in IE02.

I'm trying to use BAPI_EQUI_CHANGE but I'm having an error "the currency code PHP ALE is not allowed"

I've also tried it in se37 and same error message occurs.

Thank You!

 

Here is my code:

 

REPORT  ZTEST2.

DATA: itob LIKE bapi_itob OCCURS 0 WITH HEADER LINE,

       itob2 LIKE bapi_itob OCCURS 0 WITH HEADER LINE,

       itobx LIKE bapi_itobx OCCURS 0 WITH HEADER LINE,

       return LIKE bapiret2,

       itobeq LIKE bapi_itob_eq_only  OCCURS 0 WITH HEADER LINE,

       itobeqx LIKE bapi_itob_eq_onlyx  OCCURS 0 WITH HEADER LINE.

 

START-OF-SELECTION.

 

itob-maintplant = '0062'.

itob-maintloc = '120062'.

APPEND itob.

 

itobx-maintplant = 'X'.

itobx-maintloc = 'X'.

APPEND itobx.

 

CALL FUNCTION 'BAPI_EQUI_CHANGE' "PM BAPI: Change Equipment

   EXPORTING

     equipment 'AC-180'               " bapi_itob_parms-equipment  Number of Equipment to be Changed

     data_general =   itob           " bapi_itob     General Data for Technical Objects

     data_generalx itobx           " bapi_itobx    Flag Structure for BAPI_ITOB for Fields to be Copied

     data_specific itobeq           " bapi_itob_eq_only  Equipment-Specific data

     data_specificx = itobeqx           " bapi_itob_eq_onlyx  Flag Structure for BAPI_ITOB_EQ_ONLY for Fields to be Copied

*   data_fleet =                " bapi_fleet    Vehicle-Specific Data

*   data_fleetx =               " bapi_fleetx   Flag Structure Belonging to BAPI_FLEET (for Change BAPIs)

*   valid_date = SY-DATUM       " bapi_itob_parms-inst_date  Date for Validity of an Equipment Usage Period Relevant Change

*   valid_time = SY-UZEIT       " bapi_itob_parms-inst_time  Time for Validity of a Equipment Usage Period Relevant Change

   IMPORTING

     data_general_exp =      itob2    " bapi_itob     General Data for Technical Objects

*    data_specific_exp =         " bapi_itob_eq_only  Equipment-Specific data

*    data_fleet_exp =            " bapi_fleet    Vehicle-Specific Data

     return =   return                 " bapiret2      Return Parameter

     "  BAPI_EQUI_CHANGE

 

WRITE: return-message.


Viewing all articles
Browse latest Browse all 9193

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>