‎2007 Oct 19 1:14 PM
Hello All,
I need to display a ALV grid using object oriented technique. I am facing 2 problems -
1. There is a currency field of type WRBTR. The column heading for this field is getting right justified, I want the column heading to be left justified and the actual content to be right justified.
2. The report is giving an output when run directly, but when scheduled in background, the job is getting cancelled saying 'Control Framework: Fatal error - GUI cannot be reached'.
Please suggest what should be done to avoid this?
Thanks
Indrajit.
‎2007 Oct 19 3:47 PM
Dear Indrajit,
1. I don't think there is option to align column heading. But i am not sure.
2. If you also want to run the ALV program in background mode then don't create the ALV container(any container e.g custom container, docking container, HTML container etc )
The reason for this is, container is set on a screen and there will not be any screen in background processing.
for e.g.,
Create ALV container only in foreground processing
DATA:
lo_alvdock TYPE REF TO cl_gui_docking_container.
IF sy-batch IS INITIAL.
CREATE OBJECT lo_alvdock
EXPORTING repid = lv_repid
dynnr = lv_dynnr
side = lo_alvdock->dock_at_left
extension = 3000.
ENDIF.
Regards
Kesava
Message was edited by: Kesava
Kesava Chandra Rao
‎2007 Oct 22 6:45 AM
Hello,
Could anyone suggest a workaround for this? The requirement is to have a container, split it into 2 parts - display the header info in one part and item info in other part. The report can be executed in both foreground and background.
Thanks
Indrajit.