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 Sales Document Create w/Multi-level configuration

Former Member
0 Likes
1,054

We have 3 levels of configurable materials, have tried various ways of coding as per OSS Note# 549563

We can sucessfully configure just level 1 (root level without using CFGS_PART_OF) , but not able to pass characteristics and value to sub items at level 2 & 3

We have the following structure that needs configurations at 3 levels:

Prod111 -> root (Configurable)

Prod112 -> Subitem (Configurable)

Prod113 -> Sub-Subitem (Configurable)

Does anyone have examples of how to program CFS_REF, CFGS_INST, CFGS_PART_OF and CFGS_VALUE tables for call from SD_SALESDOCUMENT_CREATE

Thanks in advance.

5 REPLIES 5
Read only

Former Member
0 Likes
800

Hi,

we used the function module BAPI_SALESORDER_CREATEFROMDAT2 for configurable materials.

See also:

Rgds,

JP

Read only

0 Likes
800

JP,

Thanks for the response. I have a question -- BAPI_SALESORDER_CREATEFROMDAT2 -- calls SD_SALESDOCUMENT_CREATE. What is the value in calling BAPI_SALESORDER_CREATEFROMDAT2?

Look forward to your response.

/Greg

Read only

0 Likes
800

Hi,

You can use both FMs. SD_SALESDOCUMENT_CREATE isn't released offical by SAP (in our system). Maybe SD_SALESDOCUMENT_CREATE has no function module documentation in your language.

It is up to you to use SD_SALESDOCUMENT_CREATE or BAPI_SALESORDER_CREATEFROMDAT2.

You can find often a new BAPI which calls at the end an older function module.

Rgds,

JP

Read only

Former Member
0 Likes
800

Hi,

Normally a billing doc is created after a sales order-->delivery.

U can create a sales order w.r.t a Contract or another sales order.

In your case, its possible only for sales Returns.

pass billing doc number to ORDER_HEADER_IN-REF_DOC in <b>BAPI_SALESORDER_CREATEFROMDAT2</b>

<b>Reward points</b>

Regards

Read only

800

skk,

I don't understand how your response applies to the posted question. We're trying to create a sales document with multi-level configurable items via BAPI.

/Greg