Quantcast
Channel: SCN : Document List - ABAP Development
Viewing all articles
Browse latest Browse all 935

Leading Zero disappeared on some fields in Query.

$
0
0

Reproducing the Issue

  • One query created with table EKPO.
  • Set EKPO-MATNR(Material) & EKPO-EBELP(item) as 'Output List'.
  • Example: the data in table EKPO is MATNR=000111, EBELP=001.
  • Execute query with 'SAP List Viewer' output type.
  • In output list, you can find that the data in MATNR field displayed as 111,
    but the data in field EBELP field still displayed as 001.

 

Cause

 

Field 'MATNR' uses Convers. Routine MATN1, the conv.exit MATN1 removes the
leading zeros. 'EBELP' field does not use any conversion routine.

 

You can check the corresponding field in SE11 as below:

 

1.PNG

 

2.PNG

3.PNG

 

Resolution

 

 

Define an additional field in the infoset or a local field in the query
without any conv.exit and copy the data to this field. The result will be shown
without any conversion in this field.

 

Reference Document:

SAP KBANote: 2171140 Leading Zero disappeared on some fields in Query.


Viewing all articles
Browse latest Browse all 935

Trending Articles



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