Skip to Content
author's profile photo Former Member
Former Member

alv report

hi in internal table i have used 5 fields and printed the alv report.

now i got the requirement to add one more field and i added it along with the 5 fields in the internal table and in the output of ALV that new field is not reflecting..?

do i need to make any setting in ALV

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

5 Answers

  • Best Answer
    author's profile photo Former Member
    Former Member
    Posted on Jul 23, 2008 at 08:36 AM

    Hi,

    To add more fields no extra setting needs to done to alv except fieldcatlog. Debug the program and see whether values are cmg for that field in internal table or not.

    If values are cmg then check your fieldcatlog. Give fieldnames in capital.

    Reward pts. if usefull.

    Regards,

    Dhan

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Jul 23, 2008 at 08:28 AM

    If u r passing the correct internal table to the alv then it shud reflect hv u activated ur program after making changes. i guess activating ur program may solve the problem.

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Jul 23, 2008 at 08:30 AM

    Hi Murali

    Check your field catalog. Field name and table name should be in capital letters

    Example

    gi_fieldcatalog-fieldname   = 'HKONT'.
      gi_fieldcatalog-tabname      = 'IT_DETAIL'.
      gi_fieldcatalog-seltext_m   = 'Account No'.
      gi_fieldcatalog-col_pos     = 2.
      APPEND gi_fieldcatalog TO gi_fieldcatalog.
      CLEAR  gi_fieldcatalog.

    Hope this will help

    Regards

    Anbu

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Jul 23, 2008 at 08:45 AM

    hi in internal table i have used 5 fields and printed the alv report.

    now i got the requirement to add one more field and i added it along with the 5 fields in the internal table

    i Hope you are using the Fieldcatalog merge function.

    if you are using the Function then you have to take care of some things

    Declaration of internal table.

    data: begin of it_data occurs 0,
             vbeln like vbak-vbeln,
            matnr like vbap-matnr,
    
           fifthfield type vbap-xxxxx,   "if you use Type it will not display
           
            end of it_data.

    when you are using merge you have to use LIKE declaration.

    can you revert back if you are not using the Function alv merge, then post your code.

    Add a comment
    10|10000 characters needed characters exceeded

    • Former Member Former Member

      Correct your code from

      CALL FUNCTION 'REUSE_ALV_FIELDCATALOG_MERGE'

      EXPORTING

      i_program_name = i_repid

      i_internal_tabname = 'W_RESULT'

      to

      CALL FUNCTION 'REUSE_ALV_FIELDCATALOG_MERGE'

      EXPORTING

      i_program_name = i_repid

      i_internal_tabname = W_RESULT

  • author's profile photo Former Member
    Former Member
    Posted on Jul 23, 2008 at 08:46 AM

    hi check this...

    you should add in the fieldcat log as well and in the internal table...first check whether the data is coming into the internal table or not..then think about the alv..

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.