How not display all characteristics from CL02 in a smartform ? (print relevant)
Hello,
in CL02, i have 3 characteristics for a class, and I just want to display two of them.
So i check the flag "Print relevant" for the both.
In my smartform I use this function : ME_VAR_GET_CLASSIFICATION.
CALL FUNCTION 'ME_VAR_GET_CLASSIFICATION'
EXPORTING
I_MATNR = -EMATN
I_SPRAS = GV_LANGUAGE
I_EBELP = -EBELP
I_CUOBJ = -CUOBJ
I_DATE = IS_EKKO-BEDAT
I_LIFNR = IS_EKKO-LIFNR
I_UPTYP = -UPTYP
I_WERKS = -WERKS
TABLES
T_CONF_OUT = GT_CONF_OUT
EXCEPTIONS
ERROR_MESSAGE = 1
OTHERS = 2.
But this fonction return the 3 charac. even if the flag is not checked.
And if i change I_UPTYP in debug with value '1' or '5', the function return nothing.
Thanks in advance for any help.
Guillaume Rosati.
Guillaume ROSATI replied
Hello,
I finally find a solution :
I use fm GET_CHAR_LIST.
It return CHAR_LIST with a field DRURE which contains 'X', if the flag 'print relevant' is checked.
you can also check this value in table KSML. if the field AMERK contain a '1', that mean 'print relevant' is cheked.
Best Regards,
Guillaume ROSATI