05-14-2009 3:28 PM
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!
05-15-2009 8:05 AM
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!
05-14-2009 3:36 PM
05-14-2009 4:14 PM
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
05-15-2009 8:05 AM
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!
05-15-2009 8:48 AM
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
05-15-2009 8:59 AM
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)!
05-15-2009 9:37 AM
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
05-15-2009 9:45 AM
Hi,
You can create a new Transaction Variant using SHD0 transaction.
Its helps you in hiding/defaulting fields.