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

ALV

Hai friends,

in myselection screen i have period.if i give period from jun to sep in my alv output it should display only those months that is jun jul aug sep but its displaying all months.i dont want this.can u help me in this.if poss send me the sample code.

thanks.

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

3 Answers

  • author's profile photo Former Member
    Former Member
    Posted on Nov 21, 2007 at 10:38 AM

    HI

    IN YOUR SELECT QUERY WHERE CONDITION PUT

    THAT BEGDA AND ENDDA

    LIKE THIS

    <b>BEGDA GE DATE-LOW

    AND ENDDA LE DATE-HIGH</b>

    IF YOU USE OTHER FILEDS FOR DATE THEN MENTION YOUR CONDITION LIKE THIS IN WHERE CONDITION

    THEN IT WILL TAKE ONLY THE MONTHS MENTION WILL COME AS OUTPUT

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Nov 21, 2007 at 10:43 AM

    Hi

    Create Ranges

    eg: RANGES: r_hkont FOR bseg-hkont,

    APPEND LINES OF: s_hkont TO r_hkont,

    then filter based on this field in the select query where this filed is having condition

    Hope this helps you...

    Regards

    Sreenivas

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Nov 21, 2007 at 10:45 AM

    IF i have understood your question, you have 12 fields in the ALV, one per month?.

    Then, if the user only want a few months, you have to modify the catalog to show only the months selected by the user.

    I hope that this is that you want to know.

    If you don´t know to modify the FIELD CATALOG, you can see for example this SITE: http://www.sapdevelopment.co.uk/reporting/alv/alvgrid_sort.htm

    But in this site exits a lot of information about this sure.

    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.