Add product

Imports System.Data.SqlClient
Public Class frmProduct
    Dim intDB_SKU_Selected As String
    Dim intDB_Supplier_Selected As Integer
    Dim intEdit_ID As String
    Dim operation_save As String
    Public Sub ClearTextBox()
        txtSKU.Clear()
        txtDescription.Clear()
        cbCategory.Text = ""
        txtExpireDate.Clear()
        txtSupplier.Clear()
        cbUnit.Text = ""
        txtQty_Unit.Clear()
        txtPcs_Qty.Clear()
        txtTotal_Qty.Clear()
        txtRetail.Clear()
        txtWholeSP.Clear()
        txtOriginalPrice.Clear()
        txtMarkUP.Clear()
        lbSupID.Text = ""
        txtDiscounted.Text = 0
        txtPercentage.Text = 0
    End Sub
    Public Sub enabletxtbox()
        txtSKU.Enabled = True
        txtDescription.Enabled = True
        cbCategory.Enabled = True
        'txtSupplier.Enabled = True
        cbUnit.Enabled = True
        txtQty_Unit.Enabled = True
        txtPcs_Qty.Enabled = True
        txtRetail.Enabled = True
        txtWholeSP.Enabled = True
        txtOriginalPrice.Enabled = True
        txtMarkUP.Enabled = True
        txtExpireDate.Enabled = True
        btnSearch_Supplier.Enabled = True
        CheckSenior.Enabled = True
    End Sub
    Public Sub disabletxtbox()
        txtDescription.Enabled = False
        cbCategory.Enabled = False
        txtSupplier.Enabled = False
        cbUnit.Enabled = False
        txtQty_Unit.Enabled = False
        txtPcs_Qty.Enabled = False
        txtTotal_Qty.Enabled = False
        txtRetail.Enabled = False
        txtWholeSP.Enabled = False
        txtOriginalPrice.Enabled = False
        txtMarkUP.Enabled = False
        txtExpireDate.Enabled = False
        btnSearch_Supplier.Enabled = False
        CheckSenior.Enabled = False
        txtPercentage.Enabled = False
        txtDiscounted.Enabled = False
        txtPercentage.Text = 0
    End Sub
    Public Sub dispRecProduct(ByVal PstrSQL As String)
        Me.ProductLV.Items.Clear()
        With comDB
            .CommandText = PstrSQL
            rdDB = .ExecuteReader
        End With
        Do While rdDB.Read
            Item = Me.ProductLV.Items.Add(rdDB!SKU.ToString.Trim)
            Item.SubItems.Add(rdDB!ItemDescription.ToString.Trim)
            Item.SubItems.Add(rdDB!Category.ToString.Trim)
            Item.SubItems.Add(rdDB!Expire_Date.ToString.Trim)
            Item.SubItems.Add(rdDB!OriginalPrice.ToString.Trim)
            Item.SubItems.Add(rdDB!MarkUp.ToString.Trim)
            Item.SubItems.Add(rdDB!WholeSalePrice.ToString.Trim)
            Item.SubItems.Add(rdDB!RetailPrice.ToString.Trim)
            Item.SubItems.Add(rdDB!DiscountedPrice.ToString.Trim)
            Item.SubItems.Add(rdDB!Unit.ToString.Trim)
            Item.SubItems.Add(rdDB!QTY_UNIT.ToString.Trim)
            Item.SubItems.Add(rdDB!Pcs_Qty.ToString.Trim)
            Item.SubItems.Add(rdDB!Total_Qty.ToString.Trim)
            My.Application.DoEvents()
        Loop
        rdDB.Close()
    End Sub
    Private Sub dispInfo()
        SQL = "SELECT * FROM dbo.tb_Product INNER JOIN " & _
               "dbo.tb_Supplier ON dbo.tb_Product.SupplierNum = dbo.tb_Supplier.SupplierNum where SKU =" & intDB_SKU_Selected & ""
        With comDB
            .CommandText = SQL
            rdDB = .ExecuteReader
        End With
        If rdDB.HasRows = True Then
            rdDB.Read()
            Me.txtSKU.Text = rdDB!SKU.ToString.Trim
            Me.txtDescription.Text = rdDB!ItemDescription.ToString.Trim
            Me.txtSupplier.Text = rdDB!SupplierName.ToString.Trim
            Me.cbCategory.Text = rdDB!Category.ToString.Trim
            Me.cbUnit.Text = rdDB!Unit.ToString.Trim
            Me.txtDiscounted.Text = rdDB!DiscountedPrice.ToString.Trim
            Me.txtQty_Unit.Text = rdDB!Qty_Unit.ToString.Trim
            Me.txtPcs_Qty.Text = rdDB!Pcs_Qty.ToString.Trim
            Me.txtTotal_Qty.Text = rdDB!Total_Qty.ToString.Trim
            Me.txtExpireDate.Text = rdDB!Expire_Date.ToString.Trim
            Me.txtRetail.Text = rdDB!RetailPrice.ToString.Trim
            Me.txtWholeSP.Text = rdDB!WholeSalePrice.ToString.Trim
            Me.txtMarkUP.Text = rdDB!MarkUp.ToString.Trim
            Me.txtOriginalPrice.Text = rdDB!OriginalPrice.ToString.Trim
        End If
        rdDB.Close()
    End Sub
    Private Sub dispInfo1()
        SQL = "Select * from tb_Product where SKU =" & intDB_SKU_Selected & ""
        With comDB
            .CommandText = SQL
            rdDB = .ExecuteReader
        End With
        If rdDB.HasRows = True Then
            rdDB.Read()
            Me.lbSupID.Text = rdDB!SupplierNum.ToString.Trim
        End If
        rdDB.Close()
    End Sub
    Public Sub inserttoproduct()
        SQL = "INSERT INTO tb_Product" & _
           "([SKU], [ItemDescription], [Category], [Unit], [QTY_Unit], [Pcs_Qty], [Total_Qty], [Expire_Date], [RetailPrice], [DiscountedPrice], [WholeSalePrice], [OriginalPrice], [MarkUp], [SupplierNum])" & _
        "VALUES('" & txtSKU.Text.Trim & "','" & txtDescription.Text.Trim & "','" & cbCategory.Text.Trim & "','" & cbUnit.Text.Trim & "','" & txtQty_Unit.Text.Trim
& "','" & txtPcs_Qty.Text.Trim & "','" & txtTotal_Qty.Text.Trim & "','" & txtExpireDate.Text & "','" & txtRetail.Text & "','" & txtDiscounted.Text & "','"
& txtWholeSP.Text & "','" & txtOriginalPrice.Text & "','" & txtMarkUP.Text & "','" & lbSupID.Text.Trim & "');"
    End Sub
    Public Sub updatetoproduct()
        SQL = "UPDATE tb_Product SET SKU = '" & Me.txtSKU.Text.Trim & "', ItemDescription = '" & Me.txtDescription.Text.Trim & "', Category = '" & Me.cbCategory.Text.Trim & "', Unit
= '" & Me.cbUnit.Text.Trim & "', QTY_Unit = '" & Me.txtQty_Unit.Text.Trim & "', Pcs_Qty = '" & Me.txtPcs_Qty.Text.Trim & "', Total_Qty = '" & Me.txtTotal_Qty.Text.Trim & "', Expire_Date
= '" & Me.txtExpireDate.Text & "', RetailPrice = '" & Me.txtRetail.Text.Trim & "', DiscountedPrice = '" & Me.txtDiscounted.Text.Trim & "', WholeSalePrice = '" & Me.txtWholeSP.Text.Trim & "',
OriginalPrice = '" & Me.txtOriginalPrice.Text.Trim & "', MarkUp = '" & Me.txtMarkUP.Text.Trim & "', SupplierNum = '" & lbSupID.Text.Trim & "' WHERE SKU = '" & Me.txtSKU.Text & "'"
    End Sub
    Public Sub dispRecCount()
        Call dispStatLB(Me.stat, "Record count: " & Me.ProductLV.Items.Count.ToString)
    End Sub
    Private Sub btnSearch_Supplier_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnSearch_Supplier.Click
        frmFindSupplier.ShowDialog()
    End Sub
    Private Sub Exit__Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Exit_.Click
        ClearTextBox()
        Call closeDB()      'Close the connection from database
        frmAdmin.MainTControl.TabPages.Remove(Me.tabProduct)
    End Sub
    Private Sub Edit_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Edit.Click
        Try
            operation_save = "edit"
            txtoperation.Text = operation_save
            intDB_SKU_Selected = Me.ProductLV.SelectedItems(0).Text
            Save.Enabled = True
            enabletxtbox()
            'GetDiscount()
            Call dispInfo()
            Call dispInfo1()
            dispRecCount()
        Catch ex As Exception
            MsgBox(ex.Message)
        End Try
    End Sub
    Private Sub Cancel_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Cancel.Click
        ClearTextBox()
        Save.Enabled = False
    End Sub
    Private Sub Save_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Save.Click
        Try
            If operation_save = "" Then
                Exit Sub
            ElseIf operation_save = "add" Then
                If txtSKU.Text = "" Then
                    MsgBox("Enter barcode!", MsgBoxStyle.Critical Or MsgBoxStyle.OkOnly, "Error")
                    txtSKU.Focus()
                    Exit Sub
                End If
                If txtSKU.Text = "" Then
                    MsgBox("Enter barcode!", MsgBoxStyle.Critical Or MsgBoxStyle.OkOnly, "Error")
                    txtSKU.Focus()
                    Exit Sub
                End If
                If txtDescription.Text = "" Then
                    MsgBox("Enter item description!", MsgBoxStyle.Critical Or MsgBoxStyle.OkOnly, "Error")
                    txtDescription.Focus()
                    Exit Sub
                End If
                If lbSupID.Text = "" Then
                    MsgBox("Choose supplier!", MsgBoxStyle.Critical Or MsgBoxStyle.OkOnly, "Error")
                    txtSupplier.Focus()
                    Exit Sub
                End If
                If cbCategory.Text = "" Then
                    MsgBox("Enter item category!", MsgBoxStyle.Critical Or MsgBoxStyle.OkOnly, "Error")
                    cbCategory.Focus()
                    Exit Sub
                End If
                If txtExpireDate.Text = "" Then
                    MsgBox("Enter expiration date of the item!", MsgBoxStyle.Critical Or MsgBoxStyle.OkOnly, "Error")
                    txtExpireDate.Focus()
                    Exit Sub
                End If
                If txtOriginalPrice.Text = "" Then
                    MsgBox("Enter original price!", MsgBoxStyle.Critical Or MsgBoxStyle.OkOnly, "Error")
                    txtOriginalPrice.Focus()
                    Exit Sub
                End If
                If txtMarkUP.Text = "" Then
                    MsgBox("Enter Marck up price!", MsgBoxStyle.Critical Or MsgBoxStyle.OkOnly, "Error")
                    txtMarkUP.Focus()
                    Exit Sub
                End If
                If txtWholeSP.Text = "" Then
                    MsgBox("Enter wholesale price!", MsgBoxStyle.Critical Or MsgBoxStyle.OkOnly, "Error")
                    txtWholeSP.Focus()
                    Exit Sub
                End If
                If txtRetail.Text = "" Then
                    MsgBox("Enter retail price!", MsgBoxStyle.Critical Or MsgBoxStyle.OkOnly, "Error")
                    txtRetail.Focus()
                    Exit Sub
                End If
                If cbUnit.Text = "" Then
                    MsgBox("Choose unit of measurement for item!", MsgBoxStyle.Critical Or MsgBoxStyle.OkOnly, "Error")
                    cbUnit.Focus()
                    Exit Sub
                End If
                If txtQty_Unit.Text = "" Then
                    MsgBox("Enter quantity per unit!", MsgBoxStyle.Critical Or MsgBoxStyle.OkOnly, "Error")
                    txtQty_Unit.Focus()
                    Exit Sub
                End If
                If txtPcs_Qty.Text = "" Then
                    MsgBox("Enter pieces of every quantity!", MsgBoxStyle.Critical Or MsgBoxStyle.OkOnly, "Error")
                    txtPcs_Qty.Focus()
                    Exit Sub
                End If
                If CheckSenior.Checked = True Then
                    txtDiscounted.Enabled = False
                    txtPercentage.Enabled = True
                Else
                    txtPercentage.Enabled = False
                End If
                'Do inserting data>>>>
                Me.inserttoproduct()
                execComDB(SQL)
                disabletxtbox()
                MsgBox("Record has been saved!")
                SQL = "Select * from tb_Product " & _
                     "order by SKU desc"
                Call Me.dispRecProduct(SQL)
                Call Me.dispRecCount()
                Edit.Enabled = False
                Delete.Enabled = False
            ElseIf operation_save = "edit" Then
                If txtSKU.Text = "" Then
                    MsgBox("Enter barcode!", MsgBoxStyle.Critical Or MsgBoxStyle.OkOnly, "Error")
                    txtSKU.Focus()
                    Exit Sub
                End If
                If txtSKU.Text = "" Then
                    MsgBox("Enter barcode!", MsgBoxStyle.Critical Or MsgBoxStyle.OkOnly, "Error")
                    txtSKU.Focus()
                    Exit Sub
                End If
                If txtDescription.Text = "" Then
                    MsgBox("Enter item description!", MsgBoxStyle.Critical Or MsgBoxStyle.OkOnly, "Error")
                    txtDescription.Focus()
                    Exit Sub
                End If
                If lbSupID.Text = "" Then
                    MsgBox("Choose supplier!", MsgBoxStyle.Critical Or MsgBoxStyle.OkOnly, "Error")
                    txtSupplier.Focus()
                    Exit Sub
                End If
                If cbCategory.Text = "" Then
                    MsgBox("Enter item category!", MsgBoxStyle.Critical Or MsgBoxStyle.OkOnly, "Error")
                    cbCategory.Focus()
                    Exit Sub
                End If
                If txtExpireDate.Text = "" Then
                    MsgBox("Enter expiration date of the item!", MsgBoxStyle.Critical Or MsgBoxStyle.OkOnly, "Error")
                    txtExpireDate.Focus()
                    Exit Sub
                End If
                If txtOriginalPrice.Text = "" Then
                    MsgBox("Enter original price!", MsgBoxStyle.Critical Or MsgBoxStyle.OkOnly, "Error")
                    txtOriginalPrice.Focus()
                    Exit Sub
                End If
                If txtMarkUP.Text = "" Then
                    MsgBox("Enter Marck up price!", MsgBoxStyle.Critical Or MsgBoxStyle.OkOnly, "Error")
                    txtMarkUP.Focus()
                    Exit Sub
                End If
                If txtWholeSP.Text = "" Then
                    MsgBox("Enter wholesale price!", MsgBoxStyle.Critical Or MsgBoxStyle.OkOnly, "Error")
                    txtWholeSP.Focus()
                    Exit Sub
                End If
                If txtRetail.Text = "" Then
                    MsgBox("Enter retail price!", MsgBoxStyle.Critical Or MsgBoxStyle.OkOnly, "Error")
                    txtRetail.Focus()
                    Exit Sub
                End If
                If cbUnit.Text = "" Then
                    MsgBox("Choose unit of measurement for item!", MsgBoxStyle.Critical Or MsgBoxStyle.OkOnly, "Error")
                    cbUnit.Focus()
                    Exit Sub
                End If
                If txtQty_Unit.Text = "" Then
                    MsgBox("Enter quantity per unit!", MsgBoxStyle.Critical Or MsgBoxStyle.OkOnly, "Error")
                    txtQty_Unit.Focus()
                    Exit Sub
                End If
                If txtPcs_Qty.Text = "" Then
                    MsgBox("Enter pieces of every quantity!", MsgBoxStyle.Critical Or MsgBoxStyle.OkOnly, "Error")
                    txtPcs_Qty.Focus()
                    Exit Sub
                End If
                If CheckSenior.Checked = True Then
                    txtDiscounted.Enabled = False
                    txtPercentage.Enabled = True
                Else
                    txtPercentage.Enabled = False
                End If
                Me.updatetoproduct()
                execComDB(SQL)
                disabletxtbox()
                MsgBox("Record has been updated!")
                SQL = "Select * from tb_Product " & _
                     "order by SKU desc"
                Call Me.dispRecProduct(SQL)
                Call Me.dispRecCount()
                Edit.Enabled = False
                Delete.Enabled = False
                Save.Enabled = False
            End If
        Catch ex As Exception
            MsgBox(ex.Message)
        End Try
    End Sub
    Private Sub Add_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Add.Click
        ClearTextBox()
        enabletxtbox()
        Save.Enabled = True
        operation_save = "add"
    End Sub
    Private Sub txtPercentage_TextChanged(sender As Object, e As EventArgs) Handles txtPercentage.TextChanged
        If txtPercentage.Text = "" Then
            Exit Sub
        End If
        If Not IsNumeric(txtPercentage.Text) Then
            MsgBox("Enter digit for the discount rate!", MsgBoxStyle.Critical Or MsgBoxStyle.OkOnly, "Error")
            txtPercentage.Focus()
            Exit Sub
        End If
        Dim percent As Double = 0
        Dim discount As Double = 0
        Dim discounted As Double = 0
        'CALCULATE THE DISCOUNT
        percent = Val(txtPercentage.Text) / 100
        discount = percent * Val(txtRetail.Text)
        discounted = Val(txtRetail.Text) - discount
        txtDiscounted.Text = discounted.ToString
    End Sub
    'Public Sub GetDiscount()
    '    Dim D1 As Decimal = 0
    '    Dim D2 As Decimal = 0
    '    Dim D3 As Double = 0
    '    Dim D4 As Decimal = Val(txtRetail.Text)
    '    D1 = Val(txtRetail.Text) - Val(txtDiscounted.Text)
    '    TextBox1.Text = D1.ToString
    '    D2 = D1 * 100
    '    TextBox2.Text = D2.ToString
    '    D3 = Val(D2) / D4
    '    TextBox3.Text = D3.ToString
    'End Sub
    Private Sub tabProduct_Click(sender As Object, e As EventArgs) Handles tabProduct.Click
        txtSKU.Focus()
    End Sub
    Private Sub ProductLV_SelectedIndexChanged_1(sender As Object, e As EventArgs) Handles ProductLV.SelectedIndexChanged
        'if record selected edit and delete button is enabled
        If Me.ProductLV.SelectedIndices.Count > 0 Then
            Edit.Enabled = True
            Delete.Enabled = True
            Exit Sub
        Else
            Edit.Enabled = False
            Delete.Enabled = False
        End If
    End Sub
    Private Sub txtSKU_TextChanged(sender As Object, e As EventArgs) Handles txtSKU.TextChanged
        If txtSKU.Text = "" Then
            Exit Sub
        End If
        'MsgBox("No record found!")
    End Sub
    Private Sub txtSKU_LostFocus(ByVal sender As Object, ByVal e As System.EventArgs) Handles txtSKU.LostFocus
        If txtSKU.Text = "" Then txtSKU.Focus()
    End Sub
    Private Sub txtQty_Unit_TextChanged(sender As Object, e As EventArgs) Handles txtQty_Unit.TextChanged
        If txtQty_Unit.Text = "" Then
            Exit Sub
        End If
        If Not IsNumeric(txtQty_Unit.Text) Then
            MsgBox("Enter digit only!", MsgBoxStyle.Critical Or MsgBoxStyle.OkOnly, "Error")
            txtQty_Unit.Focus()
            Exit Sub
        End If
    End Sub
    Private Sub txtPcs_Qty_TextChanged(sender As Object, e As EventArgs) Handles txtPcs_Qty.TextChanged
        If txtPcs_Qty.Text = "" Then
            Exit Sub
        End If
        If Not IsNumeric(txtPcs_Qty.Text) Then
            MsgBox("Enter digit only!", MsgBoxStyle.Critical Or MsgBoxStyle.OkOnly, "Error")
            txtPcs_Qty.Focus()
            Exit Sub
        End If
        Dim totalqty As Double
        totalqty = Val(txtQty_Unit.Text) * Val(txtPcs_Qty.Text)
        txtTotal_Qty.Text = totalqty.ToString
    End Sub
    Private Sub CheckSenior_CheckedChanged(sender As Object, e As EventArgs) Handles CheckSenior.CheckedChanged
        If CheckSenior.Checked = True Then
            txtDiscounted.Enabled = False
            txtPercentage.Enabled = True
        Else
            txtPercentage.Enabled = False
        End If
    End Sub
    Private Sub Delete_Click(sender As Object, e As EventArgs) Handles Delete.Click
        Try
            Dim intSel_ID As String
            intSel_ID = Me.ProductLV.SelectedItems(0).Text
            If MsgBox("Are you sure you want to delete the selected record?", CType(MsgBoxStyle.YesNo + MsgBoxStyle.DefaultButton2 + MsgBoxStyle.Exclamation, MsgBoxStyle), "Delete") = MsgBoxResult.Yes
Then
                'Delete query
                SQL = "DELETE FROM tb_Product WHERE SKU = " & intSel_ID & ""
                Call execComDB(SQL)
                'Remove the record from the list
                Me.ProductLV.Items(Me.ProductLV.SelectedItems(0).Index).Remove()
                Call dispRecCount()     'Display record count
            End If
        Catch ex As Exception
            MsgBox(ex.Message)
        End Try
    End Sub
    Private Sub txtSearchProduct_TextChanged(sender As Object, e As EventArgs) Handles txtSearchProduct.TextChanged
        If txtSearchProduct.Text = "" Then
            SQL = "Select * from tb_Product"
            dispRecProduct(SQL)
            Exit Sub
        End If
        SQL = "Select * from tb_Product " & _
              "where SKU like '%" & Me.txtSearchProduct.Text.Trim & "%' " & _
              "or " & _
              "ItemDescription like '%" & txtSearchProduct.Text.Trim & "%' " & _
              "or " & _
              "Category like '%" & txtSearchProduct.Text.Trim & "%' "
        Call dispRecProduct(SQL)
    End Sub
    Private Sub txtDescription_LostFocus(sender As Object, e As EventArgs) Handles txtDescription.LostFocus
        txtDescription.Text = StrConv(txtDescription.Text, vbProperCase)
    End Sub
End Class
[This code is for adding and editing list of product in the inventory.,] I want to create codes that if I scan  the product using barcode scanner then all information of the product will appear in the text box if existing and the new qty will add to
current qty and if not in the database prompt msgbox that show item not found!.,. I cant get the right code.,. please help.,me
                                                             

Jeff 
It is senseless to send this code. Nobody can past it in his designer simply because a lot is missing. 
Ask simply how to program for a barcode scanner. 
And do it then in the correct forum, this forum is for the desktop user interface problems using Windows Forms.
The best forum for your question is probably 
http://social.msdn.microsoft.com/Forums/vstudio/en-US/home?forum=vbgeneral
And then without all that code, people are just skipping questions which are so long.
Success
Cor

Similar Messages

  • Is there a way for users to add products in the front-end using a Web-App?

    I am racking my brains trying to figure out a way to let users add products to the front-end on their own.
    I am building a site for a client who needs users to be able to create there own storefront, kind of like ebay. Here is exactly the functionality I want: Supplier Frontend Products Upload - Magento Connect
    There HAS to be a way to do this with a web app even if it means writing in some code...can anyone suggest a way to do this?

    In short, out of box no, but is possible.
    Solution 1: Hosted on BC, external interface that interfaces with BC API, requires external hosted server.
    Solution 2: Wait until v3 of the API comes out... no timeline from Adobe given. This would remove the need for the external API server.
    Can do both solutions for you but solution 2 wont work until adobe allows it.

  • How to add production Version  field in COOIS to selection options?

    Dear Experts,
    Need your suggestion for below issue raised by client.
    1) As per client, he was running COOIS with the selection option of a production version. But currently he is  not able to see this selection while executing a COOIS t-code.-----> Kindly guide me on its possibilities & necesary checks.
    2) If I want to correct it & want to add Production Version field in COOIS report what steps I should take?
    Need all your valuable guidence to resolve above issue.
    Thanks & Regards,
    Mehul

    Hello Vivek,
    Really thanks for your mail. Please see below comments-
    1) I checked the transaction COOIS & also told user to select Production Version after executing the report by giving Plant code & dates. But user asking for this field before execution.
    As per your suggestion I checked in Header level of first screen but its not showing me also.
    2)  I am using ECC6.0 version
    3) One finding from my side- This is I am checking only selecting Production Orders. But when I am selecting only Planned order then Production version can be seen in first screen under Repetitive Mfg. section.
    so kindly tell me why this not showing when Production order selected?
    Thanks in Advance for your help.
    Regards,
    Mehul

  • How to add products to a book of business

    hi all
    i have created a hierarchy of books. i want to add products to some of the books.
    how can i add the products to books
    thanks and regards

    Hi,
    We have been struggling with this issue too…it's crucial in SR object when user needs to search the whole company products database even if his book definitions should allow him access only to specific product/s.
    As Venky mentioned it seems that Product is a "global" object grantable to all, in terms of visibility the workaround we came up with is to not allow access to this object to specific role/s and assign them with a separate Product search layout where we have only one read only field available in both targeted search fields and search results layout sections.
    Alex.

  • 'Add to Cart' on iPad or iPhone does not add product to Cart

    Just launched a new site.
    http://www.enbancltd.com.
    Dealing with an issue when trying to add products to the cart on the iPad or iPhone ( possibly other devices as well ).
    Works fine in most PC and Mac browsers. Any ideas??
    Paul

    You have to make sure they are fully compatible with iPad
    Video formats supported:
    H.264 video up to 1080p, 30 frames per second, High Profile level 4.1 with AAC-LC audio up to 160 Kbps, 48kHz, stereo audio in .m4v, .mp4, and .mov file formats;
    MPEG-4 video up to 2.5 Mbps, 640 by 480 pixels, 30 frames per second, Simple Profile with AAC-LC audio up to 160 Kbps per channel, 48kHz, stereo audio in .m4v, .mp4, and .mov file formats;
    Motion JPEG (M-JPEG) up to 35 Mbps, 1280 by 720 pixels, 30 frames per second, audio in ulaw, PCM stereo audio in .avi file format

  • Hi, I have just purchased a new Macbook Pro. Whenever I try and buy anything on the internet (via Safari) on any website it will not allow me to add products to checkout. Has anyone else experienced this problem or can suggest a fix? Many thanks!

    Hi, I have just purchased a new Macbook Pro. Whenever I try and buy anything on the internet (via Safari) on any website it will not allow me to add products to checkout. Has anyone else experienced this problem or can suggest a fix? Many thanks!

    On all shopping sites, or only some? What happens when you try?

  • How to add Product User Statuses?

    hi all,
    I need to add new user status values in the Sales Status list for the Products object.
    The standard only has 2 statuses : blocked with error, blocked with warning. (see field Status in the Sales data tab of the Commpr01 transaction in CRM gui)
    I tried to play with the status management entry of the SPRO (CRM/master data/Products/Status management) : i created a status profile, assigned it to the Master data object. But, the values do not appear in the list.
    Since, our CRM is connected to an ECC system, and the products are actually replicated from ECC, I also tried to change the values in ECC thanks to the menu Logistics general/Material master/settings for key fields/data relevant for S&D/Define sale statuses : i added a few statutes, then relicated the table TVMS to CRM. I can then see that the values have been replicated to the CRM table (CRMC_TVMS). But, i still cannot the values in the drop down list box of the sales status in the Product master.
    Any idea anyon?
    thx
    Lud

    hello lud ,
    The status profile can only be viewed in new UI not in SAPGUI.
    Please perform the following steps
    1. Go to transaction BSP_WD_CMPWB
    2. open the component PRDHS
    3. Go to the view PRDHS/Header
    4. In the configuration add the field 'Status Profile' to the view.
    Now test the again.This should solve the issue.
    Also ensure that the sap note : 1249450 is implemented in the system .
    Thanks & regards,
    krishnen Subramanian.

  • How to add "Product Unit" while entering a new price for a product?

    Hi All,
    I recently created a product in CRM.(in web ui)  .Then I navigated to the Price assignment block anc clicked on New.In that under the "rate" heading there is a field "Product Unit" for which I have no value in search help maintained..Now, how do I maintain these values here .
    I used the t-code COMMPR01 from one of the forum answers but could not get much help.
    Could anyone please help me out with this query?
    Thanks!

    Create an Adobe Reader X virtual app as component and add it to the
    other virtual app under component.
    On 20/05/11 11:29, Marc Charbonneau wrote:
    > Hi, I'm really new to ZAV and trying to quickly setup IE7 with Flash,
    > Shockwave& Adobe Reader X.
    > Only Reader 8 and 9 are listed.
    >
    > We have a Reader X conflict with another important application and guys are
    > trying to find a solution. We've been licensed for ZAV for a while now but
    > no one's taken the time to play with it yet. Hoping this ZAV product can
    > help us with this particular Web apps' dependency.
    >
    > Can anyone point me in right direction?
    >
    > Thanks,
    > Marc
    >
    >

  • QM01 - Add Production Order field to Create Quality Notification

    Hi all SDNers,
    I have searched and found many threads related to my question BUT I'm new to this and I don't know how to implement in detail.
    Would you please guide me step by step adding a field into a standard TCode?
    My requirement is to add the Production Order field (VIQMEL-FERTAUFNR) to the Create Quality Notification (QM01) Tcode under the 1st screen in Reference Documents section of the Reference Objects tab.
    The program is SAPMQM00 and screen number is 3011.
    Thanks,
    Khanh

    Hi all,
    I used the screen number 0140 in program SAPLQM03 as the initial screen before creating Notification type Q2.
    Use SPRO:
    Quality Management --> Quality Notifications --> Notification Creation --> Notification Type
    --> Define Screen Templates --> Define Initial Screens
    Then use Function Module QM03_CREATE_QMEL_WITH_WINDOW and screen 0140 above to configure.
    Hope this will help others.
    Regards,
    Khanh

  • Add product id to the BDD

    Hi,
    does anyone knows how to add the product id to the Business Data Display (BDD) of CIC?
    My goal is to allow the agent that is browsing  the product on CIC, to check if we have stock of that product by calling an R/3 transaction.
    I've already configured the action box with a bor method and data flow. All I really need is to pass the parameter of the product id that the agent sees on CIC to the BDD. From there I can pass it via data flow to the R/3 transaction.
    Thanks in advance,
    Vitor

    VSA,
    Sending data from the BDD and to it are standard functionalities. Inorder to send data to the BDD you have to make use of the import data option.
    This import data represents the data to be passed to the BDD.
    The steps are as follows: (assuming you have the BOR)
    in dataflow:
    1. Open the dataflow. The top half of the screen is for settings from BDD to transactions. We have to make our settings in the lower half of the screen.
    2. You will see a Create Target element icon. Click it. Give a name for the element (say product) in the element field.
    Now for the data type reference, specify the reference table COMM_PRODUCT and field PRODUCT_ID.(or use the object type radio and enter BUS1178. note BUS1178 is the business object for product.)
    Click the green tick icon to continue.
    3. We come back to the earlier screen. Now in the lower half screen we see a + symbol(expandable) under the column "Component assignement".
    Click it and confirm the message that pops up.
    On confirming the pop up, "Product Guid" appears under column target component.
    4. now click in the datasource column and select F4.
    Double click on "BD display object". and select the business object BUS1178 (product).
    Click on the green tick icon to continue.
    5. we get &<DESKOBJ>BUS1178& in the datasource field. again select f4 in the datasource field. Now we see two line items for "BD display Object".
    Expand the second one and select Product Id. (or Product_GUID if product Id does not work)
    Your datasource column entry now looks like this &<DESKOBJ>BUS1178.PRODUCTNUMBER&.
    6. Do not enter anything in the logical system field.
    7. Save your settings.
    I hope this helps.
    Regards,
    Julius

  • How do I add products to an order/invoice and select a product attribute

    Thanks in advance for your assistance!
    In using BC as a CRM, we would like to use it as a way to produce quotes, orders and invoices for potential new customers and repeat customers in the system.
    I cannot seem to add a product to a quote/order/invoice - and select the desired product attribute(s)...
    Is this a fixable issue or "no go" territory?
    Thanks again,
    Lloyd

    Hi Lloyd,
    Unfortunately this is a wishlist request as you cannot select the product attribute item when manually generating an order from the CRM at this stage. 
    The only workaround is to create the order on behalf of the customer on the front-end side of site.  
    I'll pass this feedback to our product team as well. 
    Kind regards,
    -Sidney

  • How to add products to sections dynamically

    Hi,
    I was curious to know if there is any means by which we can control the display of products added to a section.
    Our requirement is, based on certain inputs from customer, we need to show relevant products to customer (Guided selling).
    I was planning to add all products to a section and then based on some inputs from customer, control the products displayed to customer. I have used customizable layout for the section and included a new jsp for middle1 part. This additional JSP is used to capture the inputs from customer.
    I checked iStore api and could not find any methods under Section class to set visibility flag or add new products dynamically.
    Please suggest any alternatives that you may have used for such a case.
    Thanks
    Muttu

    Guided selling can be implemented using Oracle Configurator. You need to implement Oracle Configurator and integrate with iStore to provide it to end customers.

  • Cannot add product to support profile

    I recently bought a new macbook pro
    today i was trying to add the product to my apple id support profile but i was unable to add it.
    it says
    "According to our records, this serial number is registered to another Apple ID. If you have more than one Apple ID, log in to My Support Profile with that Apple ID to see your other registered products. Not sure if you have another Apple ID? Find out."
    I dont have any other apple id... what should i do?
    Vikas

    Yes it was purchased from apple but i think they added it to some other apple id instead of mine?
    how can i add this to my apple id?
    vikas

  • Unable add product image in BCC

    Hi all,
    I tried the following steps to add image to the product in BCC,
    1. Created Media Folder
    2. Choosen "media-external", filled the form with the below details,
    Name: Image.jpeg
    Choosen the parent folder
    URL: D:\Image.jpg
    3. Deployed the project successfully.
    4. Later I added this media item to my product and deployed again.
    Finally in image preview box "Unable to display Image.jpeg" is displaying.
    I didn't find any errors in log while deploying. Please help me to resolve this issue.
    Thanks,
    Kushal.

    Here in our case we had an external server like "http://images.mystore.com/images" and here are all images, then I created a xml to run on /atg/commerce/catalog/ProductCatalog because we had an update of more than 11,000 products, and xml is like this:
    <gsa-template>
        <import-items>
            <add-item id="1img0" item-descriptor="media-external">
                <set-property name="parentFolder"><![CDATA[fld420007]]></set-property>
                <set-property name="url"><![CDATA[http://images.mystore.com/large_730x730/010117.1_z_large.jpg]]></set-property>
                <set-property name="path"><![CDATA[/Products/010117.1_z_large.jpg]]></set-property>
                <set-property name="type"><![CDATA[external]]></set-property>
                <set-property name="name"><![CDATA[010117.1_z_large.jpg]]></set-property>
            </add-item>
    ...other 11,000 add-item and the product updating to set the image created above to largeImage, small, thum, promo... axiliary...
        </import-items>          
        <update-item id="010117" item-descriptor="product">
             <set-property name="largeImage">1img0</set-property>
        </update-item>
        <update-item id="010117" item-descriptor="product">
             <set-property name="auxiliaryMedia"><![CDATA[large_1=1img1]]></set-property>
        </update-item>
    </gsa-template>

  • Couldn't add product

    Hi,
    I'm trying to add my iPhone 6 through this page https://supportprofile.apple.com/ , but it seems couldn't get it success..
    According to our records, this serial number is associated to another Apple ID. If you have more than one Apple ID, log in to My Support Profile with that Apple ID to see your other added products. Not sure if you have another Apple ID?
    i have checked both of my ids and found the iPhone 6 is not listed inside.

    Then you can call Apple or go into the store and ask them to add it for you.

Maybe you are looking for

  • Cannot send email from messages app

    Hey everyone I am unable to send an email from my iPhone to any email address. This feature was working perfectly a couple weeks ago. Once I noticed the issue, I restored my phone and upgraded it to iOS 6.1. This still did not fix the error unfortuna

  • How to enable a check box using the table LVC_S_FCAT

    hi, I am working on reports. I have to have a check box and i am using the table LVC_S_FCAT to get the check box, i am getting the check box. how to enable it.

  • NI 9213 Stops updating temperature values

    I have a CRIO Chassis NI 9074. It has a NI 9213 in the first slot followed by a NI 9205, NI 9264 and NI 9477. This setup is used to read 16 thermocouples, few flow meters, control few blowers and pumps and turn on/off heaters. When I am using the hea

  • Oracle to aquire Captovation so this is interesting too

    REDWOOD SHORES, Calif., Jan. 16 /PRNewswire-FirstCall/ -- Oracle announced today that it has agreed to acquire Captovation... : http://biz.yahoo.com/prnews/080116/aqw114.html?.v=31

  • Automatic Reversal of Result Analysis Posting

    Dear Experts, I would like to ask for suggestions in solving below case in my current project: 1. Project is created for sales of power solutions. Most of them are long-term, thus cost-based revenue recognition method is applied. 2. Result analysis w