SAP ISP_ADDRESS_PAM_ORDER_SELECT Function Module for IS-M/SD: Determine Address of Business Partner in Order









ISP_ADDRESS_PAM_ORDER_SELECT is a standard isp address pam order select SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for IS-M/SD: Determine Address of Business Partner in Order 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 isp address pam order select FM, simply by entering the name ISP_ADDRESS_PAM_ORDER_SELECT into the relevant SAP transaction such as SE37 or SE38.

Function Group: JHPD
Program Name: SAPLJHPD
Main Program: SAPLJHPD
Appliation area:
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:



Function ISP_ADDRESS_PAM_ORDER_SELECT 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 'ISP_ADDRESS_PAM_ORDER_SELECT'"IS-M/SD: Determine Address of Business Partner in Order
EXPORTING
* AKTYP = 'H' "Activity Category in the Transaction
* DIALOG = '.' "
* ADRVAR = ' ' "Checkbox Field
BASISSPR = "Basic Language for Text Display
* ADRNR_ZU = "
* LOGADR_ZU = "
* ADRESSVAR_ZU = "
* XAP_ZU = ' ' "Indicator Contact Person
GPNR = "Business Partner Number
* GUELTIGBIS = CON_TIME_INFINITY "
* GUELTIGVON = CON_TIME_ZERO "
ROLLE = "Business Partner Role
* XABHOLUNG = ' ' "Checkbox Field
* XADRESSE_ANLEGEN = ' ' "Checkbox Field
* XPOSTVERSAND = 'X' "
* XREISE = ' ' "Checkbox Field

IMPORTING
ADRESSVERLAUF_PFLEGEN = "Checkbox Field
AUFTRAGADRESSE_PFLEGEN = "
PREVIEW_PFLEGEN = "Checkbox Field

CHANGING
* PV_FLG_ADDR_DISPLAYED = ' ' "Checkbox Field

TABLES
* ORDER_ACT_ADDRESS = "
* ORDER_SPEC_ADDRESS = "
* ORDER_ADDRESS = "Address Table
* PREVIEW_ADDRESS = "

EXCEPTIONS
NO_ADDRESS_FOR_MAILING = 1 NO_DATA_FOUND = 2 NO_PICKUP_POSSIBLE = 3 NO_SELECTION = 4
.



IMPORTING Parameters details for ISP_ADDRESS_PAM_ORDER_SELECT

AKTYP - Activity Category in the Transaction

Data type: TJ180-AKTYP
Default: 'H'
Optional: Yes
Call by Reference: No ( called with pass by value option)

DIALOG -

Data type: ISM_PERMISSION
Default: '.'
Optional: Yes
Call by Reference: No ( called with pass by value option)

ADRVAR - Checkbox Field

Data type: XFELD
Default: ' '
Optional: Yes
Call by Reference: No ( called with pass by value option)

BASISSPR - Basic Language for Text Display

Data type: RJHALLG-BASISSPR
Optional: No
Call by Reference: No ( called with pass by value option)

ADRNR_ZU -

Data type:
Optional: Yes
Call by Reference: No ( called with pass by value option)

LOGADR_ZU -

Data type:
Optional: Yes
Call by Reference: No ( called with pass by value option)

ADRESSVAR_ZU -

Data type:
Optional: Yes
Call by Reference: No ( called with pass by value option)

XAP_ZU - Indicator Contact Person

Data type: XFELD
Default: ' '
Optional: Yes
Call by Reference: No ( called with pass by value option)

GPNR - Business Partner Number

Data type: JGTGPNR-GPNR
Optional: No
Call by Reference: No ( called with pass by value option)

GUELTIGBIS -

Data type: RJHAP-SELDAT_BIS
Default: CON_TIME_INFINITY
Optional: Yes
Call by Reference: No ( called with pass by value option)

GUELTIGVON -

Data type: RJHAP-SELDAT_VON
Default: CON_TIME_ZERO
Optional: Yes
Call by Reference: No ( called with pass by value option)

ROLLE - Business Partner Role

Data type: JKPA-JPARVW
Optional: No
Call by Reference: No ( called with pass by value option)

XABHOLUNG - Checkbox Field

Data type: XFELD
Default: ' '
Optional: Yes
Call by Reference: No ( called with pass by value option)

XADRESSE_ANLEGEN - Checkbox Field

Data type: XFELD
Default: ' '
Optional: Yes
Call by Reference: No ( called with pass by value option)

XPOSTVERSAND -

Data type: XFELD
Default: 'X'
Optional: Yes
Call by Reference: No ( called with pass by value option)

XREISE - Checkbox Field

Data type: XFELD
Default: ' '
Optional: Yes
Call by Reference: No ( called with pass by value option)

EXPORTING Parameters details for ISP_ADDRESS_PAM_ORDER_SELECT

ADRESSVERLAUF_PFLEGEN - Checkbox Field

Data type: XFELD
Optional: No
Call by Reference: No ( called with pass by value option)

AUFTRAGADRESSE_PFLEGEN -

Data type: XFELD
Optional: No
Call by Reference: No ( called with pass by value option)

PREVIEW_PFLEGEN - Checkbox Field

Data type: XFELD
Optional: No
Call by Reference: No ( called with pass by value option)

CHANGING Parameters details for ISP_ADDRESS_PAM_ORDER_SELECT

PV_FLG_ADDR_DISPLAYED - Checkbox Field

Data type: XFELD
Default: ' '
Optional: Yes
Call by Reference: Yes

TABLES Parameters details for ISP_ADDRESS_PAM_ORDER_SELECT

ORDER_ACT_ADDRESS -

Data type: JHA1_RJHAGPZ_TAB
Optional: Yes
Call by Reference: No ( called with pass by value option)

ORDER_SPEC_ADDRESS -

Data type: JHA1_RJGTSADR_TAB
Optional: Yes
Call by Reference: No ( called with pass by value option)

ORDER_ADDRESS - Address Table

Data type: RJHAGPZHAD
Optional: Yes
Call by Reference: Yes

PREVIEW_ADDRESS -

Data type: JHA1_RJGTADRE_TAB
Optional: Yes
Call by Reference: Yes

EXCEPTIONS details

NO_ADDRESS_FOR_MAILING -

Data type:
Optional: No
Call by Reference: No ( called with pass by value option)

NO_DATA_FOUND -

Data type:
Optional: No
Call by Reference: No ( called with pass by value option)

NO_PICKUP_POSSIBLE -

Data type:
Optional: No
Call by Reference: No ( called with pass by value option)

NO_SELECTION -

Data type:
Optional: No
Call by Reference: No ( called with pass by value option)

Copy and paste ABAP code example for ISP_ADDRESS_PAM_ORDER_SELECT 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:
lv_aktyp  TYPE TJ180-AKTYP, "   'H'
lt_order_act_address  TYPE STANDARD TABLE OF JHA1_RJHAGPZ_TAB, "   
lv_adressverlauf_pflegen  TYPE XFELD, "   
lv_pv_flg_addr_displayed  TYPE XFELD, "   ' '
lv_no_address_for_mailing  TYPE XFELD, "   
lv_dialog  TYPE ISM_PERMISSION, "   ','
lv_adrvar  TYPE XFELD, "   ' '
lv_basisspr  TYPE RJHALLG-BASISSPR, "   
lv_adrnr_zu  TYPE RJHALLG, "   
lv_logadr_zu  TYPE RJHALLG, "   
lv_adressvar_zu  TYPE RJHALLG, "   
lv_xap_zu  TYPE XFELD, "   ' '
lv_gpnr  TYPE JGTGPNR-GPNR, "   
lv_no_data_found  TYPE JGTGPNR, "   
lt_order_spec_address  TYPE STANDARD TABLE OF JHA1_RJGTSADR_TAB, "   
lv_auftragadresse_pflegen  TYPE XFELD, "   
lv_gueltigbis  TYPE RJHAP-SELDAT_BIS, "   CON_TIME_INFINITY
lt_order_address  TYPE STANDARD TABLE OF RJHAGPZHAD, "   
lv_preview_pflegen  TYPE XFELD, "   
lv_no_pickup_possible  TYPE XFELD, "   
lv_gueltigvon  TYPE RJHAP-SELDAT_VON, "   CON_TIME_ZERO
lv_no_selection  TYPE RJHAP, "   
lt_preview_address  TYPE STANDARD TABLE OF JHA1_RJGTADRE_TAB, "   
lv_rolle  TYPE JKPA-JPARVW, "   
lv_xabholung  TYPE XFELD, "   ' '
lv_xadresse_anlegen  TYPE XFELD, "   ' '
lv_xpostversand  TYPE XFELD, "   'X'
lv_xreise  TYPE XFELD. "   ' '

  CALL FUNCTION 'ISP_ADDRESS_PAM_ORDER_SELECT'  "IS-M/SD: Determine Address of Business Partner in Order
    EXPORTING
         AKTYP = lv_aktyp
         DIALOG = lv_dialog
         ADRVAR = lv_adrvar
         BASISSPR = lv_basisspr
         ADRNR_ZU = lv_adrnr_zu
         LOGADR_ZU = lv_logadr_zu
         ADRESSVAR_ZU = lv_adressvar_zu
         XAP_ZU = lv_xap_zu
         GPNR = lv_gpnr
         GUELTIGBIS = lv_gueltigbis
         GUELTIGVON = lv_gueltigvon
         ROLLE = lv_rolle
         XABHOLUNG = lv_xabholung
         XADRESSE_ANLEGEN = lv_xadresse_anlegen
         XPOSTVERSAND = lv_xpostversand
         XREISE = lv_xreise
    IMPORTING
         ADRESSVERLAUF_PFLEGEN = lv_adressverlauf_pflegen
         AUFTRAGADRESSE_PFLEGEN = lv_auftragadresse_pflegen
         PREVIEW_PFLEGEN = lv_preview_pflegen
    CHANGING
         PV_FLG_ADDR_DISPLAYED = lv_pv_flg_addr_displayed
    TABLES
         ORDER_ACT_ADDRESS = lt_order_act_address
         ORDER_SPEC_ADDRESS = lt_order_spec_address
         ORDER_ADDRESS = lt_order_address
         PREVIEW_ADDRESS = lt_preview_address
    EXCEPTIONS
        NO_ADDRESS_FOR_MAILING = 1
        NO_DATA_FOUND = 2
        NO_PICKUP_POSSIBLE = 3
        NO_SELECTION = 4
. " ISP_ADDRESS_PAM_ORDER_SELECT




ABAP code using 7.40 inline data declarations to call FM ISP_ADDRESS_PAM_ORDER_SELECT

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.

"SELECT single AKTYP FROM TJ180 INTO @DATA(ld_aktyp).
DATA(ld_aktyp) = 'H'.
 
 
 
DATA(ld_pv_flg_addr_displayed) = ' '.
 
 
DATA(ld_dialog) = '.'.
 
DATA(ld_adrvar) = ' '.
 
"SELECT single BASISSPR FROM RJHALLG INTO @DATA(ld_basisspr).
 
 
 
 
DATA(ld_xap_zu) = ' '.
 
"SELECT single GPNR FROM JGTGPNR INTO @DATA(ld_gpnr).
 
 
 
 
"SELECT single SELDAT_BIS FROM RJHAP INTO @DATA(ld_gueltigbis).
DATA(ld_gueltigbis) = CON_TIME_INFINITY.
 
 
 
 
"SELECT single SELDAT_VON FROM RJHAP INTO @DATA(ld_gueltigvon).
DATA(ld_gueltigvon) = CON_TIME_ZERO.
 
 
 
"SELECT single JPARVW FROM JKPA INTO @DATA(ld_rolle).
 
DATA(ld_xabholung) = ' '.
 
DATA(ld_xadresse_anlegen) = ' '.
 
DATA(ld_xpostversand) = 'X'.
 
DATA(ld_xreise) = ' '.
 


Search for further information about these or an SAP related objects



Comments on this SAP object

What made you want to lookup this SAP object? Please tell us what you were looking for and anything you would like to be included on this page!