How do load system form matrix -Inventory-Goods Issue through SDK UI &DI

While I am accessing system form matrix -Inventory Goods Issue/ Goods Receipt, the matrix object is not accessible.
Error is coming stating "Item 13 is invalid, where 13 is item uid for matrix.
So,How do load system form matrix -Inventory-Goods Issue(FORM 720/-720) through SDK UI &DIAPI.
Form Type: -720
How to get reference of System form matrix object -Inventory-GoodsIssue.
Some thing similar to CopyFrom functionality for -Inventory-Goods Issue.
Currently my client requirement is as follows.
I created a UDF ((U_ILC) Incoming Log Challan) for marketing documents. And, this field is added in the header level of Goods Reciept, Goods Issue documents.
1. Through Inventory->Goods Receipt (ILCNo.10), items are received. Assume, M00001, M00002 are the items received with qty, price, whse, account values.
2. Through Inventory->Goods Issue, item should be issued. In this Goods Issue Form, after entering U_ILC value as 10, pressing Tab, the GoodsIssue matrix should be loaded with the values of GoodsReceipt(IGN1 for U_ILC:10) document i.e. M00001,M00002 along with the same values as in GoodsReceipt of ILC:10.
The code is as follows:
If (( ( pVal.FormType = "-720" or pVal.FormType = 720) And pVal.EventType <> SAPbouiCOM.BoEventTypes.et_FORM_UNLOAD) And (pVal.Before_Action = False)) Then
            '// get the event sending form
            oForm = SBO_Application.Forms.GetFormByTypeAndCount(pVal.FormType, pVal.FormTypeCount)
            If pVal.ItemUID = "U_ILCNo" And pVal.EventType = SAPbouiCOM.BoEventTypes.et_LOST_FOCUS And pVal.Before_Action = False Then
                SBO_Application.MessageBox("ILC No. Lost Focus")
                oMatrix = oForm.Items.Item("13").Specific
                oColumn = oForm.Columns.Item("1")
                oEditItmCode = oColumn.Cells.Item(1).Specific
                oEditItmCode.Value = "07215090x606"
                oItem = oForm.Items.Item("U_ILCNo")
                oEdit = oItem.Specific
                SBO_Application.MessageBox(oEdit.String)
            End If
        End If
3. The code
oMatrix = oForm.Items.Item("13").Specific
is raising error. I have used Event Logger and breakpoints to see where the code is halting.
Help me, how to access the matrix of Goods Receipt/ Goods Issue and load based on the existing data.
Thanks in advance

HI
If your code is in the SBO_Application_ItemEvent then try using this line
oForm = SBO_Application.Forms.Item(strFormUID)
instead of
oForm = SBO_Application.Forms.GetFormByTypeAndCount(pVal.FormType, pVal.FormTypeCount)

Similar Messages

  • How to re-run output determination after goods issue through idoc

    Hello,
    i've got a question about output determination. We are currently in a process to automate picking, packing and goods issue through a 3rd party software. The software creates DELVRY03-Idocs including picking, packing and goods issue-information. Picking, packing and goods issue work just find and after submitting the idoc, the delivery is updated as needed.
    The problem arises when it comes to printing the shipping document on the printer belonging to the picking station that just processed the delivery. To determine the correct printer, the external software includes the picking station number inside the idoc. A user exit in idoc_input_delivery puts the number (3 digits) into likp-traid. The customizing for using this field inside output determination is complete and seems to be working.
    The problem is: as the number of the picking station is not known before goods issue, the LD00 message must not be generated before goods issue. I used the appropriate condition insinde the message scheme, the message is not generated until goods issue is complete. After processing the DELVRY03-Idoc, the message should be found and generated, but it isn't. When i take a look at the delivery after submitting the idoc, goods issue is complete, picking and packing is done - and no sign of an header message of type LD00. First i thought about a misconfiguration inside my customizing for output determination, but when i access the delivery via vl02n (change delivery), output determination seems to be processed again and without making any changes or actions, LD00 is generated and waiting for processing. After saving the delivery, LD00 is processed and the shipping document is printed exactly where it should be.
    So, as my customizing seems to work and everything else around idoc processing doesn't make any problems either, i conclude that, after processing the idoc, R/3 just needs a little kick to re-run the output determination, find the now fitting condition for LD00, find the appropriate entry in the condition table and print the document.
    I already tried report rsnast00, but this one just seems to run already created messages.
    Any ideas how to automate this little "kick in the butt"?
    Thanks in advance!

    I'm working on a similar issue with ws_delivery_update. I'm not using the IDOC as you are, but I'm using the function in a program of mine to PGI the delivery, but the output isn't being added to the delivery. I've tried to run the function twice as you suggested, but that doesn't seem to work. Do you have any suggestions or ideas on things to try?
    Thanks,
    Eric

  • Is it possible to get System form Matrix Data in DI API?

    HI,
       i would like to use DI API to get the System Form Matrix ( like Sale Order ) . Is it possible?
       i know that using UI API is most easier way. However, UI API cause extermemly slow perfomance.
       no matter i use Form.Freeze or not. Please Advise
    Thanks
    Gordon
    Edited by: Gordon Ho on May 7, 2009 7:03 AM

    Hi,
    U can access the Sales Order rows using the DI only if its added to the system. U can use the DOCUMENT object and Document.Lines and access the row data. Please check the SDK help file for more information.
    From SDK Help
    Document_Lines is a child object of Documents object and represents the line entries of a document in the Marketing Documents and Receipts module and the Inventory and Production module.
    Vasu Natari.

  • How to Refresh System Form in Run Time

    Dear All,
    Please give me idea for Refresh System Document in Run Time using DI,basically I am using  system columns for update for some scenarios.
    So please give solution that how should refresh system form.
    Thanks a lot.
    Ashish Singh.

    Hi,
    Please post above discussion in SDK forum.
    Thanks & Regards,
    Nagarajan

  • How to Refresh System Form on Before Action using DI

    Dear All,
    Please give me idea for Refresh System Document in Run Time on Before Action using DI,basically I am using  system columns for update for some scenarios.
    So please give solution that how should refresh system form.
    Thanks a lot.
    Ashish Singh.

    Hi,
    See i already descrived you my case what i am exactly doing.
    Now,
    Document Name -Purchase Order
    All The item is non excisable and i want to put value in Assable Column for calculation Tax but when i non excisable then you can not put value in Assable column.so when user will add purchase order then i updating Excisable columns with value of 'Y' for Assable value.now this case is running correctly.
    But if any change will come of particular purchase order then user need to put value in any field and now i am supposing change field is remarks.
    And Then user click on update filed button then system giving error that "there is excisable item with non-excisable tax code" and after this not allow to update.but i wrote code in item press before action for update excisable filed with value of 'N' for time being. but the case is sap not refresh doc when i changed any any value ,
    so main concern is i want to reflect value with front end immediate.
    Thanks
    Ashish

  • How to achieve matrix cell value of systems forms matrix ?

    Hi,
    When user types data in perticular cell of matrix in system Form , i want to achieve that data.
    How can i achieve that data ?
    Do any one have some sample code plz. fwd it.
    Regards,
    Ganesh

    Hi Makarand,
    This should do the trick.
    <b>Code (C#):</b>
    public override void Handle_ItemEvent(string FormUID, ref ItemEvent pVal, out bool BubblesEvent)
      /* Switch by eventtype */
      switch(pVal.EventType)
        case BoEventTypes.et_VALIDATE:
          /* Get a matrix object */
          Matrix oMatrix = (Matrix)SBO_Application.Forms.Item(FormUID).Items.Item("MY_MATRIX_ID").Specific;
          /* Get a EditText object for the matrix cell */
          EditText oEdit = (EditText)oMatrix.Columns.Item("COLUMN_ID").Cells.Item("ROW_NUMBER").Specific;
          /* Get the value from the object */
          string sValue = oEdit.Value;
          /* Do other things you like ;) */
          break;
    Hope it helps,
    Rowdy

  • 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

  • How to call System Form base on User Form

    I want to reuse System Form that "list of items" on service call,
    Show the "list of items" Form base on my own Form,
    How to do?
    thanks
    Tony

    Hi Tony,
    Have you looked at the ChooseFromList object? This is available in the UI API and allows you to easily create the 'lists' windows for all the main objects, including items. There is an example of using the ChooseFromList in the samples in the SDK.
    Kind Regards,
    Owen

  • How to show system form with a new button

    Hi experts,
         I created a new button on the sales order system form, I need that the new button calls other system form, How can I show a system form with my new button?
    Thaks.
    César Lemus.

    Hi César,
    On the Item Pressed Event of the button, Write the code to show the other system form. The sample for this is as follows.
    Case SAPbouiCOM.BoEventTypes.et_ITEM_PRESSED
                          If pVal.ItemUID = "URButtonID"
                                    SBO_Appln.ActivateMenuItem("Menu ID of ur system form.")
                          EndIF
    Hope this is helpful. If yes reward points.
    Regards,
    Vasu Natari.

  • How to obtain system form's type and count?

    Hi all
    i wish to open a system form by calling the GetForm method of the Forms collection.
    My question is how do i know the form's type and count in order to get it?
    appreciate the help
    Yoav

    To open Activity form, you need to have the menuUID.
    in order to get it , Click on View of the toolbar, and then System Information
    (or CtrlShiftD)
    Now I guess you know you have more information about items in forms and menu on the bottom left corner of Business One.
    Then in the toolbar, click on Modules, Business Partnet, and put the mouse on the menu Activty.
    You will see in the bottom left corner the value:Menu Uid = 2563
    HTH
    Sebastien

  • How to popup system form which does'nt have MenuItemID (Form.Type = 42)

    Hi,
    Suppose I am adding some data to Delivary form, and when I click on the Add Button I want the Batch No selection form  with form type = 42 ,form to be opened Autmatically when the material is not assigned any batch no and issue method is backfluch              (eg  :Byproduct)
    i know by using
    SBO_Application.ActivateMenuItem("MenuItemID")
    it can be opened.
                       but, this form does'nt have an MenuItem ID where can i get the MenuItemid of this form("42")        ( Where Form.type = 42)
    Regards
    Om

    Dear Manish
    Use MenuIteID
    &Serial Numbers                     12032       
    &Serial Numbers Management     12033       
    S&erial Number Details     12034     
    use the menuid to open the required systems form u can get all it id's in help file

  • ABAP Error:Illegal interruption of the event LOAD-OF-PROGRAM (in MIGO-Goods issue to Production)

    Hi Experts,
    while i am doing MIGO(Goods Issue to Production Order, I am getting the below ABAP Error:
    Please give solution, It is urgent requirement.
    THE ERROR IS:
    Short text
         Illegal interruption of the event LOAD-OF-PROGRAM.
    What happened?
         Error in the ABAP Application Program
         The current ABAP program "/MRSS/SAPLRAP_INT_OB" had to be terminated because it
          has come across a statement that unfortunately cannot be executed.
    Error analysis
         During the flow of the event LOAD-OF-PROGRAM (event for the
         initialization of an ABAP program), a condition occurred under which
         the event was to be left early. This is not permitted as it would
         result in an inconsistent status in the ABAP program.
    Trigger Location of Runtime Error
        Program /MRSS/SAPLRAP_INT_OB
        Include /MRSS/LRAP_INT_OBF00
        Row                                     34
        Module type                             (FORM)
        Module Name                             GLOBAL_INIT
    Source Code Extract
    Line  SourceCde
        4
        5 *&---------------------------------------------------------------------*
        6 *&      Form global_init
        7 *&---------------------------------------------------------------------*
        8 *       text
        9 *----------------------------------------------------------------------*
       10 FORM global_init.
       11
       12 * local data
       13   DATA lv_badi_impl_exists TYPE flag.
       14
       15
       16 * get ref to BAdIs
       17   CALL METHOD cl_exithandler=>get_instance "#EC CI_BADI_GETINST
       18     CHANGING
       19       instance = gv_ref_badi_inter_company.
       20 *  CALL METHOD cl_exithandler=>get_instance
       21 * CHANGING
       22 *      instance = gv_ref_badi_rap_back.
       23 *  CALL METHOD cl_exithandler=>get_instance
       24 *    CHANGING
       25 *      instance = gv_ref_badi_ps_int.
         26   CALL METHOD cl_exithandler=>get_instance "#EC CI_BADI_GETINST

    Hi Rob thanks for your response.  I thought about doing an OSS note however; I would think I would need to get the problem in config corrected first as it contradicts each other.  The problem I am talking about is how they are to return material to vendor....I have never even seen this as a process in my 10 years....
    Process.....when the PO is a return to vendor PO they go to migo and choose the goods receipt and mvmt type 101 and the system will default the 161 in the item level....the two are inconsistent.  If I try to change the top level to a 161 mvmt (as this is what I am used to seeing) it gives the error that the PO is not a stock transport order... Would you agree that I should correct that problem first before creating an OSS note?

  • Inventory goods issue report

    once we write of inventory. HOw can i pull a report for total inventory write off between months. Which report i can use to pull the total inventory write off.

    How do you write off them? If it is by goods issue, just create a query report. However, it will not have any automatic identification for which goods issues are for write-off.
    Thanks,
    Gordon

  • Form - Bad value (Goods Issue Form)

    Hello,
    I'm trying to fill Goods Issue form programatically. But when I try to fill some values into the matrix I got two errors-
    Referenced work order does not exist.
    Form - Bad Value
    I can enter the same values by hand, it works without any problem.
    One more thing. Let's say i got master data items with indexes 123, 1024. When I try to enter these values programmatically into Good Issue matrix (into index column) I got above messages. But when I the same with just value 1 it fills row with index 123.
    What is happening?
    Thanks in advance
    Wydrzycki Kamil

    hello freind
    it may be due to refferd linked key mens primary key.pls cheak when yu insert data in database first cheak this entry may be linked with any primary key

  • How to change movement type of Delivery goods issue?

    Hi all!
    I need to change the movement type used by posting Goods Issue in an outbound delivery (tcode VL02N).
    Please provide some instructions or cookbooks on how to do the configuration..
    Thanks a lot!

    Hi,
    Get the Schedule Line Category used in Sales order. Go to VA03, here double click on the sales order line item and go to "Schedule Lines" tab, here get the Schedule Line category.
    And then go to VOV6 and double click the Schedule Line category and in detailed screen, change the movement type.
    Then try for Delivery and PGI.

Maybe you are looking for

  • IP Dropdown box - Maximum Number of Displayed Values

    Dear experts. Using dropdown box on BEx Analyzer 7.0 only shows at most 99 values on dimension filtering. Is it possible to extend that number of values? Thanks for your help!

  • Converting TIFF to Word Document

    I've just switched to Mac and I'm wondering how I can convert TIFF files into word documents. Previously, when using my PC, I was able to do so by using the document imaging program found in the microsoft office tools.

  • Freeing up Memory During CFFILE

    I have a process that generates flat files using CFFILE. The process uses a database reference table that feeds the query parameters. I have several loops in this process which I thought would be more efficient and free up memory after each CFFILE "a

  • Aperture now asks for serial number after last update but app store doesn't provide one. What to do?

    After my latest update Aperture now asks for a serial number. This is a little strange as when you buy it from the app store you don't get one. Well not one you can see. So now can't use it.  What am I supposed to do? Ricky-2012

  • Transferring images from 0S9 to 0SX

    I have a friend with an old Blueberry iMac and whas a mass of images she wishes to transfer to her new mini mac. I have a couple of remote H/Ds one a usb and the second a firewire but each is formatted to 0SX. I could swap one of the disks to a redun