‎2013 Nov 27 6:51 PM
Hi Gurus
I have the code:
"*&--------------------------------------------------------------------*
"*& Include LZBRHR_HIST_CLS_IMPEXPY01 *
"*&--------------------------------------------------------------------*
report dummy.
tables: ZBRHR_HIST_CL_T.
form import_result using key type ZBRHR_HIST_PERNR_DE
result type ZBRHR_HIST_STR_CLUSTER_ST
imp_subrc
vers_num.
data: save_imp_subrc like sy-subrc.
catch system-exceptions import_mismatch_errors = 1.
import
VERSION TO RESULT-VERSION
FICHA_FINANCEIRA TO RESULT-FICHA_FINANCEIRA
DADOS_FUNCIONARIO TO RESULT-DADOS_FUNCIONARIO
HIST_ALT_SALARIO TO RESULT-HIST_ALT_SALARIO
HIST_SINDICAL TO RESULT-HIST_SINDICAL
HIST_FERIAS TO RESULT-HIST_FERIAS
HIST_ANOT_GERAL TO RESULT-HIST_ANOT_GERAL
HIST_ALT_CARGO TO RESULT-HIST_ALT_CARGO
HIST_INF_RENDIMENTOS TO RESULT-HIST_INF_RENDIMENTOS
HIST_FOLHAS TO RESULT-HIST_FOLHAS
HIST_EVENTOS TO RESULT-HIST_EVENTOS
HIST_CAB_HOLERITE TO RESULT-HIST_CAB_HOLERITE
HIST_CAB_CTPS TO RESULT-HIST_CAB_CTPS
**IMPORT_REQUESTED_OBJECTS
from database ZBRHR_HIST_CL_T(BR) id key
IGNORING STRUCTURE BOUNDARIES.
save_imp_subrc = sy-subrc.
endcatch.
if sy-subrc = 1.
imp_subrc = sy-subrc.
else.
imp_subrc = save_imp_subrc. "0 - import OK ; 4 - failure
endif.
vers_num = ZBRHR_HIST_CL_T-versn.
endform.
I understand that this command is seeking Import data ZBRHR_HIST_CL_T
and moving each structure
I was wondering why when I open the table in SE11 not appear these structures code
How can I see in the SE16 HIST_FOLHAS for example?
Thanks for help.
‎2013 Nov 27 7:49 PM
Hi Ronaldo,
Please find the below link which will help you in understanding how import, export work with cluster tables.
http://wiki.scn.sap.com/wiki/display/Snippets/Import+and+Export+to+Cluster+Databases
Regards,
Philip.
‎2013 Nov 27 7:47 PM
Hi Ronaldo,
you are speaking about cluster. Cluster is something different, used for example in the module HR.
Imagine that all the data (structure, internal table, ..) are condense and store in the field CLUSTD.
So you can't use a simple transaction like SE11, SE16, SE16n, SE17 ... to show the content of the cluster. You have to use a specific transaction that could analyse the content of this special field.
Maybe have a look to the transaction PECLUSTER (I was working in HR more than 13 years ago, a lot of things have change )
regards
Fred
‎2013 Nov 27 7:49 PM
Hi Ronaldo,
Please find the below link which will help you in understanding how import, export work with cluster tables.
http://wiki.scn.sap.com/wiki/display/Snippets/Import+and+Export+to+Cluster+Databases
Regards,
Philip.
‎2013 Nov 27 8:15 PM
HI Ronaldo,
The statement you are using is mainly used for the Fetch the data from the Cluster table. Mainly this table is used in the HR and work as the Infotypes.
In the Cluster table data is stored in the form of the cluster form means combination of data into the one field.
Nishant Bansal