‎2011 Jun 10 10:49 AM
Hi,
Can I pass the optional parameter for field catalog. I mean I use only one field catalog setting for many grids. I don't want to fill SPACE for blank field for the last parameter.
Please tell me ABAP has a function like I said which exist in Ms.Visual Studio.
Thank you very much.
Regards,
TRA
‎2011 Jun 10 10:58 AM
Hi,
you can use the field
TECH = 'X'.
the field wont be dispayed in ALV itself.
But better use seperate structure for specific purpose.
then use FM REUSE_ALV_FIELDCATALOG_MERGE or LVC_FIELDCATALOG_MERGE.
Regards,
Ravi.
‎2011 Jun 10 11:34 AM
Hello Ravi,
Thanks for your quick reply.
I don't mean no output in output screen.
We need to write all parameter value when calling field catalog setting form. But I don't want to write last 2 parameter.
for example:
Add_FieldCat form has 5 things.(REF_TABLE, FIELDNAME,COL_POS,KEY,EDIT)
I called this form for 2 alv grid.
for 1st Grid,
All 5 parameters is passed to the Add_FieldCat Form.
for 2nd Grid,
Only first 3 parameters is passed to the Add_FieldCat Form.
In Visual Basic,
We use "optional" keyword for this kind of parameter passing. Thus, in ABAP, can I use lke that for parameter passing.
Regards,
TRA
‎2011 Jun 10 11:42 AM
Hi,
If i understand requirement correctly , in the second grid you can simply omit the fields which you dont want. there wont be any syntax issue.
if you want to write all fields and , if you dont want to display some fileds then you can use
FIELDCAT-TECH = 'X'only for those fields.
Regards,
Ravi.