2008 Aug 27 2:12 PM
Hi Gurus,
I am using the Fn module 'BAPI_SALESORDER_CREATEFROMDAT2' to create a Sales Order.
In the created SO, I need the item category of the fields to be 'ZBKO' , but when I pass this value in the Item category as :
wa_order_items_in-ITEM_CATEG = 'ZBKO'
it does not seem to work.
It gives an error while creating the SO.
Kindly help,
Thanks in advance.
2008 Aug 27 2:13 PM
check whether 'ZBKO' item category exists in your system.. If exists it will not give an error..
2008 Aug 27 2:15 PM
2008 Aug 27 2:17 PM
well goto your srtucture and see what checktable lies behind that field.
then goto se16 type in your checktable, and see if there´s a record for itemcategory ZKBO
2008 Aug 27 2:20 PM
Thanks a lot for your help but unfortunately, the value does exist in the structure.
Do you have any other solutions?
Again, thanks a lot.
2008 Aug 27 2:24 PM
Hi,
I think when you are using FM 'BAPI_SALESORDER_CREATEFROMDAT2' , you might be passing the reference SO number, Check the item category of this. IF both differs you will get the error.
With Regards,
Dwarakanath.S
2008 Aug 27 2:40 PM
Hi,
I am passing a ref SO no, but even with removing it, its giving the same error.
Thanks for you help though.
2008 Aug 27 3:20 PM
Hi Mayank,
Just open your reference sales order in VA03. In item details there is one field called item category beside plant.(Heading Itca) Try to give the same. Also check whether the value u r trying to pass exist in F4 help of the item category. U can check the table TVPT for all available item categories in ur system. This will be determined automatically by the system based on many conditions.
Check whether u really needs to pass this. Also try to execute report without passing item category and see what is happening.
Thanks,
Vinod.
2009 Jun 19 3:24 PM