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

BAPI to create sales orders

cathy_liang
Contributor
0 Likes
870

Hi experts, pls help solve the issues. Thx.

Issue 1: Fail to create sales orders with credit block. The system considers it as error due to credit block.

Issue 3: If sales orders with credit block are created, which FM is appropriate to release them (T code VKM1)?

Issue 3: The system pops up "required function ENT1 is not available here" error msg when running SE37 for some special sales orders. Those sales orders' price is maintained via condition records (T code VK11). Thus, price is automatically captured when creating sales orders, i.e. manual entry is not allowed. Condition records are already maintained for those orders.

6 REPLIES 6
Read only

Former Member
0 Likes
781

you can use this BAPI_SALESORDER_CREATEFROMDAT2

Read only

0 Likes
781

Hi You can use the below function modules.

BAPI_SALESORDER_CREATEFROMDAT1

BAPI_SALESORDER_CREATEFROMDAT2

Thanks

Read only

0 Likes
781

Hi the experts, many thx for both of you prompt reply.

BAPI_SALESORDER_CREATEFROMDAT2 is already applied. The question is the above issues I raised occur when using it.

Btw, one more issue occurs - this FM can create sales orders with SD doc cat. C only. If using SD_SALESDOCUMENT_CREATE, it defintely can create sales orders with SD doc cat. H, etc. But, it's said this FM may cause many errors when put in use.

Pls help. Thx again.

Read only

0 Likes
781

Hi Cathy,

U can use BAD I BADI_SD_SALES ~SAVE_METHOD.

To post the document or u need only BAPI.

Thanks

Read only

0 Likes
781

Hi Tarangini, the system says this FM does not exist. It is BADI instead of BAPI, right? Pls help. Thx.

Read only

0 Likes
781

Hi,

It is BADI not the FM.U can see it in Se18.

MEthods with in that BADI and paarmeters for thsi BADI.

If it suits u r requiremnt then u can implement this BADI.

Thanks