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

Data dictionary value range text in alv output

Hi,

I created a Z table with a field 'zstatus' and defined the fixed values 0,1,2 with the respective value range Doc not created, Doc created and Doc cleared.

Now in the output ALV report i have this field 'zstatus' with number 0 or 1 or 2. But for the enduser somehow they should be able to see the description defined in the value range as well.

Can you suggest me how can i display the description also in the output or is it possible to have 'F4' or search help or drill down in the alv output field.

Regards,

Anbu.

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

4 Answers

  • Posted on Oct 06, 2010 at 03:51 PM

    If you are using cl_gui_alv_grid then this can be easily displayed using fieldcatalg option f4availabl = 'X' and pass the ref. tab and ref. field.

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Oct 06, 2010 at 03:53 PM

    Hi,

    you can create a dictionary structure which includes the text field. Then you create a global table in your program using this structure.

    After getting the data from your DB table you can add the text to this new field.

    After that you use this global table for displaying your alv.

    Regards,

    Martin

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Oct 13, 2010 at 09:12 AM

    Hi,

    Got the solution, used the function module GET_DOMAIN_VALUES, pass the domain name, and TEXT ='X', you will get all the value range text defined in the domain.

    Thanks

    -Anbu

    Edited by: anbu logu on Oct 13, 2010 11:13 AM

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Oct 13, 2010 at 09:22 AM

    Hi,

    Got the solution, used the function module GET_DOMAIN_VALUES, pass the domain name, and TEXT ='X', you will get all the value range text defined in the domain.

    Thanks

    -Anbu

    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.