on 10-03-2007 12:25 PM
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
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
can you please mention in detail - what type of data is to be read ?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
13 | |
4 | |
3 | |
2 | |
1 | |
1 | |
1 | |
1 | |
1 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.