SAP BREAKDOWN_SHOW_DOCUMENT Function Module for Display of document for 'subsequent bus.area/profit center' adjustment
BREAKDOWN_SHOW_DOCUMENT is a standard breakdown show document SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for Display of document for 'subsequent bus.area/profit center' adjustment 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 breakdown show document FM, simply by entering the name BREAKDOWN_SHOW_DOCUMENT into the relevant SAP transaction such as SE37 or SE38.
Function Group: F041
Program Name: SAPLF041
Main Program: SAPLF041
Appliation area: F
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:

Function BREAKDOWN_SHOW_DOCUMENT 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 'BREAKDOWN_SHOW_DOCUMENT'"Display of document for 'subsequent bus.area/profit center' adjustment.
EXPORTING
I_BUKRS = "Company code
I_BELNR = "Document number
I_GJAHR = "Fiscal year
* I_PMODE = '1' "Header format
* I_LMODE = '0' "Output mode
* I_XGSB0 = 'X' "Display business area zero balance postings
* I_WAENR = '1' "Number of the local currency
EXCEPTIONS
NOTHING_FOUND = 1 DOCUMENT_NOT_FOUND = 2
IMPORTING Parameters details for BREAKDOWN_SHOW_DOCUMENT
I_BUKRS - Company code
Data type: BKPF-BUKRSOptional: No
Call by Reference: No ( called with pass by value option)
I_BELNR - Document number
Data type: BKPF-BELNROptional: No
Call by Reference: No ( called with pass by value option)
I_GJAHR - Fiscal year
Data type: BKPF-GJAHROptional: No
Call by Reference: No ( called with pass by value option)
I_PMODE - Header format
Data type: T001-XGSBEDefault: '1'
Optional: Yes
Call by Reference: No ( called with pass by value option)
I_LMODE - Output mode
Data type: T001-XGSBEDefault: '0'
Optional: Yes
Call by Reference: No ( called with pass by value option)
I_XGSB0 - Display business area zero balance postings
Data type: T001-XGSBEDefault: 'X'
Optional: Yes
Call by Reference: No ( called with pass by value option)
I_WAENR - Number of the local currency
Data type: T001-XGSBEDefault: '1'
Optional: Yes
Call by Reference: No ( called with pass by value option)
EXCEPTIONS details
NOTHING_FOUND - Document does not have a 'subsequent bus.area/profit center' adjustment
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
DOCUMENT_NOT_FOUND - Document does not exist
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
Copy and paste ABAP code example for BREAKDOWN_SHOW_DOCUMENT 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_i_bukrs | TYPE BKPF-BUKRS, " | |||
| lv_nothing_found | TYPE BKPF, " | |||
| lv_i_belnr | TYPE BKPF-BELNR, " | |||
| lv_document_not_found | TYPE BKPF, " | |||
| lv_i_gjahr | TYPE BKPF-GJAHR, " | |||
| lv_i_pmode | TYPE T001-XGSBE, " '1' | |||
| lv_i_lmode | TYPE T001-XGSBE, " '0' | |||
| lv_i_xgsb0 | TYPE T001-XGSBE, " 'X' | |||
| lv_i_waenr | TYPE T001-XGSBE. " '1' |
|   CALL FUNCTION 'BREAKDOWN_SHOW_DOCUMENT' "Display of document for 'subsequent bus.area/profit center' adjustment |
| EXPORTING | ||
| I_BUKRS | = lv_i_bukrs | |
| I_BELNR | = lv_i_belnr | |
| I_GJAHR | = lv_i_gjahr | |
| I_PMODE | = lv_i_pmode | |
| I_LMODE | = lv_i_lmode | |
| I_XGSB0 | = lv_i_xgsb0 | |
| I_WAENR | = lv_i_waenr | |
| EXCEPTIONS | ||
| NOTHING_FOUND = 1 | ||
| DOCUMENT_NOT_FOUND = 2 | ||
| . " BREAKDOWN_SHOW_DOCUMENT | ||
ABAP code using 7.40 inline data declarations to call FM BREAKDOWN_SHOW_DOCUMENT
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 BUKRS FROM BKPF INTO @DATA(ld_i_bukrs). | ||||
| "SELECT single BELNR FROM BKPF INTO @DATA(ld_i_belnr). | ||||
| "SELECT single GJAHR FROM BKPF INTO @DATA(ld_i_gjahr). | ||||
| "SELECT single XGSBE FROM T001 INTO @DATA(ld_i_pmode). | ||||
| DATA(ld_i_pmode) | = '1'. | |||
| "SELECT single XGSBE FROM T001 INTO @DATA(ld_i_lmode). | ||||
| DATA(ld_i_lmode) | = '0'. | |||
| "SELECT single XGSBE FROM T001 INTO @DATA(ld_i_xgsb0). | ||||
| DATA(ld_i_xgsb0) | = 'X'. | |||
| "SELECT single XGSBE FROM T001 INTO @DATA(ld_i_waenr). | ||||
| DATA(ld_i_waenr) | = '1'. | |||
Search for further information about these or an SAP related objects