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: 

Program with Top includes

Former Member
0 Kudos

Hallo,

I hope someone can help me.

I would like to know if is it allowed this program under ?

Program with Top Includes.

Type 1 Exucutable Program.

Developement class $TMP - Temporary Objects.

Logical Database ABS. ABAP Book: Customer and bookings.

(DB Selection Screen 1000)

If it is allowed where can I use Events GET in flow logic ?

Thank in advance.

Kindest regardes.

Claudia

1 ACCEPTED SOLUTION

marcelo_ramos
Active Contributor
0 Kudos

Hi Claudia,

Welcome to SDN Forum. Don't forget to read the [rules of engagement|https://www.sdn.sap.com/irj/sdn/wiki?path=/display/home/rulesofEngagement].

Take a look at Report "EXAMPLE_PNP_GET_PAYROLL" it demonstrate how to use Logical database and GET events.

Logical database PNP HR Master Data

Selection screen 900 Selection screen on payroll results


* These three tables need to be declared for the selection screen-.
* Currently, the declarations of  pyorgscreen, pytimescreen HAS to
* be done in addition to setting selection screen = 900 .
TABLES: pernr.

* Declare the country specific structure:
* payXX_result with  XX = country code, e.g. payDE_result for Germany
* Country = 99 is an exception: If this structure is used, the
* international part of every payroll result is returned regardless
* of country code. In the other case, pernr's whose country code do
* not fit the structure are skipped.
NODES: payroll TYPE pay99_result.

DATA: wa_wpbp LIKE LINE OF payroll-inter-wpbp.

*----------------------------------------

GET pernr.

WRITE: / 'Currently working on:'(021), pernr-pernr.

*----------------------------------------
GET payroll.

  LOOP AT payroll-inter-wpbp INTO wa_wpbp.
    WRITE:   / 'Personal Area ='(018),  wa_wpbp-werks,
               'Sub Area ='(019),  wa_wpbp-btrtl.
  ENDLOOP.

Don't forget to close this thread and all yours previous when your question be answered !

Best Regards.

Marcelo Ramos

2 REPLIES 2

Former Member
0 Kudos

hi ,

you should write the coding in the at selection scree event and here you can use

loop at screen.

endloop.

regards,

venkat.

marcelo_ramos
Active Contributor
0 Kudos

Hi Claudia,

Welcome to SDN Forum. Don't forget to read the [rules of engagement|https://www.sdn.sap.com/irj/sdn/wiki?path=/display/home/rulesofEngagement].

Take a look at Report "EXAMPLE_PNP_GET_PAYROLL" it demonstrate how to use Logical database and GET events.

Logical database PNP HR Master Data

Selection screen 900 Selection screen on payroll results


* These three tables need to be declared for the selection screen-.
* Currently, the declarations of  pyorgscreen, pytimescreen HAS to
* be done in addition to setting selection screen = 900 .
TABLES: pernr.

* Declare the country specific structure:
* payXX_result with  XX = country code, e.g. payDE_result for Germany
* Country = 99 is an exception: If this structure is used, the
* international part of every payroll result is returned regardless
* of country code. In the other case, pernr's whose country code do
* not fit the structure are skipped.
NODES: payroll TYPE pay99_result.

DATA: wa_wpbp LIKE LINE OF payroll-inter-wpbp.

*----------------------------------------

GET pernr.

WRITE: / 'Currently working on:'(021), pernr-pernr.

*----------------------------------------
GET payroll.

  LOOP AT payroll-inter-wpbp INTO wa_wpbp.
    WRITE:   / 'Personal Area ='(018),  wa_wpbp-werks,
               'Sub Area ='(019),  wa_wpbp-btrtl.
  ENDLOOP.

Don't forget to close this thread and all yours previous when your question be answered !

Best Regards.

Marcelo Ramos