cancel
Showing results for 
Search instead for 
Did you mean: 

Call transaction for MIR7/MIRO using set parameter Id not working

Former Member
0 Kudos
4,189

Hi,

I am not able to do Call Transaction for MIRO/MIR7 though I am doing as below:

For MIR7  - >

SET PARAMETER ID 'BUK' FIELD p_comp.

     SET PARAMETER ID 'RBN' FIELD p_inv.

      CALL TRANSACTION 'MIR7'.

For MIRO -

SET PARAMETER ID 'BUK' FIELD p_comp.

SET PARAMETER ID : 'RBN' FIELD p_inv ,

    CALL TRANSACTION 'MIRO'.

but the transaction is not called with the field value p_inv.

Checked SAP note 381593.   ...and do not want to use Bapi....

This I am doing from Workflow and calling the transaction. I am also checking for any enhancment if possible.

tell me how to achieve this....

Thanks,

View Entire Topic
suchomel
Explorer
0 Kudos

Hi,

try to call MIR4 and then menu "Edit->Display/Change" (F7). Code is:

set parameter id 'RBN' field '1234'.set parameter id 'GJR' field '2024'.

bdcdata-program = 'SAPLMR1M'.
bdcdata-dynpro = '6150'.
bdcdata-dynbegin = 'X'.
append bdcdata.

clear bdcdata.
bdcdata-fnam = 'BDC_OKCODE'.
bdcdata-fval = '/00'.
append bdcdata.

bdcdata-program = 'SAPLMR1M'.
bdcdata-dynpro = '6000'.
bdcdata-dynbegin = 'X'.
append bdcdata.

clear bdcdata.
bdcdata-fnam = 'BDC_OKCODE'.
bdcdata-fval = '/EPPCH'.
append bdcdata.

call transaction 'MIR4'
using bdcdata mode 'E' update 'S'.

Tomas