SAP GM_GET_BUDGET_DOCUMENTS Function Module for Get budget documents
GM_GET_BUDGET_DOCUMENTS is a standard gm get budget documents SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for Get budget documents 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 gm get budget documents FM, simply by entering the name GM_GET_BUDGET_DOCUMENTS into the relevant SAP transaction such as SE37 or SE38.
Function Group: GMREPPOOL
Program Name: SAPLGMREPPOOL
Main Program: SAPLGMREPPOOL
Appliation area:
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:
Function GM_GET_BUDGET_DOCUMENTS 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 'GM_GET_BUDGET_DOCUMENTS'"Get budget documents.
EXPORTING
* I_SEL_TWHERE = "Where clause for flexible selection
* I_HOLD = ' ' "Include hold budget documents
* I_PARK = ' ' "Include parked budget documents
* I_POST = ' ' "Include posted budget documents
TABLES
* I_R_BDGT_DOC_NBR = "Range for budget document number
* I_R_APPROVAL_STATUS = "Range for approval status
* I_R_VALUETYPE = "Range for release status
* I_R_SPONSORED_PROG = "Range for sponsored program
* I_R_SPONSORED_CLASS = "Range for sponsored class
* I_R_FUND = "Range for fund
E_T_BDGT_DOC_NBR = "Table with header documents number
* I_R_BDGT_VERSION = "Range for budget version
* I_R_DOC_TYPE = "Range for budget doc type
* I_R_WAERS = "Range for document in currency
* I_R_BDGT_REASON_CODE = "Range for reason code
* I_R_ENTRY_DATE = "Range for entry date
* I_R_APPROVAL_DATE = "Range for approval date
* I_R_POSTING_DATE = "Range for posting date
* I_R_GRANT_NBR = "Range for grant number
EXCEPTIONS
NOT_FOUND = 1
IMPORTING Parameters details for GM_GET_BUDGET_DOCUMENTS
I_SEL_TWHERE - Where clause for flexible selection
Data type: RSDS_TWHEREOptional: Yes
Call by Reference: Yes
I_HOLD - Include hold budget documents
Data type: FLAGDefault: SPACE
Optional: Yes
Call by Reference: Yes
I_PARK - Include parked budget documents
Data type: FLAGDefault: SPACE
Optional: Yes
Call by Reference: Yes
I_POST - Include posted budget documents
Data type: FLAGDefault: SPACE
Optional: Yes
Call by Reference: Yes
TABLES Parameters details for GM_GET_BUDGET_DOCUMENTS
I_R_BDGT_DOC_NBR - Range for budget document number
Data type:Optional: Yes
Call by Reference: Yes
I_R_APPROVAL_STATUS - Range for approval status
Data type:Optional: Yes
Call by Reference: Yes
I_R_VALUETYPE - Range for release status
Data type:Optional: Yes
Call by Reference: Yes
I_R_SPONSORED_PROG - Range for sponsored program
Data type:Optional: Yes
Call by Reference: Yes
I_R_SPONSORED_CLASS - Range for sponsored class
Data type:Optional: Yes
Call by Reference: Yes
I_R_FUND - Range for fund
Data type:Optional: Yes
Call by Reference: Yes
E_T_BDGT_DOC_NBR - Table with header documents number
Data type:Optional: No
Call by Reference: Yes
I_R_BDGT_VERSION - Range for budget version
Data type:Optional: Yes
Call by Reference: Yes
I_R_DOC_TYPE - Range for budget doc type
Data type:Optional: Yes
Call by Reference: Yes
I_R_WAERS - Range for document in currency
Data type:Optional: Yes
Call by Reference: Yes
I_R_BDGT_REASON_CODE - Range for reason code
Data type:Optional: Yes
Call by Reference: Yes
I_R_ENTRY_DATE - Range for entry date
Data type:Optional: Yes
Call by Reference: Yes
I_R_APPROVAL_DATE - Range for approval date
Data type:Optional: Yes
Call by Reference: Yes
I_R_POSTING_DATE - Range for posting date
Data type:Optional: Yes
Call by Reference: Yes
I_R_GRANT_NBR - Range for grant number
Data type:Optional: Yes
Call by Reference: Yes
EXCEPTIONS details
NOT_FOUND -
Data type:Optional: No
Call by Reference: Yes
Copy and paste ABAP code example for GM_GET_BUDGET_DOCUMENTS 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_not_found | TYPE STRING, " | |||
lv_i_sel_twhere | TYPE RSDS_TWHERE, " | |||
lt_i_r_bdgt_doc_nbr | TYPE STANDARD TABLE OF RSDS_TWHERE, " | |||
lt_i_r_approval_status | TYPE STANDARD TABLE OF RSDS_TWHERE, " | |||
lt_i_r_valuetype | TYPE STANDARD TABLE OF RSDS_TWHERE, " | |||
lt_i_r_sponsored_prog | TYPE STANDARD TABLE OF RSDS_TWHERE, " | |||
lt_i_r_sponsored_class | TYPE STANDARD TABLE OF RSDS_TWHERE, " | |||
lt_i_r_fund | TYPE STANDARD TABLE OF RSDS_TWHERE, " | |||
lt_e_t_bdgt_doc_nbr | TYPE STANDARD TABLE OF RSDS_TWHERE, " | |||
lv_i_hold | TYPE FLAG, " SPACE | |||
lt_i_r_bdgt_version | TYPE STANDARD TABLE OF FLAG, " | |||
lv_i_park | TYPE FLAG, " SPACE | |||
lt_i_r_doc_type | TYPE STANDARD TABLE OF FLAG, " | |||
lv_i_post | TYPE FLAG, " SPACE | |||
lt_i_r_waers | TYPE STANDARD TABLE OF FLAG, " | |||
lt_i_r_bdgt_reason_code | TYPE STANDARD TABLE OF FLAG, " | |||
lt_i_r_entry_date | TYPE STANDARD TABLE OF FLAG, " | |||
lt_i_r_approval_date | TYPE STANDARD TABLE OF FLAG, " | |||
lt_i_r_posting_date | TYPE STANDARD TABLE OF FLAG, " | |||
lt_i_r_grant_nbr | TYPE STANDARD TABLE OF FLAG. " |
  CALL FUNCTION 'GM_GET_BUDGET_DOCUMENTS' "Get budget documents |
EXPORTING | ||
I_SEL_TWHERE | = lv_i_sel_twhere | |
I_HOLD | = lv_i_hold | |
I_PARK | = lv_i_park | |
I_POST | = lv_i_post | |
TABLES | ||
I_R_BDGT_DOC_NBR | = lt_i_r_bdgt_doc_nbr | |
I_R_APPROVAL_STATUS | = lt_i_r_approval_status | |
I_R_VALUETYPE | = lt_i_r_valuetype | |
I_R_SPONSORED_PROG | = lt_i_r_sponsored_prog | |
I_R_SPONSORED_CLASS | = lt_i_r_sponsored_class | |
I_R_FUND | = lt_i_r_fund | |
E_T_BDGT_DOC_NBR | = lt_e_t_bdgt_doc_nbr | |
I_R_BDGT_VERSION | = lt_i_r_bdgt_version | |
I_R_DOC_TYPE | = lt_i_r_doc_type | |
I_R_WAERS | = lt_i_r_waers | |
I_R_BDGT_REASON_CODE | = lt_i_r_bdgt_reason_code | |
I_R_ENTRY_DATE | = lt_i_r_entry_date | |
I_R_APPROVAL_DATE | = lt_i_r_approval_date | |
I_R_POSTING_DATE | = lt_i_r_posting_date | |
I_R_GRANT_NBR | = lt_i_r_grant_nbr | |
EXCEPTIONS | ||
NOT_FOUND = 1 | ||
. " GM_GET_BUDGET_DOCUMENTS |
ABAP code using 7.40 inline data declarations to call FM GM_GET_BUDGET_DOCUMENTS
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.DATA(ld_i_hold) | = ' '. | |||
DATA(ld_i_park) | = ' '. | |||
DATA(ld_i_post) | = ' '. | |||
Search for further information about these or an SAP related objects