Quantcast
Channel: SCN: Message List
Viewing all articles
Browse latest Browse all 9236

Help in understanding the conditions

$
0
0

Dear gurus

 

My requirement is to upload Excel file and  then update the data in to Z-table.

 

Here's the code as

 

loop at it_tab into wa_tab.

     write :/   wa_tab-EMPName,
                wa_tab-Designation,
                wa_tab-Salary.
   endloop.



* Uploading the data into the database table
   LOOP AT it_tab INTO wa_tab.
     ZEXCEL-EMPNAme =     wa_tab-EMPName.
     ZEXCEL-Designation = wa_tab-Designation.
     ZEXCEL-Salary = wa_tab-Salary.
     MODIFY ZEXCEL.



     if sy-subrc <> 0.

       MOVE-CORRESPONDING wa_tab to wa_error.
       append wa_error to it_error.
       clear wa_error.
     endif.

     clear wa_tab.
   ENDLOOP.


   if it_error is initial.
     message 'all data updated Sucessfully'  type 'S'.

   else.

     loop at it_error into wa_error.

       write:/ wa_error-empname.

     endloop.

   endif.


I am getting the output as


 

can any one explain me the BOLD part . I am little confused .

 

Help will be appreciated.

 

Thanks in advance.

 

Regards

karan


Viewing all articles
Browse latest Browse all 9236

Trending Articles