Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Data type Mismatch

Former Member
0 Likes
375

Hi All,

I'm getting a Employee number from one standard BAPI internal table which has a lenght of 10. I need to pass this employee number to PA0002 where PERNR = itab-PERNR.

but problem is PA0002-pernr length is 8 and my itab-pernr is 10. How to handle this

Regards

Suprith

2 REPLIES 2
Read only

SuhaSaha
Product and Topic Expert
Product and Topic Expert
0 Likes
337

What is the BAPI you're using to get the PERNR ? If you could post the code how you're populating the table ITAB, it would be easier to analyze.

BR,

Suhas

Read only

Former Member
0 Likes
337

Surprith,

Ideally both the employee numbers should be of same lenght.Do you really have a employee number of length 10 or just the data type length is 10.If the latter is true you can move it to some temp variable of type PA0002-pernr but if you have diff data you will get incosistent results

Thanks

Bala Duvvuri