GeekInterview.com
Series: Subject: Topic:
Question: 50 of 195

what is difference between sy-ucomm and ok_code ?

Asked by: Interview Candidate | Asked on: Apr 16th, 2007
Showing Answers 1 - 1 of 1 Answers
Sameer Ahmed

Answered On : Jul 10th, 2007

SY-UCOMM IS A system variable. It contains the latest user action triggered. Whereas ok_code is generally a variable that we declare as a type of sy-ucomm. Usually in ABAP programing it is a good practice not to refer to sy-ucomm directly, or sometimes we need to store a user interaction for later validation, these are the scenarios where an ok_code value comes handy. eg. data: ok_code type sy-ucomm. clear ok_code. ok_code = sy-ucomm. case ok_code. when 'XYZ'. .......... .......... WHEN OTHERS. ENDCASE. Hope  that clears the matter.

  
Login to rate this answer.

Give your answer:

If you think the above answer is not correct, Please select a reason and add your answer below.

Related Open Questions

Ads

Connect

twitter fb Linkedin GPlus RSS

Ads

Interview Question

 Ask Interview Question?

 

Latest Questions

Interview & Career Tips

Get invaluable Interview and Career Tips delivered directly to your inbox. Get your news alert set up today, Once you confirm your Email subscription, you will be able to download Job Inteview Questions Ebook . Please contact me if you there is any issue with the download.