Skip to Content
avatar image
Former Member

Call system in abap

hi, I have a query. I have to use a syntax in my code

CALL 'SYSTEM' ID 'COMMAND' FIELD NT_COMMAND

ID 'TAB' FIELD line

what is the purpose of the 'field'. What should be it's data type. What is the purpose of 'Id' also?

Can any one please clarify this statement in detail?

Add comment
10|10000 characters needed characters exceeded

  • Follow
  • Get RSS Feed

2 Answers

  • Jun 19, 2012 at 09:20 AM

    Hi,

    It deals with calling system functions, These are not supposed to be used by application programs. Please read F1 documentation for Call statement ( Call a system function ).

    Here the system command ( SYSTEM in your case ) is also called as a Macro. It is a standard code which is present in the file sapactab.h.

    Please go through the documentation for further understanding of Fields. Thank you.

    Regards,

    Kartik

    Add comment
    10|10000 characters needed characters exceeded

    • Hi Sandra,

      As per the basic understanding of Macro.

      A macro is a set of instructions that is represented in an abbreviated format. Here the term 'SYSTEM' is just the abbreviation for the underlying set of instructions. In this scenrio i think it can very well be called as a macro.

      Well, coming to the file name, I agree that i have refered F1 documentation to get the information. I think it is just a basic question that anybody would get to find out what are the other possible system functions, he / she may not be able to use them but for their awareness they may be wanting to know where the code is. Like in case of function modules once you double click it, it takes you to the code written for it, but for these system functions even though user double clicks nothing happens. Then we get a doubt like where exactly is the code present. To clarify such a doubt i have mentioned that information.

      Please do correct the tone of your replies. From my point of view i thought that would be the next doubt for the user so i have refered it.

      Regards,
      Kartik

  • Jun 19, 2012 at 11:50 AM

    Better use a FM like SXPG_COMMAND_EXECUTE than a CALL SYSTEM reserved to SAP.

    Regards,

    Raymond

    Add comment
    10|10000 characters needed characters exceeded