SAP Function Modules

ISM_JSTSTRPRO_USPS_POST_DATA SAP Function module - IS-M: Generate Streets, PCd-City Assgts, PCds, PO Boxes from ZIP+4 File(







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

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


Pattern for FM ISM_JSTSTRPRO_USPS_POST_DATA - ISM JSTSTRPRO USPS POST DATA





CALL FUNCTION 'ISM_JSTSTRPRO_USPS_POST_DATA' "IS-M: Generate Streets, PCd-City Assgts, PCds, PO Boxes from ZIP+4 File(s)
  EXPORTING
    dsetname =                  " filename-fileintern
    country =                   " t005-land1
    restart_counter =           " tjy09-zaehler
    commit_counter =            " tjy09-zaehler
    log_file =                  " filename-fileintern
*   from_codepage =             " codepages-codepage
*   to_codepage =               " codepages-codepage
*   error_file =                " csequence     Logical File Name
  TABLES
    state_range =               "
  EXCEPTIONS
    INVALID_INPUT = 1           "
    END_OF_DATASET = 2          "
    CANT_READ_DATASET = 3       "
    FILE_ERROR = 4              "
    VERSION_ERROR = 5           "
    RECORD_ERROR = 6            "
    .  "  ISM_JSTSTRPRO_USPS_POST_DATA

ABAP code example for Function Module ISM_JSTSTRPRO_USPS_POST_DATA





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


SELECT single FILEINTERN
FROM FILENAME
INTO @DATA(ld_dsetname).


SELECT single LAND1
FROM T005
INTO @DATA(ld_country).


SELECT single ZAEHLER
FROM TJY09
INTO @DATA(ld_restart_counter).


SELECT single ZAEHLER
FROM TJY09
INTO @DATA(ld_commit_counter).


SELECT single FILEINTERN
FROM FILENAME
INTO @DATA(ld_log_file).


DATA(ld_from_codepage) = Check type of data required

DATA(ld_to_codepage) = Check type of data required
DATA(ld_error_file) = 'Check type of data required'.

"populate fields of struture and append to itab
append wa_state_range to it_state_range. . CALL FUNCTION 'ISM_JSTSTRPRO_USPS_POST_DATA' EXPORTING dsetname = ld_dsetname country = ld_country restart_counter = ld_restart_counter commit_counter = ld_commit_counter log_file = ld_log_file * from_codepage = ld_from_codepage * to_codepage = ld_to_codepage * error_file = ld_error_file TABLES state_range = it_state_range EXCEPTIONS INVALID_INPUT = 1 END_OF_DATASET = 2 CANT_READ_DATASET = 3 FILE_ERROR = 4 VERSION_ERROR = 5 RECORD_ERROR = 6 . " ISM_JSTSTRPRO_USPS_POST_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 ELSEIF SY-SUBRC EQ 4. "Exception "Add code for exception here ELSEIF SY-SUBRC EQ 5. "Exception "Add code for exception here ELSEIF SY-SUBRC EQ 6. "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_dsetname  TYPE FILENAME-FILEINTERN ,
it_state_range  TYPE STANDARD TABLE OF STRING ,
wa_state_range  LIKE LINE OF it_state_range,
ld_country  TYPE T005-LAND1 ,
ld_restart_counter  TYPE TJY09-ZAEHLER ,
ld_commit_counter  TYPE TJY09-ZAEHLER ,
ld_log_file  TYPE FILENAME-FILEINTERN ,
ld_from_codepage  TYPE CODEPAGES-CODEPAGE ,
ld_to_codepage  TYPE CODEPAGES-CODEPAGE ,
ld_error_file  TYPE CSEQUENCE .


SELECT single FILEINTERN
FROM FILENAME
INTO ld_dsetname.


"populate fields of struture and append to itab
append wa_state_range to it_state_range.

SELECT single LAND1
FROM T005
INTO ld_country.


SELECT single ZAEHLER
FROM TJY09
INTO ld_restart_counter.


SELECT single ZAEHLER
FROM TJY09
INTO ld_commit_counter.


SELECT single FILEINTERN
FROM FILENAME
INTO ld_log_file.


ld_from_codepage = Check type of data required

ld_to_codepage = Check type of data required
ld_error_file = '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 ISM_JSTSTRPRO_USPS_POST_DATA or its description.