SAP Function Modules

BBP_PROCDOC_GETITEMLIST SAP Function module







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

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


Pattern for FM BBP_PROCDOC_GETITEMLIST - BBP PROCDOC GETITEMLIST





CALL FUNCTION 'BBP_PROCDOC_GETITEMLIST' "
* EXPORTING
*   i_object_type =             " crmd_orderadm_h-object_type
*   i_read_item_first =         " xflag
*   i_read_orgdata =            " xflag
*   i_subtype =                 " bbp_h_subtype
*   i_template_type =           " crmt_template_type_db
*   i_input_type =              " bbp_inp_type
*   iv_root =                   " bbp_root_ind
*   iv_be_log_system =          " be_log_system
*   iv_be_object_type =         " be_object_type
*   iv_be_object_id =           " be_object_id
*   i_description =             " crmd_orderadm_h-description
*   i_trex_keywords =           " string
*   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
*   i_change_date_to =          " bbp_change_date
*   iv_posting_date =           " crmt_posting_date
*   iv_posting_date_to =        " crmt_posting_date
*   i_verify_date =             " bbp_change_date
*   i_valid_from =              " bbp_vper_start
*   i_valid_until =             " bbp_vper_end
*   i_object_id =               " crmd_orderadm_h-object_id
*   i_process_type =            " crmd_orderadm_h-process_type
*   i_src_guid =                " crmd_orderadm_h-guid
*   i_src_object_id =           " bbp_btd_id
*   i_src_object_type =         " bbp_src_h_obj_typ
*   i_src_logsys =              " logsys
*   i_ref_object_id =           " bbp_ref_object_id
*   i_open_date =               " bbp_open_date
*   i_quot_dead =               " bbp_pdhsb-quot_dead
*   i_start_time =              " bbp_start_timestp
*   i_partner =                 " crmd_partner-partner_no
*   i_partner_fct =             " crmd_partner-partner_fct
*   i_prod_cat =                " bbp_pdhsb-category
*   i_pcins =                   " bbp_pdhgp-pcins
*   i_pcnum =                   " bbp_pdhgp-pcnum
*   i_pcname =                  " bbp_pdhgp-pcname
*   iv_company_code =           " bbp_co_code
*   i_proc_group =              " bbp_pdorg-proc_group
*   i_proc_org =                " bbp_pdorg-proc_org
*   i_product =                 " crmd_orderadm_i-product
*   i_ordered_prod =            " crmd_orderadm_i-ordered_prod
*   i_category =                " bbp_pdigp-category
*   i_category_id =             " bbp_pdigp-category_id
*   i_ref_doc_no =              " bbp_xblnr
*   i_plus_empty_group =        " xfeld
*   i_with_closed =             " xfeld
*   i_incomplete =              " xfeld
*   i_iv_possible =             " xfeld
*   i_iv_direct_possible =      " xfeld
*   i_cf_possible =             " xfeld
*   i_asn_possible =            " xfeld
*   i_quot_possible =           " xfeld
*   i_plus_open_bid =           " xfeld
*   i_status_select_or =        " xfeld
*   iv_partner_select_or = SPACE  " xfeld
*   i_without_company_check =   " xfeld
*   i_ers_flag =                " xfeld
*   i_change_lock =             " xfeld
*   i_with_change_version =     " xfeld
*   i_read_status_first =       " xflag
*   iv_read_product_category_hier =   " bbp_read_product_category_hier
*   is_read_initial_parameter =   " bbps_pdlist_hdr_read_initial
*   i_item_object_type =        " crmd_orderadm_i-object_type
*   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
*   iv_item_manu_prod =         " bbp_mfrpn
*   iv_item_mfr_no_ext =        " emnfr
*   i_item_category =           " bbp_pdigp-category
*   i_item_category_id =        " bbp_pdigp-category_id
*   i_item_create_date =        " bbp_create_date
*   i_item_create_date_from =   " bbp_create_date
*   i_item_ctr_guid =           " crmd_orderadm_h-guid
*   i_item_ctr_hdr_guid =       " bbp_ctr_h_guid
*   i_item_ctr_hdr_number =     " bbp_ctr_id
*   i_item_ctr_item_number =    " bbp_ctr_item
*   i_item_ctr_log_sys =        " bbp_ctr_log_system
*   i_item_src_guid =           " crmd_orderadm_h-guid
*   i_item_src_object_id =      " bbp_btd_id
*   i_item_src_object_type =    " bbp_src_h_obj_typ
*   i_item_src_logsys =         " logsys
*   i_item_src_itm_id =         " bbp_src_itm_id
*   i_item_without_final_entry =   " bbp_pdigp-final_entry
*   i_item_accounting =         " bbp_pds_search_acc
*   i_item_iv_open =            " xflag
*   i_item_cf_open =            " xflag
*   i_item_asn_open =           " xflag
*   i_item_cm_open =            " xflag
*   i_item_open_for_status =    " xflag
*   i_item_not_deleted =        " xflag
*   i_item_no_cf_quantity =     " xflag
*   i_item_no_cf_value =        " xflag
*   i_item_no_iv_quantity =     " xflag
*   i_item_no_iv_value =        " xflag
*   i_item_without_limit =      " xflag
*   i_item_proc_group =         " bbp_pdorg-proc_group
*   i_item_proc_org =           " bbp_pdorg-proc_org
*   i_item_plus_empty_group =   " xflag
*   i_item_source_rel_ind =     " bbp_source_rel_ind
*   i_item_ext_demid =          " bbp_ext_demid
*   i_item_ext_dem_logsys =     " bbp_ext_dem_logsys
*   iv_item_be_co_code =        " bukrs
*   iv_item_be_log_system =     " be_log_system
*   iv_item_be_object_type =    " be_object_type
*   iv_item_be_object_id =      " be_object_id
*   iv_item_be_object_item =    " be_obj_item
*   i_item_status_requested =   " xflag
*   i_item_hierarchy_requested =   " xflag
*   iv_purchteam =              " bbp_purchteam
*   iv_currency =               " waers
*   i_index_not_used =          " xflag
  TABLES
*   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_gross_amount =     " bbp_pds_range_gross_amount
*   i_status =                  " jstat
*   i_partners =                " bbp_pds_partner_get
*   i_range_object_id =         " bbp_pds_range_object_id
*   i_range_object_type =       " bbp_pds_range_object_type
*   it_range_proc_org =         " bbp_pds_range_proc_org
*   it_range_proc_group =       " bbp_pds_range_proc_group
*   it_range_quot_dead =        " bbp_pds_range_quot_dead
*   it_range_quot_dead_time =   " bbp_pds_range_quot_dead_time
*   i_header_guids =            " bbp_guid_tab
*   it_src_guids =              " bbp_guid_tab
*   it_company =                " bbps_pdlist_company
*   it_cuf_search =             " bbp_cuf_search_header
*   it_item_cuf_search =        " bbp_cuf_search_item
*   i_item_status =             " jstat
*   it_item_partners =          " bbp_pds_partner_get
*   i_item_src_guids =          " bbp_guid_tab
*   it_item_range_deliv_date =   " bbp_pds_range_deliv_date
*   it_item_range_proc_org =    " bbp_pds_range_proc_org
*   it_item_range_proc_group =   " bbp_pds_range_proc_group
*   it_range_ref_doc_no =       " bbp_pds_range_ref_doc_no
*   it_item_range_ext_demid =   " bbp_pds_range_ext_demid
*   it_item_range_category_id =   " bbp_pds_range_category_id
*   it_item_range_ordered_prod =   " bbp_pds_range_ordered_prod
*   it_item_range_ctr_hdr_number =   " bbp_pds_range_ctr_hdr_number
*   it_item_range_doc_priority =   " bbp_pds_range_doc_priority
*   it_item_range_source_rel_ind =   " bbp_pds_range_source_rel_ind
*   it_range_purchteam =        " bbp_pds_range_purchteam
*   it_item_range_ext_dem_logsys =   " bbp_pds_range_ext_dem_logsys
    e_pditemlist =              " bbp_pds_pditemlist
*   e_messages =                " bbp_pds_messages
*   et_item_status =            " bbp_pds_status
    .  "  BBP_PROCDOC_GETITEMLIST

ABAP code example for Function Module BBP_PROCDOC_GETITEMLIST





The ABAP code below is a full code listing to execute function module BBP_PROCDOC_GETITEMLIST 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_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_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_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_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_i_range_object_type  TYPE STANDARD TABLE OF BBP_PDS_RANGE_OBJECT_TYPE,"TABLES PARAM
wa_i_range_object_type  LIKE LINE OF it_i_range_object_type ,
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_it_range_quot_dead  TYPE STANDARD TABLE OF BBP_PDS_RANGE_QUOT_DEAD,"TABLES PARAM
wa_it_range_quot_dead  LIKE LINE OF it_it_range_quot_dead ,
it_it_range_quot_dead_time  TYPE STANDARD TABLE OF BBP_PDS_RANGE_QUOT_DEAD_TIME,"TABLES PARAM
wa_it_range_quot_dead_time  LIKE LINE OF it_it_range_quot_dead_time ,
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_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_status  TYPE STANDARD TABLE OF JSTAT,"TABLES PARAM
wa_i_item_status  LIKE LINE OF it_i_item_status ,
it_it_item_partners  TYPE STANDARD TABLE OF BBP_PDS_PARTNER_GET,"TABLES PARAM
wa_it_item_partners  LIKE LINE OF it_it_item_partners ,
it_i_item_src_guids  TYPE STANDARD TABLE OF BBP_GUID_TAB,"TABLES PARAM
wa_i_item_src_guids  LIKE LINE OF it_i_item_src_guids ,
it_it_item_range_deliv_date  TYPE STANDARD TABLE OF BBP_PDS_RANGE_DELIV_DATE,"TABLES PARAM
wa_it_item_range_deliv_date  LIKE LINE OF it_it_item_range_deliv_date ,
it_it_item_range_proc_org  TYPE STANDARD TABLE OF BBP_PDS_RANGE_PROC_ORG,"TABLES PARAM
wa_it_item_range_proc_org  LIKE LINE OF it_it_item_range_proc_org ,
it_it_item_range_proc_group  TYPE STANDARD TABLE OF BBP_PDS_RANGE_PROC_GROUP,"TABLES PARAM
wa_it_item_range_proc_group  LIKE LINE OF it_it_item_range_proc_group ,
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_it_item_range_ext_demid  TYPE STANDARD TABLE OF BBP_PDS_RANGE_EXT_DEMID,"TABLES PARAM
wa_it_item_range_ext_demid  LIKE LINE OF it_it_item_range_ext_demid ,
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_item_range_ctr_hdr_number  TYPE STANDARD TABLE OF BBP_PDS_RANGE_CTR_HDR_NUMBER,"TABLES PARAM
wa_it_item_range_ctr_hdr_number  LIKE LINE OF it_it_item_range_ctr_hdr_number ,
it_it_item_range_doc_priority  TYPE STANDARD TABLE OF BBP_PDS_RANGE_DOC_PRIORITY,"TABLES PARAM
wa_it_item_range_doc_priority  LIKE LINE OF it_it_item_range_doc_priority ,
it_it_item_range_source_rel_ind  TYPE STANDARD TABLE OF BBP_PDS_RANGE_SOURCE_REL_IND,"TABLES PARAM
wa_it_item_range_source_rel_ind  LIKE LINE OF it_it_item_range_source_rel_ind ,
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_it_item_range_ext_dem_logsys  TYPE STANDARD TABLE OF BBP_PDS_RANGE_EXT_DEM_LOGSYS,"TABLES PARAM
wa_it_item_range_ext_dem_logsys  LIKE LINE OF it_it_item_range_ext_dem_logsys ,
it_e_pditemlist  TYPE STANDARD TABLE OF BBP_PDS_PDITEMLIST,"TABLES PARAM
wa_e_pditemlist  LIKE LINE OF it_e_pditemlist ,
it_e_messages  TYPE STANDARD TABLE OF BBP_PDS_MESSAGES,"TABLES PARAM
wa_e_messages  LIKE LINE OF it_e_messages ,
it_et_item_status  TYPE STANDARD TABLE OF BBP_PDS_STATUS,"TABLES PARAM
wa_et_item_status  LIKE LINE OF it_et_item_status .


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

DATA(ld_i_read_item_first) = 'Check type of data required'.
DATA(ld_i_read_orgdata) = 'Check type of data required'.
DATA(ld_i_subtype) = 'Check type of data required'.
DATA(ld_i_template_type) = 'Check type of data required'.
DATA(ld_i_input_type) = 'Check type of data required'.
DATA(ld_iv_root) = 'Check type of data required'.
DATA(ld_iv_be_log_system) = 'Check type of data required'.
DATA(ld_iv_be_object_type) = 'some text here'.
DATA(ld_iv_be_object_id) = 'some text here'.

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

DATA(ld_i_trex_keywords) = 'some text here'.

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) = 'some text here'.
DATA(ld_i_create_date_to) = 'some text here'.
DATA(ld_i_change_date) = 'some text here'.
DATA(ld_i_change_date_to) = 'some text here'.
DATA(ld_iv_posting_date) = 'some text here'.
DATA(ld_iv_posting_date_to) = 'some text here'.
DATA(ld_i_verify_date) = 'some text here'.
DATA(ld_i_valid_from) = 'some text here'.
DATA(ld_i_valid_until) = 'some text here'.

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


SELECT single PROCESS_TYPE
FROM CRMD_ORDERADM_H
INTO @DATA(ld_i_process_type).


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

DATA(ld_i_src_object_id) = 'some text here'.
DATA(ld_i_src_object_type) = 'some text here'.
DATA(ld_i_src_logsys) = 'Check type of data required'.
DATA(ld_i_ref_object_id) = 'some text here'.
DATA(ld_i_open_date) = 'some text here'.

SELECT single QUOT_DEAD
FROM BBP_PDHSB
INTO @DATA(ld_i_quot_dead).

DATA(ld_i_start_time) = 'some text here'.

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).


SELECT single CATEGORY
FROM BBP_PDHSB
INTO @DATA(ld_i_prod_cat).


SELECT single PCINS
FROM BBP_PDHGP
INTO @DATA(ld_i_pcins).


SELECT single PCNUM
FROM BBP_PDHGP
INTO @DATA(ld_i_pcnum).


SELECT single PCNAME
FROM BBP_PDHGP
INTO @DATA(ld_i_pcname).

DATA(ld_iv_company_code) = 'some text here'.

SELECT single PROC_GROUP
FROM BBP_PDORG
INTO @DATA(ld_i_proc_group).


SELECT single PROC_ORG
FROM BBP_PDORG
INTO @DATA(ld_i_proc_org).


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


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


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


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

DATA(ld_i_ref_doc_no) = 'some text here'.
DATA(ld_i_plus_empty_group) = 'some text here'.
DATA(ld_i_with_closed) = 'some text here'.
DATA(ld_i_incomplete) = 'some text here'.
DATA(ld_i_iv_possible) = 'some text here'.
DATA(ld_i_iv_direct_possible) = 'some text here'.
DATA(ld_i_cf_possible) = 'some text here'.
DATA(ld_i_asn_possible) = 'some text here'.
DATA(ld_i_quot_possible) = 'some text here'.
DATA(ld_i_plus_open_bid) = 'some text here'.
DATA(ld_i_status_select_or) = 'some text here'.
DATA(ld_iv_partner_select_or) = 'some text here'.
DATA(ld_i_without_company_check) = 'some text here'.
DATA(ld_i_ers_flag) = 'some text here'.
DATA(ld_i_change_lock) = 'some text here'.
DATA(ld_i_with_change_version) = 'some text here'.
DATA(ld_i_read_status_first) = 'some text here'.
DATA(ld_iv_read_product_category_hier) = 'some text here'.
DATA(ld_is_read_initial_parameter) = 'some text here'.

SELECT single OBJECT_TYPE
FROM CRMD_ORDERADM_I
INTO @DATA(ld_i_item_object_type).


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).

DATA(ld_iv_item_manu_prod) = 'some text here'.
DATA(ld_iv_item_mfr_no_ext) = 'some text here'.

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_create_date) = 'some text here'.
DATA(ld_i_item_create_date_from) = 'some text here'.

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

DATA(ld_i_item_ctr_hdr_guid) = 'some text here'.
DATA(ld_i_item_ctr_hdr_number) = 'some text here'.
DATA(ld_i_item_ctr_item_number) = 'some text here'.
DATA(ld_i_item_ctr_log_sys) = 'Check type of data required'.

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

DATA(ld_i_item_src_object_id) = 'some text here'.
DATA(ld_i_item_src_object_type) = 'some text here'.
DATA(ld_i_item_src_logsys) = 'Check type of data required'.
DATA(ld_i_item_src_itm_id) = 'some text here'.

SELECT single FINAL_ENTRY
FROM BBP_PDIGP
INTO @DATA(ld_i_item_without_final_entry).

DATA(ld_i_item_accounting) = 'some text here'.
DATA(ld_i_item_iv_open) = 'some text here'.
DATA(ld_i_item_cf_open) = 'some text here'.
DATA(ld_i_item_asn_open) = 'some text here'.
DATA(ld_i_item_cm_open) = 'some text here'.
DATA(ld_i_item_open_for_status) = 'some text here'.
DATA(ld_i_item_not_deleted) = 'some text here'.
DATA(ld_i_item_no_cf_quantity) = 'some text here'.
DATA(ld_i_item_no_cf_value) = 'some text here'.
DATA(ld_i_item_no_iv_quantity) = 'some text here'.
DATA(ld_i_item_no_iv_value) = 'some text here'.
DATA(ld_i_item_without_limit) = 'some text here'.

SELECT single PROC_GROUP
FROM BBP_PDORG
INTO @DATA(ld_i_item_proc_group).


SELECT single PROC_ORG
FROM BBP_PDORG
INTO @DATA(ld_i_item_proc_org).

DATA(ld_i_item_plus_empty_group) = 'some text here'.
DATA(ld_i_item_source_rel_ind) = 'some text here'.
DATA(ld_i_item_ext_demid) = 'some text here'.
DATA(ld_i_item_ext_dem_logsys) = 'Check type of data required'.
DATA(ld_iv_item_be_co_code) = 'some text here'.
DATA(ld_iv_item_be_log_system) = 'Check type of data required'.
DATA(ld_iv_item_be_object_type) = 'some text here'.
DATA(ld_iv_item_be_object_id) = 'some text here'.
DATA(ld_iv_item_be_object_item) = 'some text here'.
DATA(ld_i_item_status_requested) = 'some text here'.
DATA(ld_i_item_hierarchy_requested) = 'some text here'.
DATA(ld_iv_purchteam) = 'some text here'.
DATA(ld_iv_currency) = 'some text here'.
DATA(ld_i_index_not_used) = 'some text here'.

"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_gross_amount to it_it_range_gross_amount.

"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_i_range_object_id to it_i_range_object_id.

"populate fields of struture and append to itab
append wa_i_range_object_type to it_i_range_object_type.

"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_it_range_quot_dead to it_it_range_quot_dead.

"populate fields of struture and append to itab
append wa_it_range_quot_dead_time to it_it_range_quot_dead_time.

"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_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_status to it_i_item_status.

"populate fields of struture and append to itab
append wa_it_item_partners to it_it_item_partners.

"populate fields of struture and append to itab
append wa_i_item_src_guids to it_i_item_src_guids.

"populate fields of struture and append to itab
append wa_it_item_range_deliv_date to it_it_item_range_deliv_date.

"populate fields of struture and append to itab
append wa_it_item_range_proc_org to it_it_item_range_proc_org.

"populate fields of struture and append to itab
append wa_it_item_range_proc_group to it_it_item_range_proc_group.

"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_it_item_range_ext_demid to it_it_item_range_ext_demid.

"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_item_range_ctr_hdr_number to it_it_item_range_ctr_hdr_number.

"populate fields of struture and append to itab
append wa_it_item_range_doc_priority to it_it_item_range_doc_priority.

"populate fields of struture and append to itab
append wa_it_item_range_source_rel_ind to it_it_item_range_source_rel_ind.

"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_it_item_range_ext_dem_logsys to it_it_item_range_ext_dem_logsys.

"populate fields of struture and append to itab
append wa_e_pditemlist to it_e_pditemlist.

"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_et_item_status to it_et_item_status. . CALL FUNCTION 'BBP_PROCDOC_GETITEMLIST' * EXPORTING * i_object_type = ld_i_object_type * i_read_item_first = ld_i_read_item_first * i_read_orgdata = ld_i_read_orgdata * i_subtype = ld_i_subtype * i_template_type = ld_i_template_type * i_input_type = ld_i_input_type * iv_root = ld_iv_root * iv_be_log_system = ld_iv_be_log_system * iv_be_object_type = ld_iv_be_object_type * iv_be_object_id = ld_iv_be_object_id * i_description = ld_i_description * i_trex_keywords = ld_i_trex_keywords * 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 * i_change_date_to = ld_i_change_date_to * iv_posting_date = ld_iv_posting_date * iv_posting_date_to = ld_iv_posting_date_to * i_verify_date = ld_i_verify_date * i_valid_from = ld_i_valid_from * i_valid_until = ld_i_valid_until * i_object_id = ld_i_object_id * i_process_type = ld_i_process_type * i_src_guid = ld_i_src_guid * i_src_object_id = ld_i_src_object_id * i_src_object_type = ld_i_src_object_type * i_src_logsys = ld_i_src_logsys * i_ref_object_id = ld_i_ref_object_id * i_open_date = ld_i_open_date * i_quot_dead = ld_i_quot_dead * i_start_time = ld_i_start_time * i_partner = ld_i_partner * i_partner_fct = ld_i_partner_fct * i_prod_cat = ld_i_prod_cat * i_pcins = ld_i_pcins * i_pcnum = ld_i_pcnum * i_pcname = ld_i_pcname * iv_company_code = ld_iv_company_code * i_proc_group = ld_i_proc_group * i_proc_org = ld_i_proc_org * i_product = ld_i_product * i_ordered_prod = ld_i_ordered_prod * i_category = ld_i_category * i_category_id = ld_i_category_id * i_ref_doc_no = ld_i_ref_doc_no * i_plus_empty_group = ld_i_plus_empty_group * i_with_closed = ld_i_with_closed * i_incomplete = ld_i_incomplete * i_iv_possible = ld_i_iv_possible * i_iv_direct_possible = ld_i_iv_direct_possible * i_cf_possible = ld_i_cf_possible * i_asn_possible = ld_i_asn_possible * i_quot_possible = ld_i_quot_possible * i_plus_open_bid = ld_i_plus_open_bid * i_status_select_or = ld_i_status_select_or * iv_partner_select_or = ld_iv_partner_select_or * i_without_company_check = ld_i_without_company_check * i_ers_flag = ld_i_ers_flag * i_change_lock = ld_i_change_lock * i_with_change_version = ld_i_with_change_version * i_read_status_first = ld_i_read_status_first * iv_read_product_category_hier = ld_iv_read_product_category_hier * is_read_initial_parameter = ld_is_read_initial_parameter * i_item_object_type = ld_i_item_object_type * 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 * iv_item_manu_prod = ld_iv_item_manu_prod * iv_item_mfr_no_ext = ld_iv_item_mfr_no_ext * i_item_category = ld_i_item_category * i_item_category_id = ld_i_item_category_id * i_item_create_date = ld_i_item_create_date * i_item_create_date_from = ld_i_item_create_date_from * i_item_ctr_guid = ld_i_item_ctr_guid * i_item_ctr_hdr_guid = ld_i_item_ctr_hdr_guid * i_item_ctr_hdr_number = ld_i_item_ctr_hdr_number * i_item_ctr_item_number = ld_i_item_ctr_item_number * i_item_ctr_log_sys = ld_i_item_ctr_log_sys * i_item_src_guid = ld_i_item_src_guid * i_item_src_object_id = ld_i_item_src_object_id * i_item_src_object_type = ld_i_item_src_object_type * i_item_src_logsys = ld_i_item_src_logsys * i_item_src_itm_id = ld_i_item_src_itm_id * i_item_without_final_entry = ld_i_item_without_final_entry * i_item_accounting = ld_i_item_accounting * i_item_iv_open = ld_i_item_iv_open * i_item_cf_open = ld_i_item_cf_open * i_item_asn_open = ld_i_item_asn_open * i_item_cm_open = ld_i_item_cm_open * i_item_open_for_status = ld_i_item_open_for_status * i_item_not_deleted = ld_i_item_not_deleted * i_item_no_cf_quantity = ld_i_item_no_cf_quantity * i_item_no_cf_value = ld_i_item_no_cf_value * i_item_no_iv_quantity = ld_i_item_no_iv_quantity * i_item_no_iv_value = ld_i_item_no_iv_value * i_item_without_limit = ld_i_item_without_limit * i_item_proc_group = ld_i_item_proc_group * i_item_proc_org = ld_i_item_proc_org * i_item_plus_empty_group = ld_i_item_plus_empty_group * i_item_source_rel_ind = ld_i_item_source_rel_ind * i_item_ext_demid = ld_i_item_ext_demid * i_item_ext_dem_logsys = ld_i_item_ext_dem_logsys * iv_item_be_co_code = ld_iv_item_be_co_code * iv_item_be_log_system = ld_iv_item_be_log_system * iv_item_be_object_type = ld_iv_item_be_object_type * iv_item_be_object_id = ld_iv_item_be_object_id * iv_item_be_object_item = ld_iv_item_be_object_item * i_item_status_requested = ld_i_item_status_requested * i_item_hierarchy_requested = ld_i_item_hierarchy_requested * iv_purchteam = ld_iv_purchteam * iv_currency = ld_iv_currency * i_index_not_used = ld_i_index_not_used TABLES * 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_gross_amount = it_it_range_gross_amount * i_status = it_i_status * i_partners = it_i_partners * i_range_object_id = it_i_range_object_id * i_range_object_type = it_i_range_object_type * it_range_proc_org = it_it_range_proc_org * it_range_proc_group = it_it_range_proc_group * it_range_quot_dead = it_it_range_quot_dead * it_range_quot_dead_time = it_it_range_quot_dead_time * i_header_guids = it_i_header_guids * it_src_guids = it_it_src_guids * it_company = it_it_company * it_cuf_search = it_it_cuf_search * it_item_cuf_search = it_it_item_cuf_search * i_item_status = it_i_item_status * it_item_partners = it_it_item_partners * i_item_src_guids = it_i_item_src_guids * it_item_range_deliv_date = it_it_item_range_deliv_date * it_item_range_proc_org = it_it_item_range_proc_org * it_item_range_proc_group = it_it_item_range_proc_group * it_range_ref_doc_no = it_it_range_ref_doc_no * it_item_range_ext_demid = it_it_item_range_ext_demid * it_item_range_category_id = it_it_item_range_category_id * it_item_range_ordered_prod = it_it_item_range_ordered_prod * it_item_range_ctr_hdr_number = it_it_item_range_ctr_hdr_number * it_item_range_doc_priority = it_it_item_range_doc_priority * it_item_range_source_rel_ind = it_it_item_range_source_rel_ind * it_range_purchteam = it_it_range_purchteam * it_item_range_ext_dem_logsys = it_it_item_range_ext_dem_logsys e_pditemlist = it_e_pditemlist * e_messages = it_e_messages * et_item_status = it_et_item_status . " BBP_PROCDOC_GETITEMLIST
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_object_type  TYPE CRMD_ORDERADM_H-OBJECT_TYPE ,
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_read_item_first  TYPE XFLAG ,
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_read_orgdata  TYPE XFLAG ,
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_subtype  TYPE BBP_H_SUBTYPE ,
it_i_range_network  TYPE STANDARD TABLE OF BBP_PDS_RANGE_NETWORK ,
wa_i_range_network  LIKE LINE OF it_i_range_network,
ld_i_template_type  TYPE CRMT_TEMPLATE_TYPE_DB ,
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_i_input_type  TYPE BBP_INP_TYPE ,
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_iv_root  TYPE BBP_ROOT_IND ,
it_it_range_fund  TYPE STANDARD TABLE OF BBP_PDS_RANGE_FUND ,
wa_it_range_fund  LIKE LINE OF it_it_range_fund,
ld_iv_be_log_system  TYPE BE_LOG_SYSTEM ,
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,
ld_iv_be_object_type  TYPE BE_OBJECT_TYPE ,
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_iv_be_object_id  TYPE BE_OBJECT_ID ,
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,
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_description  TYPE CRMD_ORDERADM_H-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_trex_keywords  TYPE STRING ,
it_i_status  TYPE STANDARD TABLE OF JSTAT ,
wa_i_status  LIKE LINE OF it_i_status,
ld_i_created_by  TYPE CRMD_ORDERADM_H-CREATED_BY ,
it_i_partners  TYPE STANDARD TABLE OF BBP_PDS_PARTNER_GET ,
wa_i_partners  LIKE LINE OF it_i_partners,
ld_i_changed_by  TYPE CRMD_ORDERADM_H-CHANGED_BY ,
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_create_date  TYPE BBP_CREATE_DATE ,
it_i_range_object_type  TYPE STANDARD TABLE OF BBP_PDS_RANGE_OBJECT_TYPE ,
wa_i_range_object_type  LIKE LINE OF it_i_range_object_type,
ld_i_create_date_to  TYPE BBP_CREATE_DATE ,
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_change_date  TYPE BBP_CHANGE_DATE ,
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_change_date_to  TYPE BBP_CHANGE_DATE ,
it_it_range_quot_dead  TYPE STANDARD TABLE OF BBP_PDS_RANGE_QUOT_DEAD ,
wa_it_range_quot_dead  LIKE LINE OF it_it_range_quot_dead,
ld_iv_posting_date  TYPE CRMT_POSTING_DATE ,
it_it_range_quot_dead_time  TYPE STANDARD TABLE OF BBP_PDS_RANGE_QUOT_DEAD_TIME ,
wa_it_range_quot_dead_time  LIKE LINE OF it_it_range_quot_dead_time,
ld_iv_posting_date_to  TYPE CRMT_POSTING_DATE ,
it_i_header_guids  TYPE STANDARD TABLE OF BBP_GUID_TAB ,
wa_i_header_guids  LIKE LINE OF it_i_header_guids,
ld_i_verify_date  TYPE BBP_CHANGE_DATE ,
it_it_src_guids  TYPE STANDARD TABLE OF BBP_GUID_TAB ,
wa_it_src_guids  LIKE LINE OF it_it_src_guids,
ld_i_valid_from  TYPE BBP_VPER_START ,
it_it_company  TYPE STANDARD TABLE OF BBPS_PDLIST_COMPANY ,
wa_it_company  LIKE LINE OF it_it_company,
ld_i_valid_until  TYPE BBP_VPER_END ,
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_object_id  TYPE CRMD_ORDERADM_H-OBJECT_ID ,
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_i_process_type  TYPE CRMD_ORDERADM_H-PROCESS_TYPE ,
it_i_item_status  TYPE STANDARD TABLE OF JSTAT ,
wa_i_item_status  LIKE LINE OF it_i_item_status,
ld_i_src_guid  TYPE CRMD_ORDERADM_H-GUID ,
it_it_item_partners  TYPE STANDARD TABLE OF BBP_PDS_PARTNER_GET ,
wa_it_item_partners  LIKE LINE OF it_it_item_partners,
ld_i_src_object_id  TYPE BBP_BTD_ID ,
it_i_item_src_guids  TYPE STANDARD TABLE OF BBP_GUID_TAB ,
wa_i_item_src_guids  LIKE LINE OF it_i_item_src_guids,
ld_i_src_object_type  TYPE BBP_SRC_H_OBJ_TYP ,
it_it_item_range_deliv_date  TYPE STANDARD TABLE OF BBP_PDS_RANGE_DELIV_DATE ,
wa_it_item_range_deliv_date  LIKE LINE OF it_it_item_range_deliv_date,
ld_i_src_logsys  TYPE LOGSYS ,
it_it_item_range_proc_org  TYPE STANDARD TABLE OF BBP_PDS_RANGE_PROC_ORG ,
wa_it_item_range_proc_org  LIKE LINE OF it_it_item_range_proc_org,
ld_i_ref_object_id  TYPE BBP_REF_OBJECT_ID ,
it_it_item_range_proc_group  TYPE STANDARD TABLE OF BBP_PDS_RANGE_PROC_GROUP ,
wa_it_item_range_proc_group  LIKE LINE OF it_it_item_range_proc_group,
ld_i_open_date  TYPE BBP_OPEN_DATE ,
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_quot_dead  TYPE BBP_PDHSB-QUOT_DEAD ,
it_it_item_range_ext_demid  TYPE STANDARD TABLE OF BBP_PDS_RANGE_EXT_DEMID ,
wa_it_item_range_ext_demid  LIKE LINE OF it_it_item_range_ext_demid,
ld_i_start_time  TYPE BBP_START_TIMESTP ,
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_partner  TYPE CRMD_PARTNER-PARTNER_NO ,
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_partner_fct  TYPE CRMD_PARTNER-PARTNER_FCT ,
it_it_item_range_ctr_hdr_number  TYPE STANDARD TABLE OF BBP_PDS_RANGE_CTR_HDR_NUMBER ,
wa_it_item_range_ctr_hdr_number  LIKE LINE OF it_it_item_range_ctr_hdr_number,
ld_i_prod_cat  TYPE BBP_PDHSB-CATEGORY ,
it_it_item_range_doc_priority  TYPE STANDARD TABLE OF BBP_PDS_RANGE_DOC_PRIORITY ,
wa_it_item_range_doc_priority  LIKE LINE OF it_it_item_range_doc_priority,
ld_i_pcins  TYPE BBP_PDHGP-PCINS ,
it_it_item_range_source_rel_ind  TYPE STANDARD TABLE OF BBP_PDS_RANGE_SOURCE_REL_IND ,
wa_it_item_range_source_rel_ind  LIKE LINE OF it_it_item_range_source_rel_ind,
ld_i_pcnum  TYPE BBP_PDHGP-PCNUM ,
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_pcname  TYPE BBP_PDHGP-PCNAME ,
it_it_item_range_ext_dem_logsys  TYPE STANDARD TABLE OF BBP_PDS_RANGE_EXT_DEM_LOGSYS ,
wa_it_item_range_ext_dem_logsys  LIKE LINE OF it_it_item_range_ext_dem_logsys,
ld_iv_company_code  TYPE BBP_CO_CODE ,
it_e_pditemlist  TYPE STANDARD TABLE OF BBP_PDS_PDITEMLIST ,
wa_e_pditemlist  LIKE LINE OF it_e_pditemlist,
ld_i_proc_group  TYPE BBP_PDORG-PROC_GROUP ,
it_e_messages  TYPE STANDARD TABLE OF BBP_PDS_MESSAGES ,
wa_e_messages  LIKE LINE OF it_e_messages,
ld_i_proc_org  TYPE BBP_PDORG-PROC_ORG ,
it_et_item_status  TYPE STANDARD TABLE OF BBP_PDS_STATUS ,
wa_et_item_status  LIKE LINE OF it_et_item_status,
ld_i_product  TYPE CRMD_ORDERADM_I-PRODUCT ,
ld_i_ordered_prod  TYPE CRMD_ORDERADM_I-ORDERED_PROD ,
ld_i_category  TYPE BBP_PDIGP-CATEGORY ,
ld_i_category_id  TYPE BBP_PDIGP-CATEGORY_ID ,
ld_i_ref_doc_no  TYPE BBP_XBLNR ,
ld_i_plus_empty_group  TYPE XFELD ,
ld_i_with_closed  TYPE XFELD ,
ld_i_incomplete  TYPE XFELD ,
ld_i_iv_possible  TYPE XFELD ,
ld_i_iv_direct_possible  TYPE XFELD ,
ld_i_cf_possible  TYPE XFELD ,
ld_i_asn_possible  TYPE XFELD ,
ld_i_quot_possible  TYPE XFELD ,
ld_i_plus_open_bid  TYPE XFELD ,
ld_i_status_select_or  TYPE XFELD ,
ld_iv_partner_select_or  TYPE XFELD ,
ld_i_without_company_check  TYPE XFELD ,
ld_i_ers_flag  TYPE XFELD ,
ld_i_change_lock  TYPE XFELD ,
ld_i_with_change_version  TYPE XFELD ,
ld_i_read_status_first  TYPE XFLAG ,
ld_iv_read_product_category_hier  TYPE BBP_READ_PRODUCT_CATEGORY_HIER ,
ld_is_read_initial_parameter  TYPE BBPS_PDLIST_HDR_READ_INITIAL ,
ld_i_item_object_type  TYPE CRMD_ORDERADM_I-OBJECT_TYPE ,
ld_i_item_description  TYPE CRMD_ORDERADM_I-DESCRIPTION ,
ld_i_item_product  TYPE CRMD_ORDERADM_I-PRODUCT ,
ld_i_item_ordered_prod  TYPE CRMD_ORDERADM_I-ORDERED_PROD ,
ld_i_item_product_src_sys  TYPE BBP_LOGSYS ,
ld_i_item_partner_prod  TYPE CRMD_ORDERADM_I-PARTNER_PROD ,
ld_iv_item_manu_prod  TYPE BBP_MFRPN ,
ld_iv_item_mfr_no_ext  TYPE EMNFR ,
ld_i_item_category  TYPE BBP_PDIGP-CATEGORY ,
ld_i_item_category_id  TYPE BBP_PDIGP-CATEGORY_ID ,
ld_i_item_create_date  TYPE BBP_CREATE_DATE ,
ld_i_item_create_date_from  TYPE BBP_CREATE_DATE ,
ld_i_item_ctr_guid  TYPE CRMD_ORDERADM_H-GUID ,
ld_i_item_ctr_hdr_guid  TYPE BBP_CTR_H_GUID ,
ld_i_item_ctr_hdr_number  TYPE BBP_CTR_ID ,
ld_i_item_ctr_item_number  TYPE BBP_CTR_ITEM ,
ld_i_item_ctr_log_sys  TYPE BBP_CTR_LOG_SYSTEM ,
ld_i_item_src_guid  TYPE CRMD_ORDERADM_H-GUID ,
ld_i_item_src_object_id  TYPE BBP_BTD_ID ,
ld_i_item_src_object_type  TYPE BBP_SRC_H_OBJ_TYP ,
ld_i_item_src_logsys  TYPE LOGSYS ,
ld_i_item_src_itm_id  TYPE BBP_SRC_ITM_ID ,
ld_i_item_without_final_entry  TYPE BBP_PDIGP-FINAL_ENTRY ,
ld_i_item_accounting  TYPE BBP_PDS_SEARCH_ACC ,
ld_i_item_iv_open  TYPE XFLAG ,
ld_i_item_cf_open  TYPE XFLAG ,
ld_i_item_asn_open  TYPE XFLAG ,
ld_i_item_cm_open  TYPE XFLAG ,
ld_i_item_open_for_status  TYPE XFLAG ,
ld_i_item_not_deleted  TYPE XFLAG ,
ld_i_item_no_cf_quantity  TYPE XFLAG ,
ld_i_item_no_cf_value  TYPE XFLAG ,
ld_i_item_no_iv_quantity  TYPE XFLAG ,
ld_i_item_no_iv_value  TYPE XFLAG ,
ld_i_item_without_limit  TYPE XFLAG ,
ld_i_item_proc_group  TYPE BBP_PDORG-PROC_GROUP ,
ld_i_item_proc_org  TYPE BBP_PDORG-PROC_ORG ,
ld_i_item_plus_empty_group  TYPE XFLAG ,
ld_i_item_source_rel_ind  TYPE BBP_SOURCE_REL_IND ,
ld_i_item_ext_demid  TYPE BBP_EXT_DEMID ,
ld_i_item_ext_dem_logsys  TYPE BBP_EXT_DEM_LOGSYS ,
ld_iv_item_be_co_code  TYPE BUKRS ,
ld_iv_item_be_log_system  TYPE BE_LOG_SYSTEM ,
ld_iv_item_be_object_type  TYPE BE_OBJECT_TYPE ,
ld_iv_item_be_object_id  TYPE BE_OBJECT_ID ,
ld_iv_item_be_object_item  TYPE BE_OBJ_ITEM ,
ld_i_item_status_requested  TYPE XFLAG ,
ld_i_item_hierarchy_requested  TYPE XFLAG ,
ld_iv_purchteam  TYPE BBP_PURCHTEAM ,
ld_iv_currency  TYPE WAERS ,
ld_i_index_not_used  TYPE XFLAG .


SELECT single OBJECT_TYPE
FROM CRMD_ORDERADM_H
INTO ld_i_object_type.


"populate fields of struture and append to itab
append wa_i_range_cost_ctr to it_i_range_cost_ctr.
ld_i_read_item_first = '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_read_orgdata = '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_subtype = 'some text here'.

"populate fields of struture and append to itab
append wa_i_range_network to it_i_range_network.
ld_i_template_type = '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_i_input_type = 'some text here'.

"populate fields of struture and append to itab
append wa_it_range_sales_ord to it_it_range_sales_ord.
ld_iv_root = 'some text here'.

"populate fields of struture and append to itab
append wa_it_range_fund to it_it_range_fund.
ld_iv_be_log_system = 'Check type of data required'.

"populate fields of struture and append to itab
append wa_it_range_funds_ctr to it_it_range_funds_ctr.
ld_iv_be_object_type = 'some text here'.

"populate fields of struture and append to itab
append wa_it_range_cmmt_item to it_it_range_cmmt_item.
ld_iv_be_object_id = 'some text here'.

"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.

SELECT single DESCRIPTION
FROM CRMD_ORDERADM_H
INTO ld_i_description.


"populate fields of struture and append to itab
append wa_it_range_gross_amount to it_it_range_gross_amount.
ld_i_trex_keywords = 'some text here'.

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

SELECT single CREATED_BY
FROM CRMD_ORDERADM_H
INTO ld_i_created_by.


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

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_object_id to it_i_range_object_id.
ld_i_create_date = 'some text here'.

"populate fields of struture and append to itab
append wa_i_range_object_type to it_i_range_object_type.
ld_i_create_date_to = '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_change_date = '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_change_date_to = 'some text here'.

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

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

"populate fields of struture and append to itab
append wa_i_header_guids to it_i_header_guids.
ld_i_verify_date = 'some text here'.

"populate fields of struture and append to itab
append wa_it_src_guids to it_it_src_guids.
ld_i_valid_from = 'some text here'.

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

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

SELECT single OBJECT_ID
FROM CRMD_ORDERADM_H
INTO ld_i_object_id.


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

SELECT single PROCESS_TYPE
FROM CRMD_ORDERADM_H
INTO ld_i_process_type.


"populate fields of struture and append to itab
append wa_i_item_status to it_i_item_status.

SELECT single GUID
FROM CRMD_ORDERADM_H
INTO ld_i_src_guid.


"populate fields of struture and append to itab
append wa_it_item_partners to it_it_item_partners.
ld_i_src_object_id = 'some text here'.

"populate fields of struture and append to itab
append wa_i_item_src_guids to it_i_item_src_guids.
ld_i_src_object_type = 'some text here'.

"populate fields of struture and append to itab
append wa_it_item_range_deliv_date to it_it_item_range_deliv_date.
ld_i_src_logsys = 'Check type of data required'.

"populate fields of struture and append to itab
append wa_it_item_range_proc_org to it_it_item_range_proc_org.
ld_i_ref_object_id = 'some text here'.

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

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

SELECT single QUOT_DEAD
FROM BBP_PDHSB
INTO ld_i_quot_dead.


"populate fields of struture and append to itab
append wa_it_item_range_ext_demid to it_it_item_range_ext_demid.
ld_i_start_time = 'some text here'.

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

SELECT single PARTNER_NO
FROM CRMD_PARTNER
INTO ld_i_partner.


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

SELECT single PARTNER_FCT
FROM CRMD_PARTNER
INTO ld_i_partner_fct.


"populate fields of struture and append to itab
append wa_it_item_range_ctr_hdr_number to it_it_item_range_ctr_hdr_number.

SELECT single CATEGORY
FROM BBP_PDHSB
INTO ld_i_prod_cat.


"populate fields of struture and append to itab
append wa_it_item_range_doc_priority to it_it_item_range_doc_priority.

SELECT single PCINS
FROM BBP_PDHGP
INTO ld_i_pcins.


"populate fields of struture and append to itab
append wa_it_item_range_source_rel_ind to it_it_item_range_source_rel_ind.

SELECT single PCNUM
FROM BBP_PDHGP
INTO ld_i_pcnum.


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

SELECT single PCNAME
FROM BBP_PDHGP
INTO ld_i_pcname.


"populate fields of struture and append to itab
append wa_it_item_range_ext_dem_logsys to it_it_item_range_ext_dem_logsys.
ld_iv_company_code = 'some text here'.

"populate fields of struture and append to itab
append wa_e_pditemlist to it_e_pditemlist.

SELECT single PROC_GROUP
FROM BBP_PDORG
INTO ld_i_proc_group.


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

SELECT single PROC_ORG
FROM BBP_PDORG
INTO ld_i_proc_org.


"populate fields of struture and append to itab
append wa_et_item_status to it_et_item_status.

SELECT single PRODUCT
FROM CRMD_ORDERADM_I
INTO ld_i_product.


SELECT single ORDERED_PROD
FROM CRMD_ORDERADM_I
INTO ld_i_ordered_prod.


SELECT single CATEGORY
FROM BBP_PDIGP
INTO ld_i_category.


SELECT single CATEGORY_ID
FROM BBP_PDIGP
INTO ld_i_category_id.

ld_i_ref_doc_no = 'some text here'.
ld_i_plus_empty_group = 'some text here'.
ld_i_with_closed = 'some text here'.
ld_i_incomplete = 'some text here'.
ld_i_iv_possible = 'some text here'.
ld_i_iv_direct_possible = 'some text here'.
ld_i_cf_possible = 'some text here'.
ld_i_asn_possible = 'some text here'.
ld_i_quot_possible = 'some text here'.
ld_i_plus_open_bid = 'some text here'.
ld_i_status_select_or = 'some text here'.
ld_iv_partner_select_or = 'some text here'.
ld_i_without_company_check = 'some text here'.
ld_i_ers_flag = 'some text here'.
ld_i_change_lock = 'some text here'.
ld_i_with_change_version = 'some text here'.
ld_i_read_status_first = 'some text here'.
ld_iv_read_product_category_hier = 'some text here'.
ld_is_read_initial_parameter = 'some text here'.

SELECT single OBJECT_TYPE
FROM CRMD_ORDERADM_I
INTO ld_i_item_object_type.


SELECT single DESCRIPTION
FROM CRMD_ORDERADM_I
INTO ld_i_item_description.


SELECT single PRODUCT
FROM CRMD_ORDERADM_I
INTO ld_i_item_product.


SELECT single ORDERED_PROD
FROM CRMD_ORDERADM_I
INTO ld_i_item_ordered_prod.

ld_i_item_product_src_sys = 'Check type of data required'.

SELECT single PARTNER_PROD
FROM CRMD_ORDERADM_I
INTO ld_i_item_partner_prod.

ld_iv_item_manu_prod = 'some text here'.
ld_iv_item_mfr_no_ext = 'some text here'.

SELECT single CATEGORY
FROM BBP_PDIGP
INTO ld_i_item_category.


SELECT single CATEGORY_ID
FROM BBP_PDIGP
INTO ld_i_item_category_id.

ld_i_item_create_date = 'some text here'.
ld_i_item_create_date_from = 'some text here'.

SELECT single GUID
FROM CRMD_ORDERADM_H
INTO ld_i_item_ctr_guid.

ld_i_item_ctr_hdr_guid = 'some text here'.
ld_i_item_ctr_hdr_number = 'some text here'.
ld_i_item_ctr_item_number = 'some text here'.
ld_i_item_ctr_log_sys = 'Check type of data required'.

SELECT single GUID
FROM CRMD_ORDERADM_H
INTO ld_i_item_src_guid.

ld_i_item_src_object_id = 'some text here'.
ld_i_item_src_object_type = 'some text here'.
ld_i_item_src_logsys = 'Check type of data required'.
ld_i_item_src_itm_id = 'some text here'.

SELECT single FINAL_ENTRY
FROM BBP_PDIGP
INTO ld_i_item_without_final_entry.

ld_i_item_accounting = 'some text here'.
ld_i_item_iv_open = 'some text here'.
ld_i_item_cf_open = 'some text here'.
ld_i_item_asn_open = 'some text here'.
ld_i_item_cm_open = 'some text here'.
ld_i_item_open_for_status = 'some text here'.
ld_i_item_not_deleted = 'some text here'.
ld_i_item_no_cf_quantity = 'some text here'.
ld_i_item_no_cf_value = 'some text here'.
ld_i_item_no_iv_quantity = 'some text here'.
ld_i_item_no_iv_value = 'some text here'.
ld_i_item_without_limit = 'some text here'.

SELECT single PROC_GROUP
FROM BBP_PDORG
INTO ld_i_item_proc_group.


SELECT single PROC_ORG
FROM BBP_PDORG
INTO ld_i_item_proc_org.

ld_i_item_plus_empty_group = 'some text here'.
ld_i_item_source_rel_ind = 'some text here'.
ld_i_item_ext_demid = 'some text here'.
ld_i_item_ext_dem_logsys = 'Check type of data required'.
ld_iv_item_be_co_code = 'some text here'.
ld_iv_item_be_log_system = 'Check type of data required'.
ld_iv_item_be_object_type = 'some text here'.
ld_iv_item_be_object_id = 'some text here'.
ld_iv_item_be_object_item = 'some text here'.
ld_i_item_status_requested = 'some text here'.
ld_i_item_hierarchy_requested = 'some text here'.
ld_iv_purchteam = 'some text here'.
ld_iv_currency = 'some text here'.
ld_i_index_not_used = '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_PROCDOC_GETITEMLIST or its description.