EXPORT org2 = p_orgh TO MEMORY ID 'O02'.
The above statement is returning SY-SUBRC = 4.
Here p_orgh is parameter of type rshiedir-hienm and 'O02' is valid memory id.
Can someone please give me the possible reason for this ASAP?