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: 

BDC & exit from tranction

Former Member
0 Kudos
166

Hi,

I am using BDC to start transaction MM01. I am only using BDC to skip the first initial screens, in which you need to enter the material number & type, views and plant/storage location data, etc. Then the user must fill the rest of the data manually.

Now the problem is that if I want to exit the transaction (without filling the data), it is not possible. Only the green "back" button is enabled, and I cannot use that to exit the transaction, since there are mandatory fields missing, and I am getting errors due to the missing mandatory fields.

If I launch the transaction directly, also the yellow exit button is available, and I can exit the transaction without filling the mandatory fields.

Is there any trick to avoid this problem? Or should I just forget the whole BDC thing?

Regards,

Pa

2 REPLIES 2

Former Member
0 Kudos
111

Hi,

Check the values exits in these fields material number & type, views and plant/storage location data, etc before calling the MM01 tcode. Depending on the value exists in these fields call the Tcode this way..

IF material number & type, views and plant/storage location data, etc is not initial.

CALL TRANSACTION 'MM01' skip the first initial screens.

ELSE.

CALL TRANSACTION 'MM01' .

ENDIF.

Former Member
0 Kudos
111

Hi,

Just enter any valid value in it and press ESC.

By entering value in the mandatory fields, back button will be enabled.

With valid value I mean, if the field is numeric then dont enter any chars in it.

Let me know if this does not solve.

Mubeen