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

SAPMV45A

Former Member
0 Likes
622

Hello All,

I am to modify an enhancement created by one of my previous colleagues. In tcode VA01 , in the additional tab the previous abaper added 3 checkkboxes inside a group box now i am to write a code so that these 3 checkboxes get disabeled. I have set breakpoints and now know which PBO module is getting called but the problem is aftere the execution of my code only two out of the 3 are getting disabeled the third one gets disabeled only if i click on it , which means after the PAI when again the PBO gets called this gets executed. Have checked the Group assingned in the screen painter but cannot make out the problem. Please help. Below is my code.

IF sy-tcode = 'VA01'.

LOOP AT SCREEN.

IF SCREEN-GROUP1 = 'G1' .

SCREEN-INPUT = 0.

MODIFY SCREEN.

ENDIF.

ENDLOOP.

ENDIF.

Thanks in advance

Nupur

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
564

hi nupur,

is the third check box which is not getting disabled comes under group G1?

and check one more thing that where exactly you are writing your code. is it inside some other condition or some thing?

Hello All,

I am to modify an enhancement created by one of my previous colleagues. In tcode VA01 , in the additional tab the previous abaper added 3 checkkboxes inside a group box now i am to write a code so that these 3 checkboxes get disabeled. I have set breakpoints and now know which PBO module is getting called but the problem is aftere the execution of my code only two out of the 3 are getting disabeled the third one gets disabeled only if i click on it , which means after the PAI when again the PBO gets called this gets executed. Have checked the Group assingned in the screen painter but cannot make out the problem. Please help. Below is my code.

IF sy-tcode = 'VA01'.

LOOP AT SCREEN.

IF SCREEN-GROUP1 = 'G1' .

SCREEN-INPUT = 0.

MODIFY SCREEN.

ENDIF.

ENDLOOP.

ENDIF.

Thanks in advance

Nupur

3 REPLIES 3
Read only

Former Member
0 Likes
564

Hi 14,

Make sure all checkboxes having same Group name.

Read only

Former Member
0 Likes
565

hi nupur,

is the third check box which is not getting disabled comes under group G1?

and check one more thing that where exactly you are writing your code. is it inside some other condition or some thing?

Read only

_IvanFemia_
Active Contributor
0 Likes
564

Hi,

check if third button is in group G1 and also if there is another loop at screen in the pbo that changes the status.

Regards,

Ivan