Additional Blogs by Members
cancel
Showing results for 
Search instead for 
Did you mean: 
Former Member

That's right. Forget the END-OF-SELECTION syntax. I see at nine of ten ABAP reports, the developer uses this statement incorrectly (and without need).

First: it's obsolete!

Second: the statement’s intended only for executable programs that are associated with a logical database (most HR reports, for example).

In this case, the event is triggered so the logical database finishes processing the data.

So if you're just creating a report for reading tables and extracting data (without logical database), forget the END-OF-SELECTION.

Third: END-OF-SELECTION not "closes" the processing block START-OF-SELECTION.

The START-OF-SELECTION is an event of the flow (block) default processing of an executable program. The event is called after any standard selection screens have been processed.

If you use the END-OF-SELECTION, as above, into an executable program without being associated with a logical database, it will be called immediately after the completion of processing the START-OF-SELECTION block, but there’s no need!

Just this works:

Regards

Douglas Santos

Source:

http://help.sap.com/abapdocu_702/en/abenabap_submit_report.htm

Obsolete Language Elements (SAP ECC 6.0 Help – ABAP Keyword Documentation)

***[PT-BR]***

Esqueça o END-OF-SELECTION.

É isso mesmo. Esqueça a sintaxe o END-OF-SELECTION. Nove de cada Dez relatórios ABAP que vejo, o desenvolvedor usa essa declaração de forma incorreta (e sem necessidade).

Primeiro: é obsoleto!

Segundo: a declaração destina-se apenas para programas executáveis ​​que estão associados a um banco de dados lógico (a maioria dos relatórios de RH, por exemplo).

Nesse caso, o evento é executado assim que o banco de dados lógico termina o processamento dos dados.

Então se você está apenas criando um relatório para leitura de tabelas e extração de dados (sem banco de dados lógico), esqueça o END-OF-SELECTION.

Terceiro: o END-OF-SELECTION não “termina” o bloco de processamento START-OF-SELECTION.

 

O START-OF-SELECTION é um evento do fluxo (bloco) de processamento padrão de um programa executável. O evento é chamado após o processamento da tela de seleção.

Se você utilizar o END-OF-SELECTION, como no exemplo acima, em um programa executável sem estar associado a um banco de dados lógico, ele será
chamado logo após o fim do processamento do bloco START-OF-SELECTION, mas não há necessidade!

Apenas isso funciona:

Att.

Douglas Santos

Fonte:

http://help.sap.com/abapdocu_702/en/abenabap_submit_report.htm

Obsolete Language Elements (SAP ECC 6.0 Help – ABAP Keyword Documentation)

4 Comments