cancel
Showing results for 
Search instead for 
Did you mean: 

Read Planning area data through function module

Former Member
0 Kudos

Hi friends

I am working on SCM 5 and BW 7.0.

Whether we can read Planning area data through function module ???

Right now we have to read Planning area data via Data source - InfoCube and from Infocube to BEx Report.

Regards

Vishal

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi,

you can use function module /SAPAPO/TS_DM_GET to read planning area data.

* read options.
*  l_s_readoptions-flg_add_details = p_add.
  l_s_readoptions-flg_plobs_buffer_release = 'X'.
  l_s_readoptions-flg_dont_add_group_by_entries = 'X'.
  l_s_readoptions-flg_reduced_tmp_nodes = 'X'.
  l_s_readoptions-flg_no_disaggreg = 'X'.
  l_s_readoptions-flg_only_ids = iv_flgonlyids.
  l_s_readoptions-flag_read_only = iv_flgonlyids.


  REFRESH: ct_linesdat[] ,
           ct_plobsgen[] ,
           ct_plobvdat[] ,
           ct_colsdat[] ,
           ct_tabdat[].

* Read Data for the given selections.
  CALL FUNCTION '/SAPAPO/TS_DM_GET'
    EXPORTING
      iv_pareaid            = iv_pareaid
      is_read_options       = l_s_readoptions
      is_period             = is_period
      it_selection          = it_seldat
      it_group_by           = it_groupdat
      it_keyfigures         = it_keyfigdat
      it_keyfigures_persist = it_keyfigdat_persist
    IMPORTING
      et_tab                = ct_tabdat
      et_plob_values        = ct_plobsgen
      et_plobs_in_view      = ct_plobvdat
    CHANGING
      ct_lines              = ct_linesdat
      ct_cols               = ct_colsdat
    EXCEPTIONS
      area_invalid          = 1
      invalid_interface     = 2
      no_master_data        = 3
      customizing_error     = 4
      invalid_data_status   = 5
      lc_connect_failed     = 6
      lc_com_error          = 7
      lc_orders_error       = 8
      OTHERS                = 9.

I hope it helps u..

Regards,

Srini

Answers (1)

Answers (1)

Former Member
0 Kudos

can you please mention in detail - what type of data is to be read ?