ABAP Quiz - Reports

Check how comfortable you are with Reports. Take this quiz and find out!

...Previous

2. What will be the output of the following code?

DATA: text TYPE string VALUE 'TEST-*-SAP*-NEW*'.

IF text IS NOT INITIAL AND text CS '*'.
  
REPLACE FIRST OCCURRENCE OF '*' IN text WITH '^' .
  
WRITE : text.
ENDIF.

Answer:

A. TEST-^
B. TEST-^-SAP*-NEW*
C. TEST-*-SAP^-NEW^
D. Syntax Error
Wrong!
The correct answer is: B.

First Occurrence will replace the * with ^ and rest of the string will be same.

Correct!! Proceed to next Question

First Occurrence will replace the * with ^ and rest of the string will be same.

Next Question

Please send us your feedback/suggestions at webmaster@SAPTechnical.COM 

HomeContribute About Us Privacy Terms Of Use • Disclaimer • SafeCompanies: Advertise on SAPTechnical.COM | Post JobContact Us  

Graphic Design by Round the Bend Wizards

footer image footer image