Documente Academic
Documente Profesional
Documente Cultură
Step
Step
Step
Step
1
2
3
4
- SQ02, . .
(SQ01) .
, -
- . ?
HR580 .
SD . -. -.
SAP Query :
http://sapboard.ru/forum/viewtopic.php?f=17&t=56870&p=355404
, .
, .
"MESSAGE-ID ..
I_DSOURCE
SBIWA_S_INTERFACE-ISOURCE
Source name
I_MAXSIZE
SBIWA_S_INTERFACE-MAXSIZE
Max size of the package
I_INITFLAG
SBIWA_S_INTERFACE-INITFLAG
Initial flag
Tables
I_T_SELECT
SBIWA_T_SELECT
Data for processing
I_T_FIELDS
SBIWA_T_FIELDS
Field restrictions
E_T_DATA
ZST1_TEST2
Out table (type of our structure (look 1)
ABAP code we will view later.
3. The create of data sourse. Go to rso2 and fill the fields as in picture
Now press Save and mark the selections ( I_T_FIELDS in fm)
Press Save - goto rsa1 - DataSources and in the required system Replicate metada
ta
CALMONTH
COMPCODE
CUR
AMOUNT
1
201301
2014
RUB
1 000,0000
2
201301
4011
RUB
6 000,0000
3
201301
5011
RUB
1 000,0000
4
201301
7007
USD
5 600,0000
5
201302
2014
RUB
2 000,0000
6
201302
5011
RUB
44 000,0000
7
201303
2014
RUB
3 000,0000
8
201303
6010
RUB
6 000,0000
9
201304
2014
RUB
4 000,0000
10
201304
3011
RUB
5 000,0000
11
201305
6987
987 654,0000
CALMONTH
COMPCODE
CUR
AMOUNT
FISCPER3
CALYEAR
YYYYMM->0MM
YYYYMM->YYYY
*"
*"
*"
*" TABLES
*"
*"
*"
*" EXCEPTIONS
*"
NO_MORE_DATA
*"
ERROR_PASSED_TO_MESS_HANDLER
CLEAR S_COUNTER_DATAPAKID.
endif.
*<<< IF S_COUNTER_DATAPAKID = 0.
*<<<<< 2. Operations with selected data restrictions
*
DO I_MAXSIZE TIMES. " reading in the amount of maxsize of records
idx = S_COUNTER_DATAPAKID * I_MAXSIZE + sy-index. " set index to the u
ntreated record in table
* each call of extractor idx increases on S_COUNTER_DATAPAKID * I_MAXSIZE
READ TABLE tab INTO t_data_temp INDEX idx. " read record from table to
the hader line
IF SY-SUBRC <> 0. " index NOT table - exit!
EXIT.
ELSE.
* write line of out table
wa_E_T_DATA-COMP_CODE = t_data_temp-COMPCODE.
wa_E_T_DATA-CALMONTH = t_data_temp-CALMONTH.
CONCATENATE '0' t_data_temp-CALMONTH+4(2) into wa_E_T_DATA-FISCPER3.
wa_E_T_DATA-CALYEAR = t_data_temp-CALMONTH(4).
if t_data_temp-cur is INITIAL.
wa_E_T_DATA-cur = 'USD'.
else.
wa_E_T_DATA-cur = t_data_temp-cur.
ENDIF.
wa_E_T_DATA-amount = t_data_temp-amount.
* append line to out table
APPEND wa_E_T_DATA TO E_T_DATA.
ENDIF.
ENDDO.
S_COUNTER_DATAPAKID = S_COUNTER_DATAPAKID + 1.
endif.
ENDFUNCTION.
********************************************************************************
****
Let's debug this process. Goto rsa3. In table ZST1_TEST we have only 11 records
, that's why set this parameters of extractor
(3 calls on 2 records)
===========================
SAP BW BI LO Extraction.pdf
===========================
With this option, you avoid pulling from R/3 directly as we need to bring field
values from multiple tables. You
can see the data in the setup tables. Setup table name will be extract structure
name followed by SETUP.
Set up table names starts with 'MC' followed by application component '01'/'02'
etc and then last digits of the
Data source name and then followed by SETUP
Also we can say the communication structure (R/3 side, you can check it in LBWE
also) name followed by
'setup'
example: MC13VD0HDRSETUP
?
If you want to check data in set up tables you better look at the transaction NP
RT here you
can see the table name from which data is picking.
?
Setup tables are cluster tables and are used to extract the data from R/3 Tables
.(LO
Extractors)
?
Basically, for entire application like SD-Billing we have got it's own setup Tab
les...so while
filling the set-up tables, we usually fill for the entire application.
Ex: OLI7BW is for filling setup Tables for SD application.
OLI9BW T-code is for Billing Application,
?
When u fill the setup Tables, the data from different tables..VBAK, VBAP, VBRK,
VBRP...etc
will come through communication Structures and saved in Setup Tables...
?
The main advantage of having setup Tables is, we can read the data in different
levels..Header level as well as Item level.
?
when we run init load or Full load in BW, the data will be read from Setup Table
s for the first
time( Entire data will be read).... and the delta records will be updated to Del
ta Queue once
the v3 job runs... and we can extract the delta records from Delta Queue.
?
Once we successfully run the init, we can delete setup Tables.
?
Filling up the set up tables depends on the Datasource.