SAP for Utilities Discussions
Connect with fellow SAP users to share best practices, troubleshoot challenges, and collaborate on building a sustainable energy future. Join the discussion.
cancel
Showing results for 
Search instead for 
Did you mean: 

How to write values in a profile?

Former Member
0 Kudos

HI,

Whats the Bapi for writing values into a historical profile. I will be passing profile number, Date, Time zone as input.

BAPI_ISUPROFILE_GET is for getting values from a profile. Whats the opposite of this??

Regards

Ritesh

3 REPLIES 3

Former Member
0 Kudos

*Allocation of profiles.

CALL FUNCTION 'ISU_DB_EPROFASS_UPDATE_PREPARE'

EXPORTING

x_profass_old = lt_xy_obj-db_data-ieprofass

IMPORTING

yt_insert_profass = lt_insert_eprofass

yt_update_profass = lt_update_eprofass

yt_delete_profass = lt_delete_eprofass

CHANGING

x_profass_new = lt_xy_obj-data-ieprofass.

  • Now call the function to update the rows.

CALL FUNCTION 'ISU_DB_EPROFASS_UPDATE_ALL'

TABLES

xt_insert_profass = lt_insert_eprofass

xt_update_profass = lt_update_eprofass

xt_delete_profass = lt_delete_eprofass

EXCEPTIONS

OTHERS = 1.

Regards,

Siva

Former Member
0 Kudos

When using the profile number to import data use BAPI_ISUPROFILE_IMPORT

Otherwise, based on PoD and reference (register code), use BAPI_ISUPROFILE_UPLOAD

Former Member
0 Kudos

Use BAPI_ISUPROFILE_IMPORT To upload values into the profile by filling the internal table with profile values and pass that as the table parameter.