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

Automations in a table view

Hello to all

We have to create a new table that will be maintain by one new transaction that will use one table view of this new table.

This new table has the fields material number(MARA-MATNR) and its description (MAKT-MAKTX). So we would like that the description can be fulled automatically by the system when the user choose the material number.(as the system picks the mara-matnr and goes to the makt table to take the field makt and bring it to our new table).

Is this possible?

We read that you can´t put abap code in one view table created in TC SM30.

Regards

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

2 Answers

  • Best Answer
    author's profile photo Former Member
    Former Member
    Posted on Jan 29, 2008 at 07:22 PM

    It's possible to add ABAP code to Views generated by SM30...Just need to modify the FM generated...

    On SE11 when you create the images, you can go to the Screen Painter and add code...

    Greetings,

    Blag.

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Jan 29, 2008 at 07:28 PM

    Hi,

    Create a table maintance for that table. So a Function group will be generated. Go to this Function Group main program you will find that the flow logic of the screen which you have created can be edited.

    In PAI add your own module and add the piece of code for filling the Material Desc.

    Also for creating that module you have to create the user defined includes in the Function Group main program.

    Then create a t-code for that table maintance using SE93. (Choose the Parameter Option when creating)

    So user can use that for maintan the table.

    Thanks....

    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.