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

skip first screen

Former Member
1,447

Hi friends!

I need small help with calling transaction MB51. This is code that i use:

set parameter id 'MAT' field wa_output-matnr.
call transaction 'MB51' and skip first screen.

This code calls MB51 with full filled MATNR-LOW on selection screen of MB51.

How to full fill the field "posting date" (BUDAT-LOW) because this filed doesen't have a parameter.

Thanks in advance

Tomi

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
1,230

Hi Tomi,

Try the below code.



"Assume S_MATNR contains the materials 
"       S_BUDAT contains the posting date to be passed to MB51 transaction

SUBMIT RM07DOCS WITH MATNR IN S_MATNR
                                WITH BUDAT IN S_BUDAT.

Hope this helps.

Thanks,

Balaji

5 REPLIES 5
Read only

Former Member
0 Likes
1,231

Hi Tomi,

Try the below code.



"Assume S_MATNR contains the materials 
"       S_BUDAT contains the posting date to be passed to MB51 transaction

SUBMIT RM07DOCS WITH MATNR IN S_MATNR
                                WITH BUDAT IN S_BUDAT.

Hope this helps.

Thanks,

Balaji

Read only

Former Member
0 Likes
1,230

It works... but the problem is if I call the program RM07DOCS from ALV grid. After leaving from MB51 I would like to stay in my program. In your example after pressing F3 system exit from my calling program. any solution for this?

Thanks in advace,

Tomi

Read only

0 Likes
1,230

Try SUBMIT.. AND RETURN.


SUBMIT RM07DOCS WITH MATNR IN S_MATNR
                                WITH BUDAT IN S_BUDAT
                                 AND RETURN. 

Hope this helps.

Thanks,

Balaji

Read only

0 Likes
1,230

Hi,

Not sure , but try AN RETURN

SUBMIT RM07DOCS WITH MATNR IN S_MATNR

WITH BUDAT IN S_BUDAT AND RETURN.

Read only

Former Member
0 Likes
1,230

Sorry man! The solution is adding the statement "AND RETURN"

Thank you very much! 10 points for this