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

Exist Optional parameter for field catalog ?

Former Member
0 Likes
571

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

3 REPLIES 3
Read only

Former Member
0 Likes
536

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.

Read only

0 Likes
536

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

Read only

0 Likes
536

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.