SAP BPAR_P_PARTNER_READ_INTO_PRINT Function Module for NOTRANSL: Partner lesen und aufbereiten









BPAR_P_PARTNER_READ_INTO_PRINT is a standard bpar p partner read into print SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for NOTRANSL: Partner lesen und aufbereiten 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 bpar p partner read into print FM, simply by entering the name BPAR_P_PARTNER_READ_INTO_PRINT into the relevant SAP transaction such as SE37 or SE38.

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



Function BPAR_P_PARTNER_READ_INTO_PRINT 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 'BPAR_P_PARTNER_READ_INTO_PRINT'"NOTRANSL: Partner lesen und aufbereiten
EXPORTING
* ADR_REF = ' ' "Address ID
* I_XMEMORY = "Data element for domain BOOLE: TRUE (='X') and FALSE (=' ')
* I_XWA = "Data element for domain BOOLE: TRUE (='X') and FALSE (=' ')
* ZGP = ' ' "Single-Character Indicator
* I_ADR_KIND = ' ' "Address Type
* COMPANYCODE = ' ' "Company Code
* COUNT_LINES = 5 "Number of Lines in Address
* DATE = SY-DATUM "ABAP System Field: Current Date of Application Server
PARTNER = "Business Partner
* PARTNER_INTO_MEMORY = ' ' "DE-EN-LANG-SWITCH-NO-TRANSLATION
* ROLE = ' ' "Role Category
* I_RLTYP = ' ' "BDT: Object part

IMPORTING
ADDRESS = "Address formating function module transfer structure
ADDRESS_PRINTFORM_TABLE = "
E_BUS020_EXT = "BP: Addresses with Addr. Data (Read)
E_BUT021_FS = "Time-Dependent Address Usages
ADDRESS_PRINTFORM = "Formatted address (maximum 10 lines)
ADDRESS_SHORT_FORM = "One-line short form of formatted address
ADDRESS_SHORT_FORM_S = "One-line short form of formatted address
ADDRESS_DATA_CARRIER = "Short form of the formatted address for the data medium
ADDRESS_DATA_CARRIER_0 = "Short form of the formatted address for the data medium
NUMBER_OF_USED_LINES = "Number of lines in address
NAME_IS_EMPTY = "Checkbox
ADDRESS_NOT_FOUND = "Checkbox

EXCEPTIONS
ADDRESS = 1 PARTNER = 2 NO_ADDRESS = 3
.



IMPORTING Parameters details for BPAR_P_PARTNER_READ_INTO_PRINT

ADR_REF - Address ID

Data type: TP14-ADR_REF
Default: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)

I_XMEMORY - Data element for domain BOOLE: TRUE (='X') and FALSE (=' ')

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

I_XWA - Data element for domain BOOLE: TRUE (='X') and FALSE (=' ')

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

ZGP - Single-Character Indicator

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

I_ADR_KIND - Address Type

Data type: TB009-ADR_KIND
Default: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)

COMPANYCODE - Company Code

Data type: T001-BUKRS
Default: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)

COUNT_LINES - Number of Lines in Address

Data type: ADRS-ANZZL
Default: 5
Optional: Yes
Call by Reference: No ( called with pass by value option)

DATE - ABAP System Field: Current Date of Application Server

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

PARTNER - Business Partner

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

PARTNER_INTO_MEMORY - DE-EN-LANG-SWITCH-NO-TRANSLATION

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

ROLE - Role Category

Data type: TPZ3-ROLETYP
Default: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)

I_RLTYP - BDT: Object part

Data type: TBZ0-RLTYP
Default: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)

EXPORTING Parameters details for BPAR_P_PARTNER_READ_INTO_PRINT

ADDRESS - Address formating function module transfer structure

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

ADDRESS_PRINTFORM_TABLE -

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

E_BUS020_EXT - BP: Addresses with Addr. Data (Read)

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

E_BUT021_FS - Time-Dependent Address Usages

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

ADDRESS_PRINTFORM - Formatted address (maximum 10 lines)

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

ADDRESS_SHORT_FORM - One-line short form of formatted address

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

ADDRESS_SHORT_FORM_S - One-line short form of formatted address

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

ADDRESS_DATA_CARRIER - Short form of the formatted address for the data medium

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

ADDRESS_DATA_CARRIER_0 - Short form of the formatted address for the data medium

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

NUMBER_OF_USED_LINES - Number of lines in address

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

NAME_IS_EMPTY - Checkbox

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

ADDRESS_NOT_FOUND - Checkbox

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

EXCEPTIONS details

ADDRESS - Address formating function module transfer structure

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

PARTNER - Business Partner

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

NO_ADDRESS -

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

Copy and paste ABAP code example for BPAR_P_PARTNER_READ_INTO_PRINT 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_address  TYPE ADRS, "   
lv_address  TYPE ADRS, "   
lv_adr_ref  TYPE TP14-ADR_REF, "   SPACE
lv_i_xmemory  TYPE BOOLE-BOOLE, "   
lv_address_printform_table  TYPE SZADR_PRINTFORM_TABLE, "   
lv_i_xwa  TYPE BOOLE-BOOLE, "   
lv_e_bus020_ext  TYPE BUS020_EXT, "   
lv_zgp  TYPE CHAR1, "   SPACE
lv_e_but021_fs  TYPE BUT021_FS, "   
lv_partner  TYPE BUT021_FS, "   
lv_i_adr_kind  TYPE TB009-ADR_KIND, "   SPACE
lv_address_printform  TYPE ADRS_PRINT, "   
lv_no_address  TYPE ADRS_PRINT, "   
lv_companycode  TYPE T001-BUKRS, "   SPACE
lv_address_short_form  TYPE SZAD_FIELD-ADDR_SHORT, "   
lv_count_lines  TYPE ADRS-ANZZL, "   5
lv_address_short_form_s  TYPE SZAD_FIELD-ADDR_SHORT, "   
lv_date  TYPE SY-DATUM, "   SY-DATUM
lv_address_data_carrier  TYPE SZAD_FIELD-ADDR_DC, "   
lv_partner  TYPE BP000-PARTNR, "   
lv_address_data_carrier_0  TYPE SZAD_FIELD-ADDR_DC, "   
lv_partner_into_memory  TYPE SZAD_FIELD, "   SPACE
lv_number_of_used_lines  TYPE ADRS-ANZZL, "   
lv_role  TYPE TPZ3-ROLETYP, "   SPACE
lv_name_is_empty  TYPE SZAD_FIELD-FLAG, "   
lv_i_rltyp  TYPE TBZ0-RLTYP, "   SPACE
lv_address_not_found  TYPE SZAD_FIELD-FLAG. "   

  CALL FUNCTION 'BPAR_P_PARTNER_READ_INTO_PRINT'  "NOTRANSL: Partner lesen und aufbereiten
    EXPORTING
         ADR_REF = lv_adr_ref
         I_XMEMORY = lv_i_xmemory
         I_XWA = lv_i_xwa
         ZGP = lv_zgp
         I_ADR_KIND = lv_i_adr_kind
         COMPANYCODE = lv_companycode
         COUNT_LINES = lv_count_lines
         DATE = lv_date
         PARTNER = lv_partner
         PARTNER_INTO_MEMORY = lv_partner_into_memory
         ROLE = lv_role
         I_RLTYP = lv_i_rltyp
    IMPORTING
         ADDRESS = lv_address
         ADDRESS_PRINTFORM_TABLE = lv_address_printform_table
         E_BUS020_EXT = lv_e_bus020_ext
         E_BUT021_FS = lv_e_but021_fs
         ADDRESS_PRINTFORM = lv_address_printform
         ADDRESS_SHORT_FORM = lv_address_short_form
         ADDRESS_SHORT_FORM_S = lv_address_short_form_s
         ADDRESS_DATA_CARRIER = lv_address_data_carrier
         ADDRESS_DATA_CARRIER_0 = lv_address_data_carrier_0
         NUMBER_OF_USED_LINES = lv_number_of_used_lines
         NAME_IS_EMPTY = lv_name_is_empty
         ADDRESS_NOT_FOUND = lv_address_not_found
    EXCEPTIONS
        ADDRESS = 1
        PARTNER = 2
        NO_ADDRESS = 3
. " BPAR_P_PARTNER_READ_INTO_PRINT




ABAP code using 7.40 inline data declarations to call FM BPAR_P_PARTNER_READ_INTO_PRINT

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 ADR_REF FROM TP14 INTO @DATA(ld_adr_ref).
DATA(ld_adr_ref) = ' '.
 
"SELECT single BOOLE FROM BOOLE INTO @DATA(ld_i_xmemory).
 
 
"SELECT single BOOLE FROM BOOLE INTO @DATA(ld_i_xwa).
 
 
DATA(ld_zgp) = ' '.
 
 
 
"SELECT single ADR_KIND FROM TB009 INTO @DATA(ld_i_adr_kind).
DATA(ld_i_adr_kind) = ' '.
 
 
 
"SELECT single BUKRS FROM T001 INTO @DATA(ld_companycode).
DATA(ld_companycode) = ' '.
 
"SELECT single ADDR_SHORT FROM SZAD_FIELD INTO @DATA(ld_address_short_form).
 
"SELECT single ANZZL FROM ADRS INTO @DATA(ld_count_lines).
DATA(ld_count_lines) = 5.
 
"SELECT single ADDR_SHORT FROM SZAD_FIELD INTO @DATA(ld_address_short_form_s).
 
"SELECT single DATUM FROM SY INTO @DATA(ld_date).
DATA(ld_date) = SY-DATUM.
 
"SELECT single ADDR_DC FROM SZAD_FIELD INTO @DATA(ld_address_data_carrier).
 
"SELECT single PARTNR FROM BP000 INTO @DATA(ld_partner).
 
"SELECT single ADDR_DC FROM SZAD_FIELD INTO @DATA(ld_address_data_carrier_0).
 
DATA(ld_partner_into_memory) = ' '.
 
"SELECT single ANZZL FROM ADRS INTO @DATA(ld_number_of_used_lines).
 
"SELECT single ROLETYP FROM TPZ3 INTO @DATA(ld_role).
DATA(ld_role) = ' '.
 
"SELECT single FLAG FROM SZAD_FIELD INTO @DATA(ld_name_is_empty).
 
"SELECT single RLTYP FROM TBZ0 INTO @DATA(ld_i_rltyp).
DATA(ld_i_rltyp) = ' '.
 
"SELECT single FLAG FROM SZAD_FIELD INTO @DATA(ld_address_not_found).
 


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!