SAP Function Modules

ISP_JSTKGSPRO_DBP_POSTE_DATA SAP Function module - IS-M/SD: Transfer Data for Table JSTKGSPRO







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

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


Pattern for FM ISP_JSTKGSPRO_DBP_POSTE_DATA - ISP JSTKGSPRO DBP POSTE DATA





CALL FUNCTION 'ISP_JSTKGSPRO_DBP_POSTE_DATA' "IS-M/SD: Transfer Data for Table JSTKGSPRO
  EXPORTING
    dsetname =                  "               Dataset name
    land =                      " t005-land1    Country
  IMPORTING
    loc_jstkgspro =             " jpost_jstkgspro
    loc_jstortpro =             " jpost_jstortpro
    loc_jstotlpro =             " jpost_jstotlpro
    loc_jstplzort =             " jpost_jstplzort
    loc_jstplzpro =             " jpost_jstplzpro
    loc_jstpofpro =             " jpost_jstpofpro
    loc_jststrpro =             " jpost_jststrpro
    x_dbcode_kgs =              "
    x_dbcode_ort =              "
    x_dbcode_otl =              "
    x_dbcode_plz =              "
    x_dbcode_plzort =           "
    x_dbcode_pof =              "
    x_dbcode_str =              "
  EXCEPTIONS
    CANT_READ_DATASET = 1       "
    END_OF_DATASET = 2          "
    UNKNOWN_DATA = 3            "
    .  "  ISP_JSTKGSPRO_DBP_POSTE_DATA

ABAP code example for Function Module ISP_JSTKGSPRO_DBP_POSTE_DATA





The ABAP code below is a full code listing to execute function module ISP_JSTKGSPRO_DBP_POSTE_DATA 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_loc_jstkgspro  TYPE JPOST_JSTKGSPRO ,
ld_loc_jstortpro  TYPE JPOST_JSTORTPRO ,
ld_loc_jstotlpro  TYPE JPOST_JSTOTLPRO ,
ld_loc_jstplzort  TYPE JPOST_JSTPLZORT ,
ld_loc_jstplzpro  TYPE JPOST_JSTPLZPRO ,
ld_loc_jstpofpro  TYPE JPOST_JSTPOFPRO ,
ld_loc_jststrpro  TYPE JPOST_JSTSTRPRO ,
ld_x_dbcode_kgs  TYPE STRING ,
ld_x_dbcode_ort  TYPE STRING ,
ld_x_dbcode_otl  TYPE STRING ,
ld_x_dbcode_plz  TYPE STRING ,
ld_x_dbcode_plzort  TYPE STRING ,
ld_x_dbcode_pof  TYPE STRING ,
ld_x_dbcode_str  TYPE STRING .

DATA(ld_dsetname) = 'some text here'.

SELECT single LAND1
FROM T005
INTO @DATA(ld_land).
. CALL FUNCTION 'ISP_JSTKGSPRO_DBP_POSTE_DATA' EXPORTING dsetname = ld_dsetname land = ld_land IMPORTING loc_jstkgspro = ld_loc_jstkgspro loc_jstortpro = ld_loc_jstortpro loc_jstotlpro = ld_loc_jstotlpro loc_jstplzort = ld_loc_jstplzort loc_jstplzpro = ld_loc_jstplzpro loc_jstpofpro = ld_loc_jstpofpro loc_jststrpro = ld_loc_jststrpro x_dbcode_kgs = ld_x_dbcode_kgs x_dbcode_ort = ld_x_dbcode_ort x_dbcode_otl = ld_x_dbcode_otl x_dbcode_plz = ld_x_dbcode_plz x_dbcode_plzort = ld_x_dbcode_plzort x_dbcode_pof = ld_x_dbcode_pof x_dbcode_str = ld_x_dbcode_str EXCEPTIONS CANT_READ_DATASET = 1 END_OF_DATASET = 2 UNKNOWN_DATA = 3 . " ISP_JSTKGSPRO_DBP_POSTE_DATA
IF SY-SUBRC EQ 0. "All OK ELSEIF SY-SUBRC EQ 1. "Exception "Add code for exception here ELSEIF SY-SUBRC EQ 2. "Exception "Add code for exception here ELSEIF SY-SUBRC EQ 3. "Exception "Add code for exception here 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_loc_jstkgspro  TYPE JPOST_JSTKGSPRO ,
ld_dsetname  TYPE STRING ,
ld_loc_jstortpro  TYPE JPOST_JSTORTPRO ,
ld_land  TYPE T005-LAND1 ,
ld_loc_jstotlpro  TYPE JPOST_JSTOTLPRO ,
ld_loc_jstplzort  TYPE JPOST_JSTPLZORT ,
ld_loc_jstplzpro  TYPE JPOST_JSTPLZPRO ,
ld_loc_jstpofpro  TYPE JPOST_JSTPOFPRO ,
ld_loc_jststrpro  TYPE JPOST_JSTSTRPRO ,
ld_x_dbcode_kgs  TYPE STRING ,
ld_x_dbcode_ort  TYPE STRING ,
ld_x_dbcode_otl  TYPE STRING ,
ld_x_dbcode_plz  TYPE STRING ,
ld_x_dbcode_plzort  TYPE STRING ,
ld_x_dbcode_pof  TYPE STRING ,
ld_x_dbcode_str  TYPE STRING .

ld_dsetname = 'some text here'.

SELECT single LAND1
FROM T005
INTO ld_land.

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