Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Get data from Miro screen

flvia_s
Participant
0 Likes
1,707

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!

1 ACCEPTED SOLUTION
Read only

amy_king
Active Contributor
0 Likes
1,044

Hi Flávia,

Importing parameter I_RM08M is a structure. I believe you want I_RM08M-EBELN.

Cheers,

Amy

3 REPLIES 3
Read only

amy_king
Active Contributor
0 Likes
1,045

Hi Flávia,

Importing parameter I_RM08M is a structure. I believe you want I_RM08M-EBELN.

Cheers,

Amy

Read only

0 Likes
1,044

No, this field is blank....

Read only

amy_king
Active Contributor
0 Likes
1,044

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