‎2007 Oct 04 3:07 PM
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
‎2007 Oct 04 3:13 PM
‎2007 Oct 04 3:13 PM
Hi,
You need to declare the ODGOVOR variable in the TOP include, then you will get the value
Regards
Sudheer
‎2007 Oct 04 3:15 PM
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
‎2007 Oct 05 11:34 PM
Great . I would asssign 10 points to both ut I can not(technicallly) So the first answer 10 and the second little less