Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

ALV Field Catalog Generation

naresh_vvsr
Associate
Associate
0 Kudos
615

Hello Experts,

To prepare the field catalog for a ALV Grid Display, i created a DDIC structure which looks as below.

DDIC structure from SE11.These are total 12 fields.

DOKARTypesDOKARCHAR30Document Type
DOKNRTypesDOKNRCHAR250Document number
DOKTLTypesDOKTL00Documentation - text lines
DOKVRTypesDOKVRCHAR20Document Version
DKTXTTypesDKTXTCHAR400Document description
DOSTXTypesDOSTXCHAR160Description of document status
KTXTTypesTDWOT_KTXTCHAR200Object Description
STABKTypesSTABKCHAR20Status of a document (language-dependent)
CAD_POSTypesCAD_POSCHAR10CAD: Assignment document  <-> material
VRKSTATTypesVRKSTATCHAR10Link status of a document
CVHIERTypesCVHIERCHAR10Document is in Hierarchy
REVLVTypesREVLVCHAR20Revision Level

When i try to run the FM:LVC_FIELDCATALOG_MERGE to generate field catalog i get 19 columns. Where as i should get only 12.

Below are the columns,

COL_POS     FIELDNAME

         1  DOKAR

         2  DOKNR

         3  ID

         4  OBJECT

         5  LANGU

         6  TYP

         7  DOKVERSION

         8  LINE

         9  DOKFORMAT

        10  DOKTEXT

        11  DOKVR

        12  DKTXT

        13  DOSTX

        14  KTXT

        15  STABK

        16  CAD_POS

        17  VRKSTAT

        18  CVHIER

        19  REVLV

Can you let understand why the DDIC scan giving result like this ?

Thanks,

Naresh

1 ACCEPTED SOLUTION
Read only

renandacosta
Explorer
0 Kudos
569

Hello,

This is because the type DOKTL:

4 REPLIES 4
Read only

renandacosta
Explorer
0 Kudos
570

Hello,

This is because the type DOKTL:

Read only

0 Kudos
569

Hello,

Thanks that was very helpful.

Regards,

Naresh

Read only

TuncayKaraca
Active Contributor
0 Kudos
569

Hi Naresh,

As Renan pointed out that in your structure DOKTL field is using DOKTL type which is not a data element, it is another structure and all DOKTL fields were added to the field catalog too.

Read only

0 Kudos
569

Hello,

Thanks that was very helpful.

Regards,

Naresh