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

Sales document creation error.

Former Member
0 Likes
479

Hi Guru's,

I am using a function module to create a sales order. But i'm getting an error which says: For object RV_BELEG , number range interval does not exist.

How to rectify this?

Below is the code :

CALL FUNCTION 'SD_SALES_DOCUMENT_SAVE'

EXPORTING

SYNCHRON = SPACE

STATUS_BUFFER_REFRESH = SPACE

REQUISITION_BUFFER_REFRESH = SPACE

REFERENCED_PM_ORDER = CAUFVD_IMP-AUFNR

IMPORTING

EVBAK = VBAK_LOC.

Please help.

Thanks,

Das

1 REPLY 1
Read only

Former Member
0 Likes
389

Number range objects are maintained in transaction SNUM, but before you rush off to that transaction you should check what happens in the standard Sales Order create - i.e. do you get the same message in VA01? It could be you have wrong values in your SD_SALES_DOCUMENT_SAVE setup.

Jonathan