Friday 16 September 2016

What would be the o/p of the program V1.0 ?

Hello Friends,

What would be the output of the below two program.
zpar_at_end_of_1.
zpar_at_end_of_2.


REPORT zpar_at_end_of_1.
TYPESBEGIN OF ty_tab,
         id    TYPE char5,
         name  TYPE char50,
         email TYPE char40,
       END OF ty_tab.

DATAlt_tab TYPE STANDARD TABLE OF ty_tab INITIAL SIZE 0,
      ls_tab TYPE ty_tab.

ls_tab-id '00001'.
ls_tab-name 'PARTHA SARATHI GOSWAMI'.
ls_tab-email 'DUMMY_1_email@gmail.com'.
APPEND ls_tab TO lt_tab.

ls_tab-id '00001'.
ls_tab-name 'PARTHA SARATHI GOSWAMI'.
ls_tab-email 'DUMMY_2_email@gmail.com'.
APPEND ls_tab TO lt_tab.

LOOP AT lt_tab INTO ls_tab.
  AT END OF id.
    WRITE:/ ls_tab-name.
  ENDAT.
ENDLOOP.


REPORT ZPAR_AT_END_OF_2.

TYPESBEGIN OF ty_tab,
         id    TYPE char5,
         name  TYPE char50,
         email TYPE char40,
       END OF ty_tab.

DATAlt_tab TYPE STANDARD TABLE OF ty_tab INITIAL SIZE 0,
      ls_tab TYPE ty_tab.

FIELD-SYMBOLS<lfs_tab> TYPE ty_tab.

ls_tab-id '00001'.
ls_tab-name 'PARTHA SARATHI GOSWAMI'.
ls_tab-email 'DUMMY_1_email@gmail.com'.
APPEND ls_tab TO lt_tab.

ls_tab-id '00001'.
ls_tab-name 'PARTHA SARATHI GOSWAMI'.
ls_tab-email 'DUMMY_2_email@gmail.com'.
APPEND ls_tab TO lt_tab.

LOOP AT lt_tab ASSIGNING <lfs_tab>.
  AT END OF id.
    WRITE:/ <lfs_tab>-name.
  ENDAT.
ENDLOOP.
     

40 comments:

  1. Nice question Partha. I was sure of output of zpar_at_end_of_1. But not sure about zpar_at_end_of_2.

    Thanks for sharing.

    For others, answer to zpar_at_end_of_2 is not *****************.. :) Write the code to know it. :P

    Raju.

    ReplyDelete
  2. Thanks for sharing this Information, Got to learn new things from your Blog on SAP SF.SAP SF

    ReplyDelete
  3. This comment has been removed by the author.

    ReplyDelete
  4. This comment has been removed by the author.

    ReplyDelete
  5. Thanks you for sharing this unique useful information content with us. Keep up the good work.
    DevOps Online Training

    ReplyDelete
  6. Thanks for sharing such a beautiful information with us. I hope you will share more info about it. Please keep
    sharing.Best Lenovo service center in Hyderbad
    Best Laptop service center in Hyderbad

    ReplyDelete
  7. This comment has been removed by the author.

    ReplyDelete
  8. This comment has been removed by the author.

    ReplyDelete
  9. This comment has been removed by the author.

    ReplyDelete
  10. This comment has been removed by the author.

    ReplyDelete
  11. This comment has been removed by the author.

    ReplyDelete
  12. This comment has been removed by the author.

    ReplyDelete
  13. This comment has been removed by the author.

    ReplyDelete
  14. This comment has been removed by the author.

    ReplyDelete
  15. This comment has been removed by the author.

    ReplyDelete
  16. This comment has been removed by the author.

    ReplyDelete
  17. This comment has been removed by the author.

    ReplyDelete
  18. This comment has been removed by the author.

    ReplyDelete
  19. This comment has been removed by the author.

    ReplyDelete
  20. This comment has been removed by the author.

    ReplyDelete
  21. Nice information I liked it
    Sanjary Kids is one of the best play school and preschool in Hyderabad,India. Give your child the best preschool experience by choosing the best playschool of Hyderabad in Abids. we provide programs like Play group,Nursery,Junior KG,Senior KG,and provides Teacher Training Program.
    Preschool teacher training course in hyderabad

    ReplyDelete
  22. This comment has been removed by the author.

    ReplyDelete
  23. This comment has been removed by the author.

    ReplyDelete
  24. Nice blog information of the author

    Sanjary Academy is the best Piping Design institute in Hyderabad, Telangana. It is the best Piping design Course in India and we have offer professional Engineering Courses like Piping design Course, QA/QC Course, document controller course, Pressure Vessel Design Course, Welding Inspector Course, Quality Management Course and Safety Officer Course.
    Piping Design Course
    Piping Design Course in Hyderabad ­
    Piping Design Course in India­

    ReplyDelete
  25. Great blog article I liked it

    Pressure Vessel Design Course is one of the courses offered by Sanjary Academy in Hyderabad. We have offer professional Engineering Course like Piping Design Course,QA/QC Course,document Controller course,pressure Vessel Design Course,Welding Inspector Course, Quality Management Course, #Safety officer course.
    Welding Inspector Course
    Safety officer course
    Quality Management Course
    Quality Management Course in India

    ReplyDelete
  26. Nice information, valuable and excellent in Job, as share good stuff with good ideas and concepts, lots of great information and inspiration, both of which I need, thanks to offer such a helpful information here.

    mobile phone repair in Canton
    iphone repair in Canton
    cell phone repair in Canton
    tablet repair in Canton
    ipad repair in Canton
    phone repair in Canton
    mobile phone repair canton
    iphone repair canton
    cell phone repair canton
    phone repair canton

    ReplyDelete
  27. You’d outstanding guidelines there. I did a search about the field and identified that very likely the majority will agree with your web page.
    CSJMU BCOM 3rd Year Result 2020
    BCOM 3rd Year Result 2020
    MGU BCOM 3rd Year Result 2020

    ReplyDelete
  28. Dil Bechara 2020 FHD Download Here
    sushant Singh Rajput Last Movie Dil Bechara 2020 Download HDRip

    ReplyDelete
  29. Very efficiently written information. It will be beneficial to anybody who utilizes it
    BA 3rd year Result 2019
    DU BCOM 3rd Year Result 2020
    RMLAU BCOM 3rd Year Result 2020


    ReplyDelete
  30. I think this is an informative post and it is very useful and knowledgeable. therefore, I would like to thank you for the efforts you have made in writing this article

    Yogi Vemana University Time Table

    ReplyDelete
  31. Nice Information, your blog is sharing unique information...
    mjpru bcom 3rd year result.

    ReplyDelete