SAP Function Modules

BBP_PD_INV_GETLIST SAP Function module







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

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


Pattern for FM BBP_PD_INV_GETLIST - BBP PD INV GETLIST





CALL FUNCTION 'BBP_PD_INV_GETLIST' "
* EXPORTING
*   i_description =             " crmd_orderadm_h-description
*   i_created_by =              " crmd_orderadm_h-created_by
*   i_changed_by =              " crmd_orderadm_h-changed_by
*   i_create_date =             " bbp_create_date
*   i_create_date_to =          " bbp_create_date
*   i_change_date =             " bbp_change_date
*   iv_posting_date =           " crmt_posting_date
*   iv_posting_date_to =        " crmt_posting_date
*   i_object_id =               " crmd_orderadm_h-object_id
*   i_open_date =               " bbp_open_date
*   i_partner =                 " crmd_partner-partner_no
*   i_partner_fct =             " crmd_partner-partner_fct
*   i_incomplete =              " xfeld
*   i_with_closed =             " xfeld
*   i_subtype =                 " bbp_h_subtype
*   i_for_po_id =               " crmd_orderadm_h-object_type
*   i_read_status_first =       " xflag
*   i_read_from_archive =       " xflag
*   iv_read_product_category_hier =   " bbp_read_product_category_hier
*   is_read_initial_parameter =   " bbps_pdlist_hdr_read_initial
*   i_partner_select_or =       " xflag
*   i_read_orgdata =            " xflag
*   i_item_description =        " crmd_orderadm_i-description
*   i_item_product =            " crmd_orderadm_i-product
*   i_item_ordered_prod =       " crmd_orderadm_i-ordered_prod
*   i_item_product_src_sys =    " bbp_logsys
*   i_item_partner_prod =       " crmd_orderadm_i-partner_prod
*   i_item_category =           " bbp_pdigp-category
*   i_item_category_id =        " bbp_pdigp-category_id
*   i_item_accounting =         " bbp_pds_search_acc
*   i_ref_doc_no =              " bbp_xblnr
*   i_without_company_check =   " xfeld
*   iv_currency =               " waers
*   iv_company_code =           " bbp_co_code
  TABLES
*   i_header_guids =            " bbp_guid_tab
*   it_src_guids =              " bbp_guid_tab
*   i_range_cost_ctr =          " bbp_pds_range_cost_ctr
*   i_range_asset_no =          " bbp_pds_range_asset_no
*   i_range_order_no =          " bbp_pds_range_order_no
*   i_range_network =           " bbp_pds_range_network
*   i_range_wbs_elem_e =        " bbp_pds_range_wbs_elem_e
*   it_range_sales_ord =        " bbp_pds_range_sales_ord
*   it_range_fund =             " bbp_pds_range_fund
*   it_range_funds_ctr =        " bbp_pds_range_funds_ctr
*   it_range_cmmt_item =        " bbp_pds_range_cmmt_item
*   it_range_func_area =        " bbp_pds_range_func_area
*   it_range_g_l_acct =         " bbp_pds_range_g_l_acct
*   it_range_purchteam =        " bbp_pds_range_purchteam
*   i_status =                  " jstat
*   i_partners =                " bbp_pds_partner_get
*   it_company =                " bbps_pdlist_company
*   it_cuf_search =             " bbp_cuf_search_header
*   it_item_cuf_search =        " bbp_cuf_search_item
*   i_item_partners =           " bbp_pds_partner_get
*   it_range_proc_org =         " bbp_pds_range_proc_org
*   it_range_proc_group =       " bbp_pds_range_proc_group
*   i_range_object_id =         " bbp_pds_range_object_id
*   it_range_gross_amount =     " bbp_pds_range_gross_amount
*   it_item_range_category_id =   " bbp_pds_range_category_id
*   it_item_range_ordered_prod =   " bbp_pds_range_ordered_prod
*   it_range_ref_doc_no =       " bbp_pds_range_ref_doc_no
    e_pdlist =                  " bbp_pds_pdlist
*   e_status =                  " bbp_pds_status
    e_messages =                " bbp_pds_messages
    .  "  BBP_PD_INV_GETLIST

ABAP code example for Function Module BBP_PD_INV_GETLIST





The ABAP code below is a full code listing to execute function module BBP_PD_INV_GETLIST 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_header_guids  TYPE STANDARD TABLE OF BBP_GUID_TAB,"TABLES PARAM
wa_i_header_guids  LIKE LINE OF it_i_header_guids ,
it_it_src_guids  TYPE STANDARD TABLE OF BBP_GUID_TAB,"TABLES PARAM
wa_it_src_guids  LIKE LINE OF it_it_src_guids ,
it_i_range_cost_ctr  TYPE STANDARD TABLE OF BBP_PDS_RANGE_COST_CTR,"TABLES PARAM
wa_i_range_cost_ctr  LIKE LINE OF it_i_range_cost_ctr ,
it_i_range_asset_no  TYPE STANDARD TABLE OF BBP_PDS_RANGE_ASSET_NO,"TABLES PARAM
wa_i_range_asset_no  LIKE LINE OF it_i_range_asset_no ,
it_i_range_order_no  TYPE STANDARD TABLE OF BBP_PDS_RANGE_ORDER_NO,"TABLES PARAM
wa_i_range_order_no  LIKE LINE OF it_i_range_order_no ,
it_i_range_network  TYPE STANDARD TABLE OF BBP_PDS_RANGE_NETWORK,"TABLES PARAM
wa_i_range_network  LIKE LINE OF it_i_range_network ,
it_i_range_wbs_elem_e  TYPE STANDARD TABLE OF BBP_PDS_RANGE_WBS_ELEM_E,"TABLES PARAM
wa_i_range_wbs_elem_e  LIKE LINE OF it_i_range_wbs_elem_e ,
it_it_range_sales_ord  TYPE STANDARD TABLE OF BBP_PDS_RANGE_SALES_ORD,"TABLES PARAM
wa_it_range_sales_ord  LIKE LINE OF it_it_range_sales_ord ,
it_it_range_fund  TYPE STANDARD TABLE OF BBP_PDS_RANGE_FUND,"TABLES PARAM
wa_it_range_fund  LIKE LINE OF it_it_range_fund ,
it_it_range_funds_ctr  TYPE STANDARD TABLE OF BBP_PDS_RANGE_FUNDS_CTR,"TABLES PARAM
wa_it_range_funds_ctr  LIKE LINE OF it_it_range_funds_ctr ,
it_it_range_cmmt_item  TYPE STANDARD TABLE OF BBP_PDS_RANGE_CMMT_ITEM,"TABLES PARAM
wa_it_range_cmmt_item  LIKE LINE OF it_it_range_cmmt_item ,
it_it_range_func_area  TYPE STANDARD TABLE OF BBP_PDS_RANGE_FUNC_AREA,"TABLES PARAM
wa_it_range_func_area  LIKE LINE OF it_it_range_func_area ,
it_it_range_g_l_acct  TYPE STANDARD TABLE OF BBP_PDS_RANGE_G_L_ACCT,"TABLES PARAM
wa_it_range_g_l_acct  LIKE LINE OF it_it_range_g_l_acct ,
it_it_range_purchteam  TYPE STANDARD TABLE OF BBP_PDS_RANGE_PURCHTEAM,"TABLES PARAM
wa_it_range_purchteam  LIKE LINE OF it_it_range_purchteam ,
it_i_status  TYPE STANDARD TABLE OF JSTAT,"TABLES PARAM
wa_i_status  LIKE LINE OF it_i_status ,
it_i_partners  TYPE STANDARD TABLE OF BBP_PDS_PARTNER_GET,"TABLES PARAM
wa_i_partners  LIKE LINE OF it_i_partners ,
it_it_company  TYPE STANDARD TABLE OF BBPS_PDLIST_COMPANY,"TABLES PARAM
wa_it_company  LIKE LINE OF it_it_company ,
it_it_cuf_search  TYPE STANDARD TABLE OF BBP_CUF_SEARCH_HEADER,"TABLES PARAM
wa_it_cuf_search  LIKE LINE OF it_it_cuf_search ,
it_it_item_cuf_search  TYPE STANDARD TABLE OF BBP_CUF_SEARCH_ITEM,"TABLES PARAM
wa_it_item_cuf_search  LIKE LINE OF it_it_item_cuf_search ,
it_i_item_partners  TYPE STANDARD TABLE OF BBP_PDS_PARTNER_GET,"TABLES PARAM
wa_i_item_partners  LIKE LINE OF it_i_item_partners ,
it_it_range_proc_org  TYPE STANDARD TABLE OF BBP_PDS_RANGE_PROC_ORG,"TABLES PARAM
wa_it_range_proc_org  LIKE LINE OF it_it_range_proc_org ,
it_it_range_proc_group  TYPE STANDARD TABLE OF BBP_PDS_RANGE_PROC_GROUP,"TABLES PARAM
wa_it_range_proc_group  LIKE LINE OF it_it_range_proc_group ,
it_i_range_object_id  TYPE STANDARD TABLE OF BBP_PDS_RANGE_OBJECT_ID,"TABLES PARAM
wa_i_range_object_id  LIKE LINE OF it_i_range_object_id ,
it_it_range_gross_amount  TYPE STANDARD TABLE OF BBP_PDS_RANGE_GROSS_AMOUNT,"TABLES PARAM
wa_it_range_gross_amount  LIKE LINE OF it_it_range_gross_amount ,
it_it_item_range_category_id  TYPE STANDARD TABLE OF BBP_PDS_RANGE_CATEGORY_ID,"TABLES PARAM
wa_it_item_range_category_id  LIKE LINE OF it_it_item_range_category_id ,
it_it_item_range_ordered_prod  TYPE STANDARD TABLE OF BBP_PDS_RANGE_ORDERED_PROD,"TABLES PARAM
wa_it_item_range_ordered_prod  LIKE LINE OF it_it_item_range_ordered_prod ,
it_it_range_ref_doc_no  TYPE STANDARD TABLE OF BBP_PDS_RANGE_REF_DOC_NO,"TABLES PARAM
wa_it_range_ref_doc_no  LIKE LINE OF it_it_range_ref_doc_no ,
it_e_pdlist  TYPE STANDARD TABLE OF BBP_PDS_PDLIST,"TABLES PARAM
wa_e_pdlist  LIKE LINE OF it_e_pdlist ,
it_e_status  TYPE STANDARD TABLE OF BBP_PDS_STATUS,"TABLES PARAM
wa_e_status  LIKE LINE OF it_e_status ,
it_e_messages  TYPE STANDARD TABLE OF BBP_PDS_MESSAGES,"TABLES PARAM
wa_e_messages  LIKE LINE OF it_e_messages .


SELECT single DESCRIPTION
FROM CRMD_ORDERADM_H
INTO @DATA(ld_i_description).


SELECT single CREATED_BY
FROM CRMD_ORDERADM_H
INTO @DATA(ld_i_created_by).


SELECT single CHANGED_BY
FROM CRMD_ORDERADM_H
INTO @DATA(ld_i_changed_by).

DATA(ld_i_create_date) = 'Check type of data required'.
DATA(ld_i_create_date_to) = 'Check type of data required'.
DATA(ld_i_change_date) = 'Check type of data required'.
DATA(ld_iv_posting_date) = 'Check type of data required'.
DATA(ld_iv_posting_date_to) = 'Check type of data required'.

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

DATA(ld_i_open_date) = 'Check type of data required'.

SELECT single PARTNER_NO
FROM CRMD_PARTNER
INTO @DATA(ld_i_partner).


SELECT single PARTNER_FCT
FROM CRMD_PARTNER
INTO @DATA(ld_i_partner_fct).

DATA(ld_i_incomplete) = 'Check type of data required'.
DATA(ld_i_with_closed) = 'Check type of data required'.
DATA(ld_i_subtype) = 'Check type of data required'.

SELECT single OBJECT_TYPE
FROM CRMD_ORDERADM_H
INTO @DATA(ld_i_for_po_id).

DATA(ld_i_read_status_first) = 'Check type of data required'.
DATA(ld_i_read_from_archive) = 'Check type of data required'.
DATA(ld_iv_read_product_category_hier) = 'Check type of data required'.
DATA(ld_is_read_initial_parameter) = 'Check type of data required'.
DATA(ld_i_partner_select_or) = 'Check type of data required'.
DATA(ld_i_read_orgdata) = 'Check type of data required'.

SELECT single DESCRIPTION
FROM CRMD_ORDERADM_I
INTO @DATA(ld_i_item_description).


SELECT single PRODUCT
FROM CRMD_ORDERADM_I
INTO @DATA(ld_i_item_product).


SELECT single ORDERED_PROD
FROM CRMD_ORDERADM_I
INTO @DATA(ld_i_item_ordered_prod).

DATA(ld_i_item_product_src_sys) = 'Check type of data required'.

SELECT single PARTNER_PROD
FROM CRMD_ORDERADM_I
INTO @DATA(ld_i_item_partner_prod).


SELECT single CATEGORY
FROM BBP_PDIGP
INTO @DATA(ld_i_item_category).


SELECT single CATEGORY_ID
FROM BBP_PDIGP
INTO @DATA(ld_i_item_category_id).

DATA(ld_i_item_accounting) = 'some text here'.
DATA(ld_i_ref_doc_no) = 'some text here'.
DATA(ld_i_without_company_check) = 'some text here'.
DATA(ld_iv_currency) = 'some text here'.
DATA(ld_iv_company_code) = 'some text here'.

"populate fields of struture and append to itab
append wa_i_header_guids to it_i_header_guids.

"populate fields of struture and append to itab
append wa_it_src_guids to it_it_src_guids.

"populate fields of struture and append to itab
append wa_i_range_cost_ctr to it_i_range_cost_ctr.

"populate fields of struture and append to itab
append wa_i_range_asset_no to it_i_range_asset_no.

"populate fields of struture and append to itab
append wa_i_range_order_no to it_i_range_order_no.

"populate fields of struture and append to itab
append wa_i_range_network to it_i_range_network.

"populate fields of struture and append to itab
append wa_i_range_wbs_elem_e to it_i_range_wbs_elem_e.

"populate fields of struture and append to itab
append wa_it_range_sales_ord to it_it_range_sales_ord.

"populate fields of struture and append to itab
append wa_it_range_fund to it_it_range_fund.

"populate fields of struture and append to itab
append wa_it_range_funds_ctr to it_it_range_funds_ctr.

"populate fields of struture and append to itab
append wa_it_range_cmmt_item to it_it_range_cmmt_item.

"populate fields of struture and append to itab
append wa_it_range_func_area to it_it_range_func_area.

"populate fields of struture and append to itab
append wa_it_range_g_l_acct to it_it_range_g_l_acct.

"populate fields of struture and append to itab
append wa_it_range_purchteam to it_it_range_purchteam.

"populate fields of struture and append to itab
append wa_i_status to it_i_status.

"populate fields of struture and append to itab
append wa_i_partners to it_i_partners.

"populate fields of struture and append to itab
append wa_it_company to it_it_company.

"populate fields of struture and append to itab
append wa_it_cuf_search to it_it_cuf_search.

"populate fields of struture and append to itab
append wa_it_item_cuf_search to it_it_item_cuf_search.

"populate fields of struture and append to itab
append wa_i_item_partners to it_i_item_partners.

"populate fields of struture and append to itab
append wa_it_range_proc_org to it_it_range_proc_org.

"populate fields of struture and append to itab
append wa_it_range_proc_group to it_it_range_proc_group.

"populate fields of struture and append to itab
append wa_i_range_object_id to it_i_range_object_id.

"populate fields of struture and append to itab
append wa_it_range_gross_amount to it_it_range_gross_amount.

"populate fields of struture and append to itab
append wa_it_item_range_category_id to it_it_item_range_category_id.

"populate fields of struture and append to itab
append wa_it_item_range_ordered_prod to it_it_item_range_ordered_prod.

"populate fields of struture and append to itab
append wa_it_range_ref_doc_no to it_it_range_ref_doc_no.

"populate fields of struture and append to itab
append wa_e_pdlist to it_e_pdlist.

"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_messages to it_e_messages. . CALL FUNCTION 'BBP_PD_INV_GETLIST' * EXPORTING * i_description = ld_i_description * i_created_by = ld_i_created_by * i_changed_by = ld_i_changed_by * i_create_date = ld_i_create_date * i_create_date_to = ld_i_create_date_to * i_change_date = ld_i_change_date * iv_posting_date = ld_iv_posting_date * iv_posting_date_to = ld_iv_posting_date_to * i_object_id = ld_i_object_id * i_open_date = ld_i_open_date * i_partner = ld_i_partner * i_partner_fct = ld_i_partner_fct * i_incomplete = ld_i_incomplete * i_with_closed = ld_i_with_closed * i_subtype = ld_i_subtype * i_for_po_id = ld_i_for_po_id * i_read_status_first = ld_i_read_status_first * i_read_from_archive = ld_i_read_from_archive * iv_read_product_category_hier = ld_iv_read_product_category_hier * is_read_initial_parameter = ld_is_read_initial_parameter * i_partner_select_or = ld_i_partner_select_or * i_read_orgdata = ld_i_read_orgdata * i_item_description = ld_i_item_description * i_item_product = ld_i_item_product * i_item_ordered_prod = ld_i_item_ordered_prod * i_item_product_src_sys = ld_i_item_product_src_sys * i_item_partner_prod = ld_i_item_partner_prod * i_item_category = ld_i_item_category * i_item_category_id = ld_i_item_category_id * i_item_accounting = ld_i_item_accounting * i_ref_doc_no = ld_i_ref_doc_no * i_without_company_check = ld_i_without_company_check * iv_currency = ld_iv_currency * iv_company_code = ld_iv_company_code TABLES * i_header_guids = it_i_header_guids * it_src_guids = it_it_src_guids * i_range_cost_ctr = it_i_range_cost_ctr * i_range_asset_no = it_i_range_asset_no * i_range_order_no = it_i_range_order_no * i_range_network = it_i_range_network * i_range_wbs_elem_e = it_i_range_wbs_elem_e * it_range_sales_ord = it_it_range_sales_ord * it_range_fund = it_it_range_fund * it_range_funds_ctr = it_it_range_funds_ctr * it_range_cmmt_item = it_it_range_cmmt_item * it_range_func_area = it_it_range_func_area * it_range_g_l_acct = it_it_range_g_l_acct * it_range_purchteam = it_it_range_purchteam * i_status = it_i_status * i_partners = it_i_partners * it_company = it_it_company * it_cuf_search = it_it_cuf_search * it_item_cuf_search = it_it_item_cuf_search * i_item_partners = it_i_item_partners * it_range_proc_org = it_it_range_proc_org * it_range_proc_group = it_it_range_proc_group * i_range_object_id = it_i_range_object_id * it_range_gross_amount = it_it_range_gross_amount * it_item_range_category_id = it_it_item_range_category_id * it_item_range_ordered_prod = it_it_item_range_ordered_prod * it_range_ref_doc_no = it_it_range_ref_doc_no e_pdlist = it_e_pdlist * e_status = it_e_status e_messages = it_e_messages . " BBP_PD_INV_GETLIST
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_i_description  TYPE CRMD_ORDERADM_H-DESCRIPTION ,
it_i_header_guids  TYPE STANDARD TABLE OF BBP_GUID_TAB ,
wa_i_header_guids  LIKE LINE OF it_i_header_guids,
ld_i_created_by  TYPE CRMD_ORDERADM_H-CREATED_BY ,
it_it_src_guids  TYPE STANDARD TABLE OF BBP_GUID_TAB ,
wa_it_src_guids  LIKE LINE OF it_it_src_guids,
ld_i_changed_by  TYPE CRMD_ORDERADM_H-CHANGED_BY ,
it_i_range_cost_ctr  TYPE STANDARD TABLE OF BBP_PDS_RANGE_COST_CTR ,
wa_i_range_cost_ctr  LIKE LINE OF it_i_range_cost_ctr,
ld_i_create_date  TYPE BBP_CREATE_DATE ,
it_i_range_asset_no  TYPE STANDARD TABLE OF BBP_PDS_RANGE_ASSET_NO ,
wa_i_range_asset_no  LIKE LINE OF it_i_range_asset_no,
ld_i_create_date_to  TYPE BBP_CREATE_DATE ,
it_i_range_order_no  TYPE STANDARD TABLE OF BBP_PDS_RANGE_ORDER_NO ,
wa_i_range_order_no  LIKE LINE OF it_i_range_order_no,
ld_i_change_date  TYPE BBP_CHANGE_DATE ,
it_i_range_network  TYPE STANDARD TABLE OF BBP_PDS_RANGE_NETWORK ,
wa_i_range_network  LIKE LINE OF it_i_range_network,
ld_iv_posting_date  TYPE CRMT_POSTING_DATE ,
it_i_range_wbs_elem_e  TYPE STANDARD TABLE OF BBP_PDS_RANGE_WBS_ELEM_E ,
wa_i_range_wbs_elem_e  LIKE LINE OF it_i_range_wbs_elem_e,
ld_iv_posting_date_to  TYPE CRMT_POSTING_DATE ,
it_it_range_sales_ord  TYPE STANDARD TABLE OF BBP_PDS_RANGE_SALES_ORD ,
wa_it_range_sales_ord  LIKE LINE OF it_it_range_sales_ord,
ld_i_object_id  TYPE CRMD_ORDERADM_H-OBJECT_ID ,
it_it_range_fund  TYPE STANDARD TABLE OF BBP_PDS_RANGE_FUND ,
wa_it_range_fund  LIKE LINE OF it_it_range_fund,
ld_i_open_date  TYPE BBP_OPEN_DATE ,
it_it_range_funds_ctr  TYPE STANDARD TABLE OF BBP_PDS_RANGE_FUNDS_CTR ,
wa_it_range_funds_ctr  LIKE LINE OF it_it_range_funds_ctr,
it_it_range_cmmt_item  TYPE STANDARD TABLE OF BBP_PDS_RANGE_CMMT_ITEM ,
wa_it_range_cmmt_item  LIKE LINE OF it_it_range_cmmt_item,
ld_i_partner  TYPE CRMD_PARTNER-PARTNER_NO ,
it_it_range_func_area  TYPE STANDARD TABLE OF BBP_PDS_RANGE_FUNC_AREA ,
wa_it_range_func_area  LIKE LINE OF it_it_range_func_area,
ld_i_partner_fct  TYPE CRMD_PARTNER-PARTNER_FCT ,
it_it_range_g_l_acct  TYPE STANDARD TABLE OF BBP_PDS_RANGE_G_L_ACCT ,
wa_it_range_g_l_acct  LIKE LINE OF it_it_range_g_l_acct,
ld_i_incomplete  TYPE XFELD ,
it_it_range_purchteam  TYPE STANDARD TABLE OF BBP_PDS_RANGE_PURCHTEAM ,
wa_it_range_purchteam  LIKE LINE OF it_it_range_purchteam,
ld_i_with_closed  TYPE XFELD ,
it_i_status  TYPE STANDARD TABLE OF JSTAT ,
wa_i_status  LIKE LINE OF it_i_status,
ld_i_subtype  TYPE BBP_H_SUBTYPE ,
it_i_partners  TYPE STANDARD TABLE OF BBP_PDS_PARTNER_GET ,
wa_i_partners  LIKE LINE OF it_i_partners,
ld_i_for_po_id  TYPE CRMD_ORDERADM_H-OBJECT_TYPE ,
it_it_company  TYPE STANDARD TABLE OF BBPS_PDLIST_COMPANY ,
wa_it_company  LIKE LINE OF it_it_company,
ld_i_read_status_first  TYPE XFLAG ,
it_it_cuf_search  TYPE STANDARD TABLE OF BBP_CUF_SEARCH_HEADER ,
wa_it_cuf_search  LIKE LINE OF it_it_cuf_search,
ld_i_read_from_archive  TYPE XFLAG ,
it_it_item_cuf_search  TYPE STANDARD TABLE OF BBP_CUF_SEARCH_ITEM ,
wa_it_item_cuf_search  LIKE LINE OF it_it_item_cuf_search,
ld_iv_read_product_category_hier  TYPE BBP_READ_PRODUCT_CATEGORY_HIER ,
it_i_item_partners  TYPE STANDARD TABLE OF BBP_PDS_PARTNER_GET ,
wa_i_item_partners  LIKE LINE OF it_i_item_partners,
ld_is_read_initial_parameter  TYPE BBPS_PDLIST_HDR_READ_INITIAL ,
it_it_range_proc_org  TYPE STANDARD TABLE OF BBP_PDS_RANGE_PROC_ORG ,
wa_it_range_proc_org  LIKE LINE OF it_it_range_proc_org,
ld_i_partner_select_or  TYPE XFLAG ,
it_it_range_proc_group  TYPE STANDARD TABLE OF BBP_PDS_RANGE_PROC_GROUP ,
wa_it_range_proc_group  LIKE LINE OF it_it_range_proc_group,
ld_i_read_orgdata  TYPE XFLAG ,
it_i_range_object_id  TYPE STANDARD TABLE OF BBP_PDS_RANGE_OBJECT_ID ,
wa_i_range_object_id  LIKE LINE OF it_i_range_object_id,
ld_i_item_description  TYPE CRMD_ORDERADM_I-DESCRIPTION ,
it_it_range_gross_amount  TYPE STANDARD TABLE OF BBP_PDS_RANGE_GROSS_AMOUNT ,
wa_it_range_gross_amount  LIKE LINE OF it_it_range_gross_amount,
ld_i_item_product  TYPE CRMD_ORDERADM_I-PRODUCT ,
it_it_item_range_category_id  TYPE STANDARD TABLE OF BBP_PDS_RANGE_CATEGORY_ID ,
wa_it_item_range_category_id  LIKE LINE OF it_it_item_range_category_id,
ld_i_item_ordered_prod  TYPE CRMD_ORDERADM_I-ORDERED_PROD ,
it_it_item_range_ordered_prod  TYPE STANDARD TABLE OF BBP_PDS_RANGE_ORDERED_PROD ,
wa_it_item_range_ordered_prod  LIKE LINE OF it_it_item_range_ordered_prod,
ld_i_item_product_src_sys  TYPE BBP_LOGSYS ,
it_it_range_ref_doc_no  TYPE STANDARD TABLE OF BBP_PDS_RANGE_REF_DOC_NO ,
wa_it_range_ref_doc_no  LIKE LINE OF it_it_range_ref_doc_no,
ld_i_item_partner_prod  TYPE CRMD_ORDERADM_I-PARTNER_PROD ,
it_e_pdlist  TYPE STANDARD TABLE OF BBP_PDS_PDLIST ,
wa_e_pdlist  LIKE LINE OF it_e_pdlist,
ld_i_item_category  TYPE BBP_PDIGP-CATEGORY ,
it_e_status  TYPE STANDARD TABLE OF BBP_PDS_STATUS ,
wa_e_status  LIKE LINE OF it_e_status,
ld_i_item_category_id  TYPE BBP_PDIGP-CATEGORY_ID ,
it_e_messages  TYPE STANDARD TABLE OF BBP_PDS_MESSAGES ,
wa_e_messages  LIKE LINE OF it_e_messages,
ld_i_item_accounting  TYPE BBP_PDS_SEARCH_ACC ,
ld_i_ref_doc_no  TYPE BBP_XBLNR ,
ld_i_without_company_check  TYPE XFELD ,
ld_iv_currency  TYPE WAERS ,
ld_iv_company_code  TYPE BBP_CO_CODE .


SELECT single DESCRIPTION
FROM CRMD_ORDERADM_H
INTO ld_i_description.


"populate fields of struture and append to itab
append wa_i_header_guids to it_i_header_guids.

SELECT single CREATED_BY
FROM CRMD_ORDERADM_H
INTO ld_i_created_by.


"populate fields of struture and append to itab
append wa_it_src_guids to it_it_src_guids.

SELECT single CHANGED_BY
FROM CRMD_ORDERADM_H
INTO ld_i_changed_by.


"populate fields of struture and append to itab
append wa_i_range_cost_ctr to it_i_range_cost_ctr.
ld_i_create_date = 'some text here'.

"populate fields of struture and append to itab
append wa_i_range_asset_no to it_i_range_asset_no.
ld_i_create_date_to = 'some text here'.

"populate fields of struture and append to itab
append wa_i_range_order_no to it_i_range_order_no.
ld_i_change_date = 'some text here'.

"populate fields of struture and append to itab
append wa_i_range_network to it_i_range_network.
ld_iv_posting_date = 'some text here'.

"populate fields of struture and append to itab
append wa_i_range_wbs_elem_e to it_i_range_wbs_elem_e.
ld_iv_posting_date_to = 'some text here'.

"populate fields of struture and append to itab
append wa_it_range_sales_ord to it_it_range_sales_ord.

SELECT single OBJECT_ID
FROM CRMD_ORDERADM_H
INTO ld_i_object_id.


"populate fields of struture and append to itab
append wa_it_range_fund to it_it_range_fund.
ld_i_open_date = 'some text here'.

"populate fields of struture and append to itab
append wa_it_range_funds_ctr to it_it_range_funds_ctr.

"populate fields of struture and append to itab
append wa_it_range_cmmt_item to it_it_range_cmmt_item.

SELECT single PARTNER_NO
FROM CRMD_PARTNER
INTO ld_i_partner.


"populate fields of struture and append to itab
append wa_it_range_func_area to it_it_range_func_area.

SELECT single PARTNER_FCT
FROM CRMD_PARTNER
INTO ld_i_partner_fct.


"populate fields of struture and append to itab
append wa_it_range_g_l_acct to it_it_range_g_l_acct.
ld_i_incomplete = 'some text here'.

"populate fields of struture and append to itab
append wa_it_range_purchteam to it_it_range_purchteam.
ld_i_with_closed = 'some text here'.

"populate fields of struture and append to itab
append wa_i_status to it_i_status.
ld_i_subtype = 'some text here'.

"populate fields of struture and append to itab
append wa_i_partners to it_i_partners.

SELECT single OBJECT_TYPE
FROM CRMD_ORDERADM_H
INTO ld_i_for_po_id.


"populate fields of struture and append to itab
append wa_it_company to it_it_company.
ld_i_read_status_first = 'some text here'.

"populate fields of struture and append to itab
append wa_it_cuf_search to it_it_cuf_search.
ld_i_read_from_archive = 'some text here'.

"populate fields of struture and append to itab
append wa_it_item_cuf_search to it_it_item_cuf_search.
ld_iv_read_product_category_hier = 'some text here'.

"populate fields of struture and append to itab
append wa_i_item_partners to it_i_item_partners.
ld_is_read_initial_parameter = 'some text here'.

"populate fields of struture and append to itab
append wa_it_range_proc_org to it_it_range_proc_org.
ld_i_partner_select_or = 'some text here'.

"populate fields of struture and append to itab
append wa_it_range_proc_group to it_it_range_proc_group.
ld_i_read_orgdata = 'some text here'.

"populate fields of struture and append to itab
append wa_i_range_object_id to it_i_range_object_id.

SELECT single DESCRIPTION
FROM CRMD_ORDERADM_I
INTO ld_i_item_description.


"populate fields of struture and append to itab
append wa_it_range_gross_amount to it_it_range_gross_amount.

SELECT single PRODUCT
FROM CRMD_ORDERADM_I
INTO ld_i_item_product.


"populate fields of struture and append to itab
append wa_it_item_range_category_id to it_it_item_range_category_id.

SELECT single ORDERED_PROD
FROM CRMD_ORDERADM_I
INTO ld_i_item_ordered_prod.


"populate fields of struture and append to itab
append wa_it_item_range_ordered_prod to it_it_item_range_ordered_prod.
ld_i_item_product_src_sys = 'Check type of data required'.

"populate fields of struture and append to itab
append wa_it_range_ref_doc_no to it_it_range_ref_doc_no.

SELECT single PARTNER_PROD
FROM CRMD_ORDERADM_I
INTO ld_i_item_partner_prod.


"populate fields of struture and append to itab
append wa_e_pdlist to it_e_pdlist.

SELECT single CATEGORY
FROM BBP_PDIGP
INTO ld_i_item_category.


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

SELECT single CATEGORY_ID
FROM BBP_PDIGP
INTO ld_i_item_category_id.


"populate fields of struture and append to itab
append wa_e_messages to it_e_messages.
ld_i_item_accounting = 'some text here'.
ld_i_ref_doc_no = 'some text here'.
ld_i_without_company_check = 'some text here'.
ld_iv_currency = 'some text here'.
ld_iv_company_code = 'some text here'.

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