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: 

Problem in alv report coumn header in the background while using salv

Former Member
0 Kudos

Hi  all,

        now i am working on  alv report for this i have used salv i mean oops alv ,So here i am facing one issue while executing the report  in background

        the report column headers are not displaying properly as it is displaying in front end.

       In the back ground it is always displaying column header as data element field label short text. i have written a code to pick the long text

       but it is working fine if run the report in the frontend where as in the backgroiund it is always displaying short text but it is wrong.

here i am attaching the output screen shots in front end and background.

12 REPLIES 12

former_member195402
Active Contributor
0 Kudos

Hi Satish,

please try the following:

After line

lo_column->set_long_text( col_desc ).

add those two lines:

lo_column->set_short_text( col_desc ).

lo_column->set_medium_text( col_desc ).

Any changes then?

Regards,

Klaus

0 Kudos

Hi Klaus,

   I have tried it but it is not working...

0 Kudos

Hi Satish,

there is another method available

lo_column->set_fixed_header_text ( ...)

Please try to pass option

EXPORTING VALUE = SPACE

when all texts (short, medium, long ) have been set as described above. If it is not working, try with

EXPORTING VALUE = 'X'

Regards,

Klaus

0 Kudos

Hi klaus,

           I have tried in both the ways but it is not working..

any other alternative please.

former_member202818
Active Contributor
0 Kudos

Hi,

Use REPTEXT in field catalog to set column Heading.

0 Kudos

Hi sreekanth.

  where eactly i need to use  REPTEXT in field catalog.

could you please tell me clearly


0 Kudos

While building field catalog.

Don't you have a field catalog for ALV?

pavanm592
Contributor
0 Kudos

Hi Sathish,

In Background the display is List ,once try to change the line size in report.

Ex: Report ZTEST NO STANDARD PAGE HEADING LINE-SIZE 1032.


Or

In Spool select your spool and press on SHIFT+F4 .



Once try and  Revert.



Regards,

pavan

Former Member
0 Kudos

Hi pavan,

     i have tried this   NO STANDARD PAGE HEADING LINE-SIZE 1032.

    but it is giving the error "line size can not be 1023".

    i have tried with 1023 but it is not working.

thanks for your reply.........

0 Kudos

Ok,Sorry Typo mistake its 1023..

Former Member
0 Kudos

but it is not working...


former_member202818
Active Contributor
0 Kudos

Hi Satish,

I have tried this scenario with Reuse ALV grid 1st i found the same issue as u said in background job,

then i set in field catalog as,

wa_fcat-ddictxt = 'L'. Now its working fine. L stands for long text.

Before...

After...

For LVC u can try the below fields in fieldcatlog.

COLDDICTXT = 'L'.

SELDDICTXT = 'L'