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

Best way to pre-populate material variable with values for users

Hi, I have a requirement to prepopulate a material variable with about 5 materials and that is the materials that will default when the query is called. The users would also need the ability to change those values.

My thought is to create a User-exit variable that derives the values from a user maintained table (infoobject).

Does anyone else have any suggestions or ideas on the best way to handle this?

Add a comment
10|10000 characters needed characters exceeded

Related questions

2 Answers

  • Best Answer
    author's profile photo Former Member
    Former Member
    Posted on Dec 07, 2004 at 09:11 AM

    Hi Kenneth,

    what you describe sound exactly like what the personalization is meant for? Then you don't have to do anything but the users type in their materials once (into the variable selection at runtime) and press the "personalization" button.

    Regards, Klaus

    Add a comment
    10|10000 characters needed characters exceeded

    • Former Member

      Sorry, I was mistaken, this only works in transaction RSRT but not in the frontend because the variable line vanishes after personlization. I agree that your suggestion is probably the best one.

      REgards, Klaus

  • author's profile photo Former Member
    Former Member
    Posted on Dec 07, 2004 at 07:51 AM

    Hi Kenneth !

    I think you idea is best way (and I think you already know how you can do it!)...but just an explaination...what does it mean 'from a user maintained table (infoobject)' ?

    Ok, right from a custom table for which your users can use SM30 to update/modify your entries, but the '(infoobject)' specification ? I hope you don't want to refer to your master data table...

    Bye,

    Roberto

    Add a comment
    10|10000 characters needed characters exceeded

    • Former Member Former Member

      I don't know if there is a best solution...

      • Infoobject

      With this option you have to create a new infoobject (ZMATERIAL) without attribute (you need only a list material codes) and then to set the authorization profile for the user in order to manage the content.

      The creation of an infoobject corresponds to a table creation, but you don't need any other specific options that belong to the infooject (as technical object)...

      • Table

      With this option you have to create a Z table with only one field and then to allow the maintenance of the table by SM30....

      In the ending, if you want to be a purist use the table, otherwise use an infoobject (but there are no significant differences !

      Bye,

      Roberto

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.