SAP Function Modules

ISPAM_BULK_CHANGE_CURRENCY SAP Function module - IS-M/AM: Mass Change for Order







ISPAM_BULK_CHANGE_CURRENCY 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 ISPAM_BULK_CHANGE_CURRENCY into the relevant SAP transaction such as SE37 or SE80.

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


Pattern for FM ISPAM_BULK_CHANGE_CURRENCY - ISPAM BULK CHANGE CURRENCY





CALL FUNCTION 'ISPAM_BULK_CHANGE_CURRENCY' "IS-M/AM: Mass Change for Order
* EXPORTING
*   function =                  " sy-ucomm
*   xupdate_task =              " jpam_xfeld_var
*   xmessaging =                " jpam_xfeld_var
*   currency_new =              " komk-waerk
*   currency_new_kurst =        " komk-kurst
*   currency_new_pltyp =        " komk-pltyp
*   par_dialog =                " jpam_xfeld_var
* TABLES
*   xvbfs =                     " vbfs
  CHANGING
    sel_jhaga_tab =             " jha7_work_jhaga_tab
    documents_tab =             " jha7_documents_tab
    .  "  ISPAM_BULK_CHANGE_CURRENCY

ABAP code example for Function Module ISPAM_BULK_CHANGE_CURRENCY





The ABAP code below is a full code listing to execute function module ISPAM_BULK_CHANGE_CURRENCY 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:
it_xvbfs  TYPE STANDARD TABLE OF VBFS,"TABLES PARAM
wa_xvbfs  LIKE LINE OF it_xvbfs .

DATA(ld_sel_jhaga_tab) = 'Check type of data required'.
DATA(ld_documents_tab) = 'Check type of data required'.
DATA(ld_function) = 'some text here'.
DATA(ld_xupdate_task) = 'some text here'.
DATA(ld_xmessaging) = 'some text here'.

DATA(ld_currency_new) = Check type of data required

DATA(ld_currency_new_kurst) = some text here

DATA(ld_currency_new_pltyp) = some text here
DATA(ld_par_dialog) = 'some text here'.

"populate fields of struture and append to itab
append wa_xvbfs to it_xvbfs. . CALL FUNCTION 'ISPAM_BULK_CHANGE_CURRENCY' * EXPORTING * function = ld_function * xupdate_task = ld_xupdate_task * xmessaging = ld_xmessaging * currency_new = ld_currency_new * currency_new_kurst = ld_currency_new_kurst * currency_new_pltyp = ld_currency_new_pltyp * par_dialog = ld_par_dialog * TABLES * xvbfs = it_xvbfs CHANGING sel_jhaga_tab = ld_sel_jhaga_tab documents_tab = ld_documents_tab . " ISPAM_BULK_CHANGE_CURRENCY
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_sel_jhaga_tab  TYPE JHA7_WORK_JHAGA_TAB ,
ld_function  TYPE SY-UCOMM ,
it_xvbfs  TYPE STANDARD TABLE OF VBFS ,
wa_xvbfs  LIKE LINE OF it_xvbfs,
ld_documents_tab  TYPE JHA7_DOCUMENTS_TAB ,
ld_xupdate_task  TYPE JPAM_XFELD_VAR ,
ld_xmessaging  TYPE JPAM_XFELD_VAR ,
ld_currency_new  TYPE KOMK-WAERK ,
ld_currency_new_kurst  TYPE KOMK-KURST ,
ld_currency_new_pltyp  TYPE KOMK-PLTYP ,
ld_par_dialog  TYPE JPAM_XFELD_VAR .

ld_sel_jhaga_tab = 'some text here'.
ld_function = 'some text here'.

"populate fields of struture and append to itab
append wa_xvbfs to it_xvbfs.
ld_documents_tab = 'some text here'.
ld_xupdate_task = 'some text here'.
ld_xmessaging = 'some text here'.

ld_currency_new = Check type of data required

ld_currency_new_kurst = some text here

ld_currency_new_pltyp = some text here
ld_par_dialog = 'some text here'.

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 ISPAM_BULK_CHANGE_CURRENCY or its description.