Hi Experts,
This is the function module. I am passing the values in se37, I am getting the output. When I am passing the same in se38, its giving me dump. Why? How to get the values of ADRWA_OUT? what data type should I declare and pass? I have tried with char, it gives dump. When I try to declare as xyz type ADRWA_OUT, it says no such structure.
Please suggest.
Regards
Mani
Hi,
Your data type is not ADRWA_OUT, that is parameter:
DATA: ADRWA_OUT LIKE SANS1,
ADRZUS_OUT LIKE SANO1.
CALL FUNCTION 'ADDRESS_ASSIGN'
EXPORTING
* ADRZUS_FUNCTION = ' '
* ADRZUS_IN = ' '
ADR_IN = '[YOUR ADR_IN]
FLG_SAVE_IN_UPDT = 'X'
FUNCTION = 'P'
OBJEKTTYP = '00'
* IMPORTING
ADRWA_OUT = ADRWA_OUT
ADRZUS_OUT = ADRZUS_OUT
* FLG_CHANGED =
* EXCEPTIONS
* ADDRESS_NOT_FOUND = 1
* ILLEGAL_FUNCTION = 2
* NO_ADDRESS_ASSIGNED = 3
* OTHERS = 4
.
IF SY-SUBRC <> 0.
* Implement suitable error handling here
ENDIF.
Thanks.
Regards,
Keng Haw
Add a comment