Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

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:

SALES_HEADER_IN:

  • DOC_TYPE

  • SALES_ORG

  • DISTR_CHAN

  • DIVISION

STATUS_BUFFER_REFRESH = 'X'

SALES_ITEMS_IN:

  • ITM_NUMBER

  • MATERIAL

  • TARGET_QTY

  • TARGET_QU

  • PURCH_NO_C

SALES_PARTNERS:

  • PARTN_ROLE

  • PARTN_NUMB

SALES_CONDITIONS:

  • ITM_NUMBER

  • COND_TYPE

  • COND_VALUE

  • CURRENCY

  • COND_UNIT

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,

Charles

Tags:
replied

Hi Charles,

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.

Anu

0 View this answer in context
Not what you were looking for? View more on this topic or Ask a question