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

Extended program check for event TOp-of-page

hi,

my code

CALL FUNCTION 'REUSE_ALV_EVENTS_GET'.

READ TABLE ts_events INTO wa_events

WITH KEY name = slis_ev_top_of_page.

IF sy-subrc EQ 0.

MOVE 'TOP-OF-PAGE' TO wa_events-form.

MODIFY ts_events FROM wa_events INDEX sy-tabix.

ENDIF.

FORM top_of_page .

DATA: ts_list_top TYPE slis_t_listheader,

wa_line TYPE slis_listheader.

CLEAR wa_line.

wa_line-typ = 'H'.

wa_line-info = text-012.

APPEND wa_line TO ts_list_top.

END FORM .

When I run Extended Prog Check ,I am getting warning messages as

" FORM TOP_OF_PAGE not called directly

(check dynamic PERFORMs!!)

(The message can be hidden with "#EC CALLED) "

I want to eliminate this ...without giving #EC..

any help would be appreciate.

thanks

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

3 Answers

  • Best Answer
    author's profile photo Former Member
    Former Member
    Posted on Mar 04, 2010 at 11:57 PM

    Hi,

    you can create a PERFORM which will be never called, i.e.

    IF 1 = 0. 
      PERFORM top_of_page. 
    ENDIF.
    

    Regards,

    --

    Przemysław

    Add a comment
    10|10000 characters needed characters exceeded

    • Former Member Former Member

      Hi,

      Extended Check in unable to find dynamic calls - that is why you get all the messages.

      It is sure, you can not comment it, because it is a part of the form interface.

      You can ignore ExChk sugestions, or use this field in the same way,

      which means never use.

      Regards,

      --

      Przemysław

  • author's profile photo Former Member
    Former Member
    Posted on Mar 05, 2010 at 12:04 AM

    and by the way change

    MOVE 'TOP-OF-PAGE' TO wa_events-form.

    to

    MOVE 'TOP_OF_PAGE' TO wa_events-form.

    Regards,

    --

    Przemysław

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Aug 22, 2011 at 11:58 AM
    ...
    *Dynamic Calls
      IF 1 = 0.
        PERFORM: pf_status_set USING gt_extab.
        PERFORM: user_command  USING sy-ucomm
                                     gs_selfield.
      ENDIF.
    ...

    This removes the WARNING!!!

    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.