SAP Function Modules

BAPI_BUS20310_GET_DETAIL SAP Function module







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

Associated Function Group: PLM_BUS20310
Released Date: Not Released
Processing type: Remote-Enabled
remote enabled module settings


Pattern for FM BAPI_BUS20310_GET_DETAIL - BAPI BUS20310 GET DETAIL





CALL FUNCTION 'BAPI_BUS20310_GET_DETAIL' "
* EXPORTING
*   guid =                      " bapi_20310_d-guid  unique component identifier of question list
*   external_id =               " bapi_20310_d-external_id  External Identification of Question List
*   langu_iso =                 " bapi_20310_d-langu_iso  Language According to ISO 639
*   langu =                     " bapi_20310_d-langu  Language Key
  IMPORTING
    questionnaire =             " bapi_20310_d  Question List Attributes Detail
* TABLES
*   texts =                     " bapi_bus20310_text  Description
*   longtexts =                 " bapi_bus20350_long_text  Long Texts
*   documents =                 " bapi_20310_docs  Document Assignments
*   partner =                   " bapi_20310_roles_d  Business Partners and Partner Roles
*   status =                    " bapi_20310_status_m  System and User Status of Audit and Actions
*   questionnaireitems =        " bapi_2031010_d  Question List Items - Attributes
*   return =                    " bapiret2      Return Parameter
    .  "  BAPI_BUS20310_GET_DETAIL

ABAP code example for Function Module BAPI_BUS20310_GET_DETAIL





The ABAP code below is a full code listing to execute function module BAPI_BUS20310_GET_DETAIL 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:
ld_questionnaire  TYPE BAPI_20310_D ,
it_texts  TYPE STANDARD TABLE OF BAPI_BUS20310_TEXT,"TABLES PARAM
wa_texts  LIKE LINE OF it_texts ,
it_longtexts  TYPE STANDARD TABLE OF BAPI_BUS20350_LONG_TEXT,"TABLES PARAM
wa_longtexts  LIKE LINE OF it_longtexts ,
it_documents  TYPE STANDARD TABLE OF BAPI_20310_DOCS,"TABLES PARAM
wa_documents  LIKE LINE OF it_documents ,
it_partner  TYPE STANDARD TABLE OF BAPI_20310_ROLES_D,"TABLES PARAM
wa_partner  LIKE LINE OF it_partner ,
it_status  TYPE STANDARD TABLE OF BAPI_20310_STATUS_M,"TABLES PARAM
wa_status  LIKE LINE OF it_status ,
it_questionnaireitems  TYPE STANDARD TABLE OF BAPI_2031010_D,"TABLES PARAM
wa_questionnaireitems  LIKE LINE OF it_questionnaireitems ,
it_return  TYPE STANDARD TABLE OF BAPIRET2,"TABLES PARAM
wa_return  LIKE LINE OF it_return .


DATA(ld_guid) = some text here

DATA(ld_external_id) = some text here

DATA(ld_langu_iso) = some text here

DATA(ld_langu) = Check type of data required

"populate fields of struture and append to itab
append wa_texts to it_texts.

"populate fields of struture and append to itab
append wa_longtexts to it_longtexts.

"populate fields of struture and append to itab
append wa_documents to it_documents.

"populate fields of struture and append to itab
append wa_partner to it_partner.

"populate fields of struture and append to itab
append wa_status to it_status.

"populate fields of struture and append to itab
append wa_questionnaireitems to it_questionnaireitems.

"populate fields of struture and append to itab
append wa_return to it_return. . CALL FUNCTION 'BAPI_BUS20310_GET_DETAIL' * EXPORTING * guid = ld_guid * external_id = ld_external_id * langu_iso = ld_langu_iso * langu = ld_langu IMPORTING questionnaire = ld_questionnaire * TABLES * texts = it_texts * longtexts = it_longtexts * documents = it_documents * partner = it_partner * status = it_status * questionnaireitems = it_questionnaireitems * return = it_return . " BAPI_BUS20310_GET_DETAIL
IF SY-SUBRC EQ 0. "All OK 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_questionnaire  TYPE BAPI_20310_D ,
ld_guid  TYPE BAPI_20310_D-GUID ,
it_texts  TYPE STANDARD TABLE OF BAPI_BUS20310_TEXT ,
wa_texts  LIKE LINE OF it_texts,
ld_external_id  TYPE BAPI_20310_D-EXTERNAL_ID ,
it_longtexts  TYPE STANDARD TABLE OF BAPI_BUS20350_LONG_TEXT ,
wa_longtexts  LIKE LINE OF it_longtexts,
ld_langu_iso  TYPE BAPI_20310_D-LANGU_ISO ,
it_documents  TYPE STANDARD TABLE OF BAPI_20310_DOCS ,
wa_documents  LIKE LINE OF it_documents,
ld_langu  TYPE BAPI_20310_D-LANGU ,
it_partner  TYPE STANDARD TABLE OF BAPI_20310_ROLES_D ,
wa_partner  LIKE LINE OF it_partner,
it_status  TYPE STANDARD TABLE OF BAPI_20310_STATUS_M ,
wa_status  LIKE LINE OF it_status,
it_questionnaireitems  TYPE STANDARD TABLE OF BAPI_2031010_D ,
wa_questionnaireitems  LIKE LINE OF it_questionnaireitems,
it_return  TYPE STANDARD TABLE OF BAPIRET2 ,
wa_return  LIKE LINE OF it_return.


ld_guid = some text here

"populate fields of struture and append to itab
append wa_texts to it_texts.

ld_external_id = some text here

"populate fields of struture and append to itab
append wa_longtexts to it_longtexts.

ld_langu_iso = some text here

"populate fields of struture and append to itab
append wa_documents to it_documents.

ld_langu = Check type of data required

"populate fields of struture and append to itab
append wa_partner to it_partner.

"populate fields of struture and append to itab
append wa_status to it_status.

"populate fields of struture and append to itab
append wa_questionnaireitems to it_questionnaireitems.

"populate fields of struture and append to itab
append wa_return to it_return.

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