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: 

Screen maintenance logic

Former Member
0 Kudos

Hello folks,

I have a question over the screen maintenance logic applicable to 'Additional Data B' tab at the item level of an order:

Some custom screen fields are added to additional data B tab.

Now I got a requirement to work around with those screen fields. For example there are 3 fields added to the screen.

I need to code a logic for the following req.

If I enter value '2' in field1 the field2 and field3 should be enabled else should be disabled. (this part I can take care of).

The problem I am facing is in locating where to put this logic. Since this is a standard mod. pool program from SAP...I just wanted to know

1. How to add or modify screen fields to the standard screens and where to trace out the place where to put the logic for these custom fields.

In my case the mod. pool prog is SAPMV45A and screen is 4003.

Thanks in advance. I will really appreciate your responses.

1 ACCEPTED SOLUTION

Former Member
0 Kudos

Hello Naren,

If you were able to add the fields on the screen, there should also be a possibility to write the PBO logic for these fields.

Are these fields added using some user-exit or has the standard SAP program been modified ?

In case it is a user-exit, then it must have been a subscreen that you have created. The PBO logic can be written for that Subscreen in that case.

In case the standard SAP Program was modified, then you will also have to modify the PBO for the main screen (or the subscreen where these fields are displayed, corresponding to the relevant tab) and include the logic that you want.

Regards,

Anand Mandalika.

4 REPLIES 4

Former Member
0 Kudos

Hello Naren,

If you were able to add the fields on the screen, there should also be a possibility to write the PBO logic for these fields.

Are these fields added using some user-exit or has the standard SAP program been modified ?

In case it is a user-exit, then it must have been a subscreen that you have created. The PBO logic can be written for that Subscreen in that case.

In case the standard SAP Program was modified, then you will also have to modify the PBO for the main screen (or the subscreen where these fields are displayed, corresponding to the relevant tab) and include the logic that you want.

Regards,

Anand Mandalika.

Former Member
0 Kudos

Hi,

You need to add the Codein PBO of subscreen on the additional data B screen. The screen 4003 is main screen. The subscreen is 8309 in my system. You can just check the sub screen no. by pressing F1 & f9 on screen field.

regards,

Gagan

0 Kudos

Thanks for your replies.

In my case the screen number is 8459 and the program is SAPMV45A.

We had added fields to the screen 8459 and I need to code the logic in PAI. And I assume the code should looks like this.

field field1 on value-request.

module screen_input.

And I can enable or disable other 2 fields based on the value entered in field1 in the above module. This sounds good to me. What about to you guys. Does I sound good?

I am happy with your responses and rewarding points.

0 Kudos

You are right guys. The code should be written in PBO not PAI.

I did learn something from your replies. Thanks a lot.