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

Re: Function / BAdI / class to import meter readings?

$
0
0

Dear Norbert,

 

There is an RFC call "MEASUREM_DOCUM_RFC_SINGLE_001" which you could use within a loop to import the meter readings (measurement documents).

 

     CALL FUNCTION 'MEASUREM_DOCUM_RFC_SINGLE_001'
          EXPORTING
             measurement_point           = p_point
             reading_date                     = p_meas_date
             reading_time                     = sy-uzeit
             reader                              = sy-uname
             origin_indicator                 = 'A'
             recorded_value                 = p_cntr_rdg
             prepare_update                = 'X'
             commit_work                   = ''
             wait_after_commit            = ''
             notification_type              = 'M2'
          IMPORTING
             measurement_document  = lv_docno
          EXCEPTIONS
             no_authority                    = 1
             point_not_found               = 2
             index_not_unique            = 3
             type_not_found               = 4
             point_locked                   = 5
             point_inactive                 = 6
             timestamp_in_future       = 7
             timestamp_duprec          = 8
             unit_unfit                        = 9
             value_not_fltp                 = 10
             value_overflow                = 11
             value_unfit                     = 12
             value_missing                = 13
             code_not_found             = 14
             notif_type_not_found      = 15
             notif_prio_not_found       = 16
             notif_gener_problem       = 17
             update_failed                 = 18
             invalid_time                   = 19
             invalid_date                   = 20
*      OTHERS                            = 21.


Thanks and Regards,


Amitava


Viewing all articles
Browse latest Browse all 8627

Trending Articles



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