Search code examples
parameterstransactionsabapautofillsap-erp

How to enhance a standard Transaction, to add a Parameter ID to one of the field in one screen?


Transaction MB1A

That is the field I am interested in. enter image description here

When I analyze the field, it has no Parameter ID

enter image description here

However I'd like to be able to call this transaction and for that field to be automatically set. I have done this in the past like this:

set parameter id 'WRK' field mv_werks.
      call transaction 'MB1A'.

But there is no parameter ID in this case. So can I set a Parameter ID, or is there any workaround? Could I perhaps call the transaction in another way than with call transaction ?


Solution

  • If you put an enhancement in subroutine

    transaktions_init

    of include

    MM07MFT0_TRANSAKTIONS_INIT
    

    You can pull in the parameter ID you want and populate the field:

    RM07M-WERKS
    

    You could use either an implicit enhancement or there are several explicit enhancement points in that subroutine.