Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

SXPG_COMMAND_EXECUTE

Hi,

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.

Thank You,

SB.

Tags:
Former Member
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

0 View this answer in context

Helpful Answer

by
Not what you were looking for? View more on this topic or Ask a question