2012 Feb 24 6:59 AM
Hi Experts,
I am having a functionality where in if i click the hotspot i go the specified transaction..I am able to do that using --
CALL TRANSACTION 'CAA3' AND SKIP FIRST SCREEN
Now if i press the back button on the standard transaction i am coming to the first screen of the CAA3 transaction..
Can i come back to my original ALV display instead of coming to the first screen of the CAA3 transaction which i have skipped while going there..
I have searched in all forums. But i couldn't get the proper solution.
Please Help me !!!
Regards,
Rajesh
2012 Feb 24 11:43 AM
Hi,
I think this would work.
SET PARAMETER ID 'KTO' FIELD ws_value.
CALL TRANSACTION 'CA3' AND SKIP FIRST SCREEN .
SET PARAMETER ID 'KTO' FIELD space.
2012 Feb 24 7:07 AM
Hi,
Can you paste a portion of your code of USER_COMMAND.
Regards,
iostreamax
2012 Feb 24 8:21 AM
Hi iostreamax,
Please find the below code snippet.
FORM change USING ucomm LIKE sy-ucomm
selfield TYPE slis_selfield.
CASE ucomm.
WHEN '&IC1'.
SET PARAMETER ID 'KTO' FIELD selfield-value.
CALL TRANSACTION 'CAA3' AND SKIP FIRST SCREEN.
ENDCASE.
ENDFORM.
Regards,
Rajesh
2012 Feb 24 7:23 AM
Hi,
Instead of Call Transaction, you can use -
SUBMIT BUSSTART WITH ......... AND RETURN.
BUSSTART is the program for CAA3..and in with you can specify parameters.
Regards,
Harsh Bansal
2012 Feb 24 8:16 AM
Hi Harsh,
I have already tried with SUBMIT BUSSTART. I got "Transaction SE38 is not defined as an application transaction" error. In fact program BUSSTART do not have any selection screen.
Regards,
Rajesh
2012 Feb 24 9:59 AM
Hi,
I agree with Harsh Bansal, it always come back to ALV generated report that's why I'm asking you to paste a portion of your code logic so we can analyze from it.
Regards,
iostreamax
2012 Feb 24 7:48 AM
HI,
Use the user-command event and inside this user command
do one thing.
SET PARAMETER ID " PARAMETER ID".
CALL TRANSACTION <TCODE>
Also have a look at the following thread.
2012 Feb 24 9:47 AM
Hi,
Generally it comes back to the ALV output when we press back on called transaction.
Regards,
Harsh Bansal
2012 Feb 24 10:25 AM
Hi
Try using different transaction just to check if its problem with transaction or ALV.
Regards
Vinit
2012 Feb 27 9:26 AM
Hi Harsh & iostreamax,
Its not coming back to ALV directly.it is coming to CAA3 initial screen and then it is coming back to ALV.
I have tried many times.
Regards,
Rajesh
2012 Feb 24 11:43 AM
Hi,
I think this would work.
SET PARAMETER ID 'KTO' FIELD ws_value.
CALL TRANSACTION 'CA3' AND SKIP FIRST SCREEN .
SET PARAMETER ID 'KTO' FIELD space.
2012 Feb 27 9:28 AM
2012 Feb 27 9:44 AM
Hi,
I don't think it is a problem in SAP or something. When you call a transaction with skip initial screen clause it indeed will go to that first screen. But since you set the parameters in your program itself it will directly go to the next screen instead of displaying the first screen. If you enter wrong values it will display error message in the status bar of first screen itself. Because of this reason when you press BACK button it will go to the first screen since it was the previous screen.
To modify this behaviour you have to right the code in the usercommand section of the standard code but that is not possible without enhancements.
Hope it is clear.
Thanks and regards.
Aswath.
2012 Feb 27 10:06 AM
Hi,
Have you try the suggestion of Vinit?
If not, please try it then revert back.
Regards,
iostreamax
2012 Feb 27 10:20 AM
Hi iostreamax,
Checked with other transactions and same problem i have faced.
Regards,
Rajesh
2012 Feb 27 11:15 AM
Hi,
The problem seems in code then.
Are you passing below parameter in you ALV Grid Function module?
call function 'REUSE_ALV_GRID_DISPLAY'
exporting
i_callback_program = sy_repid
Regards
Vinit
2012 Feb 28 1:46 AM
Hi Vinit,
Iam passing i_callback_program to ALV Grid Function module.
Regards,
Rajesh
2012 Feb 27 10:29 AM
Hi,
You can actually implement an enhancement ,to avoid going to the first screen of the transaction.
Check out the program ' SAPLCPDI ' in se38.
Include the following piece of code in the implicit enhancement point at the beginning of the form 'ok_code_prep' in the module 'anf_exit' that exist in the include 'LCPDII10' in PAI
IF SY-DYNNR EQ 1001.
Leave Program.
ENDIF.
<removed by moderator>
Best Regards,
Rofin
Edited by: Thomas Zloch on Feb 27, 2012
2012 Feb 28 2:03 AM
Hi Rofin,
I have implemented the implicit enhancement in the form you have mentioned. But the form or enhancement is not even triggering during calling the transaction or coming back from transaction.
Regards,
Rajesh
2013 Jul 22 2:08 PM
Hi Frends,
Try to using Function Module "FKK_CRPO_VKONT_DISPLAY" passing business partner and contract account. You can directly go to Contract Account general dispaly option and coming go back ALV main screen when using "BACK" command from CAA3 screen.
Ex.
CALL FUNCTION 'FKK_CRPO_VKONT_DISPLAY'
EXPORTING
i_xdisplay = gc_x
i_gpart = lv_gpart
i_vkont = lv_vkont.
Thanks,
Apurba Biswas.
2015 Jan 07 1:33 PM
Hi Friends,
you can use below code
lv_tab = 'HRP1026'.
SET PARAMETER ID : 'DTB' FIELD lv_tab.
CALL TRANSACTION 'SE16' AND SKIP FIRST SCREEN.
SUBMIT ztraining2 AND RETURN.
program : ztraining2
**********************************************************************************
CALL TRANSACTION 'ZTRAINING2'.
**********************************************************************************
creation of t-CODE :
create a transaction : ZTRAINING2 in SE93 as below
give the short text and select the start object as : Transaction with parameter
give t-code : SE16
CHECK SKIP INITIAL SCREEN
check all GUI support and save the T-code.
2015 Mar 02 11:29 AM
Hi friends,
What do you think the results?
I used alv hotspot.
FORM user USING r_ucomm LIKE sy-ucomm rs_selfield
TYPE slis_selfield .
READ TABLE gt_alv INTO gs_alv INDEX rs_selfield-tabindex.
IF rs_selfield-fieldname EQ 'BELGE'.
SET PARAMETER ID '80B' FIELD gs_alv-belge.
CALL TRANSACTION 'FPE3' AND SKIP FIRST SCREEN.
ELSEIF rs_selfield-fieldname EQ 'GPART'.
SET PARAMETER ID 'BPA' FIELD gs_alv-gpart.
CALL TRANSACTION 'FPP3' AND SKIP FIRST SCREEN.
ELSEIF rs_selfield-fieldname EQ 'VKONT'.
SET PARAMETER ID 'KT0' FIELD gs_alv-vkont.
CALL TRANSACTION 'CAA3' AND SKIP FIRST SCREEN.
ENDIF.
FPE3 and FPP3 is running. But CAA3 is incorrect.
is the correct answer enhancement ?