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

Read KTOKD number range

luis_rod
Participant
0 Likes
5,286

Hi all,

I am trying to read the KNA1 table using the KTOKD (account group) column. As this field is not a key field for KNA1, the query can get quite slow.

I have thought that (*maybe*) a faster way to process this query would be to read KNA1 using the proper KUNNR number range, according to the account group. So, my question is: How do I read the number range for a particular KTOKD?

Thanks in advance,

Luis

1 ACCEPTED SOLUTION
Read only

RaymondGiuseppi
Active Contributor
0 Likes
4,701

Link between account groups and range numbers :

  1. Transaction OBAR or SPRO, Table T077D, KTOKD -> NUMKR range number
  2. Transaction XDN1 or SNUM, Table NRIV (DEBITOR, space, NRNR = NUMKR)

Regards,
Raymond

Hi all,

I am trying to read the KNA1 table using the KTOKD (account group) column. As this field is not a key field for KNA1, the query can get quite slow.

I have thought that (*maybe*) a faster way to process this query would be to read KNA1 using the proper KUNNR number range, according to the account group. So, my question is: How do I read the number range for a particular KTOKD?

Thanks in advance,

Luis

2 REPLIES 2
Read only

RaymondGiuseppi
Active Contributor
0 Likes
4,702

Link between account groups and range numbers :

  1. Transaction OBAR or SPRO, Table T077D, KTOKD -> NUMKR range number
  2. Transaction XDN1 or SNUM, Table NRIV (DEBITOR, space, NRNR = NUMKR)

Regards,
Raymond

Read only

0 Likes
4,701

Raymond,

Thanks!! That's exactly what I needed...

Regards,

Luis