Confusing field in Alv display
作者:互联网
IF wa_fieldcat-fieldname = 'XXXXX' .
IF g_user_flag = 'X'.
wa_fieldcat-reptext_ddic = 'YY Price'.
wa_fieldcat-seltext_l = 'YY Price'.
wa_fieldcat-seltext_m = 'YY Price'.
wa_fieldcat-seltext_s = 'YY Price'.
ENDIF.
ENDIF.
This is not a good solution,the user without authority would be confused about this field with technical field name
below are better ways to control it
- Delete the 'XXXXX' in the fieldcat itab
WA_FIELDCAT-NO_OUT = 'X'.
WA_FIELDCAT-TECH = 'X'.
标签:wa,fieldcat,Price,YY,field,seltext,Alv,display 来源: https://www.cnblogs.com/aurora-cj/p/11130821.html