Skip to main content

INTERNL TABLES CONTINUATION ....1

OBJECT(TASK):

In real time  or  in ABAP  we  name  a  task  as  object.

Manually  Filling  the  Internal Tables.
    
   Steps  to  create  the  program.

  >>Execute  S38(IN Cmd prompt).

  >> Provide  the  program  name  starts  with  Y  or  Z  
       eg: zdemo_ internal_table
       
note:  the  name  program  does  not  allow  extra  characters           or  space,  it  allows  only  underscore.


>> Click on create.
>> Provide  the  Title(any thing  for  your understanding.)
>> Select  the  Type  is  Executable program.

>> Click on Save/enter.
>> Click  on  Local Object.

>> A  new  screen  opens  start  writing  the  program.

program:

   

    >>  * declaring  work area.(comment).

              DATA :  Begin  of  emp,
                            eid(10)          Type   C,
                            ename(25)    Type   C,
                             eadd(35)      Type    C,
                              End    of    emp.
*syntax  of internal table declaration.(you  can  write  in upper              case  or  lower  case since  abap is case sensitive).
       
        DATA  emp1   LIKE  TABLE  OF  emp.
    * writing  to  work area and  appending to internal table.

        emp-eid  =  ' 1 '.
        emp-ename  = 'ALEX'.
        emp-eadd    =  'TEXAS'.

     APPEND  emp   TO   emp1.
       

          emp-eid  =  ' 2 '.
        emp-ename  = 'KALLIS'.
        emp-eadd    =  'MEXICO'.

     APPEND  emp   TO   emp1.

         emp-eid  =  ' 3 '.
        emp-ename  = 'DEVILERS'.
        emp-eadd    =  'DULLAS'.

     APPEND  emp   TO   emp1.


simallary   this three fields are appended.

      

*loop  for  printing  the  data  from  internal table  to work area.
*since  we can write or  read  data from internal table through work area  .

     LOOP  AT  emp1  TO  emp.

       WRITE : /  emp-eid,      (/  is  used  for  new  line)
                         emp-ename,
                         emp-eadd.
     ENDLOOP.


>> save  ,check,  activate  the  program   and  test it.(see  above                 figure for this  icons.)
>>Then  output  is  displayed.
         

Comments

Popular posts from this blog

ABAP BASICS CONTINUEATION

message: daily just follow my post maximum i will cover upto 90% of abap.                   DATA TYPES IN ABAP Data type specifies what type of the variable it is. data types in abap are divided into two categories.                                    NUMERIC DATATYPE                                   CHARACTER DATATYPE         1. Integer  [ I ]                                             1. Char  [ C ]           2. Float       [ F ]                                         ...

STEPS TO LOG ON TO SAP

            STEPS   TO   UP (ON) THE  SERVER: >> Double  click  on   the  SAP  Management  console  on desktop.   >> Select   the   server   , right   click ,   all tasks,  start. >> Provide  the  password. >>Expand  the server [ECC6], double click on the  ABAP WP               Table  in   the  leftside  , contiuncely  click  on  Refresh  button       until  the  status  is  wait   then  minimize  the  server. >>  Check  until  the  status  is  wait  ,if  it is  in  run  status  you             cannot  login.  so  check  until  status  is  wait. ...

INTRODUCTION TO SAP ABAP

                                                        SAP SAP   stands   as Systems Applications  and  Products in data processing. manufacturing unit Purchasing : The    purchasing department purchases  raw materials from the shops . Warehouse: The raw materials which are received  by  the unit is stored in the ware house. Finance: The amount of the raw materials are paid to shops by the finance department. Production: The production department looks after the production from the raw materials which are in the warehouse. Sales and Distribution: This department looks after the sales. Shipping: Shipping department looks after delevering the products from ware houseto the customers. And again finance department collects the amount from the customers. Human resou...