10-09-2007 12:12 PM
Hi all,
how can i find out wether a transaction is in display or change mode?
The transaction code is not possible because i can go to a transaction in display mode and change it via the pencil.
best regards
10-09-2007 12:16 PM
Wolf,
If you see input enabled fields, that means u r in change mode. And vice versa. Is that watr u wanna know?
10-09-2007 12:16 PM
Hi,
Can you please tell me what you mean by Transaction?.
As far as I'm aware , its the program which we can know wheter it is in change/ display mode..
And a Transaction code is attached to a report/FM ...
And you can identify locks using SM12
Reward if useful.
Regards,
Chitra
Message was edited by:
Chitra Parameswaran
10-09-2007 12:17 PM
if it is in change mode then it will be locked....
check sm12 for locks....
by that u can identify....
***********************
Make use of this table T180
T180-Screen Sequence Control: Transaction Default Values
T180-tcode = 'XXXX'
T180-TRTYP = ' ' "<---this condition for the Tcodes .
Make a where used list of this table on function module interfaces and see if this is giving you a hit .
You can make the username and the screen logic of the transaction with this.
*****************************
Check SM04 T-Code ..
Hope this will be helpful.....
10-09-2007 12:21 PM
hi,
thanks.
I need a parameter which defines whether i am in display / change mode of a specific transaction.
I have created a badi (two new fields in transaction vl03n). And now i have to implement the part in which the fields are inactive or not.
regards
10-09-2007 12:28 PM
Attach them to a MOD Group (example G1) thru Screen painter
and write code as below in the PBO... Change the values 0/1 accordingly for Input/output
<b> LOOP AT SCREEN.
if screen-group1 = 'G1'.
IF SCREEN-INPUT = 1.
SCREEN-INPUT = 0.
MODIFY SCREEN.
ENDIF.
endif.
ENDLOOP.</b>
Message was edited by:
Karthik Potharaju
10-09-2007 12:30 PM
Hi,
Please check this link it will surely help you.
https://forums.sdn.sap.com/click.jspa?searchID=5795376&messageID=4215087
Thanks.
10-09-2007 12:41 PM
hi,
you misunderstand me.
I have a dynpro (badi) with two fields.
The fields have to be inactive if you change from change mode to display mode.
So i have to implement in the PBO of my dynpro:
if <display mode> --> here i can not use the transaction code e. g. VL03N
loop at screen.
if screen-name = 'ZALIKP-YYUCR' or
screen-name = 'ZALIKP-YYCUSTDECL'.
screen-input = 0.
modify screen.
endif.
endloop.
endif.
I can not use the transaction code VL03N because i can change from display mode (transaction VL03N) to change mode (transaction VL02N) via the pencil. My problem is that the parameter sy-tcode is still VL03N!!
regards
10-09-2007 12:45 PM
Hi,
In that case you check the value of structure T180 at any point of time. The T180_TRTYP will tell u , what kind of transaction u r running. SAP changes the values of this TRTYP the moment u press the Edit ( pencil like button).
TRTYP = 'H' => Creation.
'V' => Change
'A' =>Display.
Hope it helps.
10-09-2007 12:50 PM
hi,
i think this was the best approach.
If i am in debugging i can see this table and it is filled with the right data. works fine.
My program:
if t180-trtyp = 'A'.
loop
endfi.
I have defined the table:
tables: t180.
But at runtime the table in my program is empty.
How can i get access to this table.
regards