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

Report based on first or starting character

Hi,

I have materials starting with M, P and G. (Ex: M0001, G29043, P76888). I need to generate reports for only those materials that start with M and those materials that do not start with M. Can this be accomplised without adding any additional InfoObjects.

1. Can this be done using user exits or any other way to create two different reports.

2. Can a single report be generated with selection option to M or Non M materials. Again w/o adding additional InfoObject.

Any help would be greatly appreciated.

Thanks,

Ace

Add a comment
10|10000 characters needed characters exceeded

Related questions

4 Answers

  • Best Answer
    author's profile photo Former Member
    Former Member
    Posted on Oct 17, 2006 at 06:42 PM

    Ace,

    You could create a variable of type exit in the query. The exit would determine the values of Material.

    hope it helps,

    Farhan

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Oct 17, 2006 at 07:03 PM

    Thanks for the reply.

    For the 2nd question can the user pick this option somehow. In the user exit can we give values to a variable that would determine which range to pick.

    Add a comment
    10|10000 characters needed characters exceeded

    • Former Member

      Ace,

      It may be a little complicated this way. You may be able to put an extra parameter in the exit that asks you for a the starting value. If that happens, I think it'll be an extra pop up for selection at runtime.

      As I said, it's not impossible but complicated.

      Why dont you just hard code the exit with some initial value?

      Hope it helps

      Farhan

  • author's profile photo Former Member
    Former Member
    Posted on Oct 17, 2006 at 08:44 PM

    You can do this with the selection option variable and use the wild card option (*). You will not be able to generate the same report with one query for starts with M and does not start with M. You would have to have separate reports.

    Thanks,

    Jeff

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Oct 17, 2006 at 07:59 PM

    Yes, I can hardcode it but I would end up creating two different reports.

    Also, lets say I created a exit to select only material which start with G, I will hard code report in exit from G000000 to G999999. Then, the user would like to select some G materials, would like to see only G1000 to G1100. In other word, is it possible to create two variable 1. cusotmer exit to select only G materials and 2. User entry exit with selection options.

    If this is possible, will it be possible to see only G materials in the 2nd variable as selecting other values doesn't make sense.

    Any help would be greatly appreciated.

    Thanks,

    Ace

    Add a comment
    10|10000 characters needed characters exceeded

    • Former Member

      Ace,

      You can try this:

      Put the exit variable to hardcode against all G’s in filter area of the report.

      Put Material also in a Restricted Key Figure and use a variable for selection options.

      This way the values you see as selection options in the RKF, should only be G values.

      Let me know how that works,

      Hope that helps,

      Farhan

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.