SAP MASS_VENDOR_CHANGE_CELL_VALUE Function Module for Change color of cells in mass maintenance ALV grid









MASS_VENDOR_CHANGE_CELL_VALUE is a standard mass vendor change cell value SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for Change color of cells in mass maintenance ALV grid processing and below is the pattern details for this FM, showing its interface including any import and export parameters, exceptions etc. there is also a full "cut and paste" ABAP pattern code example, along with implementation ABAP coding, documentation and contribution comments specific to this or related objects.


See here to view full function module documentation and code listing for mass vendor change cell value FM, simply by entering the name MASS_VENDOR_CHANGE_CELL_VALUE into the relevant SAP transaction such as SE37 or SE38.

Function Group: MASS_VENDOR_UTILITIES
Program Name: SAPLMASS_VENDOR_UTILITIES
Main Program: SAPLMASS_VENDOR_UTILITIES
Appliation area:
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:



Function MASS_VENDOR_CHANGE_CELL_VALUE pattern details

In-order to call this FM within your sap programs, simply using the below ABAP pattern details to trigger the function call...or see the full ABAP code listing at the end of this article. You can simply cut and paste this code into your ABAP progrom as it is, including variable declarations.
CALL FUNCTION 'MASS_VENDOR_CHANGE_CELL_VALUE'"Change color of cells in mass maintenance ALV grid
EXPORTING
NEW_COLOR = "ALV control: Color coding
* FIELDCATALOG = "Field catalog for ListViewer control
* FIELD_TO_CLEAR = "mass maintenance flags for LFM2
* P_REFSITE_DISTR = ' ' "
* CURRENCY = 'X' "Indicates to consider currency

CHANGING
* LINES_TO_CHANGE = "ALV Control: Table of Modified Cells for the Application

TABLES
TABLE_TO_CHANGE_FROM = "table for LFM2 mass maintenance
TABLE_TO_CHANGE = "table for LFM2 mass maintenance
PREVIOUS_COLOR_TABLE = "table for LFM2 mass maintenance
.



IMPORTING Parameters details for MASS_VENDOR_CHANGE_CELL_VALUE

NEW_COLOR - ALV control: Color coding

Data type: LVC_S_COLO
Optional: No
Call by Reference: Yes

FIELDCATALOG - Field catalog for ListViewer control

Data type: LVC_T_FCAT
Optional: Yes
Call by Reference: Yes

FIELD_TO_CLEAR - mass maintenance flags for LFM2

Data type: MASS_FLAG_CLEAR
Optional: Yes
Call by Reference: Yes

P_REFSITE_DISTR -

Data type: C
Default: SPACE
Optional: Yes
Call by Reference: Yes

CURRENCY - Indicates to consider currency

Data type: C
Default: 'X'
Optional: Yes
Call by Reference: Yes

CHANGING Parameters details for MASS_VENDOR_CHANGE_CELL_VALUE

LINES_TO_CHANGE - ALV Control: Table of Modified Cells for the Application

Data type: LVC_T_MODI
Optional: Yes
Call by Reference: Yes

TABLES Parameters details for MASS_VENDOR_CHANGE_CELL_VALUE

TABLE_TO_CHANGE_FROM - table for LFM2 mass maintenance

Data type: MASS_LFM2_TABLE
Optional: No
Call by Reference: No ( called with pass by value option)

TABLE_TO_CHANGE - table for LFM2 mass maintenance

Data type: MASS_LFM2_TABLE
Optional: No
Call by Reference: No ( called with pass by value option)

PREVIOUS_COLOR_TABLE - table for LFM2 mass maintenance

Data type: MASS_LFM2_TABLE
Optional: No
Call by Reference: No ( called with pass by value option)

Copy and paste ABAP code example for MASS_VENDOR_CHANGE_CELL_VALUE Function Module

The ABAP code below is a full code listing to execute function module POPUP_TO_CONFIRM including all data declarations. The code uses the original data declarations rather than the latest in-line data DECLARATION SYNTAX but I have included an ABAP code snippet at the end to show how declarations would look using the newer method of declaring data variables on the fly. This will allow you to compare and fully understand the new inline method. Please note some of the newer syntax such as the @DATA is not available until a later 4.70 service pack (SP8), which i why i have stuck to the origianl for this example.

DATA:
lv_new_color  TYPE LVC_S_COLO, "   
lv_lines_to_change  TYPE LVC_T_MODI, "   
lt_table_to_change_from  TYPE STANDARD TABLE OF MASS_LFM2_TABLE, "   
lv_fieldcatalog  TYPE LVC_T_FCAT, "   
lt_table_to_change  TYPE STANDARD TABLE OF MASS_LFM2_TABLE, "   
lv_field_to_clear  TYPE MASS_FLAG_CLEAR, "   
lt_previous_color_table  TYPE STANDARD TABLE OF MASS_LFM2_TABLE, "   
lv_p_refsite_distr  TYPE C, "   SPACE
lv_currency  TYPE C. "   'X'

  CALL FUNCTION 'MASS_VENDOR_CHANGE_CELL_VALUE'  "Change color of cells in mass maintenance ALV grid
    EXPORTING
         NEW_COLOR = lv_new_color
         FIELDCATALOG = lv_fieldcatalog
         FIELD_TO_CLEAR = lv_field_to_clear
         P_REFSITE_DISTR = lv_p_refsite_distr
         CURRENCY = lv_currency
    CHANGING
         LINES_TO_CHANGE = lv_lines_to_change
    TABLES
         TABLE_TO_CHANGE_FROM = lt_table_to_change_from
         TABLE_TO_CHANGE = lt_table_to_change
         PREVIOUS_COLOR_TABLE = lt_previous_color_table
. " MASS_VENDOR_CHANGE_CELL_VALUE




ABAP code using 7.40 inline data declarations to call FM MASS_VENDOR_CHANGE_CELL_VALUE

The below ABAP code uses the newer in-line data declarations. This allows you to see the coding differences/benefits of the later inline syntax. Please note some of the newer syntax below, such as the @DATA is not available until 4.70 EHP 8.

 
 
 
 
 
 
 
DATA(ld_p_refsite_distr) = ' '.
 
DATA(ld_currency) = 'X'.
 


Search for further information about these or an SAP related objects



Comments on this SAP object

What made you want to lookup this SAP object? Please tell us what you were looking for and anything you would like to be included on this page!