SAP Function Modules

MY_KONV_OPERATOR_GET SAP Function module







MY_KONV_OPERATOR_GET is a standard SAP function module available within R/3 SAP systems depending on your version and release level. Below is the pattern details for this FM showing its interface including any import and export parameters, exceptions etc as well as any documentation contributions (Comments) specific to the object.

See here to view full function module documentation and code listing, simply by entering the name MY_KONV_OPERATOR_GET into the relevant SAP transaction such as SE37 or SE80.

Associated Function Group: MYBSV
Released Date: Not Released
Processing type: Normal fucntion module
Normal function module settings


Pattern for FM MY_KONV_OPERATOR_GET - MY KONV OPERATOR GET





CALL FUNCTION 'MY_KONV_OPERATOR_GET' "
  EXPORTING
    i_bewtp =                   " ekbz-bewtp    Purchase Order History Category
    i_shkzg =                   " ekbz-shkzg    Debit/Credit Indicator
    i_knumv =                   " konv-knumv    Number of Document Condition
    i_kposn_buz =               " konv-kposn    Condition Item Number
    i_kposn_ebp =               " konv-kposn    Condition Item Number
    i_ebeln =                   " ekko-ebeln    Purchasing Document Number
    i_stunr =                   " konv-stunr    Level Number
    i_zaehk =                   " konv-zaehk    Condition Counter
    i_operator =                " my_operator   Arithmetic operator
  IMPORTING
    e_operator =                " my_operator   Arithmetic operator
    e_subrc =                   " sy-subrc      Return Value, Return Value after ABAP Statements
    .  "  MY_KONV_OPERATOR_GET

ABAP code example for Function Module MY_KONV_OPERATOR_GET





The ABAP code below is a full code listing to execute function module MY_KONV_OPERATOR_GET including all data declarations. The code uses 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 original method of declaring data variables up front. 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).

DATA:
ld_e_operator  TYPE MY_OPERATOR ,
ld_e_subrc  TYPE SY-SUBRC .


SELECT single BEWTP
FROM EKBZ
INTO @DATA(ld_i_bewtp).


SELECT single SHKZG
FROM EKBZ
INTO @DATA(ld_i_shkzg).


SELECT single KNUMV
FROM KONV
INTO @DATA(ld_i_knumv).


SELECT single KPOSN
FROM KONV
INTO @DATA(ld_i_kposn_buz).


SELECT single KPOSN
FROM KONV
INTO @DATA(ld_i_kposn_ebp).


SELECT single EBELN
FROM EKKO
INTO @DATA(ld_i_ebeln).


SELECT single STUNR
FROM KONV
INTO @DATA(ld_i_stunr).


SELECT single ZAEHK
FROM KONV
INTO @DATA(ld_i_zaehk).

DATA(ld_i_operator) = 'Check type of data required'. . CALL FUNCTION 'MY_KONV_OPERATOR_GET' EXPORTING i_bewtp = ld_i_bewtp i_shkzg = ld_i_shkzg i_knumv = ld_i_knumv i_kposn_buz = ld_i_kposn_buz i_kposn_ebp = ld_i_kposn_ebp i_ebeln = ld_i_ebeln i_stunr = ld_i_stunr i_zaehk = ld_i_zaehk i_operator = ld_i_operator IMPORTING e_operator = ld_e_operator e_subrc = ld_e_subrc . " MY_KONV_OPERATOR_GET
IF SY-SUBRC EQ 0. "All OK ENDIF.







ABAP code to compare 7.40 inline data declaration with original syntax

The below ABAP code uses the older none in-line data declarations. This allows you to see the coding differences/benefits of the later inline syntax. It may also be useful if you are using an older version of SAP as some of the newer syntax above, such as the @DATA is not available until 4.70 EHP 8.

DATA:
ld_e_operator  TYPE MY_OPERATOR ,
ld_i_bewtp  TYPE EKBZ-BEWTP ,
ld_e_subrc  TYPE SY-SUBRC ,
ld_i_shkzg  TYPE EKBZ-SHKZG ,
ld_i_knumv  TYPE KONV-KNUMV ,
ld_i_kposn_buz  TYPE KONV-KPOSN ,
ld_i_kposn_ebp  TYPE KONV-KPOSN ,
ld_i_ebeln  TYPE EKKO-EBELN ,
ld_i_stunr  TYPE KONV-STUNR ,
ld_i_zaehk  TYPE KONV-ZAEHK ,
ld_i_operator  TYPE MY_OPERATOR .


SELECT single BEWTP
FROM EKBZ
INTO ld_i_bewtp.


SELECT single SHKZG
FROM EKBZ
INTO ld_i_shkzg.


SELECT single KNUMV
FROM KONV
INTO ld_i_knumv.


SELECT single KPOSN
FROM KONV
INTO ld_i_kposn_buz.


SELECT single KPOSN
FROM KONV
INTO ld_i_kposn_ebp.


SELECT single EBELN
FROM EKKO
INTO ld_i_ebeln.


SELECT single STUNR
FROM KONV
INTO ld_i_stunr.


SELECT single ZAEHK
FROM KONV
INTO ld_i_zaehk.

ld_i_operator = 'Check type of data required'.

Contribute (Add Comments)

Please help keep this info upto date and use the comments section below to add useful hints, tips and information specific to this SAP function. This will then be available for you and other users to easily find by simply searching on the object name MY_KONV_OPERATOR_GET or its description.