What is SLT?
SLT stands for SAP Landscape Transformation Replication Server (SLT) running on the NetWeaver Platform. SLT is the ideal solution for all HANA customers who need real-time (and non-real-time) data replication sourcing from SAP ERP or non-SAP systems into HANA
Requirement
STXL table is available in ECC system. This is a BW object and having a cluster field. In HANA, we can not replicate the cluster field. To get those cluster data We have to enhance the STXL table with a new field / column and then populate the data with simple text format.
To Get Free HANA Clout system please have a look in this Vedio
Free SAP HANA Server Access in Cloud - YouTube
Step 1:
Step 2:
Step 3:
Step 4:
Step 5:
Step 6:
Step 7:
Step 8:
Step 9:
Step 10:
Step 11:
Step 12:
Step 13:
Step 14:
Step 15:
Step 16:
Step 17:
Step 18
Step 19
Step 20
Step 21
Open the Table from HANA Modeller perspective and check whether those field in the table is copied or not.
Please find the code attached here.
**&---------------------------------------------------------------------*
**& Include ZSLT_HANA_STXL_BOR_2
**&---------------------------------------------------------------------*
*--------------------------------------------------------------------*
* TR-DGWK900010 Created by - CSATRAJIT - 04-09-2015
*
*
*--------------------------------------------------------------------*
TYPES: BEGIN OF ty_stxl_raw,
clustr TYPE stxl-clustr,
clustd TYPE stxl-clustd,
END OF ty_stxl_raw.
DATA: lt_stxl_raw TYPE STANDARD TABLE OF ty_stxl_raw,
wa_stxl_raw TYPE ty_stxl_raw,
lt_tline TYPE STANDARD TABLE OF tline,
wa_tline TYPE tline,
oref TYPE REF TO cx_root.
**Filter out text records that we don't need
IF <wa_s_stxl>-tdobject = 'QMMA'
AND <wa_s_stxl>-tdid = 'LTXT'
AND <wa_s_stxl>-tdspras = 'E'
AND <wa_s_stxl>-srtf2 = 0.
* and <wa_s_stxl>-clustr < 5000.
** add check for deleted record
IF <wa_s_stxl>-clustd IS NOT INITIAL.
** end change 05/13/2014
*Put Source fields into internal table for IMPORT statement to work on
wa_stxl_raw-clustr = <wa_s_stxl>-clustr.
wa_stxl_raw-clustd = <wa_s_stxl>-clustd.
CLEAR lt_stxl_raw.
APPEND wa_stxl_raw TO lt_stxl_raw.
IF <wa_s_stxl>-clustr < 5000.
TRY .
* IMPORT tline = lt_tline FROM INTERNAL TABLE lt_stxl_raw.
IMPORT tline = lt_tline
FROM INTERNAL TABLE lt_stxl_raw
ACCEPTING TRUNCATION
IGNORING CONVERSION ERRORS.
IF lt_tline IS NOT INITIAL.
*Only read first line of text
READ TABLE lt_tline INTO wa_tline INDEX 1.
IF sy-subrc = 0.
<wa_r_stxl>-text = wa_tline-tdline.
CLEAR: wa_tline.
CLEAR: lt_tline.
ENDIF.
ENDIF.
CATCH cx_root.
ENDTRY.
ENDIF.
ENDIF.
* end change 05/13/2014
<wa_r_stxl>-qmnum = <wa_s_stxl>-tdname+0(12).
<wa_r_stxl>-fenum = <wa_s_stxl>-tdname+13(4).
ELSE.
skip_record.
ENDIF.
Please let me know if you are facingany issue.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
21 | |
9 | |
8 | |
8 | |
7 | |
5 | |
5 | |
4 | |
3 | |
3 |