2011 Nov 04 6:01 AM
Dear Experts ,
I am using BDC call transaction method for 'SP01' tcode . when i execute my Zprogram its showing all spool requests.
up to now fine.but what my problem is ,when i click on back button it's showing ABAP out put screen .my requirement is to come sap initial screen.i tried following code
IF SY-LSIND EQ 1.
LEAVE PROGRAM.
ENDIF.
but its not working.please help me out.
Thanks and regards
Naresh Bammidi
Dear Experts ,
I am using BDC call transaction method for 'SP01' tcode . when i execute my Zprogram its showing all spool requests.
up to now fine.but what my problem is ,when i click on back button it's showing ABAP out put screen .my requirement is to come sap initial screen.i tried following code
IF SY-LSIND EQ 1.
LEAVE PROGRAM.
ENDIF.
but its not working.please help me out.
Thanks and regards
Naresh Bammidi
2011 Nov 04 6:07 AM
HI,
in your BDC Code after using call transaction i.e
call transaction 'XXXX' using bdcdata mode 'E' update 'S'.
just write leave to screen 1000.
i.e
call transaction 'XXXX' using bdcdata mode 'E' update 'S'.
Leave to screen 1000.
Here after execution you will be redirected to SAP EASY ACCESS Screen.
Regards,
koolspy.
2011 Nov 04 6:20 AM
Hi koolspy,
Thanks for your quick reply.if i execute my Zprogrm it will show selection screen.here i do enter some values and pass to my transaction.now in pool request screen if i click back button first it should come to my selection-screen then to SAP initial screen( i forgot to add this point in my question ) .How to do.?
Thanks and regards
Naresh Bammidi
2011 Nov 04 6:27 AM
Hi Try like this, instead of leav program, just call your program..
IF SY-LSIND EQ 1.
SUBMIT ZXXXXXX
AND RETURN.
*LEAVE PROGRAM.
ENDIF.
2011 Nov 04 6:40 AM
Hi Naresh,
You need to first set the current screen to 0 as follows.
SET SCREEN 0.
Then you can use LEAVE TO SCREEN 0.
IF SY-LSIND EQ 1.
LEAVE TO SCREEN 0.
ENDIF.
I hope this will resolve your issue.
Regards,
Rahul Mahajan
2011 Nov 04 6:48 AM
Hi Try like this, instead of leav program, just call your program..
>
>
IF SY-LSIND EQ 1. > SUBMIT ZXXXXXX > AND RETURN. > *LEAVE PROGRAM. > ENDIF.
Hi ,
if i use above code it's coming to the initial screen of my Tcode SP01 but not to selection screen.any other idea.
thanks and regards
Naresh bammidi
2011 Nov 04 7:00 AM
Hi naresh
I think You must have to define PF Status And declare function code for 'BACK' Button.
Use CASE Sy-ucomm .
When 'BACK'.
Call Selection-Screen 1000.
Regards
Ajit
2011 Nov 04 7:05 AM
Hi Naresh,
>
> You need to first set the current screen to 0 as follows.
>
> SET SCREEN 0.
>
> Then you can use LEAVE TO SCREEN 0.
>
> IF SY-LSIND EQ 1.
> LEAVE TO SCREEN 0.
> ENDIF.
>
> I hope this will resolve your issue.
>
> Regards,
> Rahul Mahajan
Hi rahul ,
does "SET-SCREEN" works for report program ?if so where to write this sttement.?
Thanks and regards
Naresh
2011 Nov 04 6:31 AM
hi naresh ,
try LEAVE TO SCREEN 0.
or
CALL SELECTION-SCREEN 1000 STARTING AT 10 10.
regards
ranjan
| User | Count |
|---|---|
| 3 | |
| 2 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |