2014 Nov 12 1:00 PM
Hi there,
I have a requirement to insert a hard code in an user-exit to check some informations... I really hate hard codes such this, and I'd like to know if someone could help me with this issue.
I need to retrieve characteristic values from T-CODE CL24N.
1 - I found entries in CAWN table but I don't know how to "convert" ATFLV field to string, or number.
2 - I have no idea which one is the selected value (100000,01 - 200000,00 BRL)
Does anyone know how to do that?
2014 Nov 12 4:02 PM
Hi/Olá Thiago,
To retrieve characteristic values, pay attention for mainly tables about that: KLAH, KSSK, CABN, CAWN and AUSP.
[PT] Para buscar valores de classificação, você deve prestar atenção aos dados das principais tabelas a respeito: KLAH, KSSK, CABN, CAWN e AUSP.
Did you already try to use FM "CLAF_CLASSIFICATION_OF_OBJECTS"?
[PT] Chegaste a tentar usar a função "CLAF_CLASSIFICATION_OF_OBJECTS"?
Follow an example to use it, where we get some classification for customer:
[PT] Segue um exemplo de uso dela, onde buscamos algumas informações de classificação do cliente:
Any doubt, please let me know about it!
[PT] Qualquer dúvida a respeito, por favor me avise!
Best regards/Atenciosamente,
Alexandre B. Dambrowski
2014 Nov 12 3:07 PM
Hi Thiago,
For 1. you can use function QSS0_FLTP_TO_CHAR_CONVERSION.
For 2. Marck 'Check conversion exist' in User paremeters to be able to see the charateristic name.
Regards.
2014 Nov 12 3:47 PM
2014 Nov 12 4:02 PM
Hi/Olá Thiago,
To retrieve characteristic values, pay attention for mainly tables about that: KLAH, KSSK, CABN, CAWN and AUSP.
[PT] Para buscar valores de classificação, você deve prestar atenção aos dados das principais tabelas a respeito: KLAH, KSSK, CABN, CAWN e AUSP.
Did you already try to use FM "CLAF_CLASSIFICATION_OF_OBJECTS"?
[PT] Chegaste a tentar usar a função "CLAF_CLASSIFICATION_OF_OBJECTS"?
Follow an example to use it, where we get some classification for customer:
[PT] Segue um exemplo de uso dela, onde buscamos algumas informações de classificação do cliente:
Any doubt, please let me know about it!
[PT] Qualquer dúvida a respeito, por favor me avise!
Best regards/Atenciosamente,
Alexandre B. Dambrowski
2014 Nov 12 5:06 PM
2014 Nov 12 5:40 PM
Thiago,
In your case, to get values about "02 PX" objects, you must use Object parameter "02PX" on FM "CLAF_CLASSIFICATION_OF_OBJECTS"!
If you need to get charateristics for all objects, you could use this FM insite a loop from KSSK or select directly from CABN/CABNT, CAWN/CAWNT and AUSP tables, as you need!
- CL24N Transaction:
- Table KLAH – Filling fields KLART & CLASS
- Table KSSK – Filling fields KLART & CLINT (KLAH-CLINT)
- FM "CLAF_CLASSIFICATION_OF_OBJECTS" results:
Best regards/Atenciosamente,
Alexandre B. Dambrowski
2014 Nov 12 6:11 PM
2014 Nov 12 6:20 PM
You're welcome!
Best regards/Atenciosamente,
Alexandre B. Dambrowski