Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Issue in getting Value from a function module?

Former Member
0 Likes
982

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

3 REPLIES 3
Read only

Former Member
0 Likes
884

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

Read only

0 Likes
884

use following code. Usally thi shappens when there is datatype mismatch.

Read only

0 Likes
884

Hi Shruti,

Thanks. Problem solved.