10-15-2008 5:35 AM
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.
10-15-2008 5:43 AM
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.....
10-15-2008 5:40 AM
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.
10-15-2008 5:43 AM
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.....
10-15-2008 6:00 AM
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.
10-15-2008 6:08 AM
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
10-15-2008 6:11 AM
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
10-17-2008 12:37 PM
Hi,
Is this the complete BDC Program???
Why the given below line is the Last BDC Statement?
perform bdc_dynpro using 'RPAPL002' '2000'.
10-18-2008 10:26 AM
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
10-18-2008 10:47 AM
10-15-2008 6:08 AM
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
10-15-2008 6:12 AM
10-17-2008 12:20 PM
10-24-2008 4:20 AM
I copied the standard program into zprogram there i changed the status of back button