Application Development 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: 

problem creating CR doc type for sales order

Former Member
0 Kudos

Hello Gurus:

I have been trying to use a bapi to create a sales order. So far I have tested

BAPI_SALESORDER_CREATEFROMDATA

BAPI_SALESORDER_CREATEFROMDAT1

BAPI_SALESORDER_CREATEFROMDAT2

All of them works fine with SO type, But I am trying to create credit request. And they all return with error message saying the doc_type is invalid or not allowed. So far I have only found a function module SD_Salesdocument_create. But is there any standard BAPI that currently calling this? To make my life a little easier!

Cheers _

1 ACCEPTED SOLUTION

Former Member
0 Kudos

Hi

Check these BAPI's

BAPI_SALESDOCU_CREATEFROMDATA1

BAPI_SALESDOCU_CREATEWITHDIA

Regards

Anji

2 REPLIES 2

Former Member
0 Kudos

Hi

Check these BAPI's

BAPI_SALESDOCU_CREATEFROMDATA1

BAPI_SALESDOCU_CREATEWITHDIA

Regards

Anji

0 Kudos

Hello Anji... I tried the BAPI_SALESDOCU_CREATEWITHDIA in SE37.. Works great... You wouldn't happen to have some sample code for loading the imports??? _