Skip to Content
author's profile photo Former Member
Former Member

Issue in getting Value from a function module?

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

Picture1.jpg (150.4 kB)
Picture2.jpg (174.7 kB)
Picture3.jpg (142.2 kB)
Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

1 Answer

  • author's profile photo Former Member
    Former Member
    Posted on Mar 13, 2014 at 01:58 PM

    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
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.