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_ISUPROFILE_UPLOAD - input parameter s

Former Member
0 Likes
1,131

Hi All,

I have to upload interval meter reading data. I am supposed to use BAPI_ISUPROFILE_UPLOAD for that. I am facing some error while executing the same.

Do we have to pass Profile Number(Not Profile Role or Profile Role Type) to the this BAPI? If yes , in which field of input structure of BAPI?

What exactly we have to pass in Reference Number field?

Do you have sample code for calling this BAPI?

2 REPLIES 2
Read only

Former Member
0 Likes
795

Hi Devang,

I am assuming that you need to upload Meter Readings to a Profile for a given interval.

I have used something similar in my project. Instead of <b>BAPI_ISUPROFILE_UPLOAD</b>, try using <b><i>BAPI_ISUPROFILE_IMPORT</i></b>.

Populate as shown below.

1. Populate the Upload Info data. This is optional.

i_mr_input-extreference = ws_idoc_no+1(15). "Idoc number

i_mr_input-srcsystem = c_source. "Source of Read data

APPEND i_mr_input.

2. Populate the Profile data to be uploaded.

i_profile-fromoffset = '+01'.

i_profile-tooffset = '+01'.

i_profile-profile = profile number.

i_profile-datefrom = date_from.

i_profile-timefrom = time_from.

i_profile-dateto = date_to.

i_profile-timeto = time_to.

IF p_finaldata-mrdata-read_value IS INITIAL.

p_finaldata-mrdata-read_value = '0'.

ENDIF.

i_profile-value = p_finaldata-mrdata-read_value.

i_profile-status = c_tso. "User defined Read status if available

i_profile-unit = wa_unit. "UOM like KWH or M3

Append i_profile.

CALL FUNCTION 'BAPI_ISUPROFILE_IMPORT'

EXPORTING

uploadinfo = i_mr_input

TABLES

profilevalues = i_profile

return = i_bapi_return.

3. After this is executed successfully call the below FM to commit the data.

CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'.

Trust this helps. Please mark helpful answers.

Regards,

Biju

Read only

Former Member
0 Likes
795

Thanks Biju for the response. It was really helpful. I hdon't have profile with me. But I have Point of Delivery and Register. Using these two, I fetched Profile from ISU_EDM_DETERMINE_PROFILE . From there, I would be able to use BAPI_ISUPROFILE_IMPORT successfully to upload interval meter readings.