Item master upload
Hi Experts,
I am trying to upload item master through DI API.
I could map almost all the fields i have in the text file expect for the
Purchasing UoM
Sales UoM
Valuation Method.
I am using the following code to accomplish the functionality. Could you please let me know how do i get these fields?
SAPbobsCOM.Items oItms = (SAPbobsCOM.Items)cmp.GetBusinessObject(SAPbobsCOM.BoObjectTypes.oItems);
SAPbobsCOM.Items_Prices oItms1 = (SAPbobsCOM.Items_Prices)cmp.GetBusinessObject(SAPbobsCOM.BoObjectTypes.oItems);
SAPbobsCOM.Documents oItms2= (SAPbobsCOM.Documents)cmp.GetBusinessObject(SAPbobsCOM.BoObjectTypes.oItems);
oItms.ItemCode = "40234";
oItms.ItemName = "H Color";
oItms.BarCode = "741075";
oItms.ItemsGroupCode = "Sandals";
oItms1.Price="24";
oItms.PriceList="01";
oItms.Manufacturer = "abc";
oItms.ShipType = "USPS Ground";
oItms.IssueMethod = "Manual";
oItms2.CardCode="V100";
oItms.SupplierCatalogNo = "4000016";
//Purchasing UoM
oItms.PurchaseItemsPerUnit = "1";
oItms.PurchasePackagingUnit="Case12";
oItms.PurchaseQtyPerPackUnit="12";
oItms.PurchaseUnitVolume = "0.001";
oItms.PurchaseUnitWeight1 = "0.155";
//Sales UoM
oItms.SalesItemsPerUnit = "1";
oItms.SalesPackagingUnit = "Ea";
oItms.SalesQtyPerPackUnit = "1";
oItms.InventoryUOM = "Ea";
//Valuation Method
oItms.AvgStdPrice = "7";
oItms.MinInventory = "12";
oItms.MaxInventory = "1200";
oItms.PlanningSystem = "None";
oItms.ProcurementMethod = "Monthly";
oItms.OrderMultiple = "12";
oItms.MinOrderQuantity = "120";
oItms.LeadTime = "90";
oItms.UserFields.Fields.Item(U_APOLLO_SEG1).Value = "4000016";
oItms.UserFields.Fields.Item(U_APOLLO_SEG2).Value = "0046";
oItms.UserFields.Fields.Item(U_APOLLO_SSEG3).Value = "234";
int result = oItms.Add();
if (result != 0)
oApp.MessageBox(oCompany.GetLastErrorDescription(), 1, "Ok", "", "");
else
oApp.MessageBox("Item Master Uploaded!", 1, "Ok", "", "");
Hey Vishnu,
I tried running this code.
Issuemethod,planningsystem etc...i get this error
Error3 Cannot implicitly convert type 'string' to 'SAPbobsCOM.BoIssueMethod' Cannot implicitly convert type 'string' 'SAPbobsCOM.BoPlanningSystem'
how do i populate values for those fields?
Can you advise me on the same.
Thanks and Regards,
Kreddy
SAPbobsCOM.Items oItms = (SAPbobsCOM.Items)oCompany.GetBusinessObject(SAPbobsCOM.BoObjectTypes.oItems);
SAPbobsCOM.Items_Prices oItms1 = (SAPbobsCOM.Items_Prices)oCompany.GetBusinessObject(SAPbobsCOM.BoObjectTypes.oItems);
SAPbobsCOM.Documents oItms2 = (SAPbobsCOM.Documents)oCompany.GetBusinessObject(SAPbobsCOM.BoObjectTypes.oItems);
oItms.ItemCode = "4000016-0001-234";
oItms.ItemName = "Havainas Color";
oItms.BarCode = "741940075";
// oItms.ItemsGroupCode = "Sandals";
oItms1.Price = 24;
//oItms.PriceList = "01";
oItms.Manufacturer = "abc";
oItms.ShipType = "USPS Ground";
oItms.IssueMethod = "Manual";
oItms2.CardCode = "V100";
oItms.SupplierCatalogNo = "4000016";
oItms.PurchaseUnit = "Ea";
oItms.PurchaseItemsPerUnit = 1;
oItms.PurchasePackagingUnit = "Case12";
oItms.PurchaseQtyPerPackUnit = 12;
oItms.PurchaseUnitVolume = 0.001;
oItms.PurchaseUnitWeight1 =0.155;
oItms.SalesUnit = "Ea";
oItms.SalesItemsPerUnit = 1;
oItms.SalesPackagingUnit = "Ea";
oItms.SalesQtyPerPackUnit = 1;
oItms.InventoryUOM = "Ea";
oItms.CostAccountingMethod = "Moving Avergae";
oItms.AvgStdPrice = 7;
oItms.MinInventory = 12;
oItms.MaxInventory = 1200;
oItms.PlanningSystem = "None";
oItms.ProcurementMethod = "Monthly";
oItms.OrderMultiple = 12;
oItms.MinOrderQuantity = 120;
oItms.LeadTime = 90;
oItms.UserFields.Fields.Item("U_APOLLO_SEG1").Value = "4000016";
oItms.UserFields.Fields.Item("U_APOLLO_SEG2").Value = "0046";
oItms.UserFields.Fields.Item("U_APOLLO_SSEG3").Value = "234";
int result = oItms.Add();
Similar Messages
-
Inbuilt RFC/IDOCs to upload ITEM MASTER DATA in SAP IS Retail system
Hi,
Kindly let me know the inbuilt IDOCs/RFCs to upload ITEM MASTER DATA in SAP IS Retail system.
Otherwise let me know the tcode to check the inbuilt IDOCs/RFCs in SAP IS retail system or let me know all MASTER DATA related inbuilt IDOCs/RFCs in SAP IS retail system.
Thanks
RameshHi,
Please check below link. hope it helps you to answer your question
http://wiki.sdn.sap.com/wiki/display/Retail/SAPRetailPOS+Interface -
Upload FS Items master using flexible upload-SEM-BCS
I want to upload FS Items master using flexible upload in SEM BCS. I was wondering if i could have a sample upload format of the file. Kindly help.
Ramanathan
[email protected]Hi Ramanathan and welcome to SDN!
Everything depends on your settings in a flexible upload method.
You may use a comment character (like an asterisk) to show fields names and choose a fields delimiter (say, ';').
In this case you may have a file for upload something like the following.
These are fields in a header
Field1 Field2 Field3 Field4 etc.
Field1Val;Field2Val;Field3Val;Field4Val
These are fields in rows
Field5 Field6 Field7 Field8 etc.
Field8Val;Field8Val;Field8Val;Field8Val
Field8Val;Field8Val;Field8Val;Field8Val
Field8Val;Field8Val;Field8Val;Field8Val
Best regards,
Eugene -
Item master Data upload through DTW
Hi Experts
I want to upload Item master Data through DTW what are the fields needed as mandatory..
Regards
VinothHi,
Please refer sample template to get an idea for mandatory field.
C:\Program Files (x86)\SAP\Data Transfer Workbench\Templates\Samples\1. Add New Data\Inventory\Item Master Data
For item master data, only item code is mandatory when you are adding new item.
Thanks & Regards,
Nagarajan -
Dear all expert,
I want to put picture on item master data. I'm already set up picture folder on General Setting in C:/SAP Images.
If I'm uploading the picture on C:/SAP Images in my computer, another user can't see the picture.
I'm trying to upload in the server (C:/SAP Images) but the problem still happen. Only SAP on server that can see the picture.
So where do I have to put the picture ?
ThanksHi!
The Client should Connect to the Server automaticaly rather giving User Name and Password.
In User Machine > Go to RUN >
Server name
1. it should connect without asking password, to attain this each client should be register in SEVER Machin. (Take a help of IT ADMIN)
2. That Picture folder should be shared and tht folder should have full access to the user.
3. Define Picture Folder Path in SAP as
Server Name\Path... -
User defined field:item master
Hi,
In item master data, I want to create a user defined field which is linked to an external table wherein the end-user can automatically upload new item master details into the sap appl frm an external table.Dear Ayesha,
As far as I understand, what you would like to do is the following :
1. A user adds some data into an external table.
2. The user defined Field in SAP B1 is automatically updated with the data in the external table.
If you would like to achieve the above, then I would suggest you to use one of the following methods :
1. DTW to import the tables' content.
2. Import/export option from Excel
3. or an Addon created via the SDK.
If I understood the issue incorrectly, please let me know.
Regards
Arshdeep -
MISSING ACCOUNTING TABS IN THE ITEM MASTER
I did an LSMW for new items for different plants that we have. When I check the item in the item master I find the accounting tabs missing. There are approximately 630 items that need to be fixed. Does anyone know how to add the accounting tabs to a large group of items. I tried MASS t-code and it didn't work.
Hi,
for the 630 items missing accounting compose an LSMW again with the required legacy file(data upload) information using MM01 transaction.
This should add the accounting views for the required materials.
regards
sadhu kishore -
What is relation between atc1 (item master attachment) and item master.
hi.
i am having some problem.
ie.
what is the relation between atc1 and item master header....
i want to execute the below query.... and i want to get the line no from the sql.
if u ask what is the difficulty..
one.jpg may be two items can upload ...the same image. i can not filter based on the file name
select Line from atc1 where FileName ='one.jpg'
is it possible like
select Line from atc1 where FileName ='one.jpg' and itemcode='one'Hi,
Try this:
SELECT T1.[Line] FROM OITM T0 left join ATC1 T1 on T1.[AbsEntry] = T0.[AtcEntry] WHERE T1.[FileName] =[%0]
It will displace name of the file which is attached to item master.
Thanks & Regards,
Nagarajan -
Issue importing item master data. Help!
Hello All,
I;m fairly new to B1, looks like a great product.
Im having some issues importing master data using the data import tool under the administraion module.
I have a list of items, and it will only import the last row. The log error says " Character number is greater than allowed" on all other rows/items.
It's weird because all fields match perfectly, and if I put 1 row/item it uploads perfectly. Only errorss when I have more than 1 row.
Any help would be wonderful!
Thanks,
-JonHello John,
You may check this thread:
data import through excel
Thanks,
Gordon -
Delete Multiple Records from Item Master
Hi,
We received wrong master data which has been uploaded and two groups have to be deleted. All the items in those particular groups have also to be deleted. Can anyone suggest how to delete multiple records from Item Master?
Currently I am navigating through each Item and doing a Right Click + Remove. It is very painful given the huge number of records.
Regards
SudattHi Sudatt.....
I recommend you not to run any kind of delete or update SQL query as it harms DB.
You can create your own front end application with the help of any technical consultant which can be
achieved very easily. Else such problems create a big problem during upgradation to next version.......
Regards,
Rahul -
Assign all Items from Item Master to a New Inventory Org
Hi Gurus,
Currently we have 1 Item Master Org and 7 Child Orgs in our system. We are adding one more Child Org into our system. How to assign all the Items at once from Item Master to the new Child Org? We have Oracle EBS R12.
Thanks in advance.
KMHello,
In 11.5.10.2 our developer added new organization to items:) I think in R12 you do not have any standard function.
Regards,
Luko
Ps. Look also http://oracle.ittoolbox.com/groups/technical-functional/oracle-apps-l/item-assignment-to-orgs-in-inventory-r12-4688011
Edited by: Luko on 2012-08-20 22:17 -
How to Use PM BAPI for equipment Master upload : BAPI_EQUIPMENT_SAVEREPLICA
Hi ,
How to use PM BAPI for equipment Master upload : BAPI_EQUIPMENT_SAVEREPLICA.
May i know what are the input parameters & fields mandatory
for each Table structures ct_data , ct_datax , it_descript , it_longtext.
Can any one explain me Step by Step Process.
B'cos i tried with below code. Equipment is not getting created.
wa_itab-equipment_ext = '000000000100000001'.
wa_itab-descript = 'Test 2 -> Lube Oil Pump'.
wa_itab-text_language = 'EN'.
wa_itab-sdescript = 'Short Description'.
APPEND wa_itab TO it_itab.
CLEAR wa_itab.
LOOP AT it_itab INTO wa_itab.
ct_data-ta_guid = '000000000000000001'.
ct_data-equipment_ext = wa_itab-equipment_ext.
ct_data-descript = wa_itab-descript .
ct_data-valid_date = sy-datum.
ct_data-equicatgry = 'M'.
APPEND ct_data.
CLEAR ct_data.
ct_datax-ta_guid = '000000000000000001'.
ct_datax-equipment_ext = 'X'.
ct_datax-equipment = 'X'.
APPEND ct_datax.
CLEAR ct_datax.
it_descript-ta_guid = '000000000000000001'.
it_descript-text_language = wa_itab-text_language.
it_descript-descript = wa_itab-sdescript .
APPEND it_descript.
CLEAR it_descript.
it_longtext-ta_guid = '000000000000000001'.
it_longtext-text_language = wa_itab-text_language.
it_longtext-text_id = 'LTXT'.
it_longtext-text_line = 'SSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSS'.
APPEND it_longtext.
CLEAR it_longtext.
it_longtext-ta_guid = '000000000000000001'.
it_longtext-text_language = wa_itab-text_language.
it_longtext-text_id = 'INTV'.
it_longtext-text_line = 'aaaaaaaaaaaaaaa'.
APPEND it_longtext.
CLEAR it_longtext.
it_longtext-ta_guid = '000000000000000001'.
it_longtext-text_language = wa_itab-text_language.
it_longtext-text_id = 'INTV'.
it_longtext-text_line = 'bbbbbbbbbbbb'.
APPEND it_longtext.
CLEAR it_longtext.
it_longtext-ta_guid = '000000000000000001'.
it_longtext-text_language = wa_itab-text_language.
it_longtext-text_id = 'INTV'.
it_longtext-text_line = 'cccccccccccccccc'.
APPEND it_longtext.
CLEAR it_longtext.
CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'.
call BAPI-function in this system
CALL FUNCTION 'BAPI_EQUIPMENT_SAVEREPLICA'
TABLES
ct_data = ct_data
ct_datax = ct_datax
it_descript = it_descript
it_longtext = it_longtext
return = return
EXCEPTIONS
OTHERS = 1.
IF sy-subrc = 0.
CALL FUNCTION 'BAPI_TRANSACTION_ROLLBACK'.
WRITE : 'Successful'.
ENDIF.
IF NOT return IS INITIAL.
LOOP AT return.
IF return-type = 'A' OR return-type = 'E'.
WRITE : 'Error'.
ENDIF.
ENDLOOP.
ENDIF.
REFRESH return.
ENDLOOP.
Regards
SUrendarHi ,
How to use PM BAPI for equipment Master upload : BAPI_EQUIPMENT_SAVEREPLICA.
May i know what are the input parameters & fields mandatory
for each Table structures ct_data , ct_datax , it_descript , it_longtext.
Can any one explain me Step by Step Process.
B'cos i tried with below code. Equipment is not getting created.
wa_itab-equipment_ext = '000000000100000001'.
wa_itab-descript = 'Test 2 -> Lube Oil Pump'.
wa_itab-text_language = 'EN'.
wa_itab-sdescript = 'Short Description'.
APPEND wa_itab TO it_itab.
CLEAR wa_itab.
LOOP AT it_itab INTO wa_itab.
ct_data-ta_guid = '000000000000000001'.
ct_data-equipment_ext = wa_itab-equipment_ext.
ct_data-descript = wa_itab-descript .
ct_data-valid_date = sy-datum.
ct_data-equicatgry = 'M'.
APPEND ct_data.
CLEAR ct_data.
ct_datax-ta_guid = '000000000000000001'.
ct_datax-equipment_ext = 'X'.
ct_datax-equipment = 'X'.
APPEND ct_datax.
CLEAR ct_datax.
it_descript-ta_guid = '000000000000000001'.
it_descript-text_language = wa_itab-text_language.
it_descript-descript = wa_itab-sdescript .
APPEND it_descript.
CLEAR it_descript.
it_longtext-ta_guid = '000000000000000001'.
it_longtext-text_language = wa_itab-text_language.
it_longtext-text_id = 'LTXT'.
it_longtext-text_line = 'SSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSS'.
APPEND it_longtext.
CLEAR it_longtext.
it_longtext-ta_guid = '000000000000000001'.
it_longtext-text_language = wa_itab-text_language.
it_longtext-text_id = 'INTV'.
it_longtext-text_line = 'aaaaaaaaaaaaaaa'.
APPEND it_longtext.
CLEAR it_longtext.
it_longtext-ta_guid = '000000000000000001'.
it_longtext-text_language = wa_itab-text_language.
it_longtext-text_id = 'INTV'.
it_longtext-text_line = 'bbbbbbbbbbbb'.
APPEND it_longtext.
CLEAR it_longtext.
it_longtext-ta_guid = '000000000000000001'.
it_longtext-text_language = wa_itab-text_language.
it_longtext-text_id = 'INTV'.
it_longtext-text_line = 'cccccccccccccccc'.
APPEND it_longtext.
CLEAR it_longtext.
CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'.
call BAPI-function in this system
CALL FUNCTION 'BAPI_EQUIPMENT_SAVEREPLICA'
TABLES
ct_data = ct_data
ct_datax = ct_datax
it_descript = it_descript
it_longtext = it_longtext
return = return
EXCEPTIONS
OTHERS = 1.
IF sy-subrc = 0.
CALL FUNCTION 'BAPI_TRANSACTION_ROLLBACK'.
WRITE : 'Successful'.
ENDIF.
IF NOT return IS INITIAL.
LOOP AT return.
IF return-type = 'A' OR return-type = 'E'.
WRITE : 'Error'.
ENDIF.
ENDLOOP.
ENDIF.
REFRESH return.
ENDLOOP.
Regards
SUrendar -
How to add a column in Item Master form with chooselist
Hi Experts
I add a column in Item Master Form in Stock Data Tab. In this column I want to add Choose list. For this I use AfterFormLoad event. It gives Error "Matrix Line Exist" . My code is given below
If pVal.FormType = "150" Then
form = B1Connections.theAppl.Forms.GetForm(150, pVal.FormTypeCount)
form.PaneLevel = 3
oItem = form.Items.Item("28")
oMatrix = oItem.Specific
Dim chooseObj As ChooseListClass
chooseObj = New ChooseListClass
chooseObj.AddChooseFromListBinCode(form.UniqueID)
oColumns = oMatrix.Columns
oColumn = oColumns.Add("BINCODE", BoFormItemTypes.it_EDIT)
oColumn.Width = 100
oColumn.DataBind.SetBound(True, "OITW", "U_BINCODE")
oColumn.TitleObject.Caption = "Def BinCode"
oColumn.Editable = True
oColumn.ChooseFromListUID = "CFL5"
oColumn.ChooseFromListAlias = "U_BinCode"
oColumn = oColumns.Item("U_BINCODE")
oColumn.Visible = False
End If
please give your suggestion
Regards
JitenderHi Noor
Thanks for reply
I tried your suggestion but problem still there. I am using after form load event. Here matrix has 9 lines (all warehouse). If remove the line then how can I reload warehouse data. Can you suggest in more detail.
my code is given below
form = B1Connections.theAppl.Forms.GetForm(150, pVal.FormTypeCount)
form.PaneLevel = 3
oItem = form.Items.Item("28")
oMatrix = oItem.Specific
MsgBox(oMatrix.RowCount)
oMatrix.DeleteRow(1)
Dim chooseObj As ChooseListClass
chooseObj = New ChooseListClass
chooseObj.AddChooseFromListBinCode(form.UniqueID)
oColumns = oMatrix.Columns
oColumn = oColumns.Add("BINCODE", BoFormItemTypes.it_EDIT)
oColumn.Width = 100
oColumn.DataBind.SetBound(True, "OITW", "U_BINCODE")
oColumn.TitleObject.Caption = "Def BinCode"
oColumn.Editable = True
oColumn.ChooseFromListUID = "CFL5"
oColumn.ChooseFromListAlias = "U_BinCode"
oColumn = oColumns.Item("U_BINCODE")
oColumn.Visible = False
oMatrix.AddRow(1)
Thanks
Waiting for reply
Regards
Jitender -
Dear Experts
I am getting the following error message while adding item in Item Master data. I have modified the following SBO_SP_transactionNotification in SQL server after that could not able to add the item
ALTER proc [dbo].[SBO_SP_TransactionNotification]
@object_type nvarchar(20), -- SBO Object Type
@transaction_type nchar(1), -- [A]dd, [U]pdate, [D]elete, [C]ancel, C[L]ose
@num_of_cols_in_key int,
@list_of_key_cols_tab_del nvarchar(255),
@list_of_cols_val_tab_del nvarchar(255)
AS
begin
-- Return values
declare @error int -- Result (0 for no error)
declare @error_message nvarchar (200) -- Error string to be displayed
select @error = 0
select @error_message = N'Ok'
-- IF @OBJECT_TYPE = '59' AND (@TRANSACTION_TYPE = 'A' or @TRANSACTION_TYPE = 'U')
BEGIN
IF EXISTS(
SELECT T0.Price FROM IGN1 T0
where IsNull(T0.Price, '0') = '0' and T0.DocEntry = @list_of_cols_val_tab_del)
BEGIN
SELECT @ERROR=1,@ERROR_MESSAGE='Please insert the price !'
END
end
-- Select the return values
select @error, @error_message
endHi Rathna,
Just put the SP like this, without the -- before the IF. A -- marks the line as a command therefore you need to uncomment and it will work.
IF @OBJECT_TYPE = '59' AND (@TRANSACTION_TYPE = 'A' or @TRANSACTION_TYPE = 'U')
BEGIN
IF EXISTS(
SELECT T0.Price FROM IGN1 T0
where IsNull(T0.Price, '0') = '0' and T0.DocEntry = @list_of_cols_val_tab_del)
BEGIN
SELECT @ERROR=1,@ERROR_MESSAGE='Please insert the price !'
END
end
Hope it helps -
Item Master in Oracle Purchasing
Greetings to All,
Im am currently working with a client. Who has the following modules installed. GL-AP-AR-Purchasing-iProcurement.
My client would like to me to create an item in Item Master. Then have that item show up in iProcurement. When a user searchs for that item. Finds it. Requisition it. That item if its listed on a Blanket Release, should be able to go against that item.
STEPS DONE SO FAR:
I have created the item...called "prt-0001" in the master org. Gave the item UOM, purchasing attributes, and price.
Ran E-Catalog Extractor.
Checked iProcurement item not found.
Item category and PO item catergory were setup before I came onboard.
Can anyone shed some light on what I am missing. Please be aware that Im a Functional Person...with little exposure to Technical side.
ThanksHi,
You can extract items without List Price , but that item will get extracted to iProcurement without a price then you wont be able to enter a price while creating and approving a requisition.
Steps to Tie to ASL and BPA
1. Create the item in Item Master
2. Purchasing Attributes setup completed (Also ensure PO Item Category is set)
3. Create ASL for the item in the ASL screen (Ensure its for child org / it has a site )
4. Go and create a BPA for the above supplier and site along with the item in the line details
5. Run Extractor program for classifications and items
6. Go to iProc and query for the item in Categories -- U should be able to view the same with the price as entered in BPA
Regards,
Sanjam
Maybe you are looking for
-
HP LaserJet Pro 400 M401dne - dont save network setting IPv4
Hi. I have a truble when try to config my printer HP LaserJet Pro 400 M401dne. I chose a default button on device << OK >> Choce "config networking" when put into manual mode. IP 111.011.011.180 mask 255.255.255.0 gateway
-
Need help on SQL Statement for UDF
Hi, as I am not so familiar with SQL statements on currently selected values, I urgently need help. The scenario looks as follows: I have defined two UDFs named Subgroup1 and Subgroup2 which represent the subgroups dependent on my article groups. So
-
Hi Everyone, I have some artwork with various shadows. Some of the artwork needs to be adapted large format. I need to scale the effects in indesign with the object, but the shadow stays the same size. I have checked my indesign prefs and made sure t
-
Error when publish my site on .mac
hello from Paris, with iweb 08, when I publish my site I have the error : "an error occurred at the time of the publication of the file : /web/.tempory web resources/3A70C2FF-C939-4AF3-BC7D-BDOCA9AA0C5F" can you help me?. Thank you Frédéric BETHE - P
-
Anyone have a clue how I can open or convert the Adobe Connect FLV file?