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

Embedding transaction into program

Former Member
0 Likes
826

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
Read only

Former Member
0 Likes
754

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
Read only

jayanthi_jayaraman
Active Contributor
0 Likes
754

Hi,

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

Read only

Former Member
0 Likes
754

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

Read only

Former Member
0 Likes
755

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!

Read only

0 Likes
754

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

Read only

0 Likes
754

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)!

Read only

0 Likes
754

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

Read only

0 Likes
754

Hi,

You can create a new Transaction Variant using SHD0 transaction.

Its helps you in hiding/defaulting fields.