Skip to Content
0
Jan 11, 2023 at 08:04 PM

Possible to return to VA01 order from another transaction?

185 Views

Hi,

We have added a 'credit check' button to VA01:

image.png

And a script has been added so the user is taken to see the customers credit status (transaction FD32), when they press the 'credit check' button:

var cust = (session.findById("wnd[0]/usr/subSUBSCREEN_HEADER:SAPMV45A:4021/subPART-SUB:SAPMV45A:4701/ctxtKUAGV-KUNNR").text); 
session.findById("wnd[0]/tbar[0]/okcd").text = "/n FD32";
session.findById("wnd[0]").sendVKey(0); session.findById("wnd[0]/usr/ctxtRF02L-KUNNR").text = cust;
session.findById("wnd[0]/usr/ctxtRF02L-KKBER").text = "LA01";
session.findById("wnd[0]/usr/chkRF02L-D0105").selected = true;
session.findById("wnd[0]/usr/chkRF02L-D0110").selected = true;
session.findById("wnd[0]/usr/chkRF02L-D0120").selected = true;
session.findById("wnd[0]").sendVKey(0);

This works fine but the issue is that when the user clicks back they aren't taken back to VA01.
Is it possible, with Personas scripting, for the user to be taken back to the order they were creating?

Thanks in advance!

Attachments

image.png (3.8 kB)