SAP Function Modules

BBP_PD_SUSPCO_GETDETAIL_UI SAP Function module







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

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


Pattern for FM BBP_PD_SUSPCO_GETDETAIL_UI - BBP PD SUSPCO GETDETAIL UI





CALL FUNCTION 'BBP_PD_SUSPCO_GETDETAIL_UI' "
* EXPORTING
*   i_guid =                    " crmd_orderadm_h-guid
*   i_object_id =               " crmd_orderadm_h-object_id
*   i_attach_with_doc = SPACE   " xfeld
*   i_with_itemdata = 'X'       " xfeld
*   i_read_be_data = SPACE      " xfeld
*   i_item_sorted_by_hierarchy =   " xfeld
*   iv_selected_item_guid =     " bbp_guid
*   iv_amount_of_items =        " i
  IMPORTING
    es_header =                 " bbp_pds_suspco_ui_header_d
    et_attach =                 " bbpt_pds_att_t
* TABLES
*   e_item =                    " bbp_pds_suspco_ui_item_d
*   e_partner =                 " bbp_pds_partner
*   e_longtext =                " bbp_pds_longtext
*   e_limit =                   " bbp_pds_limit
*   e_messages =                " bbp_pds_messages
*   e_header_rel =              " bbp_pds_hrel
*   e_itmlim_rel =              " bbp_pds_ilrel
*   e_header_suspco_rel =       " bbp_pds_suspco_hrel
*   e_item_suspco_rel =         " bbp_pds_suspco_irel
*   e_status =                  " bbp_pds_status_sus
*   e_schedlin =                " bbp_pds_sdln_sus_ui
*   e_suspco_hdr_list =         " bbps_suspco_hdr_list
    .  "  BBP_PD_SUSPCO_GETDETAIL_UI

ABAP code example for Function Module BBP_PD_SUSPCO_GETDETAIL_UI





The ABAP code below is a full code listing to execute function module BBP_PD_SUSPCO_GETDETAIL_UI 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_es_header  TYPE BBP_PDS_SUSPCO_UI_HEADER_D ,
ld_et_attach  TYPE BBPT_PDS_ATT_T ,
it_e_item  TYPE STANDARD TABLE OF BBP_PDS_SUSPCO_UI_ITEM_D,"TABLES PARAM
wa_e_item  LIKE LINE OF it_e_item ,
it_e_partner  TYPE STANDARD TABLE OF BBP_PDS_PARTNER,"TABLES PARAM
wa_e_partner  LIKE LINE OF it_e_partner ,
it_e_longtext  TYPE STANDARD TABLE OF BBP_PDS_LONGTEXT,"TABLES PARAM
wa_e_longtext  LIKE LINE OF it_e_longtext ,
it_e_limit  TYPE STANDARD TABLE OF BBP_PDS_LIMIT,"TABLES PARAM
wa_e_limit  LIKE LINE OF it_e_limit ,
it_e_messages  TYPE STANDARD TABLE OF BBP_PDS_MESSAGES,"TABLES PARAM
wa_e_messages  LIKE LINE OF it_e_messages ,
it_e_header_rel  TYPE STANDARD TABLE OF BBP_PDS_HREL,"TABLES PARAM
wa_e_header_rel  LIKE LINE OF it_e_header_rel ,
it_e_itmlim_rel  TYPE STANDARD TABLE OF BBP_PDS_ILREL,"TABLES PARAM
wa_e_itmlim_rel  LIKE LINE OF it_e_itmlim_rel ,
it_e_header_suspco_rel  TYPE STANDARD TABLE OF BBP_PDS_SUSPCO_HREL,"TABLES PARAM
wa_e_header_suspco_rel  LIKE LINE OF it_e_header_suspco_rel ,
it_e_item_suspco_rel  TYPE STANDARD TABLE OF BBP_PDS_SUSPCO_IREL,"TABLES PARAM
wa_e_item_suspco_rel  LIKE LINE OF it_e_item_suspco_rel ,
it_e_status  TYPE STANDARD TABLE OF BBP_PDS_STATUS_SUS,"TABLES PARAM
wa_e_status  LIKE LINE OF it_e_status ,
it_e_schedlin  TYPE STANDARD TABLE OF BBP_PDS_SDLN_SUS_UI,"TABLES PARAM
wa_e_schedlin  LIKE LINE OF it_e_schedlin ,
it_e_suspco_hdr_list  TYPE STANDARD TABLE OF BBPS_SUSPCO_HDR_LIST,"TABLES PARAM
wa_e_suspco_hdr_list  LIKE LINE OF it_e_suspco_hdr_list .


SELECT single GUID
FROM CRMD_ORDERADM_H
INTO @DATA(ld_i_guid).


SELECT single OBJECT_ID
FROM CRMD_ORDERADM_H
INTO @DATA(ld_i_object_id).

DATA(ld_i_attach_with_doc) = 'Check type of data required'.
DATA(ld_i_with_itemdata) = 'Check type of data required'.
DATA(ld_i_read_be_data) = 'Check type of data required'.
DATA(ld_i_item_sorted_by_hierarchy) = 'Check type of data required'.
DATA(ld_iv_selected_item_guid) = 'Check type of data required'.
DATA(ld_iv_amount_of_items) = 'Check type of data required'.

"populate fields of struture and append to itab
append wa_e_item to it_e_item.

"populate fields of struture and append to itab
append wa_e_partner to it_e_partner.

"populate fields of struture and append to itab
append wa_e_longtext to it_e_longtext.

"populate fields of struture and append to itab
append wa_e_limit to it_e_limit.

"populate fields of struture and append to itab
append wa_e_messages to it_e_messages.

"populate fields of struture and append to itab
append wa_e_header_rel to it_e_header_rel.

"populate fields of struture and append to itab
append wa_e_itmlim_rel to it_e_itmlim_rel.

"populate fields of struture and append to itab
append wa_e_header_suspco_rel to it_e_header_suspco_rel.

"populate fields of struture and append to itab
append wa_e_item_suspco_rel to it_e_item_suspco_rel.

"populate fields of struture and append to itab
append wa_e_status to it_e_status.

"populate fields of struture and append to itab
append wa_e_schedlin to it_e_schedlin.

"populate fields of struture and append to itab
append wa_e_suspco_hdr_list to it_e_suspco_hdr_list. . CALL FUNCTION 'BBP_PD_SUSPCO_GETDETAIL_UI' * EXPORTING * i_guid = ld_i_guid * i_object_id = ld_i_object_id * i_attach_with_doc = ld_i_attach_with_doc * i_with_itemdata = ld_i_with_itemdata * i_read_be_data = ld_i_read_be_data * i_item_sorted_by_hierarchy = ld_i_item_sorted_by_hierarchy * iv_selected_item_guid = ld_iv_selected_item_guid * iv_amount_of_items = ld_iv_amount_of_items IMPORTING es_header = ld_es_header et_attach = ld_et_attach * TABLES * e_item = it_e_item * e_partner = it_e_partner * e_longtext = it_e_longtext * e_limit = it_e_limit * e_messages = it_e_messages * e_header_rel = it_e_header_rel * e_itmlim_rel = it_e_itmlim_rel * e_header_suspco_rel = it_e_header_suspco_rel * e_item_suspco_rel = it_e_item_suspco_rel * e_status = it_e_status * e_schedlin = it_e_schedlin * e_suspco_hdr_list = it_e_suspco_hdr_list . " BBP_PD_SUSPCO_GETDETAIL_UI
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:
it_e_item  TYPE STANDARD TABLE OF BBP_PDS_SUSPCO_UI_ITEM_D ,
wa_e_item  LIKE LINE OF it_e_item,
ld_i_guid  TYPE CRMD_ORDERADM_H-GUID ,
ld_es_header  TYPE BBP_PDS_SUSPCO_UI_HEADER_D ,
ld_et_attach  TYPE BBPT_PDS_ATT_T ,
ld_i_object_id  TYPE CRMD_ORDERADM_H-OBJECT_ID ,
it_e_partner  TYPE STANDARD TABLE OF BBP_PDS_PARTNER ,
wa_e_partner  LIKE LINE OF it_e_partner,
ld_i_attach_with_doc  TYPE XFELD ,
it_e_longtext  TYPE STANDARD TABLE OF BBP_PDS_LONGTEXT ,
wa_e_longtext  LIKE LINE OF it_e_longtext,
ld_i_with_itemdata  TYPE XFELD ,
it_e_limit  TYPE STANDARD TABLE OF BBP_PDS_LIMIT ,
wa_e_limit  LIKE LINE OF it_e_limit,
ld_i_read_be_data  TYPE XFELD ,
it_e_messages  TYPE STANDARD TABLE OF BBP_PDS_MESSAGES ,
wa_e_messages  LIKE LINE OF it_e_messages,
ld_i_item_sorted_by_hierarchy  TYPE XFELD ,
it_e_header_rel  TYPE STANDARD TABLE OF BBP_PDS_HREL ,
wa_e_header_rel  LIKE LINE OF it_e_header_rel,
ld_iv_selected_item_guid  TYPE BBP_GUID ,
it_e_itmlim_rel  TYPE STANDARD TABLE OF BBP_PDS_ILREL ,
wa_e_itmlim_rel  LIKE LINE OF it_e_itmlim_rel,
ld_iv_amount_of_items  TYPE I ,
it_e_header_suspco_rel  TYPE STANDARD TABLE OF BBP_PDS_SUSPCO_HREL ,
wa_e_header_suspco_rel  LIKE LINE OF it_e_header_suspco_rel,
it_e_item_suspco_rel  TYPE STANDARD TABLE OF BBP_PDS_SUSPCO_IREL ,
wa_e_item_suspco_rel  LIKE LINE OF it_e_item_suspco_rel,
it_e_status  TYPE STANDARD TABLE OF BBP_PDS_STATUS_SUS ,
wa_e_status  LIKE LINE OF it_e_status,
it_e_schedlin  TYPE STANDARD TABLE OF BBP_PDS_SDLN_SUS_UI ,
wa_e_schedlin  LIKE LINE OF it_e_schedlin,
it_e_suspco_hdr_list  TYPE STANDARD TABLE OF BBPS_SUSPCO_HDR_LIST ,
wa_e_suspco_hdr_list  LIKE LINE OF it_e_suspco_hdr_list.


"populate fields of struture and append to itab
append wa_e_item to it_e_item.

SELECT single GUID
FROM CRMD_ORDERADM_H
INTO ld_i_guid.


SELECT single OBJECT_ID
FROM CRMD_ORDERADM_H
INTO ld_i_object_id.


"populate fields of struture and append to itab
append wa_e_partner to it_e_partner.
ld_i_attach_with_doc = 'Check type of data required'.

"populate fields of struture and append to itab
append wa_e_longtext to it_e_longtext.
ld_i_with_itemdata = 'Check type of data required'.

"populate fields of struture and append to itab
append wa_e_limit to it_e_limit.
ld_i_read_be_data = 'Check type of data required'.

"populate fields of struture and append to itab
append wa_e_messages to it_e_messages.
ld_i_item_sorted_by_hierarchy = 'Check type of data required'.

"populate fields of struture and append to itab
append wa_e_header_rel to it_e_header_rel.
ld_iv_selected_item_guid = 'Check type of data required'.

"populate fields of struture and append to itab
append wa_e_itmlim_rel to it_e_itmlim_rel.
ld_iv_amount_of_items = 'Check type of data required'.

"populate fields of struture and append to itab
append wa_e_header_suspco_rel to it_e_header_suspco_rel.

"populate fields of struture and append to itab
append wa_e_item_suspco_rel to it_e_item_suspco_rel.

"populate fields of struture and append to itab
append wa_e_status to it_e_status.

"populate fields of struture and append to itab
append wa_e_schedlin to it_e_schedlin.

"populate fields of struture and append to itab
append wa_e_suspco_hdr_list to it_e_suspco_hdr_list.

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