06-20-2016 2:53 PM
Hello.
We have an ALV-Table with a field NUMC, lengh = 6. The content of the field is a key "02". There exists a conversion table where the 02 gets to text "XXXXXXXXXX". See attachment.
In the dynpro ALV displays the text and I have no idea how this happens.
Does anybody know?
Best regards
Gerhard
06-20-2016 9:34 PM
It's programmed through:
1) the field catalog: DRDN_HNDL, DRDN_FIELD, DRDN_ALIAS, OUTPUTLEN
2) the method SET_DROP_DOWN_TABLE (of cl_gui_alv_grid)
Search the forum for more information (and the must: An Easy Reference For ALV Grid Control -> http://scn.sap.com/docs/DOC-10353 )
06-20-2016 3:05 PM
May be the text "XXXXXXXXX" you are seeing is related to value (in key - value pair).
If that is not the case then I guess you are checking some thing wrong here as the field is of type NUMC and length is 6, in this case you should not be seeing anything other than numbers (0 to 9) in that field.
-Chandra
06-20-2016 4:19 PM
Hi Gerhard,
I guess the field catalog of the NUMC field has been changed to character in output. Please check.
Regards,
Silver
06-20-2016 9:34 PM
It's programmed through:
1) the field catalog: DRDN_HNDL, DRDN_FIELD, DRDN_ALIAS, OUTPUTLEN
2) the method SET_DROP_DOWN_TABLE (of cl_gui_alv_grid)
Search the forum for more information (and the must: An Easy Reference For ALV Grid Control -> http://scn.sap.com/docs/DOC-10353 )
06-23-2016 8:48 AM
Hello.
I've done
and
and the result is
but I expected to see "Test ADVSLK".
What did I wrong?
Best Regards
Gerhard
06-23-2016 9:26 AM
Hi,
for display the internal value plus text you set a flag like below image:
Let me know,
AI
06-23-2016 9:50 AM
You also have demo programs to help you: BCALV_TEST_GRID_F4_HELP and BCALV_EDIT_07.
It's also possible that you need to empty the ALV buffer -> program BALVBUFDEL (it buffers some element of the field catalog)
07-01-2016 2:38 PM
Hello.
The solution was:
LS_FCAT-OUTPUTLEN = '60'.
LS_FCAT-CONVEXIT = 'ZCONS'.
Thank's for your help.
Best Regards.
Gerhard
07-06-2016 8:51 PM