I am trying to run SXPG_COMMAND_EXECUTE FM. but in one client it raises the exception "No Permission". and in the other client it raises "Command not found". Can you please guide me how do I rectify both of these exceptions.
Vijay Dudla replied
Check whether you have Maintained properly or not
to test that call this fm and find out your command is in the command list...
CALL FUNCTION 'SXPG_COMMAND_LIST_GET' EXPORTING COMMANDNAME = COMMANDNAME OPERATINGSYSTEM = '*' TABLES COMMAND_LIST = COMMAND_LIST EXCEPTIONS OTHERS = 1. IF SY-SUBRC <> 0 . RAISE X_ERROR . ENDIF