Application Development and Automation 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: 
Read only

call t-code pt_qta10 without showing selection screen and execute it.

0 Kudos
701

i have to call tcode pt_qta10 and pass the values for

TIMR4 (UP TO TODAY) RADION BUTTON,

PENNONEL NUMBER,

DEDUCTION PERIOD,

KEY DATE FOR DEDUCTION , AND

KEY DATE FOR ENTITLEMENT

without showing selection screen and produce output(through standard program).

i have written this code:

data : text TYPE c LENGTH 10,

prog_tab TYPE TABLE OF rsparams,

prog_line LIKE LINE OF prog_tab,

range_tab LIKE RANGE OF text,

range_line LIKE LINE OF range_tab.

prog_line-selname = 'DESTA'.

prog_line-kind = 'S'.

prog_line-sign = 'I'.

prog_line-option = 'BT'.

prog_line-low = '18000101'.

prog_line-high = '99991231'.

APPEND prog_line TO prog_tab.

SUBMIT RPMENUSTART00 " RPTQTA10

WITH SELECTION-TABLE prog_tab.

but this code is not working for radio button and standard program RPMENUSTART00(for tcode pt_qta10) is giving error so i am using another standard progarm with same selection screen RPTQTA10. Help me out.

5 REPLIES 5
Read only

Former Member
0 Kudos
615

hi,Please Try this code.dont give any input in the selection screen

TABLES:P2006.

data :prog_tab TYPE TABLE OF rsparams,

prog_line LIKE LINE OF prog_tab.

SELECT-OPTIONS:DESTA for P2006-DESTA.

PARAMETERS:TIMR1 type TIMR1,

DE_DATUM TYPE PTM_DATEEN,

EN_DATUM TYPE PTM_DATEDE.

prog_line-selname = 'TIMR1'. (TODAY)

prog_line-kind = 'P'.

prog_line-sign = 'I'.

prog_line-low = 'X'.

APPEND prog_line TO prog_tab.

prog_line-selname = 'DE_DATUM'. "Key date for deduction

prog_line-kind = 'P'.

prog_line-sign = 'I'.

prog_line-low = '20090903'.

APPEND prog_line TO prog_tab.

prog_line-selname = 'EN_DATUM'. "Key date for entitlement

prog_line-kind = 'P'.

prog_line-sign = 'I'.

prog_line-low = '20090903'.

APPEND prog_line TO prog_tab.

prog_line-selname = 'DESTA'.

prog_line-kind = 'S'.

prog_line-sign = 'I'.

prog_line-option = 'BT'.

prog_line-low = '18000101'.

prog_line-high = '99991231'.

APPEND prog_line TO prog_tab.

SUBMIT RPTQTA10

WITH SELECTION-TABLE prog_tab.

Thanks

Edited by: dharma raj on Sep 3, 2009 2:31 PM

Read only

0 Kudos
615

Hi Dharma,

Thanks for your code.

I used your code but it has problems:

1 i have to skip the selection screen (without showing)

2. it is not using value 'X' given for radio button TIMR1 but giving output only for TIMR6 (that is default).

Can anybody tell me of using tcode 'pt_qta10' in stead of submit <program name> staement for this purpose.

Thanks,

pavan

Read only

0 Kudos
615

Hi,

Even i am facing the same problem, TIMR1 is getting default

although i am passing TIMR6 as 'X'. Please help

Regards

Manu

Read only

0 Kudos
615

Hi,

It is not using value 'X' given for radio button TIMR1 but giving output only for TIMR6 (that is default).

Solution:

Go to include DBPNPO01 ( LDB- PNP ). Subroutine modify_report_screen.

You will see a case endcase statement where the option buttons are determined.

In your submit clause pass pnptimed as D,M,Y,P,F = X as required , so it will select the right option button

For example you can refer where i had mentioned an example

Read only

Former Member
0 Kudos
615

you can first set the parameters of that screen as

set parameter 'xyz' value '123'.

...

...

..

then use

call transaction pt_qta10 and skip first screen.