A method for transmitting and receiving signals for performing a 2-step random access channel, RACH, procedure, the method executed by a user equipment, UE, in a wireless communication system, the method comprising: determining whether to perform the 2-step RACH procedure or a 4-step RACH procedure based on a threshold; selecting to perform the 2-step RACH procedure based on a reference signal received power, RSRP of a pathloss reference signal being above the threshold, wherein the threshold is received via a radio resource control, RRC, signalling; receiving, from a base station, BS, both of a first parameter and a second parameter or receiving the second parameter without the first parameter, wherein the first parameter is a configuration parameter used to indicate a transform precoding for a transmission of a payload on a message A physical uplink shared channel, PUSCH, for 2-step RACH procedure, and wherein the second parameter is a configuration parameter used to indicate a transform precoding for a transmission of a payload on a message 3 PUSCH for 4-step RACH procedure; transmitting (S2301), to the BS, a message A including a preamble on a physical random access channel, PRACH, and the payload on the message A PUSCH according to an indicated transform precoding; and receiving (S2303) a message B including contention resolution information from the BS, wherein, when the first parameter is received, the first parameter is used to indicate to the UE the transform precoding for the transmission of the payload on the message A PUSCH in the 2-step RACH procedure, and wherein, when the first parameter is not received, the second parameter is used to indicate to the UE the transform precoding for the transmission of the payload on the message A PUSCH in the 2-step RACH procedure. determining whether to perform the 2-step RACH procedure or a 4-step RACH procedure based on a threshold; selecting to perform the 2-step RACH procedure based on a reference signal received power, RSRP of a pathloss reference signal being above the threshold, wherein the threshold is received via a radio resource control, RRC, signalling; receiving, from a base station, BS, both of a first parameter and a second parameter or receiving the second parameter without the first parameter, wherein the first parameter is a configuration parameter used to indicate a transform precoding for a transmission of a payload on a message A physical uplink shared channel, PUSCH, for 2-step RACH procedure, and wherein the second parameter is a configuration parameter used to indicate a transform precoding for a transmission of a payload on a message 3 PUSCH for 4-step RACH procedure; transmitting (S2301), to the BS, a message A including a preamble on a physical random access channel, PRACH, and the payload on the message A PUSCH according to an indicated transform precoding; and receiving (S2303) a message B including contention resolution information from the BS, wherein, when the first parameter is received, the first parameter is used to indicate to the UE the transform precoding for the transmission of the payload on the message A PUSCH in the 2-step RACH procedure, and wherein, when the first parameter is not received, the second parameter is used to indicate to the UE the transform precoding for the transmission of the payload on the message A PUSCH in the 2-step RACH procedure. <EOS>