07-01-2014 5:31 AM
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.
07-01-2014 5:49 AM
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
07-01-2014 6:11 AM
07-01-2014 6:24 AM
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
07-01-2014 6:39 AM
Hi klaus,
I have tried in both the ways but it is not working..
any other alternative please.
07-01-2014 5:53 AM
07-01-2014 6:05 AM
Hi sreekanth.
where eactly i need to use REPTEXT in field catalog.
could you please tell me clearly
07-01-2014 6:08 AM
While building field catalog.
Don't you have a field catalog for ALV?
07-01-2014 6:15 AM
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
07-01-2014 7:07 AM
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.........
07-01-2014 7:18 AM
07-01-2014 7:21 AM
07-01-2014 7:56 AM
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'