‎2010 Mar 09 8:13 AM
Hi friends
i am creating sales order by usign this bapi BAPI_SALESORDER_CREATEFROMDAT2. But I have create the sales order with reference to quotation. So ia m passing all req parametes and also the quotation no in ref-doc field. i am abel to create the sale order But what ever teh lines items we have in the quotation(va23).i am not gettnig the lines items in the sales order.But SO no is generated. Could ou pleae let me know whats teh prb or do i need to do anything for geetting the line items
Regard,
Sai
‎2010 Mar 09 9:29 AM
Have you set the fields
REF_DOC
REF_DOC_IT
REF_DOC_CA
on the ORDER_ITEMS_IN parameter with the associated quotation document, item and document type.
‎2010 Mar 09 11:35 AM
Hi paul
i have passded REF_DOC and REFDOC_CA in header level. ORDER_HEADER_IN .i have not passed anything in ORDER_ITEMS_IN. when i pass the quotation no ..it shud automaticall filled up right???
Please clarify..
sai
‎2010 Mar 09 11:37 AM
if you can see the referenced quotation at header level, but not at item level, it sounds like you need to fill the order line item reference values also.
‎2010 Mar 09 11:51 AM
As you suggested i have passed the suggested parameters in item level..But this time i was not ablet to create the SO also..earlier i am able to creat SO but not line item, But now ia m not able to creat salesdocuement also.
Return talbe filled with belwo messages.
S V4 233 SALES_HEADER_IN has been processed successfully
E V1 320 No item category available (Table T184 ZKB TEXT )
E V4 248 Error in SALES_ITEM_IN 000000
W V1 555 The sales document is not yet complete: Edit data
E V4 219 Sales document was not changed