06-29-2009 2:27 PM
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?
06-29-2009 3:42 PM
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'.
06-29-2009 2:42 PM
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
06-29-2009 3:42 PM
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'.
06-30-2009 2:12 PM