12-18-2006 5:35 AM
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.
12-18-2006 5:45 AM
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
12-18-2006 5:45 AM
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
12-18-2006 5:55 AM
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
12-18-2006 5:57 AM
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.
12-18-2006 6:38 AM
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