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

Re: Uploading exel file is not reading all records into internal table

$
0
0

Hi,

 

 

Declare your structure like these you will get all the records into your internal table.

 

For Uploading file structure

TYPES: BEGIN OF ty_upld,

mandt TYPE mandt,

matnr  TYPE c LENGTH 40,

werks   TYPE c LENGTH 40,

pname  TYPE c LENGTH 70,

pdate  TYPE c LENGTH 40,

pquan  TYPE c LENGTH 40,

END OF ty_upld.

 

* Use these .........................

CALL FUNCTION 'CONVERSION_EXIT_MATN1_INPUT'

       EXPORTING

         input        = ls_excel1-matnr

       IMPORTING

         output       = ls_excel1-matnr

       EXCEPTIONS

         length_error = 1

         OTHERS       = 2.

 

* TRANSLATE your field to upper case

TRANSLATE ls_excel1-pname TO UPPER CASE.

 

 

Hope these will help you

 

 

 

Kabil


Viewing all articles
Browse latest Browse all 8581

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>