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: 

Enhancement in Tcode-QA32 , Program-RQEEAL10

former_member206454
Participant
0 Kudos

Hi,

In Tcode QA32 which is in Program RQEEAL10 , I have to add 3 New field for which output is coming in ALV. I have done enhancement in the structure , Though this fields are coming in the internal table yet it is not coming in the fieldcatalog. Please Help.

1 ACCEPTED SOLUTION

Former Member
0 Kudos

Hi Saurabh,

Have you added those fields in field catalog too.

If no then update field catalog first.

Thanks,

Vijay

8 REPLIES 8

Former Member
0 Kudos

Hi Saurabh,

Have you added those fields in field catalog too.

If no then update field catalog first.

Thanks,

Vijay

0 Kudos

Hi,

Actually thats what I was asking ....how to add new fields in the fieldcatalog.

0 Kudos

Hi Saurabh,

How you add your new fields into internal table.

Like have you append structure "QALS_D02".

If yes then if you see the form "FORM create_fieldcat_l USING tabname TYPE slis_tabname." in program "RQEEAL10".

Program creating the fieldcatalog dynamically by using structure "QALS_D02".

FORM create_fieldcat_l  USING tabname TYPE slis_tabname.


  DATA h_fieldcat_wa TYPE slis_fieldcat_alv.
  DATA h_index       LIKE sy-tabix.

  CALL FUNCTION 'REUSE_ALV_FIELDCATALOG_MERGE'
       EXPORTING
            i_program_name         = g_repid
            i_internal_tabname     = 'OBJECT_TAB'
            i_structure_name       = tabname
            i_client_never_display = ' '
       CHANGING
            ct_fieldcat            = g_fieldcat_tab[]
       EXCEPTIONS
            inconsistent_interface = 1
            program_error          = 2
            OTHERS                 = 3.

if you see the above form then you come to know that after creating field catalog dynamically by using FM they are doing some changes to fieldcatalog table "g_fieldcat_tab[]" and finally export that table to memory id 'FIELDCATALOG'.

Solution - Create implicit enhancement implementation at the end of above mentioned FORM. Inside implementation do modification for your new added fields and again export that fieldcatalog table to memory.

If you have any doubts feel free to ask.

BR,

Vijay

0 Kudos

Hi vijay.

I am able to see the new fields in internal table as well as in field catalog... but this field in not visible in the output alv.. . though I have put 'no_out' property of fieldcatalog as blank. I am also getting this in the Change layout properties of ALV in output. But when I try to put it from column set to display column. It is going to dump.

Edited by: Kumar Saurabh on Nov 21, 2011 1:05 PM

0 Kudos

Hi Sourabh,

May you please share a step by step detailed help on how you did the enhancement.

I want to add a field in the QA32 ALV.

Thanks,

Sakar

0 Kudos

I had the same requirement. Below are the steps I followed. Might help for others..

* Append Structure for QALS_D02

* Append structure for QALS (If not would give a dump when you select the field)

* Write the enhancement spot as described by Saurabh.

Thanks, Raj

0 Kudos

Here I have posted the step by step process:

http://scn.sap.com/message/14206756#14206756

0 Kudos

There are several ways to solve this issue.

Variant 1) Enhancement (see link above)

Variant 2) Exit

Variant 3) Create your own Z-Transaction (I do not recommend this options for small adaptions)

Best Regards,

Sebastian Sav