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

disable a field in bach input program

Former Member
0 Likes
1,598

Hi,

I have a program that create orders, deliverys and invoices.

Sometimes we get some error on the process and the user can take the control of the program.

When that happens we need to disable some of the input fields in that case the yellow button with the arrow that exists in almost all the sap screens and that exit the batch input.

I tryed to make some research first but the issues that i got did not applyed to my case.

Thank you and best regards

João Fernandes

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
1,474

Hi,

If i create a STATUS GUI with some buttons disabled it will be functional even if i used a batch input with a standard transaction ex va01?

best regards

João Fernandes

7 REPLIES 7
Read only

krishna_k19
Contributor
0 Likes
1,474

Hi Joao ,

    Can you elaborate the scenario little more.

If you are talking about the fields enabling and disabling then we can have 2-3 options.

1) Creation of variant for that T.Code by using SHD0

2) Fields enabling and disable in SPRO level.

But in your case this is not the problem. only sometimes your facing the problem means, while passing the data you are missing something can you give more information then others will help .

Thanks in advance,

Krishna

Read only

dairolozano
Contributor
0 Likes
1,474

Hi Joao.

Are you using a custom program ?  what transactions are called by the BI for each scenario ?

With that info it will be easier for us to help you.

Regards,

Dairo

Read only

Former Member
0 Likes
1,474

Hi,

Try to modify the screen in the User exit MV45AFZZ form routine USEREXIT_FIELD_MODIFICATION for orders, check the system field SY-BINPT if the program is called in batch input.

Hope this helps.

Read only

Former Member
0 Likes
1,474

Hi

Thank you all.

I am will trying to explain more in order to give more information to all of you.

It is a custom program that call VA01, Vl01n and VF01. In all of this t-codes we want to disable the button that closes the transation (the yellow circle with the arrow) . This button is a standar option that it is on all the screens.

I hope that i made myself clear now. Thank you for your efforts. You are great.

Thank you and best regards

João Lages Fernandes

Read only

Former Member
0 Likes
1,475

Hi,

If i create a STATUS GUI with some buttons disabled it will be functional even if i used a batch input with a standard transaction ex va01?

best regards

João Fernandes

Read only

Juwin
Active Contributor
0 Likes
1,474

I don't think you can achieve what you are looking for. Probably, it would be best for you to think about other possibilities of entering transactions, rather than using BDC.

Thanks,

Juwin

Read only

0 Likes
1,474

Hi Joao.

What you suggest is a little bit tricky because it involves several transactions.  some of them might allow modifying Status-GUI with exits or enhancements but some others might not because they have different behavior, so must be analyzed case by case.

Probably you should consider using BAPIS instead of  using Batch Inputs would be safer and more stable and could give you feedback before processing, like a test mode, instead of allowing user to make adjustments "on the fly", which in some cases isn't a good practice.

Please let me know if you need more clarification or any further help.

Regards,

Dairo L.