cancel
Showing results for 
Search instead for 
Did you mean: 

XI -- > BAPI_SALESORDER_CREATEFROMDAT1 - Error in Response

former_member189387
Active Contributor
0 Kudos

Hi Friends ,

We are working with Discovery System V3 . It contains ECC 6.0 and XI/PI 7.0 . XI Service Pack 12 .

We are trying with a scenario File to RFC . Here i am using BAPI_SALESORDER_CREATEFROMDAT1 ( as RFC Receiver communication channel ) .

It is executing fine but SO is not getting created . But if i create manually in SAP ECC system via input to BAPI SO is getting created .

In SXMB_MONI , BAPI resonse as

<RETURN>

<TYPE>E</TYPE>

<ID>V1</ID>

<NUMBER>312</NUMBER>

<MESSAGE>Sales document type OR is not defined</MESSAGE>

<LOG_NO />

<LOG_MSG_NO>000000</LOG_MSG_NO>

<MESSAGE_V1>OR</MESSAGE_V1>

Is it with Service Pack error or Any other issue ?

Thanks.,

V.Rangarajan

Accepted Solutions (1)

Accepted Solutions (1)

former_member189387
Active Contributor
0 Kudos

Hi ,

Yes i am using the same user name and pwd which i have used to create SO directly .

Thanks

V.Rangarajan

MichalKrawczyk
Active Contributor
0 Kudos

hi,

as I mentioned the user does not matter at all

you see the real error in the log - document type is incorrect

can you try using TA instead of OR ?

Regards,

Michal Krawczyk

former_member189387
Active Contributor
0 Kudos

Hi Michal ,

That's silly . Thanks . It solved .

Thanks.,

V.Rangarajan.

MichalKrawczyk
Active Contributor
0 Kudos

glad to hear

Regards,

Michal Krawczyk

Answers (2)

Answers (2)

MichalKrawczyk
Active Contributor
0 Kudos

Hi,

>><MESSAGE>Sales document type OR is not defined</MESSAGE>

it has nothing do to with SP or anything else

as the message clearly states the sales order document type is incorrect

nothing more

BTW

if you use BAPI remember that your sales order will not get created if you don't commit it... (so you need to use Z RFC in which you commit it)

you can also use ORDERS05 IDOC to create sales order much easier

(and it uses batch input inside)

Regards,

Michal Krawczyk

Former Member
0 Kudos

Are you using the same user for connection also as waht you have used for creating PO directly.

May be check with the authorisation role of user used for connection.

Regards

Rajesh