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: 

SET_TABLE_FOR_FIRST_DISPLAY

Former Member
0 Kudos

hi all,

Iam using SET_TABLE_FOR_FIRST_DISPLAY in an alv report pgm.

EXPORTING

I_STRUCTURE_NAME = 'ZXXXXX'

IS_LAYOUT = LIST_LAYOUT

CHANGING

IT_OUTTAB = ITAB.

Now the fields of the table iam specifying are all of direct type and dont contain any dataelements and domains.When i run the report the field headings doesnt appear.I have also tried passing the IT_FIELDCATALOG parameter.<b>When i do so do i need to use</b> LVC_FIELDCATALOG_MERGE.

Anyone please suggest how could i get the field heading for the structues which donot have data elements and domains for respective fields iam passing.

thanks

avinash.

1 ACCEPTED SOLUTION

Former Member
0 Kudos

Hello,

You have to append the field catalog manually in this case. LVC_FIELDCATALOG_MERGE picks up the field headings and definitions from the data element of the field.

Manoj

4 REPLIES 4

Former Member
0 Kudos

Hello,

You have to append the field catalog manually in this case. LVC_FIELDCATALOG_MERGE picks up the field headings and definitions from the data element of the field.

Manoj

Former Member
0 Kudos

The headings are not appearing beacuase you not referring to the data elements from where the descriptions will be picked up.

You can loop at the field catalog after it is created by the function and modify the descitptions.

LOOP AT T_FIELDCAT INTO WA_FIELDCAT.

CASE WA_FIELDCAT-FIELDNAME.

WHEN 'MATERIAL'.

WA_FIELDCAT-SCRTEXT_L = 'Material'.

WA_FIELDCAT-SCRTEXT_M = 'Material'.

WA_FIELDCAT-SCRTEXT_S = 'Material'.

ENDCASE.

ENDLOOP.

Regards,

Ravi

Note - Please mark all the helpful answers

Former Member
0 Kudos

Hi Avinash,

You need to manually append the fields in the ITAB_FIELDCATALOG for the parameters.

Fill the following parameters in the table:

FIELDNAME--field in internal table.

TABNAME-- Name of internal table.

SCRTEXT_L--Label which u want to display as column heading

SELDDICTXT--Label

Regards,

Chetan.

PS:Reward points if this helps.

Former Member
0 Kudos

Hey Avinash,

I have used this method and for this we need to manually create the field catalog

and use coltext(column text) field of lvc_s_fcat to give heading you want at the output. Your problem will be solved.

Award Points if helpful

Message was edited by:

Asha Raghuvanshi