07-19-2016 5:10 AM
Hi ABAP Experts,
In my subroutine Create Field Catalog, the column Sold-to Party is always be color-coded in display although I disabled the KEY field catalog option ( WA_FCAT-KEY = 'X' ). I also tried to re-activate the report many times but it did not work.
Thanks in advance,
Danny
07-20-2016 5:33 AM
Dear Danny,
If you want to delete the color in your Sold-to-party column.
Please remark the coding when defined in build_alv_layout:
gd_LAYOUT-coltab_fieldname = 'CELLCOLOR'. "CTAB_FNAME
AND
remark the coding when populate data for cellcolor column.
Regards,
Yance
07-19-2016 7:05 AM
Hi,
Check your Internal Table structure. The issue might be with declarations.
Regards,
Venu
07-19-2016 7:09 AM
Hi Venu,
Here is my internal table. Is there anything that I need to modify ?
Regards,
Danny
07-19-2016 7:14 AM
07-19-2016 7:26 AM
Sorry Venu . Copy and paste image does not work. I need to save it as a file and insert it.
Regards,
Danny
07-19-2016 8:17 AM
Dear Danny,
Please remark the coding when defined in build_alv_layout:
gd_LAYOUT-coltab_fieldname = 'CELLCOLOR'. "CTAB_FNAME
AND
remark the coding when populate data for colum cellcolor.
Regards,
Yance
07-19-2016 7:07 AM
Execute report BALVBUFDEL to reset ALV buffer, in case of doubt, perform the Consistency Check, check current field catalog.
Regards,
Raymond
07-19-2016 7:33 AM
Hi Raymond,
I just run the report and check Consistency, still the same .
Regards,
Danny
07-19-2016 7:58 AM
Could you display the field catalog record for this key field (I wasn't expecting the check to return an error ) Also check for some ALV default variant (try to delete/recreate).
Regards,
Raymond
07-20-2016 7:33 AM
Can you post the actual field catalog for the "key" field from Consistency check?
07-19-2016 7:27 AM
Hi Danny,
Change this statement WA_FCAT-TABNAME = 'LT_alvdata'
as ... WA_FCAT-TABNAME = 'LT_ALVDATA' .
Note : In single quotations you should place Capital Letters Only...
Thanks ,
Vamsi.
07-19-2016 7:35 AM
Hi Vam,
Yes, I just followed your advice but the outcome does not change.
The weird thing is if I enable or disable KEY field for other fields, I can see them changed !!!!
Regards,
Danny
07-19-2016 8:20 AM
This theorically should not effect it but try the following steps:
1-change declaration from TYPE VBRK-KUNAG to TYPE CHAR10
2-put WA_FCAT-KEY = space
3-activate
3-Run the BCDEL... report suggested by Raymond
4-run your report.
As i stated, things should not change but in this way you are sure the alv do not "feel" some strange external key on VBRK-KUNAG
07-20-2016 5:23 AM
Hi Simone,
I did all your suggested steps but it seems Sold-to Party column still be treated as key field.
Regards,
Danny
07-19-2016 9:52 PM
Hi,
just see in Debug before you call the ALV if the field catalog has any key updated? if you find so find the root cause else try to modify the internal table and check?
Thanks,
Sunil.
07-20-2016 5:29 AM
07-20-2016 5:46 AM
07-20-2016 6:04 AM
Hi Danny,
I just ran your report and i didn't get any colored column for Sold-to Party. your code is correct.
Still if you want then put wa_fcat-key = '' for that KUNAG field in field catalog.
Did you ran the report which Raymond asked you to for resetting alv buffer.
Also check the variant which you are passing for layout.
Regards
Ashish
07-20-2016 6:17 AM
Hi Ashish,
Yeah, I thought so. Here is the result I ran the report. Is that correct ?
Now, I have another issue. Suddenly, value of Sales Order type become 'TA' which is unconverted value in field VBRK-AUART. Do you know what might happen ?!
Regards,
Danny
07-20-2016 6:29 AM
Hi,
It's a problem of conversion exit. I also got the same value in the report.
Put a conversion routine for 'CONVERSION_EXIT_AUART_OUTPUT' for that field value .
07-20-2016 7:04 AM
Hi Ashish,
You are right. I use the function and got OR value.
Thanks,
Danny
07-20-2016 7:08 AM
07-20-2016 7:12 AM
Just add required information to the field catalog. After
WA_FACAT-FIELDNAME = 'AUART'.
add either some
WA_FACAT-CONVEXIT = 'AUART'.
or even a
WA_FACAT-EDIT_MASK = '==AUART'.
You could also (better) use ddic reference (ref.Generating the Field Catalog Manually)
WA_FACAT-REF_TABLE = 'VBAK'.
WA_FACAT-REF_FIELD = 'AUART'.
Regards,
Raymond
07-20-2016 7:26 AM
Still unsolved . Not sure what happened to SAP DEV system and my report !!!
Danny
07-20-2016 5:33 AM
Dear Danny,
If you want to delete the color in your Sold-to-party column.
Please remark the coding when defined in build_alv_layout:
gd_LAYOUT-coltab_fieldname = 'CELLCOLOR'. "CTAB_FNAME
AND
remark the coding when populate data for cellcolor column.
Regards,
Yance
07-20-2016 5:44 AM
Hi Yance,
I also tried it but no effect.
I use wa_layout-coltab_fieldname = 'CELLCOLOR'. " Cell color Column Name to colorize the percentage column.
Regards,
Danny
07-20-2016 2:10 PM
Dear Danny,
Have you tried to run this program (BCALV_BUFFER_DEL_SHARED) ?
Regards,
Yance
07-21-2016 12:49 AM
Hi Yance,
Yup, I just tried your advice but it is still not affected.
Regards,
Danny
07-21-2016 3:07 AM
Dear Danny,
I tried your coding in my environment, It is OK..not color in Sold-to-party column.
Do you still have that problem ?
Regards,
Yance
07-21-2016 4:03 AM
Hi Yance,
Well, even Ashish run my code and he did not have colored column Sold-to Party.
I still have the problem. Not sure what wrong is with ALV buffer ?!!!
Regards,
Danny
07-21-2016 4:20 AM
Dear Danny,
Have you tried to change the field name (KUNAG) yet?
Regards,
Yance
07-21-2016 5:26 AM
Hi Yance,
That is nice. Well, the issue is gone now. I changed the field name to KUNAG1.
Thank you so much.
Danny
07-21-2016 10:04 AM
Hi
You should correct the code where you fill the ALV catalog because you're partially setting it
Perhaps that strange bug is due to the ALV catalog not completely filled