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

Problem with CALL TRANSACTION SKIP FIRST SCREEN

Former Member
0 Likes
10,468

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

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
6,661

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.

21 REPLIES 21
Read only

Former Member
0 Likes
6,661

Hi,

Can you paste a portion of your code of USER_COMMAND.

Regards,

iostreamax

Read only

0 Likes
6,661

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

Read only

Harsh_Bansal
Contributor
0 Likes
6,661

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

Read only

0 Likes
6,661

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

Read only

0 Likes
6,661

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

Read only

Former Member
0 Likes
6,661

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.

http://forums.sdn.sap.com/thread.jspa?threadID=1000859

Read only

Harsh_Bansal
Contributor
0 Likes
6,661

Hi,

Generally it comes back to the ALV output when we press back on called transaction.

Regards,

Harsh Bansal

Read only

0 Likes
6,661

Hi

Try using different transaction just to check if its problem with transaction or ALV.

Regards

Vinit

Read only

0 Likes
6,661

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

Read only

Former Member
0 Likes
6,662

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.

Read only

0 Likes
6,661

Hi Kirthi,

Its not working.

Regards,

Rajesh

Read only

0 Likes
6,661

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.

Read only

0 Likes
6,661

Hi,

Have you try the suggestion of Vinit?

If not, please try it then revert back.

Regards,

iostreamax

Read only

0 Likes
6,661

Hi iostreamax,

Checked with other transactions and same problem i have faced.

Regards,

Rajesh

Read only

0 Likes
6,661

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

Read only

0 Likes
6,661

Hi Vinit,

Iam passing i_callback_program to ALV Grid Function module.

Regards,

Rajesh

Read only

Former Member
0 Likes
6,661

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

Read only

0 Likes
6,661

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

Read only

Former Member
0 Likes
6,661

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.

Read only

Former Member
0 Likes
6,661

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.

Read only

stellgkhn
Discoverer
0 Likes
6,661

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 ?