screen exit me51n/me52n/me53n

Question:
I have added fields in the customer screen every thing is working fine except fields are apprearing in input mode in transaction ME53n .Even though i have put screen modification code in the PBO of customer screen.
loop at screen.
if gf_aktyp eq 'A'.
screen-input = 0.
else.
SCREEN-input = 1.
endif.
MODIFY SCREEN.
endloop.
Please help me.
Answer:
Check wether the if condition before the screen-input = 0 is failing.. i have used below code for notification in enhancement QQMA0001 and its working fine..
* If the notification type is M4
IF V_QMART = 'M4'.
LOOP AT SCREEN.
IF SCREEN-GROUP1 = 'S2'.
SCREEN-INVISIBLE = 1.
SCREEN-INPUT = 0.
MODIFY SCREEN.
ENDIF.
IF SCREEN-GROUP1 = 'M4'.
IF SY-TCODE = 'IW23'.
SCREEN-INPUT = 0.
MODIFY SCREEN.
ENDIF.
ENDIF.
ENDLOOP.
ENDIF.
Answer:
Check wether the if condition before the screen-input = 0 is failing.. i have used below code for notification in enhancement QQMA0001 and its working fine..
* If the notification type is M4
IF V_QMART = 'M4'.
LOOP AT SCREEN.
IF SCREEN-GROUP1 = 'S2'.
SCREEN-INVISIBLE = 1.
SCREEN-INPUT = 0.
MODIFY SCREEN.
ENDIF.
IF SCREEN-GROUP1 = 'M4'.
IF SY-TCODE = 'IW23'.
SCREEN-INPUT = 0.
MODIFY SCREEN.
ENDIF.
ENDIF.
ENDLOOP.
ENDIF.
Answer:
I have put hardcoded breakpoint there ,but it is not stopping there.I dont no how is it able to call customer screen and display the fields in the screen.
program : SAPLXM02
subscreen 0111
Check wether the if condition before the screen-input = 0 is failing.. i have used below code for notification in enhancement QQMA0001 and its working fine..
* If the notification type is M4
IF V_QMART = 'M4'.
LOOP AT SCREEN.
IF SCREEN-GROUP1 = 'S2'.
SCREEN-INVISIBLE = 1.
SCREEN-INPUT = 0.
MODIFY SCREEN.
ENDIF.
IF SCREEN-GROUP1 = 'M4'.
IF SY-TCODE = 'IW23'.
SCREEN-INPUT = 0.
MODIFY SCREEN.
ENDIF.
ENDIF.
ENDLOOP.
ENDIF.

More Articles:

prob?
field exit?
Counting loops?
Printer assignment in Batch Jobs?
Checking New line character?
Table KONV?