Hello,
I am trying to include a small routine to add some text to an order when a certain screen is reached in our Mobile application. Here is what I have to get out of the screen and into a script:
Enter "/oiw32" process=iwxx_print_status.txt"
using iwxx_order_num = "&F[Order Number]"
using iwxx_stat_src = "ENRT"
This successfully opens the new session, but the script itself does not run, although the trace shows that it has started. Instead, I just see the SAPLCOIH.e0101 script in InputAssistant, which is the first screen when you execute iw32. Here is the inputscript:
parameter iwxx_stat_src
parameter iwxx_order_num
set V[iwxx_stat_src] "&U[iwxx_stat_src]"
set V[iwxx_order_num] "&U[iwxx_order_num]"
if V[iwxx_stat_src=ENRT]
set V[iwxx_comment] "Work Order set to En-Route"
endif
//Screen SAPMZMOBAM.0100
// Enter "/oiw32"
Screen SAPLCOIH.0101
Set F[Order] "&V[iwxx_order_num]"
Enter
Screen SAPLCOIH.3000
Set V[z_iw32_comment_date] "&V[today_user] - &V[today_h:m] - &V[_user] : &V[iwxx_comment] "
copytext fromstring="z_iw32_comment_date" totext="tmp"
copytext fromtext="tmp" toscreen="X[LTEXT]" "-appendline"
Enter "/11" // Save
// Change Order: Initial Screen
Screen SAPLCOIH.0101
Enter "/15"
// SAP Easy Access - User menu for Richard Haynes
Screen SAPLSMTR_NAVIGATION.0100
Enter "/15"
Any suggestions as to how to get the inputscript to execute instead of just going to the screen would be appreciated!