04-17-2008 4:55 PM
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
04-17-2008 8:07 PM
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
04-17-2008 5:02 PM
hi ,
you should write the coding in the at selection scree event and here you can use
loop at screen.
endloop.
regards,
venkat.
04-17-2008 8:07 PM
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