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: 

Is transaction in display or in change mode??

Former Member
0 Kudos

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

9 REPLIES 9

former_member189629
Active Contributor
0 Kudos

Wolf,

If you see input enabled fields, that means u r in change mode. And vice versa. Is that watr u wanna know?

Former Member
0 Kudos

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

Former Member
0 Kudos

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.....

0 Kudos

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

0 Kudos

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

0 Kudos

Hi,

Please check this link it will surely help you.

https://forums.sdn.sap.com/click.jspa?searchID=5795376&messageID=4215087

Thanks.

0 Kudos

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

Former Member
0 Kudos

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.

0 Kudos

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