‎2007 Sep 21 10:03 AM
Hi guys,
In my alv report if i select a line and click a button in the toolbar,then the transaction MF47 will gets executed in the background by taking the material no in the selected line.I used bdc recording when the button is clicked.this is working fine it is taking the material no in the selection screen of transaction MF47 and getting executed.When i click back button in that screen it should come back directly to the alv report again but it going to the intial selection screen of transaction MF47.
Any suggestions.
‎2007 Sep 21 10:07 AM
hi,
Instead of BDC use
<b>SET PARAMETER ID 'MAT' FIELD t_mat.
CALL TRANSACTION 'MM03' AND SKIP FIRST SCREEN.</b>
You have to find Parameter ID of the field in which u setting value.
Its available in Technical Information.
Hope it will b userful.
‎2007 Sep 21 10:07 AM
what did u code in the 'back' button?
try writing leave to screen 0.
‎2007 Sep 21 10:15 AM
i dont understand your use of BDC for this requirement. the process to call a transaction is easy.
After putting the code for double click u need to code the following thing.
set parameters id 'MAT'.(for material number)
call transaction MF47.
and when leave.
leave to screen 0.
it will work.
REWARD ME WITH GOOD POINT
‎2007 Sep 21 10:17 AM
<b>leave to screen 0</b> should help u. if not then try using "<b>call screen 1000".</b>
if not try using <b>"leave screen"</b>.
if not then try using "<b>stop"</b>
‎2007 Sep 21 10:24 AM
Hi sandeep
This is not for double clicking.The user will select a line in the report and select a button on the toolbar.Then the transaction mf47 gets executed in the background by taking the material no in the selected line and displays the screen.When i press back button it should come back directly to alv report but it is going to intial screen of transaction mf47 and then again i have to press back button to come back to my alv report.
‎2007 Sep 21 10:25 AM
Have u created that button?
Or u can write this on that button also.
case sy-ucomm.
when ....
<b>SET PARAMETER ID 'MAT' FIELD t_mat.
CALL TRANSACTION 'MM03' AND SKIP FIRST SCREEN.</b>
endcase.
‎2007 Sep 21 10:26 AM
hi dines,
better u write submit report in the back button logic
‎2007 Sep 21 10:13 AM
Hi Dinesh,
I am facing the same problem.
I tried a lot of ways couldn't get control of the called screen.
Even my coding for back button couldn't help.
Please let us know if you are able to solve the problem.
Regards,
Naveenan.
‎2007 Sep 21 10:19 AM
HI dinesh,
1. I think it will work like this only.
2. Bcos we dont have any control over the standard program of tcode MF47.
3. Hence, if we click back button of MF47, it will come back
to its initial screen only.
regards,
amit m.
‎2007 Sep 21 10:27 AM
Hi Amit
That is a valid point but in the same report I used another button in the toolbar for executing MD04 transaction.As the same way when the user selects a line and select the MD04 button it takes the material no and plant and gets executed.When i click back button in that screen it comes back directly to alv report.But for MF47 it is going back to intial screen.
Thanks.
‎2007 Sep 21 10:40 AM
hi dinesh,
u can ry like this,
perform for bdc,
submit the same report.
‎2007 Sep 21 10:23 AM
Hi amit,
You are right...
Thats wat the problem is....
Is ter a way to overcome it.
If we just call the transaction by skiping the first screen, its not working.
so only we are going for a bdc...
Pls. help!
regards,
Naveenan.