SAP J_1BREAD_BRANCH_DATA Function Module for Read branch data
J_1BREAD_BRANCH_DATA is a standard j 1bread branch data SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for Read branch data 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 j 1bread branch data FM, simply by entering the name J_1BREAD_BRANCH_DATA into the relevant SAP transaction such as SE37 or SE38.
Function Group: J1BS
Program Name: SAPLJ1BS
Main Program: SAPLJ1BS
Appliation area: M
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:
Function J_1BREAD_BRANCH_DATA 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 'J_1BREAD_BRANCH_DATA'"Read branch data.
EXPORTING
BRANCH = "Branch
BUKRS = "Company
IMPORTING
ADDRESS = "Address of branch
BRANCH_DATA = "Data of branch
CGC_NUMBER = "CGC number (company,branch,check digits)
ADDRESS1 = "Address of branch - extended version
EXCEPTIONS
BRANCH_NOT_FOUND = 1 ADDRESS_NOT_FOUND = 2 COMPANY_NOT_FOUND = 3
IMPORTING Parameters details for J_1BREAD_BRANCH_DATA
BRANCH - Branch
Data type: J_1BBRANCH-BRANCHOptional: No
Call by Reference: No ( called with pass by value option)
BUKRS - Company
Data type: J_1BBRANCH-BUKRSOptional: No
Call by Reference: No ( called with pass by value option)
EXPORTING Parameters details for J_1BREAD_BRANCH_DATA
ADDRESS - Address of branch
Data type: SADROptional: No
Call by Reference: No ( called with pass by value option)
BRANCH_DATA - Data of branch
Data type: J_1BBRANCHOptional: No
Call by Reference: No ( called with pass by value option)
CGC_NUMBER - CGC number (company,branch,check digits)
Data type: J_1BWFIELD-CGC_NUMBEROptional: No
Call by Reference: No ( called with pass by value option)
ADDRESS1 - Address of branch - extended version
Data type: ADDR1_VALOptional: No
Call by Reference: No ( called with pass by value option)
EXCEPTIONS details
BRANCH_NOT_FOUND - Branch is not assigned to plant
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
ADDRESS_NOT_FOUND - Address of branch is not maintained
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
COMPANY_NOT_FOUND - Plant is not assigned to company
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
Copy and paste ABAP code example for J_1BREAD_BRANCH_DATA 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_branch | TYPE J_1BBRANCH-BRANCH, " | |||
lv_address | TYPE SADR, " | |||
lv_branch_not_found | TYPE SADR, " | |||
lv_bukrs | TYPE J_1BBRANCH-BUKRS, " | |||
lv_branch_data | TYPE J_1BBRANCH, " | |||
lv_address_not_found | TYPE J_1BBRANCH, " | |||
lv_cgc_number | TYPE J_1BWFIELD-CGC_NUMBER, " | |||
lv_company_not_found | TYPE J_1BWFIELD, " | |||
lv_address1 | TYPE ADDR1_VAL. " |
  CALL FUNCTION 'J_1BREAD_BRANCH_DATA' "Read branch data |
EXPORTING | ||
BRANCH | = lv_branch | |
BUKRS | = lv_bukrs | |
IMPORTING | ||
ADDRESS | = lv_address | |
BRANCH_DATA | = lv_branch_data | |
CGC_NUMBER | = lv_cgc_number | |
ADDRESS1 | = lv_address1 | |
EXCEPTIONS | ||
BRANCH_NOT_FOUND = 1 | ||
ADDRESS_NOT_FOUND = 2 | ||
COMPANY_NOT_FOUND = 3 | ||
. " J_1BREAD_BRANCH_DATA |
ABAP code using 7.40 inline data declarations to call FM J_1BREAD_BRANCH_DATA
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 BRANCH FROM J_1BBRANCH INTO @DATA(ld_branch). | ||||
"SELECT single BUKRS FROM J_1BBRANCH INTO @DATA(ld_bukrs). | ||||
"SELECT single CGC_NUMBER FROM J_1BWFIELD INTO @DATA(ld_cgc_number). | ||||
Search for further information about these or an SAP related objects