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: 

Embedding transaction into program

Former Member
0 Kudos

Hello everybody!

Is it possible to embed a transaction into another?

I want to create a program which contains a tabstrip. In this tabstrips I want to embed several different transactions (e.g. SD, or CS ), which already exist in SAP.

Best regards and thanks for your help!

1 ACCEPTED SOLUTION

Former Member
0 Kudos

My questions received some updates

Is it possible to embed a transaction where some of its textfields are hidden (customizing)? The important thing is, that the textfields of the "real" transaction are not hidden.

Best regards!

7 REPLIES 7

jayanthi_jayaraman
Active Contributor
0 Kudos

Hi,

Try using call transaction in PAI when the tab is pressed.

Former Member
0 Kudos

Hi Patrick,

You can do it ....

In the PAI of the screen you need write the code as follows --

*&---------------------------------------------------------------------*
*&      Module  USER_COMMAND_0100  INPUT
*&---------------------------------------------------------------------*
*       text
*----------------------------------------------------------------------*
MODULE user_command_0100 INPUT.
  CASE sy-ucomm.
    WHEN 'BACK'.
      LEAVE TO SCREEN 0.
    WHEN 'FCODE1'. " Func. code for 1st tab
      CALL TRANSACTION 'MM01'.
    WHEN 'FCODE2'.  " Func. code for 2nd tab
      CALL TRANSACTION 'SE11'.
    WHEN 'FCODE3'.  " Func. code for 3rd tab
      CALL TRANSACTION 'CS02'.
    WHEN  .....
   .
   .
   .
  ENDCASE.
ENDMODULE.                 " USER_COMMAND_0100  INPUT

Regards

Pinaki

Former Member
0 Kudos

My questions received some updates

Is it possible to embed a transaction where some of its textfields are hidden (customizing)? The important thing is, that the textfields of the "real" transaction are not hidden.

Best regards!

0 Kudos

Hi ,

you can use the transaction variant for the required transactions .

Then from your code of PAI according to the tabstrip selection call the

created VARIANT TRANSACTION .

Regards

Pinaki

0 Kudos

As far as I experienced, this way changes the whole transaction in SAP. I just want to use a modified version, which does not change the original one.

Thanks for your help (& patience)!

0 Kudos

Hi Patrick,

First you create a vriant from transaction SHD0 .

Now in the Standard Variants tabstrip if you activate the

variant ( created by you) , the standard transaction will be changed by the

variant.

But if you crate a Variant Transaction using the variant ( created by you)

for a particular transaction.You will get the the variant transaction customised by the

Variant. The standard transaction will be as it is.

Accordingly you can call the standard and variant transaction.

Note : To create the variant transaction after you have created the Variant -

you can use Goto (of manu bar) from SHD0 transaction and

then Create Variant Transactions ...

Regards

Pinaki

0 Kudos

Hi,

You can create a new Transaction Variant using SHD0 transaction.

Its helps you in hiding/defaulting fields.