2012 Dec 19 7:06 PM
Hi experts,
I'm implementing BADI MRM_HEADER_DEFAULT to change document type BLART in MIRO transaction, but I'm facing the following problem:
When trying to get "Purchasing Document", it is not visible in badi's parameters I_RBKPV and I_RM08M. Thne I tried to acess if using field-symbols:
field(25) type c value '(SAPLMR1M)RM08M-EBELN' -> did not work.
Can anyone help me?
Thanks in advance!
2012 Dec 19 7:14 PM
Hi Flávia,
Importing parameter I_RM08M is a structure. I believe you want I_RM08M-EBELN.
Cheers,
Amy
2012 Dec 19 7:14 PM
Hi Flávia,
Importing parameter I_RM08M is a structure. I believe you want I_RM08M-EBELN.
Cheers,
Amy
2012 Dec 19 7:21 PM
2012 Dec 19 9:17 PM
Hi Flávia,
I think what you want to do is to change the Details tab > Doc. Type field according to the value the user has entered into the Purchasing Document field. Is that right?
If I've understood your requirement, MRM_HEADER_DEFAULT won't work for this because at the time its method is called, there is not yet a value for Purchasing Document, hence the I_RM08M-EBELN field is blank.
When the user enters a value for Purchasing Document and hits the enter key, subroutine NEW_ASSIGNMENT in program SAPLMR1M is executed (set a break-point to verify this). What you could do is create an enhancement in this subroutine (you may want to check sy-dynnr is 6211 since the subroutine is called from multiple screens) to assign a value to RBKPV-BLART based on the value of RM08M-EBELN.
Cheers,
Amy