How to set value of Q0000-MASSN in FM HR_INFOTYPE_OPERATION


In fact HR_INFOTYPE_OPERATION is calling HR_MAINTAIN_MASTERDATA(BDC of PA30 actually), and it has a table parameter called PROPOSED_VALUES as below:


we can simply insert below data into it can set value for Q0000-MASSN:


then we can see the field be filled:



Test code as below:

  CALL FUNCTION 'HR_INFOTYPE_OPERATION'
    EXPORTING
      infty            = '0000'
      number           = p_pernr
      subtype          = pa0000-subty
      objectid         = pa0000-objps
      lockindicator    = pa0000-sprps
      validityend      = pa0000-endda
      validitybegin    = pa0000-begda
      recordnumber     = '000'
      record           = l_p0000 " data will change to
      operation        = 'MOD'
      dialog_mode      = '1'
    IMPORTING
      return           = l_bapireturn
      key              = bapipakey_tab.


similar requirement of other fields in the screen can follow this way too.


Supported operations of this FM:

*COP  = Copy
*DEL   = Delete
*DIS    = Display
*EDQ   = Lock/unlock
*INS     = Create
*LIS9   = Delimit
*MOD  = Change
*INSS  = Create for Actions is not converted to Change


Note:

1. For doing this, we have to create implicit enhancement in top of FM HR_MAINTAIN_MASTERDATA to add the data of Q0000-MASSN into table PROPOSED_VALUES as I mentioned above.

2. The solution has been tested successfully in my system.

评论 3
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值