One aspect of the present invention relates to a method for setting, by an SCEF, and NIDD configuration in a wireless communication system, the method including: a step for receiving, from a network node, a first SCEF connection setup request for non-IP data transmission by a terminal, the first SCEF connection setup request including an external identifier of the terminal and a SCS / AS identifier of an SEC / AS for servicing the terminal; a step of determining whether the NIDD configuration with SCS / AS is established; a step for transmitting, to the SCS / AS, a second SCEF connection setup request for establishing the NIDD configuration, when the NIDD configuration is not established, the second SCEF connection setup request including the external identifier of the terminal; and a step for setting the NIDD configuration for the SCS / AS and the terminal.