Application Development 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: 

Check the number assignment is External or Internal based on Account group?

Former Member
0 Kudos
1,360

I want to validate in my program whether the given account group in vendor creation XK01 will accept External number or internal number range.

Scenario:

I want to create some vendor's with SAP internal number range and some vendor's with external number which is given in the excel sheet.

Functional:

External number range allowing is configured in SPRO to Account group.

Technical:

The flag for external number range is saved in NRIV table.

Question;

Is there any FM to find the given account group allows external number

or which all are the related tables which i can join to get the number range flag by passing Account group as the condition.

Thank you

1 ACCEPTED SOLUTION

kesavadas_thekkillath
Active Contributor
0 Kudos
229

Can you check table T077K( Vendor ) & T077D ( Customer ) with field NUMKR

4 REPLIES 4

kesavadas_thekkillath
Active Contributor
0 Kudos
230

Can you check table T077K( Vendor ) & T077D ( Customer ) with field NUMKR

raymond_giuseppi
Active Contributor
0 Kudos
229

Check BAPI_VENDOR_GETINTNUMBER and NUMBER_GET_INFO.

Regards,

Raymond

Former Member
0 Kudos
229

Thanks for the reply,

I fetched the (NUMKR) number from T077K table for the Account group and passed the NUMKR and the object 'KREDITOR' to the FM

call function 'NUMBER_GET_INFO'

exporting

nr_range_nr =

object = 'KREDITOR'

importing

interval = ls_number_get_info

exceptions

interval_not_found = 1

object_not_found = 2

others = 3.

Former Member
0 Kudos
229

thread updated with the reply