2014 Jun 12 8:55 AM
Hello,
I have used the below code to enable the edit and display functionality in transaction CJ20N,
IF sy-ucomm EQ 'TOGGLE'.
LOOP AT SCREEN.
IF screen-input = 1.
screen-input = 0.
ENDIF.
MODIFY SCREEN.
ENDLOOP.
ENDIF.
I have put this code in the PBO - module output.
The problem is that the toggle functionality is not working as per the main screen mode. When I am shifting the tabs, the fields in the customer enhancement tab are automatically changing to edit mode though the main screen mode is in display mode.
Has anyone come across this situation, I have gone through all the posts related to this topic but could not find the answer.
Thanks in advance.
Chakravarthy
2014 Jun 12 9:04 AM
Well why did you do that, let SAP manages the switch betwen display and change modes, and use correctly the Customer-Exits and BAdI provided,
Also some rules
Regards,
Raymond
2014 Jun 12 9:04 AM
Well why did you do that, let SAP manages the switch betwen display and change modes, and use correctly the Customer-Exits and BAdI provided,
Also some rules
Regards,
Raymond
2014 Jun 12 1:04 PM
Hi Raymond,
thanks for the reply.
I have made the changes as you have suggested and its working. 🙂
I have made the required declerations in global area and used the flag as below in the PBO.
IF zmode EQ 'X'.
LOOP AT SCREEN.
IF screen-input = 1.
screen-input = 0.
ENDIF.
MODIFY SCREEN.
ENDLOOP.
ENDIF.
When I am doing this in the PAI, the subscreen is not having any impact of edit/display button.
Will there be any repurcussions when we use PBO?
Can you please elaborate on the rules part.
Thanks again.