Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

Tcode PK13N - FM LT_FC_EXTERNAL_TO_INTERNAL - Fieldcatlog issue

vallamuthu_madheswaran2
Active Contributor
0 Kudos

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

8 REPLIES 8

mateuszadamus
Active Contributor

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,
Mateusz

vallamuthu_madheswaran2
Active Contributor
0 Kudos

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.

0 Kudos

Please use the "Comment" feature to provide more information. "Answer" is for proposing a solution.


Kind regards,
Mateusz

0 Kudos

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.

0 Kudos

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:

  1. Is there any BADI implementation which changes the field catalog defined by you?
  2. Can't you implement the BADI instead of the Enhancement?
Kind regards,
Mateusz

0 Kudos

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.

0 Kudos

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.


Kind regards,
Mateusz

mateuszadamus
Active Contributor
0 Kudos

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)?


Kind regards,
Mateusz