Skip to Content
author's profile photo Former Member
Former Member

doubt in this application

the last record LITL1-NAME = 'VARIJA' is not appendind into the table ... can i know why ...

please reply me...

REPORT Z_SB_ITAB2 NO STANDARD PAGE HEADING.

DATA: BEGIN OF LITL1 OCCURS 8,

NAME TYPE STRING,

DEPARTMENT TYPE STRING,

DESIGNATION(20) TYPE C,

LOCATION TYPE STRING,

END OF LITL1.

*DATA: W_TIME(8) TYPE C VALUE '123456',

  • NAME TYPE STRING VALUE 'PHANINDER',

  • VALUE(10) TYPE N VALUE 4685.

*

*WRITE:/ NAME USING EDIT MASK '_____ ____'.

*WRITE:/ SY-UZEIT USING NO EDIT MASK.

*WRITE:/ W_TIME USING EDIT MASK '__:__:__'.

*WRITE:/ VALUE UNDER NAME.

*WRITE:/ SY-DATUM mmddyy.

*WRITE:/ NAME NO-GAP, VALUE.

*SKIP TO LINE 19.

*

*

*

*

**DATA LITL2 LIKE LITL1 OCCURS 3 WITH HEADER LINE.

*

LITL1-NAME = 'SATYA SAI BABA'.

LITL1-DEPARTMENT = 'IT'.

LITL1-DESIGNATION = 'AGM'.

LITL1-LOCATION = 'LANCO INFRATECH'.

APPEND LITL1.

LITL1-NAME = 'SRINIVAS'.

LITL1-DEPARTMENT = 'IT'.

LITL1-DESIGNATION = 'ASST MANAGER'.

LITL1-LOCATION = 'LANCO INFRATECH'.

APPEND LITL1.

LITL1-NAME = 'NAGARAJU'.

LITL1-DEPARTMENT = 'IT'.

LITL1-DESIGNATION = 'SYSTEM ADMINISTARTOR'.

LITL1-LOCATION = 'LANCO INFRATECH'.

APPEND LITL1.

LITL1-NAME = 'PHANINDER'.

LITL1-DEPARTMENT = 'IT'.

LITL1-DESIGNATION = 'SAP-ABAP'.

LITL1-LOCATION = 'LANCO INFRATECH'.

APPEND LITL1.

LITL1-NAME = 'BHANU KIRAN'.

LITL1-DEPARTMENT = 'IT'.

LITL1-DESIGNATION = 'SAP-BW'.

LITL1-LOCATION = 'LANCO INFRATECH'.

APPEND LITL1.

LITL1-NAME = 'NAROTHAM'.

LITL1-DEPARTMENT = 'IT'.

LITL1-DESIGNATION = 'SAP-ABAP'.

LITL1-LOCATION = 'LANCO INFRATECH'.

APPEND LITL1.

LITL1-NAME = 'VARIJA'.

LITL1-DEPARTMENT = 'IT'.

LITL1-DESIGNATION = 'SAP - FI/CO'.

LITL1-LOCATION = 'LANCO INFRATECH'.

APPEND LITL1.

*LITL2-NAME = 'NAROTHAM'.

*LITL2-DEPARTMENT = 'IT'.

*LITL2-DESIGNATION = 'SAP-ABAP'.

*LITL2-LOCATION = 'LANCO INFRATECH'.

*APPEND LITL2.

*

*LITL2-NAME = 'VARIJA'.

*LITL2-DEPARTMENT = 'IT'.

*LITL2-DESIGNATION = 'FI/CO'.

*LITL2-LOCATION = 'LANCO INFRATECH'.

*APPEND LITL2.

SKIP.

FORMAT INVERSE..

WRITE 'DETAILS OF EMPLOYEES OF LITL IT DEPARTMENT >>> ' COLOR 5.

FORMAT INVERSE OFF.

*DELETE LITL1 WHERE NAME = 'XXXX'.

SKIP.

ULINE 1(85).

SKIP.

FORMAT COLOR 5.

WRITE:/7 'NAME',25 '|',29 'DEPARTMENT',42 '|',44 'DESIGNATION',64 '|',66 'LOCATION',85 '|'.

FORMAT COLOR OFF.

SKIP.

ULINE 1(85).

LOOP AT LITL1.

WRITE:/5 LITL1-NAME ,25 '|',29 LITL1-DEPARTMENT,42 '|',44 LITL1-DESIGNATION,64 '|',66 LITL1-LOCATION,85 '|'.

ENDLOOP.

Thanx & Regards,

PHANINDER GOLLAPUDI.

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

7 Answers

  • Best Answer
    author's profile photo Former Member
    Former Member
    Posted on Sep 01, 2007 at 05:16 AM

    THIS IS THE CODE .. BELOW IS THE OUTPUT:----

    REPORT Z_SB_ITAB2 NO STANDARD PAGE HEADING.

    DATA: BEGIN OF LITL1 OCCURS 8,

    NAME TYPE STRING,

    DEPARTMENT TYPE STRING,

    DESIGNATION(20) TYPE C,

    LOCATION TYPE STRING,

    END OF LITL1.

    *DATA: W_TIME(8) TYPE C VALUE '123456',

    • NAME TYPE STRING VALUE 'PHANINDER',

    • VALUE(10) TYPE N VALUE 4685.

    *

    *WRITE:/ NAME USING EDIT MASK '_____ ____'.

    *WRITE:/ SY-UZEIT USING NO EDIT MASK.

    *WRITE:/ W_TIME USING EDIT MASK '__:__:__'.

    *WRITE:/ VALUE UNDER NAME.

    *WRITE:/ SY-DATUM mmddyy.

    *WRITE:/ NAME NO-GAP, VALUE.

    *SKIP TO LINE 19.

    *

    *

    *

    *

    **DATA LITL2 LIKE LITL1 OCCURS 3 WITH HEADER LINE.

    *

    LITL1-NAME = 'SATYA SAI BABA'.

    LITL1-DEPARTMENT = 'IT'.

    LITL1-DESIGNATION = 'AGM'.

    LITL1-LOCATION = 'LANCO INFRATECH'.

    APPEND LITL1.

    LITL1-NAME = 'SRINIVAS'.

    LITL1-DEPARTMENT = 'IT'.

    LITL1-DESIGNATION = 'ASST MANAGER'.

    LITL1-LOCATION = 'LANCO INFRATECH'.

    APPEND LITL1.

    LITL1-NAME = 'NAGARAJU'.

    LITL1-DEPARTMENT = 'IT'.

    LITL1-DESIGNATION = 'SYSTEM ADMINISTARTOR'.

    LITL1-LOCATION = 'LANCO INFRATECH'.

    APPEND LITL1.

    LITL1-NAME = 'PHANINDER'.

    LITL1-DEPARTMENT = 'IT'.

    LITL1-DESIGNATION = 'SAP-ABAP'.

    LITL1-LOCATION = 'LANCO INFRATECH'.

    APPEND LITL1.

    LITL1-NAME = 'BHANU KIRAN'.

    LITL1-DEPARTMENT = 'IT'.

    LITL1-DESIGNATION = 'SAP-BW'.

    LITL1-LOCATION = 'LANCO INFRATECH'.

    APPEND LITL1.

    LITL1-NAME = 'NAROTHAM'.

    LITL1-DEPARTMENT = 'IT'.

    LITL1-DESIGNATION = 'SAP-ABAP'.

    LITL1-LOCATION = 'LANCO INFRATECH'.

    APPEND LITL1.

    LITL1-NAME = 'VARIJA'.

    LITL1-DEPARTMENT = 'IT'.

    LITL1-DESIGNATION = 'SAP - FI/CO'.

    LITL1-LOCATION = 'LANCO INFRATECH'.

    APPEND LITL1.

    *LITL2-NAME = 'NAROTHAM'.

    *LITL2-DEPARTMENT = 'IT'.

    *LITL2-DESIGNATION = 'SAP-ABAP'.

    *LITL2-LOCATION = 'LANCO INFRATECH'.

    *APPEND LITL2.

    *

    *LITL2-NAME = 'VARIJA'.

    *LITL2-DEPARTMENT = 'IT'.

    *LITL2-DESIGNATION = 'FI/CO'.

    *LITL2-LOCATION = 'LANCO INFRATECH'.

    *APPEND LITL2.

    SKIP.

    FORMAT INVERSE..

    WRITE 'DETAILS OF EMPLOYEES OF LITL IT DEPARTMENT >>> ' COLOR 5.

    FORMAT INVERSE OFF.

    *DELETE LITL1 WHERE NAME = 'XXXX'.

    SKIP.

    ULINE 1(85).

    SKIP.

    FORMAT COLOR 5.

    WRITE:/7 'NAME',25 '|',29 'DEPARTMENT',42 '|',44 'DESIGNATION',64 '|',66 'LOCATION',85 '|'.

    FORMAT COLOR OFF.

    SKIP.

    ULINE 1(85).

    LOOP AT LITL1.

    WRITE:/5 LITL1-NAME ,25 '|',29 LITL1-DEPARTMENT,42 '|',44 LITL1-DESIGNATION,64 '|',66 LITL1-LOCATION,85 '|'.

    ENDLOOP.

    ULINE 1(85).

    this is the O/P i am getting:

    DETAILS OF EMPLOYEES OF LITL IT DEPARTMENT >>>

    -


    NAME | DEPARTMENT | DESIGNATION | LOCATION |

    -


    SATYA SAI BABA | IT | AGM | LANCO INFRATECH |

    SRINIVAS | IT | ASST MANAGER | LANCO INFRATECH |

    NAGARAJU | IT | SYSTEM ADMINISTARTOR| LANCO INFRATECH |

    PHANINDER | IT | SAP-ABAP | LANCO INFRATECH |

    BHANU KIRAN | IT | SAP-BW | LANCO INFRATECH |

    NAROTHAM | IT | SAP-ABAP | LANCO INFRATECH |

    -


    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Sep 01, 2007 at 04:52 AM

    Hi,

    The following is the output i got using your code. I couldn't find any error in this

    DETAILS OF EMPLOYEES OF LITL IT DEPARTMENT >>>                                                                                
    NAME                  DEPARTMENT     DESIGNATION           LOCATION                                                                                
    SATYA SAI BABA          IT             AGM                   LANCO INFRATECH      
        SRINIVAS                IT             ASST MANAGER          LANCO INFRATECH      
        NAGARAJU                IT             SYSTEM ADMINISTARTOR  LANCO INFRATECH      
        PHANINDER               IT             SAP-ABAP              LANCO INFRATECH      
        BHANU KIRAN             IT             SAP-BW                LANCO INFRATECH      
        NAROTHAM                IT             SAP-ABAP              LANCO INFRATECH      
        VARIJA                  IT             SAP - FI/CO           LANCO INFRATECH      
    
    

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Sep 01, 2007 at 04:58 AM

    but i am not getting the last record in my output

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Sep 01, 2007 at 05:02 AM

    i already tested like that ... i mean i activated the application and executed but still.... same problem.....

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Sep 01, 2007 at 05:04 AM

    Hi,

    your o/p is coming correct.. try once again by closing and activating your program again..

    if still not work.. copy and paste your output..

    Thanks and Regards,

    Vikas Bittera.

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Sep 01, 2007 at 05:34 AM

    thanx Mr. Vikas

    i got the output correct....

    Thanx & Regards,

    PHANINDER GOLLAPUDI.

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Sep 01, 2007 at 05:46 AM

    sorry vikas,

    i have done a mistake ... i assigned points to some other..... sorry yaar...

    actually i dont know how to assign points .. as i am a new memeber... can u tell me ... please

    Add a comment
    10|10000 characters needed characters exceeded

    • Former Member

      Hi Phani,

      For each post, you will find list of radio buttons on the left hand side of the reply to the post.

      Helpful answers

      Very Helpful answers

      Solved Problem

      Click one of them to assign points to the post if you felt the answer will helps you and also you will get a one point to your posted thread if you close the thread for giving points to the people.

      Thanks,

      Vinay

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.