Skip to Content
author's profile photo Former Member
Former Member

ALV Grid using object oriented technique

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.

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

2 Answers

  • author's profile photo Former Member
    Former Member
    Posted on Oct 19, 2007 at 02: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

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Oct 22, 2007 at 05: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.

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.