SD_SALESDOCUMENT_CREATE - Sales document is not yet complete
I'm trying to create a sales document with the RFC SD_SALESDOCUMENT_CREATE but I keep on getting the result message "The sales document is not yet complete: Edit data". I am passing the same data as I would to VA01 but I'm not having any luck. I am passing the following information:
STATUS_BUFFER_REFRESH = 'X'
Does anyone have any ideas why I am getting this message?
Also, does anyone know what the parameter CONVERT_PARVW_AUART does?
Thanks in advance,
You will have to commit the order by calling BAPI_TRANSACTION_COMMIT right after your call to SD_SALESDOCUMENT_CREATE.
You are getting the "the sales docuemnt is not in the database or has been archived" error message as the RFC does not commit the order in the database. Once you call the commit BAPI after your RFC call you will be able to view the order in VA02.