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: 

Reprocess Top-Of-Page. Is possible ?

Former Member
0 Kudos

I have a classic report with TOP-OF-PAGE (fixed lines in the header) and a list output.
In this list is possible navagate to other transaction and to return, but in this time the fixed lines are not more fixed.

When that return is possible to fix the lines again or process the TOP-OF-PAGE again?

Thank you .

JNilson.

1 ACCEPTED SOLUTION

Juwin
Active Contributor
0 Kudos

That doesn't seems to be a standard behavior. Standard behavior is that when you navigate from a list to another transaction and comes back, the list doesn't change at all. If in case your list if changing, that is probably because of some custom code written in the program. Can you please check if there such a code to auto-refresh the list, upon return?

Thanks,

Juwin

4 REPLIES 4

Juwin
Active Contributor
0 Kudos

That doesn't seems to be a standard behavior. Standard behavior is that when you navigate from a list to another transaction and comes back, the list doesn't change at all. If in case your list if changing, that is probably because of some custom code written in the program. Can you please check if there such a code to auto-refresh the list, upon return?

Thanks,

Juwin

Former Member
0 Kudos

Hi, Juwin.

When the program is processed is generated header (top-of-page) and then the list normally. After being triggered another transaction process is returned to the list, but this time, the full list is only processed (

writes), starting from the header line. This is what is causing the header does not get fixed. I need to reprocess the list (the report) because the data can be updated in the call transaction.

You know if you can run the complete report again?

Example:

-----------------------------------------------

Top-of-page.

  perform f_header. "This routine uses 6 lines

End-of-selection.

  perform f_lista using 7.

AT USER-COMMAND.

  case sy-ucomm.

     when 'BT_LIFNR'.

        SET PARAMETER ID 'LIF' FIELD wa_output-LIFNR.

        call transaction 'XK02' and skip first screen.

        PERFORM f_lista USING 7. "processes starting line 7

    WHEN OTHERS.

        message w398 (00) with 'Choose an option from the menu'.

  endcase.

Juwin
Active Contributor
0 Kudos

Please create another event also in the program with the following addition:

Top-of-page.

  perform f_header. "This routine uses 6 lines

Top-of-page DURING LINE-SELECTION.      "add this event, calling the same subroutine

  perform f_header. "This routine uses 6 lines

Addition  

... DURING LINE-SELECTION 

Effect 

If you do not use an addition, an event block is triggered for event TOP-OF-PAGE during the creation of a basic list. If you use the addition DURING LINE-SELECTION, an event block is triggered for the corresponding events during the creation of details lists. You have to use system fields like sy-lsind to distinguish between the individual details lists.

Thanks,

Juwin

Former Member
0 Kudos

Juwin,

thank you very much.


JNilson.