SAP ISM_SHIPORDPOS_CODE Function Module for Code Shipping Address
ISM_SHIPORDPOS_CODE is a standard ism shipordpos code SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for Code Shipping Address 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 ism shipordpos code FM, simply by entering the name ISM_SHIPORDPOS_CODE into the relevant SAP transaction such as SE37 or SE38.
Function Group: JVSO
Program Name: SAPLJVSO
Main Program: SAPLJVSO
Appliation area: J
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:

Function ISM_SHIPORDPOS_CODE 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 'ISM_SHIPORDPOS_CODE'"Code Shipping Address.
EXPORTING
SHIPADR = "IS-M/SD Address Attributes for Shipping Order Item
VALIDFROM = "Valid From Date
VALIDTO = "Valid to Date
IMPORTING
CITY_NBR = "IS-M: City Number (Unique)
STREET_NBR = "IS-M: Street Number
POBOX_NBR = "IS-M: Postal Unit of City for PO Box
STREET_CODED = "IS-M: Coding Status of Address
POBOX_CODED = "IS-M: Coding Status of Address
MAJCUS_CODED = "IS-M: Coding Status of Address
DURATION = "
TABLES
RETURN = "
EXCEPTIONS
ADDRESS_CODING_NOT_FOUND = 1 ADDRESS_CODING_FAILED = 2
Customer Function user exits
Below is a list of CUSTOMER FUNCTION exit user exits that are available within this program and maybe relevant for this FM.EXIT_SAPLJVSO_001 IS-M: User Exit for Logistical Delivery Type and Shipping Date of Delivery
EXIT_SAPLJVSO_002 IS-M/SD User Exit for Importing Shipping Orders
IMPORTING Parameters details for ISM_SHIPORDPOS_CODE
SHIPADR - IS-M/SD Address Attributes for Shipping Order Item
Data type: JVSOP_ADDRESSOptional: No
Call by Reference: No ( called with pass by value option)
VALIDFROM - Valid From Date
Data type: GUELTIGVONOptional: No
Call by Reference: No ( called with pass by value option)
VALIDTO - Valid to Date
Data type: GUELTIGBISOptional: No
Call by Reference: No ( called with pass by value option)
EXPORTING Parameters details for ISM_SHIPORDPOS_CODE
CITY_NBR - IS-M: City Number (Unique)
Data type: JALORTOptional: No
Call by Reference: No ( called with pass by value option)
STREET_NBR - IS-M: Street Number
Data type: STRASSENNROptional: No
Call by Reference: No ( called with pass by value option)
POBOX_NBR - IS-M: Postal Unit of City for PO Box
Data type: ALORT2Optional: No
Call by Reference: No ( called with pass by value option)
STREET_CODED - IS-M: Coding Status of Address
Data type: UVADR_ADOptional: No
Call by Reference: No ( called with pass by value option)
POBOX_CODED - IS-M: Coding Status of Address
Data type: UVADR_ADOptional: No
Call by Reference: No ( called with pass by value option)
MAJCUS_CODED - IS-M: Coding Status of Address
Data type: UVADR_ADOptional: No
Call by Reference: No ( called with pass by value option)
DURATION -
Data type: IOptional: No
Call by Reference: No ( called with pass by value option)
TABLES Parameters details for ISM_SHIPORDPOS_CODE
RETURN -
Data type: JYMSG_T_MSGOptional: No
Call by Reference: Yes
EXCEPTIONS details
ADDRESS_CODING_NOT_FOUND -
Data type:Optional: No
Call by Reference: Yes
ADDRESS_CODING_FAILED -
Data type:Optional: No
Call by Reference: Yes
Copy and paste ABAP code example for ISM_SHIPORDPOS_CODE 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: | ||||
| lt_return | TYPE STANDARD TABLE OF JYMSG_T_MSG, " | |||
| lv_shipadr | TYPE JVSOP_ADDRESS, " | |||
| lv_city_nbr | TYPE JALORT, " | |||
| lv_address_coding_not_found | TYPE JALORT, " | |||
| lv_validfrom | TYPE GUELTIGVON, " | |||
| lv_street_nbr | TYPE STRASSENNR, " | |||
| lv_address_coding_failed | TYPE STRASSENNR, " | |||
| lv_validto | TYPE GUELTIGBIS, " | |||
| lv_pobox_nbr | TYPE ALORT2, " | |||
| lv_street_coded | TYPE UVADR_AD, " | |||
| lv_pobox_coded | TYPE UVADR_AD, " | |||
| lv_majcus_coded | TYPE UVADR_AD, " | |||
| lv_duration | TYPE I. " |
|   CALL FUNCTION 'ISM_SHIPORDPOS_CODE' "Code Shipping Address |
| EXPORTING | ||
| SHIPADR | = lv_shipadr | |
| VALIDFROM | = lv_validfrom | |
| VALIDTO | = lv_validto | |
| IMPORTING | ||
| CITY_NBR | = lv_city_nbr | |
| STREET_NBR | = lv_street_nbr | |
| POBOX_NBR | = lv_pobox_nbr | |
| STREET_CODED | = lv_street_coded | |
| POBOX_CODED | = lv_pobox_coded | |
| MAJCUS_CODED | = lv_majcus_coded | |
| DURATION | = lv_duration | |
| TABLES | ||
| RETURN | = lt_return | |
| EXCEPTIONS | ||
| ADDRESS_CODING_NOT_FOUND = 1 | ||
| ADDRESS_CODING_FAILED = 2 | ||
| . " ISM_SHIPORDPOS_CODE | ||
ABAP code using 7.40 inline data declarations to call FM ISM_SHIPORDPOS_CODE
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.Search for further information about these or an SAP related objects