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

Logic needed

Hi

I created ALV report.

i am moving it_z1log1 data to it_final.

MOVE-CORRESPONDING it_z1log1 TO it_final

.

It_final is my final internal table.

Output coming properly. In Alv output i want to display

it_z1log1 records in red color. how to do thos. Pls help me

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

4 Answers

  • Best Answer
    Posted on Jun 19, 2008 at 08:09 AM

    in both the tables..create another field as wf_flaG. IN THE TABLE it_z1log1 FILL THAT FIELD AS x FOR AL THE RECORDS...

    tHEN wen u use MOVE-CORRESPONDING it_z1log1 TO it_final

    in the it_final table only the records copied from it_z1log1 , will have the field wf_flaG as x.

    Use this as a differentiating factor...and accordingly use a changed colour....

    Hope this helps u out....

    Reward points if the above ans is useful...

    Add a comment
    10|10000 characters needed characters exceeded

    • Former Member Rudra Prasanna Mohapatra

      Hi Rudra

      I tried the following. But all fields highlighted in Blue clour. How to highlight Flag = X reccords

      gi_fieldcatalog-fieldname = 'MANDT'.

      gi_fieldcatalog-tabname = 'it_final'.

      gi_fieldcatalog-seltext_m = 'Client'.

      if it_final-flag = 'X'.

      gi_fieldcatalog-emphasize = 'C111'.

      endif.

      APPEND gi_fieldcatalog TO gi_fieldcatalog.

      CLEAR gi_fieldcatalog.

  • author's profile photo Former Member
    Former Member
    Posted on Jun 19, 2008 at 08:07 AM

    Hi,

    Refer to following link.

    http://www.sap-img.com/abap/line-color-in-alv-example.htm

    Hope its usefull to you.

    Reward pts. if helpfull.

    Regards,

    Dhan

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Jun 19, 2008 at 08:09 AM

    hi do like this ...for the fields of the table it_z1log1 ..

    it_fieldcat-fieldname = 'FIELD'.

    it_fieldcat-tabname = 'IT_Z1LOG1'.

    it_fieldcat-reptext_ddic = 'desc'.

    it_fieldcat-emphasize = 'C111'.

    append it_fieldcat .

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Jun 19, 2008 at 08:10 AM

    hi kumar..

    for this you hav to fill the emphasize option in fielcatalog for the correponding fields of t_z1log1..

    to show those fields in color

    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.