2008 Mar 19 10:55 AM
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
2008 Mar 19 12:00 PM
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
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
2008 Mar 19 12:00 PM
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
2008 Mar 19 12:26 PM
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
2008 Mar 19 12:29 PM
Try SUBMIT.. AND RETURN.
SUBMIT RM07DOCS WITH MATNR IN S_MATNR
WITH BUDAT IN S_BUDAT
AND RETURN.
Hope this helps.
Thanks,
Balaji
2008 Mar 19 12:30 PM
Hi,
Not sure , but try AN RETURN
SUBMIT RM07DOCS WITH MATNR IN S_MATNR
WITH BUDAT IN S_BUDAT AND RETURN.
2008 Mar 19 12:29 PM
Sorry man! The solution is adding the statement "AND RETURN"
Thank you very much! 10 points for this
| User | Count |
|---|---|
| 6 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |