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

Copy controle/SD routine is not triggering for BAPI SD_SALESDOCUMENT_CREATE

Former Member
0 Likes
2,572

Hi Experts,

I have some SD routine defined for order creation purpose which are working when i create order from VA01/VA02.

But those routine or copy controles not working for BAPI/FM 'SD_SALESDOCUMENT_CREATE'.

Is there any standard function module to trigger the routine/copy control which i can use in some enhancement point of the BAPI. or is there any other configuration or control table from where we can know where and how to trigger them.

Please provide some details

Thanks.....

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
1,301

Please see the following thread which talks about this issue,

and the OSS note associated with it,

Note 370988 - BAPIs in SD: Creation with reference

Hi Experts,

I have some SD routine defined for order creation purpose which are working when i create order from VA01/VA02.

But those routine or copy controles not working for BAPI/FM 'SD_SALESDOCUMENT_CREATE'.

Is there any standard function module to trigger the routine/copy control which i can use in some enhancement point of the BAPI. or is there any other configuration or control table from where we can know where and how to trigger them.

Please provide some details

Thanks.....

3 REPLIES 3
Read only

Former Member
0 Likes
1,302

Please see the following thread which talks about this issue,

and the OSS note associated with it,

Note 370988 - BAPIs in SD: Creation with reference

Read only

0 Likes
1,301

Thanks..

But it's not solving my problem.

Is there any standard function module or reference program, from which i can trigger the copy control functionality automatically by adding those code into the BAPI in some enhancement point.

Read only

0 Likes
1,301

Tapas, the OSS note explicitly lays out the two mechanisms by which you can achieve your functionality...

If your final order is going to resemble the original order with minimal changes, you can go with solution 1... If you think your copy control routines are too complex and don't want to replicate your code in two places , you may also consider this solution (creating a copy of original document with BAPI copy)

On the other hand, Solution 2 would work if the amount of data to be copied is very minimal... There is a attachment to the OSS note which contains sample code for doing this...

There could be enhancement points where we could add code to the BAPI... but I would not be comfortable about including your custom code into BAPI (thru enhancement points), especially with SAP providing you definite alternatives. That would be your personal choice...

Please elaborate as to why you think both of the solutions provided by SAP will not work for you?