2010 Dec 17 1:51 PM
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
2010 Dec 17 2:02 PM
Can you check table T077K( Vendor ) & T077D ( Customer ) with field NUMKR
2010 Dec 17 2:02 PM
Can you check table T077K( Vendor ) & T077D ( Customer ) with field NUMKR
2010 Dec 17 2:23 PM
Check BAPI_VENDOR_GETINTNUMBER and NUMBER_GET_INFO.
Regards,
Raymond
2010 Dec 20 11:54 AM
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.
2010 Dec 20 12:00 PM