Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Simulate User input in command field

martin_renardy
Explorer
0 Likes
1,201

Dear all,

it it possible to simulate an user input in the command field during run time of a transaction? Somewhere in the transaction coding I would simulate the input

of /nex in the command field (just as a example).

Regards

Martin

5 REPLIES 5
Read only

Former Member
0 Likes
988

Hello,

U could use the system variable <b>SY-TCODE</b>

REgards,

VAsanth

Read only

0 Likes
988

Hallo Vasanth,

this is not simulation a user input. The system should behave like if a user would type in a command in the command field. Is there any functionality fom the batch input world?

Regards

Martin

Read only

0 Likes
988

HEllo Martin,

COuld you please the requirement clearly..

REgards,

Vasanth

Read only

0 Likes
988

Hallo,

within a transaction I would send a command, which triggers a special functionality if the transaction. This functionality can be riggered by a input in the function field (like /nex).

Martin

Read only

martin_renardy
Explorer
0 Likes
988

So, I found the solution.

With FM SAPGUI_SET_FUNCTIONCODE it is possible to send the functioncode.

Regards

Martin