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: 

Skipping Selection Screen

Former Member
0 Kudos

Dear All,

My report looks like this,(ex.,).

kpi month

headcount 34

When i click on 34 it will calls standard transaction which is done by bdc program in zprogram.,

In my main program i called that zprogram by 'submit zprogram and return'.

When i click on 34 it straightly goes to that standard report in this report when i say back it must call my report but it is going to selection screen for standard report.,

So, for skipping that selection screen what can i do can someone help me.,

Thanks,

ThiruKumaran. R.

1 ACCEPTED SOLUTION

Former Member
0 Kudos

Hi,

Can you please elaborate......Use Names fro the Prom like my Prog ZABC...Standard Prog SABC.....

Your question is referring to your report, a BDC Prog, a Standard Report....but the flow is not clear.....

12 REPLIES 12

Former Member
0 Kudos

Hi Thirukumaran,

Check this code it might help you.

SUBMIT yfapinv_idoc_rpts TO SAP-SPOOL

WITHOUT SPOOL DYNPRO

SPOOL PARAMETERS print_parameters

WITH credate in s_upddat "SPACE "paas edidc-upddt

WITH docnum in s_docnum "paas edidc-docno

WITH ap1_flag eq 'X'

AND RETURN.

Regards,

Amit.

Former Member
0 Kudos

Hi,

Can you please elaborate......Use Names fro the Prom like my Prog ZABC...Standard Prog SABC.....

Your question is referring to your report, a BDC Prog, a Standard Report....but the flow is not clear.....

0 Kudos

Hi,

My Report Format.,

kpi month

headcount 20.

when i click on 20 in my report (zkpi_1) it will call standard program s_ahr_61015512 which is done in bdc programming zbdc_program using the syntax., (submit zbdc_program and return) there it will displays 20 rows of details

from that report ('s_ahr_61015512'), when i say back it must come to (zkpi_1) but it is going to selection screen of ('s_ahr_61015512')., Can any one help me out.,.,

Thanks,

ThiruKumaran.

0 Kudos

Hi,

Problem might be with your BDC.....Either in Recording itself...after pressing the Last Save Button ...return comes back to Selection Screen of the Standard Program......

Your report looks OK but some issue with the Zprog in which you called BDC....

Can you share the code of ZPROG ...BDC one

0 Kudos

Hi,

This is my zbdc program

CALL FUNCTION 'OIL_LAST_DAY_OF_PREVIOUS_MONTH'

EXPORTING

i_date_old = sy-datum

IMPORTING

e_date_new = datep.

datel = datep.

datel+6(2) = '01'.

data : LV_EIAP type D,

LV_EIAP1 type D.

CALL FUNCTION 'CONVERT_DATE_FORMAT'

EXPORTING

I_DATE = dateL

IMPORTING

E_CALC_DATE = LV_EIAP.

CALL FUNCTION 'CONVERT_DATE_FORMAT'

EXPORTING

I_DATE = dateP

IMPORTING

E_CALC_DATE = LV_EIAP1.

perform bdc_dynpro using 'RPAPL002' '1000'.

perform bdc_field using 'BDC_CURSOR'

'PAPMASSN-LOW'.

perform bdc_field using 'BDC_OKCODE'

'=ONLI'.

perform bdc_field using 'PAPBEGDA'

LV_EIAP.

perform bdc_field using 'PAPENDDA'

LV_EIAP1.

perform bdc_field using 'PAPAPSTA-LOW'

' '.

perform bdc_field using 'PAPMASSN-LOW'

'41'.

perform bdc_field using 'REFE1'

'X'.

perform bdc_field using 'ALV'

'X'.

perform bdc_dynpro using 'RPAPL002' '2000'.

CALL TRANSACTION 'S_AHR_61015512' USING BDCDATA MODE 'E'.

Thanks,

ThiruKumaran. R

0 Kudos

Hi,

Is this the complete BDC Program???

Why the given below line is the Last BDC Statement?

perform bdc_dynpro using 'RPAPL002' '2000'.

0 Kudos

Yes, that line is not problem if you remove that line also that works properly but i want to skip that selection screen when i say back in s_ahr_61015512 report..

Thanks,

ThiruKumaran. R

0 Kudos

Try writing the submit and return inside a FM and call the FM.

Former Member
0 Kudos

Hi,

This statement may help u...


SUBMIT <prog_name> WITH <selection-screen-field1> = <value>
                   WITH <selection-screen-field2> = <value>
                   WITH <selection-screen-field3> = <value>
                   AND RETURN.

Edited by: Sukriti Saha on Oct 15, 2008 7:09 AM

0 Kudos

How to post the message in your format.

Thanks,

ThiruKumaran. R

0 Kudos

I need updates Pls.,

Thanks,

ThiruKumaran. R

Former Member
0 Kudos

I copied the standard program into zprogram there i changed the status of back button