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: 

Which FMs to use in order to modify Rate category data using a report ?

Former Member
0 Kudos

I am trying to write a report for updating Rate category data such as "Rate category text", value of "MFP flag", etc.

I came across different FMs such as

ISU_O_RATE_CAT_OPEN

ISU_S_RATE_CAT_PROVIDE

ISU_S_RATE_CAT_CHANGE

ISU_O_RATE_CAT_ACTION

ISU_O_RATE_CAT_CLOSE

Which of these FMs should I use?

1 ACCEPTED SOLUTION

Former Member
0 Kudos

You will have to use 3 function modules in sequence.

ISU_O_RATE_CAT_OPEN with WMODE = 2. Make your changes to the returned Y_OBJ deep structure.

ISU_O_RATE_CAT_ACTION with X_OKCODE = 'SAVE' and XY_OBJ = Y_OBJ.

ISU_O_RATE_CAT_CLOSE with Y_DB_UPDATE = 'X'.

View solution in original post

3 REPLIES 3

Former Member
0 Kudos

Hi Akshay,

I have used the FM "ISU_DB_EANL_UPDATE" in my project.

CONSTANTS lc_modify  TYPE c  VALUE 'U'.

  CALL FUNCTION 'ISU_DB_EANL_UPDATE'
    EXPORTING
      x_eanl          = xw_eanl
      x_eanl_old      = xw_eanl
      x_upd_mode      = lc_modify
    TABLES
      xt_eanlh_update = xt_eanlh_mod
      xt_eanlh_old    = xt_eanlh_old.

where eanl is the entry in EANL table.

OLD_EANLH contains the old entry line item of the Rate Category table and NEW_EANLH contains the new line item to be added. This is the crude way of doing this. But I didnt find any other FM useful.

But this works.

Hope this also resolves your query.

Regards,

Manish

Edited by: Manish Bisht on Jun 29, 2009 3:43 PM

Former Member
0 Kudos

You will have to use 3 function modules in sequence.

ISU_O_RATE_CAT_OPEN with WMODE = 2. Make your changes to the returned Y_OBJ deep structure.

ISU_O_RATE_CAT_ACTION with X_OKCODE = 'SAVE' and XY_OBJ = Y_OBJ.

ISU_O_RATE_CAT_CLOSE with Y_DB_UPDATE = 'X'.

0 Kudos

Thanks a lot. It worked !!!