Application Development 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: 

How to leave a user in a screen during BDC

Former Member
0 Kudos

Hi,

I have done a BDC program in which some views of a material needs to be changed via MM02. But I need to leave the user at the Work scheduling screen.

In the BDC data table I have populated it with the data for other required screens and then ended it at the work scheduling screen... no further data is populated in the BDC internal table. But it does not stop at the work scheduling screen... it returns back to my program without stopping there.

Please help in this and tell me what to do.

1 ACCEPTED SOLUTION

Former Member
0 Kudos

hi,

if you write to field something wrong your BDC stops on that screen...

and user will correct it?

regards,darek

8 REPLIES 8

Former Member
0 Kudos

hi,

if you write to field something wrong your BDC stops on that screen...

and user will correct it?

regards,darek

0 Kudos

I am doing CALL TRANSACTION 'MM02'... in MODE 'N'....

at first I am filling up some other views for the material....

then I want the screen to stop at work scheduling view and allow the user to enter/change anything in this screen. After the user's action, the user clicks the save.. then it should save the data and then it should return to my program...

But currently, my program does the BDC... saves the data for the other views correctly and then returns back to my program without stopping at the work scheduling view...

I have tried the BDC with MODE 'A'.. and its working fine... it stops at the work scheduling screen... but it does not stop when MODE is 'N'...

Please tell me how to do this...

0 Kudos

hi,

try with mode 'E'

CALL TRANSACTION 'MM02'... in MODE 'E'....

0 Kudos

Hi Siddharth,

My requirement is to process the other views and then leave the user at the work scheduling view. Then after the user's action, it should return to my program.

I don't think MODE 'E' will work as it will not stop at the required screen if everything is fine...

0 Kudos

Hi,

For mode 'N' it will not stop at the screens, this is the reason they have given two other modes...

mode 'E' and mode 'A'

for mode 'E' only when there is some error in the screen then only it will stop and mode 'A' will stop at all screens....

I apologize i still didn't get what exactly you require when you have mode 'A' working exactly with what you require...

Regards,

Siddarth

0 Kudos

Hi,

My requirement is: I have to change some data for some views for a material... which I am doing thru BDC...

But after populating these data, the work scheduling view screen should be displayed to the user in change mode. The user then may change something there and then when the user clicks SAVE button... all the changed data should be saved for that material and the control should return back to my program where a report is displayed.

Now when I tried with MODE 'A', the BDC worked correctly and stopped at the work scheduling screen as I had populated the BDCDATA table till this screen only (no further entry in this internal table). But MODE 'A" is not required as the user should not be stopped at every screen. In MODE 'A', when I reached the work scheduling screen, I changed some data, pressed SAVE.. the data got saved and I was returned to my program..

But this does not work when in MODE 'N'. In MODE 'N', the control returns to my program without stopping at the work scheduling screen.

Please tell me how do I allow the user to do some change in the work scheduling screen only.

0 Kudos

Hi,

yes! i got your point....

in the BDC table.... the place you enter okcode for all the screens, in that okcode the place you have to press save button

instead of giving the ok code for save.... give the ok code as

/bda

this will 100% resolve your issue with mode 'N' also...

regards,

Siddarth

0 Kudos

Thanks Siddhartha. That really worked...