SAP UPP_SERV_SETDATA_SPREADS Function Module for Manual planning: setting data from spreadsheet









UPP_SERV_SETDATA_SPREADS is a standard upp serv setdata spreads SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for Manual planning: setting data from spreadsheet 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 upp serv setdata spreads FM, simply by entering the name UPP_SERV_SETDATA_SPREADS into the relevant SAP transaction such as SE37 or SE38.

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



Function UPP_SERV_SETDATA_SPREADS 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 'UPP_SERV_SETDATA_SPREADS'"Manual planning: setting data from spreadsheet
EXPORTING
I_HNDL = "Planning Processor: Handle for Context
I_OK_CODE = "Screens, Function Code Triggered by PAI
IT_DIMENSION = "
IT_CONTENTS = "
I_SSTOP = "Row position in Spreadsheet
I_SSLEFT = "Column Position in Spreadsheet
* I_ROWS = 1 "Lines in spread sheet range
* I_COLUMNS = 1 "Columns in spread sheet range
I_DECIMAL_SEPARATOR = "Single-Character Flag

IMPORTING
ETO_CHARSEL = "Characteristic Selections
E_ROW_SELECTION = "Line selected
ET_ERR_MESG = "Planning-Processor: message log
E_OK_CODE_PROCESSED = "Single-Character Flag
E_ERROR_MODE = "Single-Character Flag
E_DATAR = "Single-Character Flag

EXCEPTIONS
INVALID_HANDLE = 1 INPUT_ERROR = 2
.



IMPORTING Parameters details for UPP_SERV_SETDATA_SPREADS

I_HNDL - Planning Processor: Handle for Context

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

I_OK_CODE - Screens, Function Code Triggered by PAI

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

IT_DIMENSION -

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

IT_CONTENTS -

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

I_SSTOP - Row position in Spreadsheet

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

I_SSLEFT - Column Position in Spreadsheet

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

I_ROWS - Lines in spread sheet range

Data type: UPP_Y_ROWS
Default: 1
Optional: Yes
Call by Reference: Yes

I_COLUMNS - Columns in spread sheet range

Data type: UPP_Y_COLUMNS
Default: 1
Optional: Yes
Call by Reference: Yes

I_DECIMAL_SEPARATOR - Single-Character Flag

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

EXPORTING Parameters details for UPP_SERV_SETDATA_SPREADS

ETO_CHARSEL - Characteristic Selections

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

E_ROW_SELECTION - Line selected

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

ET_ERR_MESG - Planning-Processor: message log

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

E_OK_CODE_PROCESSED - Single-Character Flag

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

E_ERROR_MODE - Single-Character Flag

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

E_DATAR - Single-Character Flag

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

EXCEPTIONS details

INVALID_HANDLE - No instance exists

Data type:
Optional: No
Call by Reference: Yes

INPUT_ERROR - Error after reading

Data type:
Optional: No
Call by Reference: Yes

Copy and paste ABAP code example for UPP_SERV_SETDATA_SPREADS 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_i_hndl  TYPE UPP_Y_PP_HNDL, "   
lv_eto_charsel  TYPE UPC_YTO_CHARSEL, "   
lv_invalid_handle  TYPE UPC_YTO_CHARSEL, "   
lv_i_ok_code  TYPE SYUCOMM, "   
lv_input_error  TYPE SYUCOMM, "   
lv_e_row_selection  TYPE CHAR1, "   
lv_et_err_mesg  TYPE UPP_YT_ERR_MESG, "   
lv_it_dimension  TYPE SOI_DIMENSION_TABLE, "   
lv_it_contents  TYPE SOI_GENERIC_TABLE, "   
lv_e_ok_code_processed  TYPE CHAR1, "   
lv_i_sstop  TYPE UPP_Y_SSTOP, "   
lv_e_error_mode  TYPE CHAR1, "   
lv_e_datar  TYPE CHAR1, "   
lv_i_ssleft  TYPE UPP_Y_SSLEFT, "   
lv_i_rows  TYPE UPP_Y_ROWS, "   1
lv_i_columns  TYPE UPP_Y_COLUMNS, "   1
lv_i_decimal_separator  TYPE CHAR1. "   

  CALL FUNCTION 'UPP_SERV_SETDATA_SPREADS'  "Manual planning: setting data from spreadsheet
    EXPORTING
         I_HNDL = lv_i_hndl
         I_OK_CODE = lv_i_ok_code
         IT_DIMENSION = lv_it_dimension
         IT_CONTENTS = lv_it_contents
         I_SSTOP = lv_i_sstop
         I_SSLEFT = lv_i_ssleft
         I_ROWS = lv_i_rows
         I_COLUMNS = lv_i_columns
         I_DECIMAL_SEPARATOR = lv_i_decimal_separator
    IMPORTING
         ETO_CHARSEL = lv_eto_charsel
         E_ROW_SELECTION = lv_e_row_selection
         ET_ERR_MESG = lv_et_err_mesg
         E_OK_CODE_PROCESSED = lv_e_ok_code_processed
         E_ERROR_MODE = lv_e_error_mode
         E_DATAR = lv_e_datar
    EXCEPTIONS
        INVALID_HANDLE = 1
        INPUT_ERROR = 2
. " UPP_SERV_SETDATA_SPREADS




ABAP code using 7.40 inline data declarations to call FM UPP_SERV_SETDATA_SPREADS

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_i_rows) = 1.
 
DATA(ld_i_columns) = 1.
 
 


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!