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

SAP Personas - dynamic selection of line from report

Hi there,

I am stuck in a scenario, where I am searching for the list of PO via ME2N

And when the list is shown, I have edited it via personas and moved around the columns

I want to capture the line selected by the user so when the hit the button “Choose Selected”, I bring the PO related info back to the original screen. The overall goal is to integrate the GR to GI via Reservation as shown in the design:

Currently, I the script is only bringing line 10 as the recording captured the first line and is kind of hard-coded.

Thanks & regards,

Aravindan K

Image1.jpg (6.8 kB)
Image2.jpg (20.5 kB)
Image3.jpg (29.5 kB)
Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

1 Answer

  • Posted on Apr 20, 2013 at 03:52 AM

    Hi Aravindan,

    Great scenario! I haven't used ME2N before but I had a look how to do this using VA05N, which seems to be very similar.

    To solve this problem using Personas, you need to use the Copy Table action (copies the whole table in to a two dimensional array), and some simple JavaScript to extract the content that you are interested in. The only thing that is missing is the information about the currently selected row. To get this information you need to bind the script (button) to the grid using the PushOnEnter property. By doing so, the script (button) is executed, when the table is focused and the enter key is pressed.

    An example JavaScript snippet is args.value = args.table[3][parseInt(args.row) + 1] if you want to copy the value of the third column of the currently selected row (+1 because the row index starts with 0 but when copying the table row 0 contains the headers).

    Please have a look at SAP Screen Personas 2.0 - How to access the selected row in a grid , this similar example shows step by step how to solve such a problem.


    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.