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

problem with call transaction?

Former Member
0 Likes
1,208

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.

12 REPLIES 12
Read only

Former Member
0 Likes
1,179

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.

Read only

hymavathi_oruganti
Active Contributor
0 Likes
1,179

what did u code in the 'back' button?

try writing leave to screen 0.

Read only

0 Likes
1,179

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

Read only

0 Likes
1,179

<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>

Read only

0 Likes
1,179

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.

Read only

0 Likes
1,179

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.

Read only

0 Likes
1,179

hi dines,

better u write submit report in the back button logic

Read only

Former Member
0 Likes
1,179

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.

Read only

Former Member
0 Likes
1,179

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.

Read only

0 Likes
1,179

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.

Read only

0 Likes
1,179

hi dinesh,

u can ry like this,

perform for bdc,

submit the same report.

Read only

Former Member
0 Likes
1,179

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.