SAP Note 22878 - RepWriter: Formula variables for non-numeric fields

Component : Sets -

Solution : https://service.sap.com/sap/support/notes/22878 (SAP Service marketplace login required)

Summary :
SAP Note specifies that maintenance of formula variables for non-numeric fields was not originally included in the formula interpreter. From Release 4.5A, support was extended allowing numeric results from non-numeric field formula variables. User exits prior to 4.5A can define formula variables using an ABAP FORM pool, specifically citing the delivered FORM pool RGSVU000 for custom modifications. Users must manage variable values explicitly within the user exits using a structured internal table var_memory_tab to capture runtime variables and ensure proper global memory management outlined with specific ABAP/4 coding instructions for updating globals.

Key words :
set parameter command                         'x'        modify spa/gpa parameter, sgrw_docu_cons_notesgrw_om sgrw_ps sgrw_pc sgrw_sl sgrw_pca sgrw_ec sgrw_lis, formulas             --------------------------------------------------------------------- eject ---------------------------------------------------------------------        subroutine update-globals                                     ---------------------------------------------------------------------        replaces globals, variables->          insert var_memory_tab index sy-tabix, variables->             insert var_memory_tab index sy-tabix, variables->           insert var_memory_tab index sy-tabix, variables->            insert var_memory_tab index sy-tabix, assign proper data type  import var_memory_tab, '0' ---------------------------------------------------------------------- form u001 changing u_exit_value u_exit_type u_subrc, local list append local list

Related Notes :

430053Formula exits w/ variables do not work after upgrade
352391Composite note 'Modifications/Customer Enhancement'