SAP Function Modules

DPR_BW_GET_ATTRIBUTES SAP Function module - Development Projects: Extractor for Attributes Project







DPR_BW_GET_ATTRIBUTES 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 DPR_BW_GET_ATTRIBUTES into the relevant SAP transaction such as SE37 or SE80.

Associated Function Group: DPR_BW_EXTRACT
Released Date: Not Released
Processing type: Normal fucntion module
Normal function module settings


Pattern for FM DPR_BW_GET_ATTRIBUTES - DPR BW GET ATTRIBUTES





CALL FUNCTION 'DPR_BW_GET_ATTRIBUTES' "Development Projects: Extractor for Attributes Project
  EXPORTING
    i_requnr =                  " sbiwa_s_interface-requnr  Request Number: Identif. of a Data Request
*   i_chabasnm =                " sbiwa_s_interface-chabasnm  Name of Basic Characteristic
*   i_maxsize =                 " sbiwa_s_interface-maxsize  Maximum Number of Rows in Output Table
*   i_initflag =                " sbiwa_s_interface-initflag  Initialization 'X' or Data Transfer ' '
*   i_updmode =                 " sbiwa_s_interface-updmode  Transfer Mode (See Fixed Values for Domains)
*   i_datapakid =               " sbiwa_s_interface-datapakid  Number of Data Package with Errors
*   i_s_timeint =               " sbiwa_s_timeint  Time Interval for Time-Dependent Master Data
* TABLES
*   i_t_select =                " sbiwa_t_select  Selection Criteria
*   i_t_fields =                " sbiwa_t_fields  Field List for SELECT
*   e_t_dpr_bw_project =        " dpr_bw_project  Dev. Projects: Extract Structure Project Definition Attributes
*   e_t_dpr_bw_task =           " dpr_bw_task   Dev. Projects: Extract Structure Task Attributes
*   e_t_dpr_bw_phase =          " dpr_bw_phase  Dev. Projects: Extract Structure Phase Attributes
*   e_t_dpr_bw_part =           " dpr_bw_part   Dev. Projects: Extract Structure Role Attributes
*   e_t_dpr_bw_checklist_item =   " dpr_bw_checklist_item  Dev. Projects: Extract Structure Checklist Item Attributes
*   e_t_dpr_bw_checklist =      " dpr_bw_checklist  Dev. Projects: Extract Structure Checklist Attributes
*   e_t_dpr_bw_approval =       " dpr_bw_approval  Dev. Projects: Extract Structure Approval Attributes
*   e_t_dpr_bw_ind_approval =   " dpr_bw_ind_approval  Dev. Projects: Extract Struct. Individual Approval Attributes
*   e_t_dpr_bw_documents =      " dpr_bw_documents  Dev. Projects: Extract Structue Document Attributes
  EXCEPTIONS
    NO_MORE_DATA = 1            "               Data Was Completely Transferred
    ERROR_PASSED_TO_MESS_HANDLER = 2  "         Exit Due to Error; Message in Message Handler
    .  "  DPR_BW_GET_ATTRIBUTES

ABAP code example for Function Module DPR_BW_GET_ATTRIBUTES





The ABAP code below is a full code listing to execute function module DPR_BW_GET_ATTRIBUTES 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).

DATA:
it_i_t_select  TYPE STANDARD TABLE OF SBIWA_T_SELECT,"TABLES PARAM
wa_i_t_select  LIKE LINE OF it_i_t_select ,
it_i_t_fields  TYPE STANDARD TABLE OF SBIWA_T_FIELDS,"TABLES PARAM
wa_i_t_fields  LIKE LINE OF it_i_t_fields ,
it_e_t_dpr_bw_project  TYPE STANDARD TABLE OF DPR_BW_PROJECT,"TABLES PARAM
wa_e_t_dpr_bw_project  LIKE LINE OF it_e_t_dpr_bw_project ,
it_e_t_dpr_bw_task  TYPE STANDARD TABLE OF DPR_BW_TASK,"TABLES PARAM
wa_e_t_dpr_bw_task  LIKE LINE OF it_e_t_dpr_bw_task ,
it_e_t_dpr_bw_phase  TYPE STANDARD TABLE OF DPR_BW_PHASE,"TABLES PARAM
wa_e_t_dpr_bw_phase  LIKE LINE OF it_e_t_dpr_bw_phase ,
it_e_t_dpr_bw_part  TYPE STANDARD TABLE OF DPR_BW_PART,"TABLES PARAM
wa_e_t_dpr_bw_part  LIKE LINE OF it_e_t_dpr_bw_part ,
it_e_t_dpr_bw_checklist_item  TYPE STANDARD TABLE OF DPR_BW_CHECKLIST_ITEM,"TABLES PARAM
wa_e_t_dpr_bw_checklist_item  LIKE LINE OF it_e_t_dpr_bw_checklist_item ,
it_e_t_dpr_bw_checklist  TYPE STANDARD TABLE OF DPR_BW_CHECKLIST,"TABLES PARAM
wa_e_t_dpr_bw_checklist  LIKE LINE OF it_e_t_dpr_bw_checklist ,
it_e_t_dpr_bw_approval  TYPE STANDARD TABLE OF DPR_BW_APPROVAL,"TABLES PARAM
wa_e_t_dpr_bw_approval  LIKE LINE OF it_e_t_dpr_bw_approval ,
it_e_t_dpr_bw_ind_approval  TYPE STANDARD TABLE OF DPR_BW_IND_APPROVAL,"TABLES PARAM
wa_e_t_dpr_bw_ind_approval  LIKE LINE OF it_e_t_dpr_bw_ind_approval ,
it_e_t_dpr_bw_documents  TYPE STANDARD TABLE OF DPR_BW_DOCUMENTS,"TABLES PARAM
wa_e_t_dpr_bw_documents  LIKE LINE OF it_e_t_dpr_bw_documents .


DATA(ld_i_requnr) = some text here

DATA(ld_i_chabasnm) = some text here

DATA(ld_i_maxsize) = some text here

DATA(ld_i_initflag) = some text here

DATA(ld_i_updmode) = some text here

DATA(ld_i_datapakid) = some text here
DATA(ld_i_s_timeint) = 'Check type of data required'.

"populate fields of struture and append to itab
append wa_i_t_select to it_i_t_select.

"populate fields of struture and append to itab
append wa_i_t_fields to it_i_t_fields.

"populate fields of struture and append to itab
append wa_e_t_dpr_bw_project to it_e_t_dpr_bw_project.

"populate fields of struture and append to itab
append wa_e_t_dpr_bw_task to it_e_t_dpr_bw_task.

"populate fields of struture and append to itab
append wa_e_t_dpr_bw_phase to it_e_t_dpr_bw_phase.

"populate fields of struture and append to itab
append wa_e_t_dpr_bw_part to it_e_t_dpr_bw_part.

"populate fields of struture and append to itab
append wa_e_t_dpr_bw_checklist_item to it_e_t_dpr_bw_checklist_item.

"populate fields of struture and append to itab
append wa_e_t_dpr_bw_checklist to it_e_t_dpr_bw_checklist.

"populate fields of struture and append to itab
append wa_e_t_dpr_bw_approval to it_e_t_dpr_bw_approval.

"populate fields of struture and append to itab
append wa_e_t_dpr_bw_ind_approval to it_e_t_dpr_bw_ind_approval.

"populate fields of struture and append to itab
append wa_e_t_dpr_bw_documents to it_e_t_dpr_bw_documents. . CALL FUNCTION 'DPR_BW_GET_ATTRIBUTES' EXPORTING i_requnr = ld_i_requnr * i_chabasnm = ld_i_chabasnm * i_maxsize = ld_i_maxsize * i_initflag = ld_i_initflag * i_updmode = ld_i_updmode * i_datapakid = ld_i_datapakid * i_s_timeint = ld_i_s_timeint * TABLES * i_t_select = it_i_t_select * i_t_fields = it_i_t_fields * e_t_dpr_bw_project = it_e_t_dpr_bw_project * e_t_dpr_bw_task = it_e_t_dpr_bw_task * e_t_dpr_bw_phase = it_e_t_dpr_bw_phase * e_t_dpr_bw_part = it_e_t_dpr_bw_part * e_t_dpr_bw_checklist_item = it_e_t_dpr_bw_checklist_item * e_t_dpr_bw_checklist = it_e_t_dpr_bw_checklist * e_t_dpr_bw_approval = it_e_t_dpr_bw_approval * e_t_dpr_bw_ind_approval = it_e_t_dpr_bw_ind_approval * e_t_dpr_bw_documents = it_e_t_dpr_bw_documents EXCEPTIONS NO_MORE_DATA = 1 ERROR_PASSED_TO_MESS_HANDLER = 2 . " DPR_BW_GET_ATTRIBUTES
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.







ABAP code to compare 7.40 inline data declaration with original syntax

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_requnr  TYPE SBIWA_S_INTERFACE-REQUNR ,
it_i_t_select  TYPE STANDARD TABLE OF SBIWA_T_SELECT ,
wa_i_t_select  LIKE LINE OF it_i_t_select,
ld_i_chabasnm  TYPE SBIWA_S_INTERFACE-CHABASNM ,
it_i_t_fields  TYPE STANDARD TABLE OF SBIWA_T_FIELDS ,
wa_i_t_fields  LIKE LINE OF it_i_t_fields,
ld_i_maxsize  TYPE SBIWA_S_INTERFACE-MAXSIZE ,
it_e_t_dpr_bw_project  TYPE STANDARD TABLE OF DPR_BW_PROJECT ,
wa_e_t_dpr_bw_project  LIKE LINE OF it_e_t_dpr_bw_project,
ld_i_initflag  TYPE SBIWA_S_INTERFACE-INITFLAG ,
it_e_t_dpr_bw_task  TYPE STANDARD TABLE OF DPR_BW_TASK ,
wa_e_t_dpr_bw_task  LIKE LINE OF it_e_t_dpr_bw_task,
ld_i_updmode  TYPE SBIWA_S_INTERFACE-UPDMODE ,
it_e_t_dpr_bw_phase  TYPE STANDARD TABLE OF DPR_BW_PHASE ,
wa_e_t_dpr_bw_phase  LIKE LINE OF it_e_t_dpr_bw_phase,
ld_i_datapakid  TYPE SBIWA_S_INTERFACE-DATAPAKID ,
it_e_t_dpr_bw_part  TYPE STANDARD TABLE OF DPR_BW_PART ,
wa_e_t_dpr_bw_part  LIKE LINE OF it_e_t_dpr_bw_part,
ld_i_s_timeint  TYPE SBIWA_S_TIMEINT ,
it_e_t_dpr_bw_checklist_item  TYPE STANDARD TABLE OF DPR_BW_CHECKLIST_ITEM ,
wa_e_t_dpr_bw_checklist_item  LIKE LINE OF it_e_t_dpr_bw_checklist_item,
it_e_t_dpr_bw_checklist  TYPE STANDARD TABLE OF DPR_BW_CHECKLIST ,
wa_e_t_dpr_bw_checklist  LIKE LINE OF it_e_t_dpr_bw_checklist,
it_e_t_dpr_bw_approval  TYPE STANDARD TABLE OF DPR_BW_APPROVAL ,
wa_e_t_dpr_bw_approval  LIKE LINE OF it_e_t_dpr_bw_approval,
it_e_t_dpr_bw_ind_approval  TYPE STANDARD TABLE OF DPR_BW_IND_APPROVAL ,
wa_e_t_dpr_bw_ind_approval  LIKE LINE OF it_e_t_dpr_bw_ind_approval,
it_e_t_dpr_bw_documents  TYPE STANDARD TABLE OF DPR_BW_DOCUMENTS ,
wa_e_t_dpr_bw_documents  LIKE LINE OF it_e_t_dpr_bw_documents.


ld_i_requnr = some text here

"populate fields of struture and append to itab
append wa_i_t_select to it_i_t_select.

ld_i_chabasnm = some text here

"populate fields of struture and append to itab
append wa_i_t_fields to it_i_t_fields.

ld_i_maxsize = some text here

"populate fields of struture and append to itab
append wa_e_t_dpr_bw_project to it_e_t_dpr_bw_project.

ld_i_initflag = some text here

"populate fields of struture and append to itab
append wa_e_t_dpr_bw_task to it_e_t_dpr_bw_task.

ld_i_updmode = some text here

"populate fields of struture and append to itab
append wa_e_t_dpr_bw_phase to it_e_t_dpr_bw_phase.

ld_i_datapakid = some text here

"populate fields of struture and append to itab
append wa_e_t_dpr_bw_part to it_e_t_dpr_bw_part.
ld_i_s_timeint = 'Check type of data required'.

"populate fields of struture and append to itab
append wa_e_t_dpr_bw_checklist_item to it_e_t_dpr_bw_checklist_item.

"populate fields of struture and append to itab
append wa_e_t_dpr_bw_checklist to it_e_t_dpr_bw_checklist.

"populate fields of struture and append to itab
append wa_e_t_dpr_bw_approval to it_e_t_dpr_bw_approval.

"populate fields of struture and append to itab
append wa_e_t_dpr_bw_ind_approval to it_e_t_dpr_bw_ind_approval.

"populate fields of struture and append to itab
append wa_e_t_dpr_bw_documents to it_e_t_dpr_bw_documents.

Contribute (Add Comments)

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 DPR_BW_GET_ATTRIBUTES or its description.