BREAKDOWN_SHOW_DOCUMENT is a standard SAP function module available within R/3 SAP systems depending on your version and release level. Below is the pattern details for this FM showing its interface including any import and export parameters, exceptions etc as well as any documentation contributions (Comments) specific to the object.
See here to view full function module documentation and code listing, simply by entering the name BREAKDOWN_SHOW_DOCUMENT into the relevant SAP transaction such as SE37 or SE80.
Associated Function Group:
F041
Released Date:
Not Released
Processing type: Normal fucntion module
CALL FUNCTION 'BREAKDOWN_SHOW_DOCUMENT' "Display of document for "subsequent bus.area/profit center" adjustment
EXPORTING
i_bukrs = " bkpf-bukrs Company code
i_belnr = " bkpf-belnr Document number
i_gjahr = " bkpf-gjahr Fiscal year
* i_pmode = '1' " t001-xgsbe Header format
* i_lmode = '0' " t001-xgsbe Output mode
* i_xgsb0 = 'X' " t001-xgsbe Display business area zero balance postings
* i_waenr = '1' " t001-xgsbe Number of the local currency
EXCEPTIONS
NOTHING_FOUND = 1 " Document does not have a "subsequent bus.area/profit center" adjustment
DOCUMENT_NOT_FOUND = 2 " Document does not exist
. " BREAKDOWN_SHOW_DOCUMENT
The ABAP code below is a full code listing to execute function module BREAKDOWN_SHOW_DOCUMENT including all data declarations. The code uses 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 original method of declaring data variables up front. 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).
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).
SELECT single XGSBE
FROM T001
INTO @DATA(ld_i_lmode).
SELECT single XGSBE
FROM T001
INTO @DATA(ld_i_xgsb0).
SELECT single XGSBE
FROM T001
INTO @DATA(ld_i_waenr).
. CALL FUNCTION 'BREAKDOWN_SHOW_DOCUMENT' EXPORTING i_bukrs = ld_i_bukrs i_belnr = ld_i_belnr i_gjahr = ld_i_gjahr * i_pmode = ld_i_pmode * i_lmode = ld_i_lmode * i_xgsb0 = ld_i_xgsb0 * i_waenr = ld_i_waenr EXCEPTIONS NOTHING_FOUND = 1 DOCUMENT_NOT_FOUND = 2 . " BREAKDOWN_SHOW_DOCUMENT
IF SY-SUBRC EQ 0. "All OK ELSEIF SY-SUBRC EQ 1. "Exception "Add code for exception here ELSEIF SY-SUBRC EQ 2. "Exception "Add code for exception here ENDIF.
The below ABAP code uses the older none in-line data declarations. This allows you to see the coding differences/benefits of the later inline syntax. It may also be useful if you are using an older version of SAP as some of the newer syntax above, such as the @DATA is not available until 4.70 EHP 8.
DATA:
| ld_i_bukrs | TYPE BKPF-BUKRS , |
| ld_i_belnr | TYPE BKPF-BELNR , |
| ld_i_gjahr | TYPE BKPF-GJAHR , |
| ld_i_pmode | TYPE T001-XGSBE , |
| ld_i_lmode | TYPE T001-XGSBE , |
| ld_i_xgsb0 | TYPE T001-XGSBE , |
| ld_i_waenr | TYPE T001-XGSBE . |
Please help keep this info upto date and use the comments section below to add useful hints, tips and information specific to this SAP function. This will then be available for you and other users to easily find by simply searching on the object name BREAKDOWN_SHOW_DOCUMENT or its description.
BREAKDOWN_SHOW_DOCUMENT - Display of document for "subsequent bus.area/profit center" adjustment BREAKDOWN_RESET_CLEARED_ITEMS - Reset Cleared Items BREAKDOWN_RELATION_SAVE - BREAKDOWN_RELATION_REMEMBER - BREAKDOWN_RELATION_INSERT - Save distribution vector/index - update task (can be switched off) BREAKDOWN_RELATION_FI_DOC_SUB -