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

creating sales order by using BAPI_SALESORDER_CREATEFROMDAT2

Former Member
0 Likes
617

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

4 REPLIES 4
Read only

Former Member
0 Likes
532

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.

Read only

0 Likes
532

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

Read only

0 Likes
532

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.

Read only

0 Likes
532

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