cancel
Showing results for 
Search instead for 
Did you mean: 

Passing Parameters from one T-code(flavor) to another T-code(Flavor)

0 Kudos
161

Hi Guys,

Today i got a new requirement from one of my client i.e. He want to login with a particular User into VA01,

and there he want 2 dropdown options and one button those are Plant(dropdown), Division(Drop down).

Once he selects a plant and division after click button(Click here) that navigates to ZSCIO flavor(Consignment Sales Order).

In ZSCIO these selected values should be reflect.How can i pass these parameters in personas 2.0.

That to totally 7 users are login with different credentials and those are accessing the same flavor..

Can any one resolve my issue ASAP.

Thanks,

santosh.

Accepted Solutions (0)

Answers (2)

Answers (2)

0 Kudos

Hi,

i have tried with script button option...

In my scripting

step 1 : copy the Plant control, copy the Division control

step 2 : switch flavor to ZSCIO.

step 3: paste the control into respected plant control

step 4: paste the control into respected Division control.


It navigates properly but issue is it copied the last control value(Division) and pasted the same in to 2(Plant, Division)text boxes...


Any correction please let me know...


Thanks,

Santosh

Former Member
0 Kudos

Can you please post your script? It is hard to say what might be going on without seeing your script.

0 Kudos

step 1 : copy the Plant control, copy the Division control

step 2 : switch flavor to ZSCIO.

step 3: paste the control into respected plant control

step 4: paste the control into respected Division control.


Former Member
0 Kudos

That's not the script:-) Are you able to post the actual script?

0 Kudos

yeah...

{"Id":"7da89760-daa3-477e-a29e-1c49ad7f81ae","Actions":[{"ActionCategory":"0","Action":"4099","ControlID":"Personas\/98380430-6968-461b-911e-0a2f4e804b26","DerivedID":"Personas\/98380430-6968-461b-911e-0a2f4e804b26","AdjustedID":"Personas\/98380430-6968-461b-911e-0a2f4e804b26","Content":""},{"ActionCategory":"0","Action":"4099","ControlID":"Personas\/3daa821b-2d19-46db-9773-3815b30a5096","DerivedID":"Personas\/3daa821b-2d19-46db-9773-3815b30a5096","AdjustedID":"Personas\/3daa821b-2d19-46db-9773-3815b30a5096","Content":""},{"ActionCategory":"0","Action":"4111","ControlID":"00155D0148071ED6998B31185743B24A","DerivedID":"00155D0148071ED6998B31185743B24A","AdjustedID":"00155D0148071ED6998B31185743B24A","Content":""},{"ActionCategory":"0","Action":"4100","ControlID":"ses[0]\/wnd[0]\/usrUSRAREA\/frameB001002_BLOCK_1000\/ctxtS_WERKSLOW","DerivedID":"ses[0]\/wnd[0]\/usrUSRAREA\/frameB001002_BLOCK_1000\/ctxtS_WERKSLOW","AdjustedID":"ses[0]\/wnd[0]\/usrUSRAREA\/frameB001002_BLOCK_1000\/ctxtS_WERKSLOW","Content":""},{"ActionCategory":"0","Action":"4100","ControlID":"ses[0]\/wnd[0]\/usrUSRAREA\/frameB001002_BLOCK_1000\/ctxtS_SPARTLOW","DerivedID":"ses[0]\/wnd[0]\/usrUSRAREA\/frameB001002_BLOCK_1000\/ctxtS_SPARTLOW","AdjustedID":"ses[0]\/wnd[0]\/usrUSRAREA\/frameB001002_BLOCK_1000\/ctxtS_SPARTLOW","Content":""}]}

Thanks,

Santosh

Former Member
0 Kudos

Sorry - I hadn't realised you were using Personas 2. A screenshot of the script would be easier to understand

Steve.

0 Kudos

Hi,

Sorry,

I'm using personas 2.0

Input Screen consists 2 text boxes .One is Plant(drop down) and second one is Division(dropdown)

Step 1: take a script button.

step  2: First i have copied the control of Plant and second copied the control of Division.

Step 3: Flavor Switch to ZSCIO

step 4: Paste the fisrt control into ZSCIO's first textbox(plant dropdown)

step 5: Paste the second control into ZSCIO's second textbox(divisiondropdown).

But it takes last copied control into two boxes.....

Thanks,

Santosh

0 Kudos

Sorry, I'm unable to upload the screenshot in this blog....

Former Member
0 Kudos

The camera icon on the toolbar across the top of this "reply" box allows you to add an image. Or you can just drop and drop the image files into the reply box. Is this your script?

You don't seem to have given names to the values you've copied. I would expect your script to look like this:

That could be an artefact of how I imported your script into my system.

Steve.

0 Kudos
Former Member
0 Kudos

So, like I said, the Copy Value and Paste Value actions do not give the values a name. You do need to do that. See my second example above...

Steve

tamas_hoznek
Product and Topic Expert
Product and Topic Expert
0 Kudos

If you have a script navigating to the Z transaction, the same script should be able to pass on the selected values from the first transaction to the second.

0 Kudos

So first i need to take a script button and then copy the value from plant and same for division and then how can i paste these value in the control of second flavor.....

0 Kudos

In VA01 i have created a button "Click Me" and then in script first i have copied the control of Plant and then second step switch flavor there i have provided ZSCIO and then paste the control in plant...

But its showing an error the value is tooooo long...script failed.

Thanks,

Santosh

Former Member
0 Kudos

Have you checked what value you are trying to paste? Maybe you got the wrong thing? Either write the value to the log, or use the browser debugger to see what is going on. More debugging help here: Debugging options in SAP Screen Personas 3.0.

Steve.