Example: sapgui_set_ok_code

The following example uses sapgui_set_ok_code to enter the command me51n.

// Enter the Command
sapgui_set_ok_code(
    "me51n", // the command
    BEGIN_OPTIONAL, 
        "AdditionalInfo=info1022", 
    END_OPTIONAL);
//Press ENTER to run the command
sapgui_send_vkey("0", 
    BEGIN_OPTIONAL, 
        "AdditionalInfo=info1023", 
    END_OPTIONAL);