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

How to get response from such a function

Former Member
0 Likes
608

How to get response from such a function (in MODULE USER_COMMAND_0010 INPUT I get "ODGOVOR" 'X'

FUNCTION Z_SEENKRAT.

*"----


""Local Interface:

*" EXPORTING

*" REFERENCE(ODGOVOR) TYPE MSEG-KZEAR

*"----


DATA ok_code LIKE sy-ucomm.

DATA: test like mseg-kzear.

BREAK-POINT.

call screen 10.

test = ODGOVOR.

ENDFUNCTION.

&----


*& Module CLEAR_OK_CODE OUTPUT

&----


  • text

----


MODULE clear_ok_code OUTPUT.

CLEAR ok_code.

ENDMODULE. " CLEAR_OK_CODE OUTPUT

&----


*& Module USER_COMMAND_0010 INPUT

&----


  • text

----


MODULE USER_COMMAND_0010 INPUT.

DATA odgovor LIKE mseg-KZEAR.

CASE ok_code.

WHEN 'DA'.

ODGOVOR = 'X'.

ENDCASE.

ENDMODULE. " USER_COMMAND_0010 INPUT

4 REPLIES 4
Read only

Former Member
0 Likes
568

Hi,

could you explain it briefly?

regards,

kishore

Read only

Former Member
0 Likes
568

Hi,

You need to declare the ODGOVOR variable in the TOP include, then you will get the value

Regards

Sudheer

Read only

Former Member
0 Likes
568

Declare the ODGOVOR variable in the TOP include,Then it will populated

Hope this resolves your query.

Reward all the helpful answers.

Thanks

Murali Poli

Read only

Former Member
0 Likes
568

Great . I would asssign 10 points to both ut I can not(technicallly) So the first answer 10 and the second little less