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 order creation with reference to quote using BAPI

Former Member
0 Likes
1,162

Hi All,

I am trying to create a sales order with reference to quote using BAPI BAPI_SALESORDER_CREATEFROMDAT2.

I am passing the Quote number and preceding doc.category (B) at the header level and

at item level I am passing the quote number and the line item number in the quote for REF_DOC and REF_DOC_IT.

The order is created but there seems to be some issue with the document flow.

I do not see the Reference Doc number at the header level from the Sales order document flow whereas I can see the Reference Doc for each line item.

In VBFA I can see the Ref.Doc number at the header level along with the Ref.Doc at the line item level.

Why do you think it is not showing at the header level from Sales Document Document Flow?

Is there any bug in the standard BAPI or is there any OSS note?

Any answer would be greatly appreciated.

Thanks

Sandeep

Hi All,

I am trying to create a sales order with reference to quote using BAPI BAPI_SALESORDER_CREATEFROMDAT2.

I am passing the Quote number and preceding doc.category (B) at the header level and

at item level I am passing the quote number and the line item number in the quote for REF_DOC and REF_DOC_IT.

The order is created but there seems to be some issue with the document flow.

I do not see the Reference Doc number at the header level from the Sales order document flow whereas I can see the Reference Doc for each line item.

In VBFA I can see the Ref.Doc number at the header level along with the Ref.Doc at the line item level.

Why do you think it is not showing at the header level from Sales Document Document Flow?

Is there any bug in the standard BAPI or is there any OSS note?

Any answer would be greatly appreciated.

Thanks

Sandeep

4 REPLIES 4
Read only

Former Member
0 Likes
788

hi,

Are you giving different quotation numbers in the different line items, if that is the case you will not get that in the header document flow, as it cann't point to all the quotations.

Thanks,

Mahesh.

Read only

0 Likes
788

Hi Mahesh,

I am using only one quotation both at the header level and item level.

Thanks

Sandeep

Read only

Former Member
0 Likes
788

Use the below FM "SD_SALESDOCUMENT_CREATE".

Read only

0 Likes
788

Hi Poorna,

Even with this FM I get the same issue.

Infact SD_SALESDOCUMENT_CREATE is used inside the sales order create BAPI. Hence I think the issue is still persisting.

Thanks

Sandeep