Hi Colleagues,
Lets say we replicated two tables MARA and MAKT from ABAP to HANA with out changing any Table and their field names.
Lets say MARA consists of following fields :
MATNR, VPSTA,ERSDA,ERNAM,LAEDA,AENAM,VPSTA,PSTAT,LVORM,MTART,MBRSH,MATKL,BISMT,MEINS,BSTME,ZEINR,ZEIAR,ZEIVR,ZEIFO,AESZN,BLATT
Lets Say MAKT consists of following fields:
MATNR,SPRAS,MAKTX,MAKTG
An SQl view MARA_MAKT is built on these two tables MARA, MAKT
Now the following fields are selected as INPUT or OUTPUT attributes of SQL View from both tables.
MATNR,MTART,MBRSH,MATKL,MEINS,SPRAS,MATKG
Now the during the generation of SQL view the INPUT/ OUTPUT Attributes are renamed as below
MATNR- MaterialNumber
MTART- MaterialType
MBRSH- IndusSector
MATKL- MaterialGroup
MEINS- BaseUOM
SPRAS- LanguageKey
MATKG- MaterialDesc
Lets say the SQl view named as MARA_MAKT is generated successfully.
Now is there any way where we could read the below information any where from
HANA CATALOG or ABAP API's OR SQL PROCEDURES,
1) Based on the SQL VIEW name can we get the information of the correspoding table and the field from which the input attributes formed.
Ex: We give the SQL view Name.
Lets say MARA_ MAKT.
Question1
Can we get the correspoding ABAP dataelements for all the attributes of MARA_MAKT.
ForExample the below info is req:
INP/OUTATTRofSQLVIEW ABAPDATAELEMENT
MaterialNumber MATNR_DE
MaterialType MTART_DE
IndusSector MBRSH_DE
MaterialGroup MATKL_DE
BaseUOM MEINS_DE
LanguageKey SPRAS_DE
MaterialDesc MATKG_DE
Question2:
Can we get the correspoding tables or table field names of all the attributes of view MARA_MAKT
ForExample the below info is req:
INP/OUTATTRofSQLVIEW ABAP_TABLE_NAME ABAP_FIELD_NAME
MaterialNumber MARA MATNR
MaterialType MARA MTART
IndusSector MARA MBRSH
MaterialGroup MARA MATKL
BaseUOM MARA MEINS
LanguageKey MAKT SPRAS
MaterialDesc MAKT MATKG
Question 3:
Can we get the time stamp information when the MARA_MAKT is created or Changed and what is changed.
Question 4:
Is there any generic approach where we can get the information for all the above 3 Questions for any view SQL view or ATTRIBUTE View or CALCULATION View
Thanks,
Vasavi.