07-08-2020 8:59 AM
Hi Friends,
In tcode PK13N, Tabular view output, need to display one more field.
In an Implicit enhancement, I have set the filed no_out = space
before the below class, I have implemented the ehmancement.
But inside the class CL_GUI_ALV_GRID, method SET_TABLE_FOR_FIRST_DISPLAY, FM LT_FC_EXTERNAL_TO_INTERNAL change the field NO_OUT = 'X'.
what the FM LT_FC_EXTERNAL_TO_INTERNAL Does?. How to handle this scenario?
Thanks with Regards,
Vallamuthu M
07-08-2020 9:13 AM
Hello vallamuthu.madheswaran2
Please provide more information. What is the field? Where did you implement the Implicit Enhancement? What is the code of the enhancement?
Kind regards,07-08-2020 9:21 AM
Hi mateuszadamus,
Thank for your update. I have added on customised field in PKPS and PKHD. It reflects in fieldcatlog with no_out = 'X'.
Before calling the class CL_GUI_ALV_GRID method SET_TABLE_FOR_FIRST_DISPLAY, I have implemented the ehnacement and the the customized field no_out = 'X'.
I have edited my question. Please read it.
Thanks with Regards,
Vallamuthu M.
07-08-2020 10:25 AM
Please use the "Comment" feature to provide more information. "Answer" is for proposing a solution.
07-08-2020 10:58 AM
Hi,
In include LMPKPFC1, Line no 92 to 167 are building the fieldcat. after that i have added the fieldcat values.
Ater line no 167
Thanks with Regards,
Vallamuthu M.
07-08-2020 11:11 AM
I see it being in the FORM SET_FIELDCAT231. This procedure is called in BUILD_OUTPUTTAB231 procedure, in which there is a BADI call.
Questions arise:
07-08-2020 12:48 PM
HI mateuszadamus,
Thanks for your valuable update.
I have implemented the BADI. the code has triggered. but result is failure. What I explained in the main post, the same thing happend.
Thanks with Regards,
Vallamuthu M.
07-08-2020 1:30 PM
To be honest I don't see a reason why it should not work. The BEFORE_FIRST_DISPLAY BADI method is executed in include LMPKPFC1 line 392. It's called just before the ALV is shown I propose you put a break-point there and see what is going on. Maybe there is some additional BADI implementation which changes the values.
07-08-2020 10:25 AM
I will repeat my request - please provide more information. Where did you implement the Implicit Enhancement (specific include and line)? What is the code of the enhancement (please paste the actual code, if possible)?