11-10-2007 3:49 PM
Hi,
i try to learn using BAPIs from JAVA-applications. To find out how the BAPIs work, i use the BAPI-test tool of the function builder in the BAPI-Explorer.
Now i tried to create a new customer in the SAP flight-data case study. So i made a call to BAPI_FLCUST_CREATEFROMDATA with the 2 needed parameters customername and customertype ("B" for business-customer).
When i run the call, i get an error "Technical error", BC_IBF is set to 6.
So i tried to debug to find out, where the error occurs. It happens in the function "NUMBER_GET_NEXT" at the system call "ThNoGet". This system call returns with sy-subrc = 4, so a "INTERVAL_NOT_FOUND" exception is raised.
If i look at the system-call, i see that in the field-structure "BNRIV" the fields "FROMNUMBER" and "TONUMBER" are complete empty.
Could this be the error? And if yes, where can i enter this interval?
I am a student and i use a system, which is hosted by a university. Should this be a configuration problem?
I thank you for your help!
Kind regards from Germany!
Harry Schuster
11-10-2007 6:21 PM
Welcome To SDN..!!
May be your customer master number range is not maintained... you can check the number range for all objects in SNRO.
I actually don't remember the name of the number range object for the Customer. But, I think you can find that out by using the F4 help.
Regards,
Naimesh Patel
11-10-2007 6:21 PM
Welcome To SDN..!!
May be your customer master number range is not maintained... you can check the number range for all objects in SNRO.
I actually don't remember the name of the number range object for the Customer. But, I think you can find that out by using the F4 help.
Regards,
Naimesh Patel
11-10-2007 6:35 PM
Hi!
Thanks for your answer!
Will this range be set if i call the transaction
SAPBC_DATA_GENERATOR
to generate me some test-data?
Thanks for your answer!
Kind regards from Germany
Harry Schuster
11-10-2007 6:53 PM
I don't have much idea about this FM. Actually, I am away from my SAP system so, could not log in and give you the best answer.
Regards,
Naimesh Patel