This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
TYPE-POOLS: SLIS. | |
TABLES: MARA, MAKT, CABNT, CABN, T006A, AUSP. | |
DATA: BEGIN OF GT_METADATAS OCCURS 0, | |
MATNR LIKE MARA-MATNR, " Malzeme no | |
MAKTX LIKE MAKT-MAKTX, " Malzeme tanımı | |
atinn LIKE AUSP-ATINN, " karakteristik | |
ATBEZ LIKE CABNT-ATBEZ, " Karakteristik tanımı | |
MSEHI LIKE CABN-MSEHI, "Ölçü Birimi | |
ATWRT LIKE AUSP-ATWRT, " Karakter karakteristik değeri |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
SELECTION-SCREEN BEGIN OF BLOCK PARAMETERS WITH FRAME TITLE TEXT-001. | |
SELECT-OPTIONS: | |
P_MATNR FOR MARA-MATNR, | |
P_MATKL FOR MARA-MATKL. | |
SELECTION-SCREEN END OF BLOCK PARAMETERS. | |
START-OF-SELECTION. | |
IF P_MATNR[] IS INITIAL AND P_MATKL[] IS INITIAL. | |
MESSAGE 'Malzeme numarası veya Mal Grubundan biri girilmeli' | |
TYPE 'S' DISPLAY LIKE 'E'. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
SELECT | |
MR~MATNR MT~MAKTX AP~ATWRT | |
AP~ATFLV AP~ATFLB AP~ATINN | |
CN~ATFOR CN~ANZST CN~ANZDZ | |
CN~MSEHI CT~ATBEZ TA~MSEH6 | |
TA~SPRAS | |
FROM MARA AS MR | |
JOIN MAKT AS MT ON MR~MATNR EQ MT~MATNR | |
JOIN AUSP AS AP ON MR~MATNR EQ AP~OBJEK | |
JOIN CABN AS CN ON AP~ATINN EQ CN~ATINN |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
LOOP AT GT_METADATAS WHERE ATFOR EQ 'NUM'. | |
CALL FUNCTION 'FLTP_CHAR_CONVERSION' | |
EXPORTING | |
DECIM = GT_METADATAS-ANZDZ | |
EXPON = 0 | |
INPUT = GT_METADATAS-ATFLV | |
IVALU = 'X' | |
* MASKN = ' ' | |
IMPORTING |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FORM SHOWDATA . | |
DATA: I_SORT TYPE SLIS_SORTINFO_ALV, | |
IT_SORT TYPE SLIS_T_SORTINFO_ALV. | |
I_SORT-SPOS = 1. | |
I_SORT-FIELDNAME = 'MATNR'. | |
APPEND I_SORT TO IT_SORT. | |
I_SORT-SPOS = 2. | |
I_SORT-FIELDNAME = 'MAKTX'. | |
APPEND I_SORT TO IT_SORT. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
WITH ColumnInfo AS ( | |
SELECT | |
t.name AS TableName, | |
c.name AS ColumnName, | |
y.name AS DataType, | |
c.max_length AS MaxLength, | |
c.is_nullable AS IsNullable, | |
ISNULL(i.is_unique, 0) AS IsUnique, | |
ISNULL(ep.value, '') AS Description, | |
ISNULL(cc.definition, '') AS CheckConstraint, |