How to add data through matrix from sales order row level to

user defined document type table ...
i created matrix in user defined form, i placed one edit text box on that form
when i entered docnum of sales order the data of sales order row level should have to
upload to matrix , after fill up the some data in matrix that data should have to add to the user defined document type table
                            any one have code pls post it
                                        thanq

Hi rajeshwar
Here is a sample function related to ur senario. just check it out and use the concepts.
Here I have used a CFL to get the itemcode and I have used a query to  add data to matrix.
This is a function used.
Private Sub AddValuesInMatrix(ByRef name As String)
        Try
            'Dim quantemp As Double
            oForm = SBO_Application.Forms.Item("itemdts")
            oMatrix = oForm.Items.Item("matrix").Specific
            Dim rs As SAPbobsCOM.Recordset = ocompany.GetBusinessObject(SAPbobsCOM.BoObjectTypes.BoRecordset)
            '//gitemdesc = "SELECT T0.[ItemName] FROM OITM T0 WHERE T0.[ItemCode] ='" & name & "'"
            oMatrix.Clear()
            rs.DoQuery("SELECT T0.[DocEntry], T0.[ItemCode], T0.[Dscription], T0.[Quantity], T0.[Price], T0.[TaxCode] FROM dbo.[POR1] T0 WHERE T0.[ItemCode] ='" & name & "'")
            rscount = rs.RecordCount
            If (rscount < 1) Then
                SBO_Application.StatusBar.SetText("No Items Found", SAPbouiCOM.BoMessageTime.bmt_Short)
            Else
                oForm.Freeze(True)
                ITE = True
                For i As Integer = 1 To rs.RecordCount
                    oMatrix.AddRow()
                    oMatrix.Columns.Item("V_5").Cells.Item(i).Specific.Value = rs.Fields.Item("DocEntry").Value
                    oMatrix.Columns.Item("V_4").Cells.Item(i).Specific.Value = rs.Fields.Item("ItemCode").Value
                    oMatrix.Columns.Item("V_3").Cells.Item(i).Specific.Value = rs.Fields.Item("Dscription").Value
                    oMatrix.Columns.Item("V_2").Cells.Item(i).Specific.Value = rs.Fields.Item("Quantity").Value
                    'quansum = quansum + rs.Fields.Item("Quantity").Value
                    oMatrix.Columns.Item("V_1").Cells.Item(i).Specific.Value = rs.Fields.Item("Price").Value
                    'pricesum = pricesum + rs.Fields.Item("Price").Value
                    oMatrix.Columns.Item("V_0").Cells.Item(i).Specific.Value = rs.Fields.Item("TaxCode").Value
                    SBO_Application.SetStatusBarMessage("Data Loading In Progress Please Wait.....>>> " & i & " / " & rs.RecordCount, SAPbouiCOM.BoMessageTime.bmt_Short, False)
                    rs.MoveNext()
                Next
                ITE = False
                oMatrix.AutoResizeColumns()
                SBO_Application.StatusBar.SetText("Data Loading Completed", SAPbouiCOM.BoMessageTime.bmt_Short, SAPbouiCOM.BoStatusBarMessageType.smt_Success)
                oForm.Freeze(False)
                oForm.Refresh()
            End If
        Catch ex As Exception
            SBO_Application.MessageBox("Matrix Load Function : " & ex.Message)
            ITE = False
        End Try
    End Sub
-Anto

Similar Messages

  • How to add a new tab to sales order header level

    Hello Experts,
    I have to add a new tab 'Billing Plan' at sales order header level.
    As per my functional person, If I modify TVAK-FPART field with some value than tab will be come.
    I tried to modify TVAK-FPART field in debug mode and was able to see the tab, BUT when I again came back to
    VA03/VA03 transaction then that tab was not there.
    Pls help me to resolve this problem..
    Rocks!!

    Hello Rock,
    I have the similar requirement, to add a new tab at the sales order item level. there are already two customer tabs but i dont want to use them, instead i want to use a new tab to be created. i searched BADIs but the BADI BADI_SD_TAB_CUST_I is for SAP Internal use only.
    Kindly suggest whay way you used to create a new tab. thanks in advance.
    Reagrds
    Sachin

  • How to add BP address UDF to sales order PLD

    I have a UDF on the Business Partner Master Data address tab. It's used on Ship to address.
    I want to add this UDF to the sales order print layout.
    I add a database field but in list of tables I don't see CRD1. Why?
    Edited by: Maeve Cahillane on Apr 12, 2011 1:52 PM

    Hi Maeve Cahillane,
    Use Alt Key + Click in the the database table to get the full list of tables in PLD.
    Regards,
    Bala

  • How to add 100 line item in sales order at one time

    Hello Guru's
    My requirement is to add 100 line items in sales order at once.
    what can be good approach to overcome this situation.Is there some kind of tool which can be useful?
    Let me know your suggestions
    Thanks a lot in Advance

    Hi,
    do configuration for Proposal Items tab - like -
    then create sales order using with Propose items button - VA01 - then system will accept more than 50 line of materials at a time
    Please Use BAPI -- creation of Sales order
    Thanking you
    Regards
    Mahesh

  • How to restore deleted manual conditions from sales order?

    Hello Experts,
    I have a situation where one of the users did a mass change on many sales orders. As part of this mass change, re-pricing was done and that deleted all manual conditions which are applied on each sales order item level.
    Is there a way I can restore deleted manual conditions?
    Please let me know and appreciate any help!
    Thanks!
    PL.

    hi
    peter
    you find the sale order  manual deleted condition types  in AUT10 t code level
    go to AUT10 t code here enter the sale order number and give the date time, then execute now its showing  condition types and amount also
    pl check below screen
    regards
    sankar

  • Need a user exit to add custom partner function in sales order @ item level

    Hi,
    Need a user exit to add custom partner function in sales order at item level. Goto --> Item --> Partner.
    Thanks,
    Thiyagi

    HI Leo
      To add a condition price for a condition type, this has to be assigned in the <b>pricing procedure</b>. For each condition type in a pricing procedure, we will have <b>access sequences</b>. If we follow this approch, the price is automatically extracted basing on the access sequences when condition records are maintained. For this, no coding is required and everything can be done by configuration by Functional consultant.
       Naren is right to point out on the same.
      If you need to change the price for a particular condition which already exists, you can go by <b>pricing routines</b>. Go through transaction <b>VOFM</b> for the same. 
       I advice you to discuss with your functional consultant and understand the requirement and then go for modifying accordingly.
    Kind Regards
    Eswar

  • How to send data through gprs from j2me application to desktop

    hi
    i wanna send some data to a server(where http://localhost:8080/ccp.html is running).i wanna catch this data and use it further.
    how to do it through query string/xml.

    Hi srini,
    it depends upon what is the receiver system.If you want to save the emails coming from SAP to Files ..then u will have to use File adapter in the receiver side...
    check these weblog.....
    Receiving Mail attachments using additional files of file adapter
    https://www.sdn.sap.com/irj/sdn/weblogs?blog=/pub/wlg/1685 [original link is broken] [original link is broken] [original link is broken]
    Regards
    Biplab
    Use a Good Subject Line, One Question Per Posting - Award Points

  • Can any one tell me How to load data in matrix from user table

    Hi,
    we need to load data to matrix when page loads. After loading data we should add row to that matrix and update the values in database without effecting previous data. It should have functionality like UDO Default Form. Can any help me out in this issue.
    Regards,

    Hi Souji,
    try this,
        SAPbouiCOM.Form oForm;
        SAPbouiCOM.DataTable DBTable;
        SAPbouiCOM.DBDataSource dbDatasource;
         string strqry;
         oForm = SBO_Application.Forms.Item("FormUID");
          int i;
          SAPbouiCOM.Item oitem;
           oitem = oForm.Items.Item("ItemUID");
           objMatrix = (SAPbouiCOM.Matrix)oitem.Specific;
           objMatrix.AddRow(1, objMatrix.RowCount + 1);
       dbDatasource = (SAPbouiCOM.DBDataSourceoForm.DataSources.DBDataSources.Item("TableName");
       DBTable= oForm.DataSources.DataTables.Add("UniqueName");
        strqry = "paste Query that you want to fetch";
        DBTableActivity.ExecuteQuery(strqry);
         for (i = 0; i <= DBTable.Rows.Count - 1; i++)
                objMatrix.FlushToDataSource();
                dbDatasource.SetValue("column1(name)", i, System.Convert.ToString(DBTable.GetValue(0, i)));
                dbDatasource.SetValue("column2(name)", i, System.Convert.ToString(DBTable.GetValue(1, i)));
                dbDatasource.SetValue("column3(name)", i, System.Convert.ToString(DBTable.GetValue(2, i)));
                dbDatasource.InsertRecord(i + 1);
                objMatrix.LoadFromDataSource();
    If it helps you, give me the reward points.
    Thanks
    Sravan Kumar Pothu

  • Changing PO date to Actual GI date in Delivery from SALES ORDER(VA01)

    THe Actual Requirement is...Whenever I create a SALES Order with PO date this PO date should automatically trigger in Actual GI date field in Delivery.
    I just want to share my solution before I get some help from you Guys.. I have actually used a userexit MV50AFZ1. This was working fine for me when they are creating the order manually.
    But the client's requirement is that.. it should work for automatic process.. this is nothing a FILE Is being send to SAP through MIDDLEWARE and IDOC get triggers with that... So the CLients wants when this process is happening he wants the PO date of the Sales order to be the ACTUAL GI DATE in Delivery.
    Can you please help me out with this Aumatic Process...

    Shivakumar,
    U would need to check the inbound FM associated with the particular IDOC...you would need to make similar changes as you did in MV50AF71 to fulfill your requirement.
    Regards
    Anurag

  • How to Add Delivery Note based on sales Order

    How to add a delivery note based on sales order.
    say i have a order no. 10 and linenumber 0 to 3.
    each time i book with order no 10 and line no.3,i need to add to delivery note.
    i also in need of adding just one Header and Multiple lines(Header for order Number - 10 and multiple lines for each Booking ).
    How can i achieve this.

    Hi
    You can search the samples....C:\-->Program files->SAP----->SDK->Samples->DiAPI----->OrderandInvoice...
    Here invoice is added for a particular sales order.....the same can be done for delivery.....
    Hope it helps

  • How to add new condition record to sales order items

    Hello All,
    I have requirement to add to new condition record to get more discount on the item during sales order processing based on some conditions. In user exit SAVE_DOCUMENT_PREPARE , I am populating an internal with items for which additional discounts are required. So want to add condition record to those items to get additional discount.
    I know that in VOFM routines we can modify the existing condition record value but not sure what is the best place to append new condtion record to conditions table.
    Thanks,
    Suman

    Hi suman,
                   As which conditions you want or whatever logic you want for to write for applying the conditions you need to make changes at two includes and one FM by using Implicit Enhancement
    1) MV45AFZZ
    2)RV61AFZB
    3) FM name i am not remembering you can debug and find out.
    Regards,
    Shahezad

  • Need to copy a custom field from sales order to billing document

    Hi All,
    I have a requirement, I need to add a new field in the sales order header part and even a field in the billing document, once i add this field up in both the documents in the header part i need to create a copy routine using the VOFM tran, can any body help me on what's the procedure to add a field in billing document and does the copy routine transfer the data ( Custom Field ) from Sales Order to the Billing Document, if yes can somebody help me with the procedure on how to and code of it.
    solved it myself ....
    Regards.
    Message was edited by: seshi
            seshi

    Hello,
    Regarding item 1, is it in the region of the global links (ie logout, home, preferences, etc.)? If not, have you tried creating a link via personalizations to the region you wish to have the link displayed (item type = link, destination = fully qualified name of your .xml page/region?
    Regarding item 2, you may have to create the custom subtab programatically using the controller for the region of the current subtab layout.
    Regarding item 3, you can also add a submit button to the page button bar region via personalizations. You can then add any logic you want to the button in the controller for the page.
    Hope this helps.

  • Profit Centre in production order donu0092t copied from sales order

    Dear guru ,
    i maintain Profit Centre in Material Master Data , in Sales: General / Plant data, then the same will default in sales order.
    I can change it at the item level in the sales order T.Code: VA01, in the Account Assignment Section.
    I use make-to-order processing , but in the production order the system copied profit centre of material
    Master and not from sales order position.
    How can copy the profit centre from sales order position ?
    Thanks in advance.

    Pl. check TOR(Transfer of requirment) setting. your requirment type is make-to-order. do the setting accordingly. Pl. revert back if i am wrong. I think it will be helpful.
    Regards
    Vinod kumar

  • Data Validation for SD Sales order and Deliveries

    Hello All,
    We activated the data flow for SD sales Order and Deliveries for Infocubes 0sd_co4 and 0sd_c05 and there correspoding datasources.
    I have 2 queries
    1. How to validate data for BI SD sales order with ECC.
    2. How to validate data for BI SD Deliveries data with ECC.
    Kindly help, <removed by moderator>.
    Thanks,
    Rakesh.
    Edited by: Siegfried Szameitat on Jun 21, 2011 12:51 PM

    Hi Rakesh,
    You have to check the tables in R3 and then compare with the Datasources in BW.
    For Examples
    VBAK table in R3 for Sales Order on BW-2LIS_11_VAITM
    VBRK table in R3 for Billing iin BW-2LS_13*
    Check for that day how many sales order were there in VBAK table and there in BW.
    Rgds
    SVU123
    Edited by: svu123 on Jun 21, 2011 8:19 PM

  • Sales order costing - tracking of actual costs at sales order item level

    Hi
    We are going with sales order costing for services
    Service material is non-valuated hence the scenario is non-valuated sales order stock
    PP module is not implemented.
    I am having following questions
    1. How to track the actual costs at sales order item level? Is Internal order/CO production order is required to be created for the same?
    2. Can I do activity confirmations directly from cost center to sales order item.
    3. Can Raw material is issued directly against sales order item.
    4. Is Sales order is a real or statistical account assignment object?

    dear friend,
    please look here:
    http://help.sap.com/saphelp_47x200/helpdata/EN/42/d7248ab27111d19e9a080009b0db33/frameset.htm
    http://help.sap.com/saphelp_47x200/helpdata/EN/90/ba6cfb446711d189420000e829fbbd/frameset.htm
    reagrds,

Maybe you are looking for

  • After upgrading to Itunes 7.2, it won't launch without crashing

    Itunes was working fine on my pc. When I opened it, it prompted me to install an updated version of Itunes and Quicktimes. I followed the prompts and installed it. After it installed, I launched Itunes and it crashed with "Itunes has encountered a pr

  • Xorg & ATI issues.

    Hello there. I'm having the same problems that the guy on http://bbs.archlinux.org/viewtopic.php?id=40308 had. But I didn't get them solved bydoing what he did. So, I first tried with the ATI free drivers, radeon. It didn't worked, when I started gdm

  • N95 WLAN Browsing Costs and Packet Data

    I have recently purchased an N95 and am accessing the Internet via my home Wireless Network provided by Virgin Media instead of using the standard Access Point provided by the Mobile Operator i.e. Orange Internet - by doing this, I assume I would inc

  • Aperture causes Dock to disappear.

    Can anyone else verify this on their machine. If i'm working in Full Screen Mode and let my system go into screensaver. When I come out of screensaver, Aperture is reverted back to normal mode BUT my Dock is gone!? I can't get my dock back, i've trie

  • Doubt About HTTP To File

    Hi Expers, I have one doubt. If iam Developing the scenario HTTp To File Then do we need Any RFC Connection. When Do We need RFC Connection In case if we r implementing with HTTP Please clear me. Regards Khanna