Application Development 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: 

Field catalog

Former Member
0 Kudos

Hi,

I am using Fm REUSE_ALV_FIELDCATALOG_MERGE to build the fieldcatalogue.

I am passing one internal table to that which has around 38 fields in it.

Each and every field from that table is decleared by reference of one field from the structure.

In this case FM REUSE_ALV_FIELDCATALOG CATALOG_MERGE is building fieldcatalogue with all 38 fields.

But now i am changing defination of one of the field from the internal table.

That is, now i have decleared that field with the data element which is newly created.

In this case FM REUSE_ALV_FIELDCATALOG_MERGE is building fieldcatwith only 37 excluding

one field for which i have changed the defination.

See below for change i have made to one of the field from the internal table.

before making changes : f1 LIKE coss-wkg002. -


>

in this case all fields are included in fieldcat.

After making changes : f1 TYPE z_ros_amt. -


>

In this case,this fields is exluded from fieldcat.

here z_ros_amt is the data element created by me with cuur type length 18.

Please guide me in this regard.

Point rewarded for sure

Thnx in advnace.

6 REPLIES 6

0 Kudos

Hi,

You need to some how make use of LIKE as you will get its attributes only if u refer to its type using already delcared strucutre field.

Regards,

Sesh

0 Kudos

Hi,

Is structure field must? I have created my own data elemnt & used the same for declaration. Bit the field is not getting populated in ALV fieldcat

Thanks

Former Member
0 Kudos

. The only care that has to be taken is while

declaring the internal table.

2. The Fields of the internal table should be declared

<b>using LIKE (and not TYPE)</b>

(If we use TYPE, then field catalogue won't get generated.It would be blank for that field)

3. Another option is to manually generate the field catalogue, by abap coding,

instead of using the FM.

However, in most cases, it is not required.

<b>(field catalogue is nothing but an internal table,

which contains detailed information about the fields.

ie. fieldname, size, type, heading, etc)</b>

reward points if it is usefull.....

Girish

Former Member
0 Kudos

1. For the FM REUSE_ALV_FIELDCATALOG_MERGE , also add the parameter

<b> I_BYPASSING_BUFFER = 'X'.</b>

2. run program <b>BALVBUFDEL</b> to delete ALV buffer before executing your program

jayanthi_jayaraman
Active Contributor
0 Kudos

Hi,

Did you tried creating a structure in SE11 for the ALV and then passing the structure name to the FM?

Former Member
0 Kudos

Hi,

Even you can append the new row in the internal table generated by the FM REUSE_ALV_FIELDCATALOG_MERGE for your customized field according to the requirement.

Reward points if useful.

Regards,

Suman