‎2009 May 18 11:42 AM
Hi,
I have to create a custom Tcode. It should be available in three modes create, change and display modes. I thing we can create only one Tcode. But how this should be available in change and display modes. Please brief.
Rdgs,
gsas.
‎2009 May 22 5:26 AM
hi
try to create 3 transaction codes seperately
then in the first program
IN SE51
PBO
LOOP AT SCREEN.
do the screen modifications like
if sy-tcode = '2'.
screen-active = '1'.
screen-input = '1'.
elseif sy-tcode = '3'.
screen-active = '1'.
screen-input = '0'.
endif.
modify screen.
ENDLOOP.
PAI
Regards
‎2009 May 18 12:23 PM
Hi,
Could you be more specific in your requirment.
Why do you need this transaction for?
Is this for maintaining some custom table?
Incase it is for some maintaining a custom table create a TCODE of type parameters transaction making use of SM30.
Regards,
Ankur Parab
‎2009 May 18 12:40 PM
Hi,
I am creating a module pool program, for which a Tcode is needed, that I can create thru se93. But what the requirement is , that tcode should be available in Display, create and change modes.How to handle this? Please brief.
Rgds,
gasa.
‎2009 May 18 12:46 PM
In SAP vision, for every mode (create, display and edit) three different t-codes are created, but the same screens are used. The only difference (more or less) is setting all the fields to display in PBO by using LOOP AT SCREEN.
One more thing to consider, when trying to display or edit, where to enter the number which you like to edit? In create mode there will be no need for an additional screen, but for edit and display you may want to consider creating another screen (entry screen) for entering (selecting) the number to be displayed, edited.
So, one t-code is possible, but standard would be three.
‎2009 May 19 6:51 AM
Hi,
As per my knowledge change and display transactions will have extra screen than create transactions. So you need to create 3 individual transactions for create, change and display.
if you look at the standard transactions also there is individual transactions for create,change and display.
What you need to do is for display mode you need display the details for the particual no.(lilke material no) in display mode only (that can be handled in PBO of the screens using loop at screen).
For change mode you need to display the details for the particular no (like material no.) in editable mode.
Regards,
venu
‎2009 May 22 5:26 AM
hi
try to create 3 transaction codes seperately
then in the first program
IN SE51
PBO
LOOP AT SCREEN.
do the screen modifications like
if sy-tcode = '2'.
screen-active = '1'.
screen-input = '1'.
elseif sy-tcode = '3'.
screen-active = '1'.
screen-input = '0'.
endif.
modify screen.
ENDLOOP.
PAI
Regards