cancel
Showing results for 
Search instead for 
Did you mean: 

BAPI_SALESORDER_CREATEFROMDAT2

Former Member
0 Kudos

Hi experts,

I have a problem with bapi BAPI_SALESORDER_CREATEFROMDAT2.

I'm trying to create a sales ordem referenced by a billing doc.

It is creating the sales order OK, but, the problem is that the "Sales Document Flow"(VBFA) is not OK, I can't see the billing doc as a precendent doc of the sales order that is created.

Thanks a lot.

Alexandre Nogueira

Accepted Solutions (0)

Answers (3)

Answers (3)

Former Member
0 Kudos

I have to create sales order with reference to existing billing document. I have tried to following bapis.

1. BAPI_SALESORDER_CREATEed

I have successfully created document with following details.

-->ORDER_HEADER_IN:

DOC_TYPE = ZRK

SALES_ORG = 3000

DISTR_CHAN = 00

DIVISION = 00

ORD_REASON = 100

SD_DOC_CAT = L

CURRENCY = EUR

REF_DOC = 100000028

REF_DOC_CA = M

-->ORDER_ITEMS_IN:

ITM_NUMBER = 000010

MATERIAL = 701791

TARGET_QTY = 0000000001000

CURRENCY = EUR

REF_DOC = 100000028

REF_DOC_CA = M

-->ORDER_PARTNERS:

PARTN_ROLE = SP

PARTN_NUMB = W12001

COUNTRY = NL

by providing this input i am able to create the document but it is not picking up the net value. so i have passed some extra paramters in ORDER_ITEMS_IN

COND_TYPE = PNET

COND_VALUE = 14,56

COND_D_UNT = PC.

folowing error is occured: Condition PNET is missing in pricing procedure A V Z0000.

is it something related to configuration problem?

2.BAPI_SALESORDER_CREATEFROMDAT1 or BAPI_SALESORDER_CREATEFROMDAT2

I have used same test data that is used for BAPI_SALESORDER_CREATEFROMDATA (where in i coudl succefully create doc). but here i encounterd following error.

Unpermitted combination of business object BUS2032 and sales doc. category L.

former_member188685
Active Contributor
0 Kudos

Hi,

You can try with this FM <b>SD_SALES_DOCU_MAINTAIN</b>

Regards

vijay

Former Member
0 Kudos

Hi Vijay,

have u ever used it? it's very complicated,

U have an example ?

Thanks a lot ..

Alexandre Nogueira

christian_wohlfahrt
Active Contributor
0 Kudos

Hi Alexandre!

You might be surprised, but this is not possible as OSS note 370988 explains.

If you want to have a filled document flow (and you don't have a contract, but a billing document), then you have to use call transaction (= batch input).

Regards,

Christian