cancel
Showing results for 
Search instead for 
Did you mean: 

SRM Data archiving

Former Member
0 Kudos

Hi guys,

Iam working on SRM data Archiving, i have an isusse i.e. to get the all Archived data information,

for that the FM 'BBP_PD_ARCH_GETDETAIL' is picking the all the relavent data

i want to papulate all the data in the internal table which this FM is retriving...

the data is not coming in the internal table.....can any one send me the way.....

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi

<b>Please go through the follwing sample code -></b>

PARAMETERS: objectid LIKE crmd_orderadm_h-object_id MODIF ID ARC.

CONSTANTS            gc_yes        VALUE 'X'.

DATA: gv_object_type TYPE crmt_subobject_category_db,
      gs_document_archive TYPE bbps_arch_read_buffer,
      lv_header_guid TYPE bbp_guid.


        PERFORM full_getdetail_sim USING objectid
                                     gv_object_type
                                     lv_header_guid
                                     gc_yes
                            CHANGING gs_document_archive.

*&---------------------------------------------------------------------*
*&      Form  full_getdetail_sim
*&---------------------------------------------------------------------*
FORM full_getdetail_sim  USING iv_objectid LIKE crmd_orderadm_h-object_id
                               iv_object_type TYPE crmt_subobject_category_db
                               iv_header_guid TYPE bbp_guid
                               iv_read_from_archive TYPE xfeld
                      CHANGING cs_document TYPE bbps_arch_read_buffer.

  DATA: ls_header LIKE bbp_pds_header,
         lt_attach TYPE TABLE OF bbp_pds_att_t,
         lt_conditions TYPE TABLE OF bbp_pds_cnd,
         lt_dyn_attr TYPE TABLE OF bbp_pds_dynattribute,

         lt_item LIKE TABLE OF bbp_pds_item,
         lt_account LIKE TABLE OF bbp_pds_acc,
         lt_partner LIKE TABLE OF bbp_pds_partner,
         lt_confirm LIKE TABLE OF bbp_pds_con,
         lt_longtext LIKE TABLE OF bbp_pds_longtext,
         lt_limit LIKE TABLE OF bbp_pds_limit,
         lt_orgdata LIKE TABLE OF bbp_pds_org,
         lt_freight LIKE TABLE OF bbp_pds_freight,
         lt_tax LIKE TABLE OF bbp_pds_tax,
         lt_pridoc LIKE TABLE OF bbp_pds_prc,
         lt_sdln LIKE TABLE OF bbp_pds_sdln,
         lt_hcf LIKE TABLE OF bbp_pds_hcf,
         lt_icf LIKE TABLE OF bbp_pds_icf,
         lt_tol LIKE TABLE OF bbp_pds_tol,
         lt_weight LIKE TABLE OF bbp_pds_weight,
         lt_dep LIKE TABLE OF bbp_pds_dep,
         lt_actval LIKE TABLE OF bbp_pds_actval,
         lt_acc_actval LIKE TABLE OF bbp_pds_actval,
         lt_version LIKE TABLE OF bbp_pds_version_list_internal,
         lt_header_rel LIKE TABLE OF bbp_pds_hrel,
         lt_itmlim_rel LIKE TABLE OF bbp_pds_ilrel,
         lt_ove_rel LIKE TABLE OF bbp_pds_ove_rel,
         lt_status LIKE TABLE OF bbp_pds_status,
         lt_exrate LIKE TABLE OF bbp_pds_exr,
         lt_messages LIKE TABLE OF bbp_pds_messages.

  DATA: lv_header_guid TYPE bbp_guid,
        lv_objectid LIKE iv_objectid ,
        lv_object_type LIKE iv_object_type ,
        lt_auth_pers   TYPE bbpt_auth_pers_pd_part.

  IF iv_header_guid IS NOT INITIAL.
    lv_header_guid = iv_header_guid.
    lv_object_type = iv_object_type.
  ELSE.
    lv_objectid = iv_objectid.
    lv_object_type = iv_object_type.
  ENDIF.

  CALL FUNCTION 'BBP_PD_ARCH_GETDETAIL'
    EXPORTING
      iv_object_type             = iv_object_type
    iv_header_guid             = lv_header_guid
     iv_objectid                = iv_objectid
*   IV_ARCHIVEKEY              =
*   IV_ARCHIVEOFFSET           =
*   IV_ITEM_GUID_ONLY          =
     iv_read_from_archive       = iv_read_from_archive
   IMPORTING
*   EV_DOCUMENT_FOUND          =
     es_header                  = ls_header
     et_attach                  = lt_attach
     et_conditions              = lt_conditions
     et_dyn_attr2               = lt_dyn_attr
   TABLES
     et_item                    = lt_item
     et_account                 = lt_account
     et_partner                 = lt_partner
     et_confirm                 = lt_confirm
     et_longtext                = lt_longtext
     et_limit                   = lt_limit
     et_orgdata                 = lt_orgdata
     et_freight                 = lt_freight
     et_tax                     = lt_tax
     et_pridoc                  = lt_pridoc
     et_sdln                    = lt_sdln
     et_hcf                     = lt_hcf
     et_icf                     = lt_icf
     et_tol                     = lt_tol
     et_weight                  = lt_weight
     et_dep                     = lt_dep
     et_actval                  = lt_actval
     et_acc_actval              = lt_acc_actval
     et_version                 = lt_version
     et_header_rel              = lt_header_rel
     et_itmlim_rel              = lt_itmlim_rel
     et_ove_rel                 = lt_ove_rel
     et_status                  = lt_status
     et_exrate                  = lt_exrate
     et_messages                = lt_messages.


*  Call the function module to read Archived data for Authorization

  CALL FUNCTION 'BBP_AUTH_PD_GETDETAIL'
    EXPORTING
      iv_doc_guid          = ls_header-guid
      iv_read_from_archive = iv_read_from_archive
    TABLES
      et_pauth             = lt_auth_pers.




  cs_document-s_header = ls_header.
  cs_document-t_attach[] = lt_attach[].
  cs_document-t_conditions[] = lt_conditions[].
  cs_document-t_dyn_attr[] = lt_dyn_attr[].

  cs_document-t_item[] = lt_item[].
  cs_document-t_account[] = lt_account[].
  cs_document-t_partner[] = lt_partner[].
  cs_document-t_confirm[] = lt_confirm[].
  cs_document-t_dep[] = lt_dep[].
  cs_document-t_longtext[] = lt_longtext[].
  cs_document-t_limit[] = lt_limit[].
  cs_document-t_orgdata[] = lt_orgdata[].
  cs_document-t_freight[] = lt_freight[].
  cs_document-t_tax[] = lt_tax[].
  cs_document-t_pridoc[] = lt_pridoc[].
  cs_document-t_sdln[] = lt_sdln[].
  cs_document-t_hcf[] = lt_hcf[].
  cs_document-t_icf[] = lt_icf[].
  cs_document-t_tol[] = lt_tol[].
  cs_document-t_weight[] = lt_weight[].
  cs_document-t_exrate[] = lt_exrate[].
  cs_document-t_actval[] = lt_actval[].
  cs_document-t_acc_actval[] = lt_acc_actval[].
  cs_document-t_version[] = lt_version[].
  cs_document-t_header_rel[] = lt_header_rel[].
  cs_document-t_itmlim_rel[] = lt_itmlim_rel[].
  cs_document-t_ove_rel[] = lt_ove_rel[].
  cs_document-t_status[] = lt_status[].
  cs_document-t_messages[] = lt_messages[].
  cs_document-t_auth_pers[] = lt_auth_pers[].

ENDFORM.                    " full_getdetail_sim

<u>P.S.: Refer the report BBP_PD_ARCH_DOCUMENT_COMPARE for more details.</u>

Hope this will help.

Regards

- Atul

Former Member
0 Kudos

Hi atul,

This is FM is getting the Archived Shopping cart details like Item details, account deatils but i want to get Archived shopping cart using any FM's i knew another function Module 'BBP_PD_ARCHIVE_GETLIST' which is also getting Archived Shopping details if u know any FM that will help.....

Former Member
0 Kudos

Hi

<b>Here are the related Program which will give you the Standard SAP sample code. -></b>

LBBP_BD_APIU26

LBBP_PDF57

LBBP_PDH_SEARCHU21

LBBP_SUS_WRAPPER_UIU02

LBBP_SUS_WRAPPER_UIU04

LBBP_SUS_WRAPPER_UIU12

LBBP_SUS_WRAPPER_UIU15

LBBP_SUS_WRAPPER_UIU21

Also refer in the BBP_PD Transaction and debug there to get the required details...

P.S.: Do a where-used list on FM - 'BBP_PD_ARCH_GETLIST'

Do let me know.

Regards

- Atul

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi,

Please go through these links ->

For more details, refer transaction - SARA.

Award the points for help.

BR,

Vijay Mittal