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_SALESORDER_CREATEFROMDAT2

Former Member
0 Likes
550

hello all,

I am using BAPI_SALESORDER_CREATEFROMDAT2 to create orders. Since I need automatic item number generation, I have set the INT_NUMBER_ASSIGNMENT flag to X.

However, I am getting the following error -

Error - No item category available (Table T184 ZOSC ZDEL ZPOB)

Since there is no item number attached to the line items and the schedule lines, the item category generation part picks up the item category of the previous material, which is the first line in the line items. - with item number 00.

Note that since I have set the INT_NUMBER_ASSIGNMENT flag, all line item numbers are 00.

Can anyone suggest how I can fix this error please?

Thanks

Vaishali

2 REPLIES 2
Read only

Former Member
0 Likes
446

I guess that a functionmal consultant is responsible for a correct content of table T184. Customizing?

Read only

Former Member
0 Likes
446

Hi,

Internal Item number assignment is used for different reason. Read this documentation.

Description

This parameter activates internal item number assignment. Sometimes,

internal item numbering from SAP is needed, for example for articles

that cause a bill of material to explode in the sales order.

Example:

You create an order with 2 items, each with a schedule line and enter

item numbers 10 and 20 in the SALES_ITEMS_IN and SALES_SCHEDULES_IN. If

the article for item 10 contains a sales bill of material, this is

exploded and a sub-item is created with item number 20. This means that

the relationship between the schedule line (VBEP) and the item (VBAP) is lost.

In this case, the SAP nees to assign the item numbers internally.

Default

Space, which means that you have tried to create an order with external

item numbering.

Regards,

Sudheer