SAP FSH_SC_SELECT_CONV_TYPE Function Module for Selecting a Converstion type









FSH_SC_SELECT_CONV_TYPE is a standard fsh sc select conv type SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for Selecting a Converstion type 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 fsh sc select conv type FM, simply by entering the name FSH_SC_SELECT_CONV_TYPE into the relevant SAP transaction such as SE37 or SE38.

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



Function FSH_SC_SELECT_CONV_TYPE 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 'FSH_SC_SELECT_CONV_TYPE'"Selecting a Converstion type
EXPORTING
IT_MATNR = "Material Number
* IV_MID = '$$' "Material Conversion ID for Characteristic Value Conversion
* IV_CID = ' ' "Customer/Vendor ID
* IS_DOC_DATA = "Conversion: Relevant Document Data
* IV_MATRIX = "X=Conversion for Matrix, Generic Article must be passed
* IV_ITEM_BASED = ' ' "'X' - Item based conversion
* IV_NO_SEL_ITEM_BASED = 'X' "'X' - Removes Item based from the Pop Up

IMPORTING
EV_DOCUMENT_CONVTYPE = "Global conversion type (document conversion type)
ES_PUSHB_CONVTYPE = "Menu Painter: Program interface for dynamic texts
ET_CONVERTED = "Table type for Conversion Combination Values
EV_RCODE = "Return Code
.



IMPORTING Parameters details for FSH_SC_SELECT_CONV_TYPE

IT_MATNR - Material Number

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

IV_MID - Material Conversion ID for Characteristic Value Conversion

Data type: FSH_SC_MID
Default: '$$'
Optional: Yes
Call by Reference: No ( called with pass by value option)

IV_CID - Customer/Vendor ID

Data type: FSH_SC_CID
Default: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)

IS_DOC_DATA - Conversion: Relevant Document Data

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

IV_MATRIX - X=Conversion for Matrix, Generic Article must be passed

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

IV_ITEM_BASED - 'X' - Item based conversion

Data type: BOOLEAN
Default: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)

IV_NO_SEL_ITEM_BASED - 'X' - Removes Item based from the Pop Up

Data type: BOOLEAN
Default: 'X'
Optional: Yes
Call by Reference: No ( called with pass by value option)

EXPORTING Parameters details for FSH_SC_SELECT_CONV_TYPE

EV_DOCUMENT_CONVTYPE - Global conversion type (document conversion type)

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

ES_PUSHB_CONVTYPE - Menu Painter: Program interface for dynamic texts

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

ET_CONVERTED - Table type for Conversion Combination Values

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

EV_RCODE - Return Code

Data type: FSH_S_SC_RCODE-RCODE
Optional: No
Call by Reference: No ( called with pass by value option)

Copy and paste ABAP code example for FSH_SC_SELECT_CONV_TYPE 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_it_matnr  TYPE PRE03_TAB, "   
lv_ev_document_convtype  TYPE FSH_SC_DOCUMENT_CONVTYPE, "   
lv_iv_mid  TYPE FSH_SC_MID, "   '$$'
lv_es_pushb_convtype  TYPE SMP_DYNTXT, "   
lv_iv_cid  TYPE FSH_SC_CID, "   SPACE
lv_et_converted  TYPE FSH_T_SC_VAL, "   
lv_ev_rcode  TYPE FSH_S_SC_RCODE-RCODE, "   
lv_is_doc_data  TYPE FSH_SC_DOC_DATA, "   
lv_iv_matrix  TYPE BOOLEAN, "   
lv_iv_item_based  TYPE BOOLEAN, "   SPACE
lv_iv_no_sel_item_based  TYPE BOOLEAN. "   'X'

  CALL FUNCTION 'FSH_SC_SELECT_CONV_TYPE'  "Selecting a Converstion type
    EXPORTING
         IT_MATNR = lv_it_matnr
         IV_MID = lv_iv_mid
         IV_CID = lv_iv_cid
         IS_DOC_DATA = lv_is_doc_data
         IV_MATRIX = lv_iv_matrix
         IV_ITEM_BASED = lv_iv_item_based
         IV_NO_SEL_ITEM_BASED = lv_iv_no_sel_item_based
    IMPORTING
         EV_DOCUMENT_CONVTYPE = lv_ev_document_convtype
         ES_PUSHB_CONVTYPE = lv_es_pushb_convtype
         ET_CONVERTED = lv_et_converted
         EV_RCODE = lv_ev_rcode
. " FSH_SC_SELECT_CONV_TYPE




ABAP code using 7.40 inline data declarations to call FM FSH_SC_SELECT_CONV_TYPE

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_iv_mid) = '$$'.
 
 
DATA(ld_iv_cid) = ' '.
 
 
"SELECT single RCODE FROM FSH_S_SC_RCODE INTO @DATA(ld_ev_rcode).
 
 
 
DATA(ld_iv_item_based) = ' '.
 
DATA(ld_iv_no_sel_item_based) = '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!