Skip to Content

Is it possible to know programatically if a transaction code is in edit mode?

Hi Experts,

Is it possible to know programatically if a transaction code is in edit mode/display mode?

Please help me if anyone knows.

Regards,

Kasi.

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

2 Answers

  • Best Answer
    avatar image
    Former Member
    Jan 14, 2015 at 05:24 AM

    May i know which transaction are you looking for ?

    In SD, it can be found using variable T180-AKTYP.

    V =  Change

    H = Create

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Jan 14, 2015 at 06:04 AM

    Hi Prakasareddy,

    Which transaction code are you talking about in specific?

    You can refer the thread-

    http://scn.sap.com/thread/2088066

    Also,

    Lock is placed in the edit mode on the objects in Transactions like VL02/VL03/VT02/VT03 etc, which can we checked using SM12 or the lock objects with function ENQUEUE/DEQUEUE.

    Depending on the lock probably you can export/import a Memory Variable which can be further used in your program.

    But i doubt if there is any system variable giving out this information since the transaction codes itself for change and display are totally different in most of the cases (02-change and 03-display).

    And if you check this change of mode happening by activating a debugger, you will notice that this change takes place through variables local to the program.

    Regards,

    Gayatri Gadre

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member kasi konda

      Hi,

      Can you use this?

      call function 'VIEW_MAINTENANCE_CALL'
                 exporting
                      action                              = 'U'
                      show_selection_popup   = range_limits_input
                      view_name                     = <viewname>
                      variant_for_selection      = variant
                      check_ddic_mainflag     = 'X'                "MF 081100
                 tables
                     dba_sellist                  = rangetab
                      excl_cua_funct          = fu_to_excl
                 exceptions
                      foreign_lock               = 2
                      no_tvdir_entry            = 8.

      It automatically shows who has locked the particular view i.e the data is locked by which user...

      Thanks

      KH