In Matrix Value is duplicating while giving add row

In matrix i have given add row but the value is duplicating from the previous row in update mode.in add mode its ok
and while clicking update =    error is coming "This entry already exists in the following tables "
plz help
its Urgent

Hi Nikhil k,
This is a kind of behavior of matrix.
So what you can do is that after calling the AddRow () Method put the blank values in the newly added row. Use this as follows:
oMatrix.AddRow();
oMatrix.FlushToDataSource();
this.oForm.DataSources.DBDataSources.Item("@DETAILTABLE").SetValue("U_Code", oMatrix.VisualRowCount - 1, "");
                                            this.oForm.DataSources.DBDataSources.Item("@DETAILTABLE").SetValue("U_Name", oMatrix.VisualRowCount - 1, "");
oMatrix.LoadFromDataSource();
Hope it helps.
Thanks & Regards
Ankit Chauhan

Similar Messages

  • While giving add fields in advanced mode

    Hai everyone, i met with a problem such that while using search in advanced mode we can add fields multiple times. Can anyone suggest me to restrict same field appearing more than one time in advanced mode --> add fields.
    Thanks in advance.

    Hi,
    there is no such restriction as far as I know. Background is that you may want to define "OR" condition for a field
    Frank

  • Add row in Memu Event can't work

    1:I create a Master UDO
    2:Regist UDO with a child table
    3:use UDO form generator tool to generate a UDO form with xml file
    4:I use load from xml funtion to call form.
    5. Add a buttom name "Add row" and have code with Add a row for matrix 
    I have two problems
    one is,
    I can add row by press "Add row" button and I can delete a row by UDO default menu("delete Row CtrlK"). My problem is why the default menu(Add Row CtrlI) don't work? May I write code for add a row by myself?
    The other is
    When I add menueven sub(catch menueven) in program ,my "Add row" buttom can't work normally. If I remove the menueven sub from my program, the  "Add row" buttom work fine. Why? somebody help me.

    Hi Glen,
    In my case, I developed own functionality to add row for a matrix.
    I don't use 'add row' menu event actually.
    And I don't know about menu event sub problems without any source code.
    Regards,
    Hyunil.

  • Saving the data on Add Row

    Hi All,
    I am creating a tabular form with ADD ROW button. And also we have a Mutli Row update process. We are using a trigger on the table
    Now the issue is that when we click ADD ROW button then at that time this Multi Row Update process also get fires and it gives a error something like "Cannot update. error in trigger". To avoid this we puts a condition "When expression 1 item is not null" and there is no item in Expression 1.
    It works fine and adds a new row. But when we are adding some values and once again clicking Add Row button then it simply adds a new row without saving the previous values.
    Please help me.
    Thanks
    Aryan

    Ok. It could be that the form was not enabled for Reader users to be able to save the Data. That is a special function that has to be done using Adobe Acrobat.
    The good news is, you don't need for it to be enabled if you are using the newest version of Adobe Reader so, either have the creator of the form enable it using Acrobat or download Reader XI.

  • While downloading add-ons error message - unable to download . want ad blocker urgently

    while installing add-ons error message appears
    " theree was an error downloading ...."
    This happened will all addons i tried within 2-3 seconds of clicking on install

    Check to see if installations are allowed in Firefox
    *Go to <code>about:config</code> like you were going to a website
    *Press the button saying you'll be careful
    *Search for <code>xpinstall.enabled</code>
    *The value of <code>xpinstall.enabled</code> should bet set to TRUE. If it's FALSE, right click it and select Reset.
    What exact error is it giving you?<br>
    Try these fixes from this article
    *https://support.mozilla.org/en-US/kb/unable-install-add-ons-or-extensions

  • Not Able to get to the values from applet while designing from xml

    Hi All,
    I have a new problem, and i am new to this one.
    Like I have an XML file.Where in i am able to design the applet while getting the values from the xml and i am able to store also.
    But the problem comes over here.I have given out a type field in xml.By validating the type field i am able to get Label(),TextField(),etc.,( whatever it is).While displaying i am giving only one single TextField in the init method and i am looping it up.so that i can get the no of text fields ,labels,text areas,etc.,
    so problem comes here.I am not able to get the values from those text fields.(only i am getting the last value.Last value is overwriting the old values.Now i am able to get the last value that i am giving it lastly.)
    So please can anyone give me some idea.As it is urgent to me and i have to submit urgently.
    Please help me out.And Thanks In Advance.

    Here is the sample code while designing the applet:
    String type = (String) typeList.get(j);
                             String option = (String) optionList.get(j);                                   
                             if(type.equals("text")){
                                  txtdisp = new TextField(15);
                                  leadcomp.add(txtdisp);     
    //                              txtdisp.addMouseMotionListener(this);}

  • Field values erases when Add Row button is pressed in Master Detail Form

    Hi,
    I am using APEX 4.0. There is a master-detail form in a page, this has 5 rows in it by default, has a Add row and a Delete button. I face two problems now:
    1. When the values are entered in all the 5 rows, that are in default, and Add Row button is clicked, these values are entered in the DB, but they are erased from the interface. Means when user clicks Add row he don't see the old values he has entered. All new empty rows are only seen. This might confuse the user. How can I resolve this.
    2. The values are saved to the DB only when the Add row button is clicked, so suppose if the user enters some wrong values in the default rows and after he clicks Delete button, all the field values are erased. Is there a way to delete only that particular row? (Please note: the values are not saved to the DB, unless the Add Row button is clicked)
    Please let me know how to resolve these 2 issues.
    Thanks.

    So let me get this straight:
    You enter information into a tabular form and then click the add row and the data is being duplicated from the prior row or being inserted into the table ?
    Thank you,
    Tony Miller
    Webster, TX
    A lady came up to me on the street, pointed at my suede jacket and said "Do you know a cow was murdered to make that jacket?"
    "I didn't know there were any witnesses", I replied " Now I'll have to kill you too"

  • Named Set doesn't show aggregated values in excel while browsing

    Hi All,
    I have create a named to show Top 20 Clients Alphabetical. When I browse the named set, it is not showing aggregated values in the below.You can see in the image.
    Named Set Expression: 
    FILTER(
         Order
    ([Client].[Client].members,[Measures].[ACCOUNT RANK],BASC),
                  [Measures].[ACCOUNT RANK] > 0
                  AND [Measures].[ACCOUNT RANK] < 21)
    After reading blogs, I found I have to add ALLMEMBERS function inorder to show aggregated values in excel while browsing.
    http://prologika.com/CS/blogs/blog/archive/2009/01/27/named-set-subtotals-in-excel.aspx
    I implemented and some of them working fine but this is not working. Not sure what's happening.
    Modified Named Set Expression:
    FILTER(
         Order
    ([Client].[Client].allmembers,[Measures].[ACCOUNT RANK],BASC),
                  [Measures].[ACCOUNT RANK] > 0
                  AND [Measures].[ACCOUNT RANK] < 21)
    Please let me know, what else I can do to fix this issue. Thanks in advance and appreciate for reply.
    Maruthi...

    Hi Maruthi you just need a simple change in the Query .
    You need to include the All level and try using TopCount() function instead of the sequential FILTER/ORDER
    Try this,
    {TopCount
    [client].[client].allMembers
     ,20
    ,[Measures].[AccountRank]
    ),[client].ALL};
    Venkata Koppula

  • Prompt Values are duplicated when using the schedule option

    Hi,
    I'm working on a Windows Server 2003 XI 3.1 FP1.6 environment and have noticed that there are some Crystal Reports that when scheduled in the CMC, the prompt values are duplicated.  When I delete the duplicate values and click Save, even more duplicate copies show up.  I've run the report with the duplicate values and it seems to return fine, but it's odd that it's creating so many copies of the parameter values.
    Any thoughts on how to resolve this? It only happens on a small set of reports, the other reports in the environment do not do this.

    Hi John,
    My recommendation would be to switch over to the concurrent licences.  What should happen when you try to set more than 5 users as named users is that Enterprise should throw an error and say that you already have 5 named users.
    So if you do somehow manage to set all 350 users to be named even though you only have 5 licenses - then yes, that would be breaking licensing.  While with 5 concurrent, you can set them all to be concurrent and not have to worry about it.
    Regards,
    Shawn

  • Matrix Add Row and Duplicate Row

    Hi All,
    Can anybody suggest me how to work on Add row and duplicate row in any document table.
    Lets take one example
    Sales order document
    In this doc we have table format where we specify item no, item description etc. In this table when we right click on particluar row we have option for add, delete, duplicate rows..etc.
    wht i would like to know is that when we click add row .....one row is added and number is incremented under # column.  Hw to perform and display this auto increment/ decrement of number for these rows under this # column
    thanks
    harish

    Hi,
    I tried following both code, but in that i am geting value. Means i am getting .Value  Why i not getting value.
      matrix.Columns.Item("V_-1").Cells.Item(pVal.Row).Specific.value = matrix.RowCount
    and i also tried for "AddRow",
    If pVal.BeforeAction = False Then
                    Select Case pVal.ItemUID
                        Case "AddRow"
                            matrix = form.Items.Item("mtr").Specific
                            If matrix.RowCount > 0 Then
                                If Trim(matrix.Columns.Item("V_-1").Cells.Item(matrix.RowCount).Specific.value) = "" Then
                                End If
                            End If
                    End Select
                End If
    In both example i not getting .Value.
    Plz tell y ?
    Thanks

  • Using Shading Dictionary to perform shading in pdf,before that the shading dictionary call from Pattern Dictionary.In the Pattern Dictionary there is an Matrix based on the matrix value  location the shading operatihow the axial shading is preserve in pdf

    using Shading Dictionary to perform shading in pdf,before that the shading dictionary call from Pattern Dictionary.In the Pattern Dictionary there is an Matrix based on the matrix value  location the shading operation is perform,So i dont know how to calculate value of pattern Dictionary matrix value.
    10 0 obj
    << /Type /Pattern
    /PatternType 2
    /Shading 11 0 R
    /Matrix [1.00 .00 .00 1.00 54.00 53.00]  // the matrix value how to calculate
    >>
    11 0 obj
    <<
    /ColorSpace /DeviceRGB
    /Function 12 0 R
    /ShadingType 2
    /Coords [109.2726 69.00 109.2726 .00]
    /Extend [true true]
    >>
    12 0 obj
    <<
    /FunctionType 0
    /Domain [.00 1.00]
    /Range [.00 1.00 .00 1.00 .00 1.00]
    /Size [1002]
    /BitsPerSample 8
    /Length 3006
    >>
    stream
    here is an stream of colors
    endstream
    endobj
    Can anybody help me please.
    Regards, Sasi kumar sekar.

    Hi, Sasi -
    The Matrix maps coordinates in your shading dictionary into User Space. That is, the Matrix entry in the Pattern dictionary specifies a coordinate transformation that will be applied to coordinates specified in the shading dictionary.
    To take your example, you have an axial shading extending from (rounding off) 109,69 to 109,0.  Your Pattern dictionary specifies the Matrix
    [ 1  0  0  1  54  53 ]
    This transformation matrix corresponds to a scale of 1,1 (that is, no change in scale) and a translation of 54,53. Thus, the actual endpoints for the axial shading will be the User Space positions 163,122 and 163,53 (assuming I’ve added correctly).
    As to what values to use for your Matrix, it depends on how you’ve set up your Shading dictionary. If the coordinates you’ve specified are actually where you want the gradient to go, then just use an identity matrix
    [ 1  0  0  1  0  0 ]
    By the way, are you sure that the Pattern dictionary includes a Matrix entry? I seem to remember (it's been a while since I've looked at Patterns) that the matrix is supplied as an argument to the makepattern operator:
    <<patternDict>> [ 1 0 0 1 0 0 ] makepattern
    Hope that helps.
    - John Deubert
      Acumen Training
      PostScript and PDF
      Training & Consulting

  • Matrix Add Row

    hi guys,
    I created one form in screen painter and used this form in VB.net. In this form one grid is available.
    In the menuevent of this form I write the code for open the form when user click on menu. I also write the code for add row in the matrix.
    When I open the form first time both opening the form as well as adding row into the matrix works fine.
    After closing the form and open the form second time menuevent occur more than 2 times.
    Due to this many rows are added in the matrix only one click of add row.
    What would be reason for occuring menuevents more than 2 times?
    Can anyone  help me?
    thanks in advance.

    hi kamil,
    this function is called when click on Menu event.
    when form is loaded.
    // code when form is loaded from XML File.
    Public Sub LoadForm1()
            Dim oXmlDoc As Xml.XmlDocument
            oXmlDoc = New Xml.XmlDocument
            Dim sPath As String
            Try
            sPath = IO.Directory.GetParent(Application.StartupPath).ToString & "\"
            oXmlDoc.Load(sPath & "NewInvoicePO.srf")
            Dim cp As SAPbouiCOM.FormCreationParams
            cp = SBO_Application.CreateObject(SAPbouiCOM.BoCreatableObjectType.cot_FormCreationParams)
                cp.BorderStyle = SAPbouiCOM.BoFormBorderStyle.fbs_Fixed
                cp.FormType = "Invoice"
                cp.XmlData = oXmlDoc.InnerXml
                cp.UniqueID = "IndentPO"
                cp.ObjectType = "POHeader"
            oForm1 = SBO_Application.Forms.AddEx(cp)
            oForm1.Title = "Indent PO"
            oForm1.AutoManaged = True
            oForm1.SupportedModes = -1
                'oForm1.DataBrowser.BrowseBy = oForm1.Items.Item("33").Specific().value
                oForm1.Freeze(True)
                oForm1.EnableMenu("1281", True)  '// Add Find Mode
                'oForm1.EnableMenu("1282", True)  '// Add New Record 
                oForm1.EnableMenu("1288", True)  '// Next Record 
                oForm1.EnableMenu("1289", True)  '// Pevious Record 
                oForm1.EnableMenu("1290", True)  '// First Record 
                oForm1.EnableMenu("1291", True)  '// Last record
                oForm1.EnableMenu("1292", True)  '// Add Row
                oForm1.EnableMenu("1293", True)  '// Delete Row
                oForm1.EnableMenu("1294", True)  '// Duplicate Row
            AddDataBindToMainForm()
            CreateMatrixForForm1()
            oDBDataSource4 = oForm1.DataSources.DBDataSources.Add("@INDENTPOMASTER")
            oDBDataSource5 = oForm1.DataSources.DBDataSources.Add("@INDENTPOCHILD")
                oForm1.DataBrowser.BrowseBy = "31"
            GetMaxPONo()
            oForm1.Freeze(False)
                oForm1.Visible = True
            Catch ex As Exception
                MsgBox(ex.Message)
            End Try
        End Sub
    I write the following code in the item event when click on close button.
    // code when click on close button
    If pVal.FormUID = "IndentPO" And pVal.ItemUID = "2" And pVal.BeforeAction = True Then
                    Try
                      oForm1.EnableMenu("1288", False)  '// Next Record 
                      oForm1.EnableMenu("1289", False)  '// Pevious Record 
                        oForm1.EnableMenu("1290", False)  '// First Record 
                        oForm1.EnableMenu("1291", False)  '// Last record
                        oForm1.EnableMenu("1292", False)  '// Add Row
                        oForm1.EnableMenu("1293", False)  '// Delete Row
                        oForm1.EnableMenu("1294", False)  '// Duplicate Row
                        Exit Sub
                    Catch ex As Exception
                        'MsgBox(ex.Message)
                    End Try
                End If
    In the first line of the try block I got the error.
    Error : object reference not set to an instance of an object.

  • Add row invoice matrix

    Dear all
    I owe add row in matrix woth different information.
    How ican do?
    Sorry for my english
    Thank's

    First, in sap business one open the 'Fattura in uscita' form, then in menu 'View' set 'Informazioni di debug'.
    Here you can see the column number corresponding to the fields you want to add in the row.
    In your code use this information to insert records in the grid. Here's an example in VB6.
    For i = 1 to 10
    'Codice
    Set c = m.Columns("1").Cells(i).Specific
    c.Value = "Cod" & i
    'Quantità
    Set c = m.Columns("11").Cells(i).Specific
    c.String = "10"
    Next i
    (c is a EditBox, m is the Fattura detail matrix)
    Hope this helps
    Ciao

  • Dropdown values are missing while using the function module KCD_EXCEL_OLE_TO_INT_CONVERT

    Hi all,
    when i am trying to upload the excel template by using the function module " KCD_EXCEL_OLE_TO_INT_CONVERT" to an internal table some field values are missing.
    i am using the function module " KCD_EXCEL_OLE_TO_INT_CONVERT"  and i am uploading an excel template and downloading that excel data into an internal table but some field values are missing while uploading the excel template and i found that the field which contains the drop down list values those values are missing.
    And also when i am uploading the excel template by using the function module" KCD_EXCEL_OLE_TO_INT_CONVERT"  when i am coming out of this function module one pop up is coming. how can i avoid this popup, can any one please provide me the solution thanks in advance.
    FYI...it is showing the below popup screen ..
    Thanks,
    Koushik

    hi Feiyun,
    below is the code(highlighted in bold)and after coming out of the function module i am getting popup and also the drop down values are missing.
    DATA: ls_control         TYPE zsfi_fiupload_control,
             ls_header          TYPE zsfi_fiupload_header_v13,
             ls_item            TYPE zsfi_fiupload_item_v13,
             ls_trailer         TYPE zsfi_fiupload_control,
             l_line_count       LIKE zsfi_fiupload_control-rec_count,
             l_current_curr     TYPE kcde_cells-value,
             l_current_postdate TYPE kcde_cells-value,
             l_current_compcode TYPE kcde_cells-value,
             l_currentrow       TYPE kcde_cells-row,
             l_filename         LIKE rlgrap-filename.
       DATA: BEGIN OF lt_intern OCCURS 0.
               INCLUDE STRUCTURE  kcde_cells.
       DATA: END OF lt_intern.
       DATA: BEGIN OF lt_items OCCURS 0,
               a TYPE kcde_cells-value,
               b TYPE kcde_cells-value,
               c TYPE kcde_cells-value,
               d TYPE kcde_cells-value,
               e TYPE kcde_cells-value,
               f TYPE kcde_cells-value,
               g TYPE kcde_cells-value,
               h TYPE kcde_cells-value,
               i TYPE kcde_cells-value,
               j TYPE kcde_cells-value,
               k TYPE kcde_cells-value,
               l TYPE kcde_cells-value,
               m TYPE kcde_cells-value,
               n TYPE kcde_cells-value,
               o TYPE kcde_cells-value,
               p TYPE kcde_cells-value,
               q TYPE kcde_cells-value,
               r TYPE kcde_cells-value,
               s TYPE kcde_cells-value,
               t TYPE kcde_cells-value,
               u TYPE kcde_cells-value,
               v TYPE kcde_cells-value,
               w TYPE kcde_cells-value,
               x TYPE kcde_cells-value,
               y TYPE kcde_cells-value,
               z TYPE kcde_cells-value,
               aa TYPE kcde_cells-value,
               ab TYPE kcde_cells-value,
               ac TYPE kcde_cells-value,
               ad TYPE kcde_cells-value,
               ae TYPE kcde_cells-value,
               af TYPE kcde_cells-value,
               ag TYPE kcde_cells-value,
               ah TYPE kcde_cells-value,
               ai TYPE kcde_cells-value,
               AJ TYPE KCDE_CELLS-VALUE,
               AK TYPE KCDE_CELLS-VALUE,
               END OF lt_items.
       l_filename = p_flpath.
    * the file must be an xls file, not xlsx or comma seperated
       IF p_flpath NS '.xls' AND p_flpath NS '.XLS'.
         MESSAGE i261(zfi).
         g_error = 'X'.
         EXIT.
       ENDIF.
    * upload excel file to a generic table
       CALL FUNCTION 'KCD_EXCEL_OLE_TO_INT_CONVERT'
         EXPORTING
           filename                = l_filename
           i_begin_col             = 1
           i_begin_row             = 1
           i_end_col               = 150
           i_end_row               = 65000
         TABLES
           intern                  = lt_intern
         EXCEPTIONS
           inconsistent_parameters = 1
           upload_ole              = 2
           OTHERS                  = 3.
       IF sy-subrc <> 0.
         MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
                 WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
       ENDIF.
    * validate that the format is in the restatement format
    *  this is the only template to have the ledger group in cell G-2
    **  READ TABLE lt_intern WITH KEY row = '0002' col = '0007'.
    **  IF sy-subrc <> 0 OR lt_intern-value IS INITIAL.
    **    MESSAGE i260(zfi).
    **    g_error = 'X'.
    **    EXIT.
    **  ENDIF.
    * create control record values
       ls_control-rec_type = 'C'.
       ls_control-global_id = 'GLU-03000'.
       ls_control-local_id = ''.
       ls_control-rec_count = ''.
       CONCATENATE sy-datum sy-uzeit INTO ls_control-date.
       ls_control-version = '12'.
       ls_control-email = ''.
       ls_control-eor = 'X'.
       ls_trailer = ls_control.
    * open output file and add the control record
       OPEN DATASET p_unixfilename FOR OUTPUT IN TEXT MODE ENCODING DEFAULT.
       TRANSFER ls_control TO p_unixfilename.
    * create header record values, will be transfered to file in the item loop
       ls_header-rec_type = 'H'.
       READ TABLE lt_intern WITH KEY row = '0017' col = '0003'.
       IF sy-subrc = 0.
         ls_header-header_txt = lt_intern-value.
       ENDIF.
       READ TABLE lt_intern WITH key row = '0020' col = '0002'.
       IF sy-subrc = 0.
         ls_header-comp_code = lt_intern-value.
       ENDIF.
    ************doc date
       READ TABLE lt_intern WITH KEY row = '0011' col = '0003'.
       IF sy-subrc = 0.
         ls_header-pstng_date = lt_intern-value.
       ENDIF.
    ************posting date
         ls_header-doc_date = sy-datum.
       READ TABLE lt_intern WITH KEY row = '0009' col = '0003'.
       IF sy-subrc = 0.
         ls_header-doc_type = lt_intern-value.
       ENDIF.
       READ TABLE lt_intern WITH KEY row = '0014' col = '0003'.
       IF sy-subrc = 0.
         ls_header-ref_doc_no = lt_intern-value.
       ENDIF.
    ************currency moved to line items
         READ TABLE lt_intern WITH KEY row = '0020' col = '0001'.
       IF sy-subrc = 0.
       ls_header-currency = lt_intern-value.
       ENDIF.
       ls_header-trans_date = ''.
       READ TABLE lt_intern WITH KEY row = '0010' col = '0003'.
       IF sy-subrc = 0.
         ls_header-period = lt_intern-value.
       ENDIF.
       READ TABLE lt_intern WITH KEY row = '0006' col = '0003'.
       IF sy-subrc = 0.
         ls_header-reason_rev = lt_intern-value.
       ENDIF.
       READ TABLE lt_intern WITH KEY row = '0007' col = '0003'.
       IF sy-subrc = 0.
         ls_header-rev_date = lt_intern-value.
       ENDIF.
    *  READ TABLE lt_intern WITH KEY row = '0002' col = '0007'.
    *  IF sy-subrc = 0.
         ls_header-ledger_grp = ''.
    *  ENDIF.
    *  READ TABLE lt_intern WITH KEY row = '0013' col = '0013'.
    *  IF sy-subrc = 0.
         ls_header-exch_rate = ''.
    *  ENDIF.
       READ TABLE lt_intern WITH KEY row = '0008' col = '0003'.
       IF sy-subrc = 0.
         ls_header-calc_tax = lt_intern-value.
       ENDIF.
       ls_header-eor = 'X'.
    * loop at the line items and append them to a table with multiple columns
       LOOP AT lt_intern WHERE row GE 20.
         IF l_currentrow <> lt_intern-row AND l_currentrow IS NOT INITIAL.
           APPEND lt_items.
           CLEAR lt_items.
         ENDIF.
         l_currentrow = lt_intern-row.
         CASE lt_intern-col.
           WHEN '0001'. lt_items-a = lt_intern-value.
           WHEN '0002'. lt_items-b = lt_intern-value.
           WHEN '0003'. lt_items-c = lt_intern-value.
           WHEN '0004'. lt_items-d = lt_intern-value.
           WHEN '0005'. lt_items-e = lt_intern-value.
           WHEN '0006'. lt_items-f = lt_intern-value.
           WHEN '0007'. lt_items-g = lt_intern-value.
           WHEN '0008'. lt_items-h = lt_intern-value.
           WHEN '0009'. lt_items-i = lt_intern-value.
           WHEN '0010'. lt_items-j = lt_intern-value.
           WHEN '0011'. lt_items-k = lt_intern-value.
           WHEN '0012'. lt_items-l = lt_intern-value.
           WHEN '0013'. lt_items-m = lt_intern-value.
           WHEN '0014'. lt_items-n = lt_intern-value.
           WHEN '0015'. lt_items-o = lt_intern-value.
           WHEN '0016'. lt_items-p = lt_intern-value.
           WHEN '0017'. lt_items-q = lt_intern-value.
           WHEN '0018'. lt_items-r = lt_intern-value.
           WHEN '0019'. lt_items-s = lt_intern-value.
           WHEN '0020'. lt_items-t = lt_intern-value.
           WHEN '0021'. lt_items-u = lt_intern-value.
           WHEN '0022'. lt_items-v = lt_intern-value.
           WHEN '0023'. lt_items-w = lt_intern-value.
           WHEN '0024'. lt_items-x = lt_intern-value.
           WHEN '0025'. lt_items-y = lt_intern-value.
           WHEN '0026'. lt_items-z = lt_intern-value.
           WHEN '0027'. lt_items-aa = lt_intern-value.
           WHEN '0028'. lt_items-ab = lt_intern-value.
           WHEN '0029'. lt_items-ac = lt_intern-value.
           WHEN '0030'. lt_items-ad = lt_intern-value.
           WHEN '0031'. lt_items-ae = lt_intern-value.
           WHEN '0032'. lt_items-af = lt_intern-value.
           WHEN '0033'. lt_items-ag = lt_intern-value.
           WHEN '0034'. lt_items-ah = lt_intern-value.
           WHEN '0035'. lt_items-ai = lt_intern-value.
           when '0036'. lt_items-aj = lt_intern-value.
           when '0037'. lt_items-ak = lt_intern-value.
         ENDCASE.
       ENDLOOP.
       APPEND lt_items.
    * sort rows by the post date, comp code, curr.
    *  SORT lt_items BY ah a ai.
    * loop at the items, creating a header record if the comp code, curr. or post date changes
       LOOP AT lt_items.
         ls_item-rec_type = 'I'.
         ls_item-post_key = lt_items-c.   "lt_items-b.
         IF lt_items-c GE '20' AND lt_items-c LE '39'.
           ls_item-vendor_no = lt_items-d.
         ELSEIF lt_items-c GE '0' AND lt_items-c LE '19'.
           ls_item-customer = lt_items-d.
         ELSEIF lt_items-c EQ '70' AND lt_items-c EQ '75'.
           ls_item-asset = lt_items-d.
         ELSE.
           ls_item-gl_account = lt_items-d.
         ENDIF.
         ls_item-asset_type = lt_items-m. "lt_items-l.
         ls_item-trans_type = lt_items-n. "lt_items-m.
         ls_item-print_flag = ''.
         ls_item-item_text = lt_items-j. "lt_items-i.
         ls_item-comp_code = lt_items-b. "lt_items-a.
         ls_item-bus_area = ''.
         ls_item-alloc_nmbr = lt_items-l. "lt_items-k.
         ls_item-tax_code = lt_items-q. "lt_items-p.
         ls_item-taxjurcode = lt_items-r. "lt_items-q.
         ls_item-profit_ctr = lt_items-g. "lt_items-f.
         ls_item-costcenter = lt_items-h. "lt_items-g.
         ls_item-orderid = lt_items-ac. "lt_items-ab.
         ls_item-wbs = lt_items-i. "lt_items-h.
         ls_item-trade_id = lt_items-o. "lt_items-n.
         ls_item-part_prctr = lt_items-p. "lt_items-o.
         ls_item-material = lt_items-t. "lt_items-s.
         ls_item-salesorg = lt_items-aa. "lt_items-z.
         ls_item-distr_chan = lt_items-ab. "lt_items-aa.
         ls_item-pmnttrms = ''.
         ls_item-pmtmthd = ''.
         ls_item-pmtmthsupl = ''.
         ls_item-alt_payee = ''.
         REPLACE ALL OCCURRENCES OF '(' IN lt_items-e WITH ''.
         REPLACE ALL OCCURRENCES OF ')' IN lt_items-e WITH ''.
         ls_item-amt_doccur = lt_items-e. "lt_items-d
         REPLACE ALL OCCURRENCES OF '(' IN lt_items-f WITH ''.
         REPLACE ALL OCCURRENCES OF ')' IN lt_items-f WITH ''.
         ls_item-loc_amt = lt_items-f. "lt_items-e
         ls_item-loc  = lt_items-k. "lt_items-j.
         ls_item-sas_revtype = lt_items-s. "lt_items-r.
         ls_item-rev_type = lt_items-u. "lt_items-t.
         ls_item-rev_chnl = lt_items-v. "lt_items-u.
         ls_item-bill_to = lt_items-x. "lt_items-w.
         ls_item-payer = lt_items-z. "lt_items-y.
         ls_item-ship_to = lt_items-y.
         ls_item-tax_amnt = lt_items-x.
         ls_item-func_area = ''.
         ls_item-expend_date = lt_items-ae. "lt_items-ad.
         ls_item-wtax_code = lt_items-af. "lt_items-ae.
         ls_item-wtax_base = lt_items-ag. "lt_items-af.
         ls_item-wtax_amount = lt_items-ah. "lt_items-ag.
         ls_item-payment_block = ''.
         ls_item-grp_amt = ''.
         ls_item-anc_amt = ''.
         ls_item-permit_payee = ''.
         ls_item-value_date = ''.
         ls_item-pernr   = ''.
         ls_item-legacy1 = ''.
         ls_item-legacy2 = ''.
         ls_item-legacy3 = ''.
         ls_item-legacy4 = ''.
         ls_item-legacy5 = ''.
         ls_item-legacy6 = ''.
         ls_item-legacy7 = ''.
         ls_item-legacy8 = ''.
         ls_item-legacy9 = ''.
         ls_item-legacy10 = ''.
         ls_item-eor = 'X'.
         TRANSLATE lt_items-ai TO UPPER CASE.
         TRANSLATE lt_items-b TO UPPER CASE.
         TRANSLATE lt_items-a TO UPPER CASE.
         TRANSLATE lt_items-aj TO UPPER CASE.
         IF l_current_curr <> lt_items-a "lt_items-ai
           OR l_current_postdate <> ls_header-pstng_date "lt_items-aj
           OR l_current_compcode <> lt_items-b.
           l_current_curr = lt_items-a.
           l_current_postdate = ls_header-pstng_date. "lt_items-aj.
           l_current_compcode = lt_items-b.
           ls_header-comp_code = l_current_compcode.
           ls_header-currency = l_current_curr.
           ls_header-pstng_date = l_current_postdate.
           ls_header-doc_date = l_current_postdate.
           TRANSFER ls_header TO p_unixfilename.
           l_line_count = l_line_count + 1.
         ENDIF.
         TRANSFER ls_item TO p_unixfilename.
         l_line_count = l_line_count + 1.
       ENDLOOP.
       ls_trailer-rec_type = 'T'.
       ls_trailer-rec_count = l_line_count.
       TRANSFER ls_trailer TO p_unixfilename.
       CLOSE DATASET p_unixfilename.
    * change the format to fixed format for the remainder of the load program
       p_fixed = 'X'.
       p_rstmnt = ''.
    Thanks,
    Koushik

  • Setting corect value in JTable while adding row @ run time

    HI All,
    Iam facing the following problems in Java Swing while using JTable..
    I have a JTable with 11 colums and i add row on run time..
    Since i needed the 11th column of the table to be of type CheckBox i used the follwing object in the DefaultTableModel class..
    Object[][] data =
                   {"1", "", "", "", "", "", new Double(0.0), new Integer(0), new Double(0.0), new Double(0.0),new Boolean(false) }
    When ever i wan't to delete a row i will click the Boolean Object ( which appears as a Check box ) and then delete that row.. For deleteing i am using 1 methods..
    1. By selecting the col by mouse and the click a button to delete the selected rows...
    2. By selecting the col by key board , using a Menu ShortCut key ( CTRL-F ) and then using the space key to on the value , then i use another Menu ShortCut key ( CTRL-D ) to delete all the selected rows..
    The above 2 methods work fine as for as deleting is concerned..
    But the problem starts while adding another row after deleting one or more rows..That 2 happens while the deletion had been done by the KEYBORD only..
    The problem is...
    If there is more than 1 rows and i select some rows of any order..And then delete them with the Keyboard option..and then add a rows , while adding the row @ the postion where the last row was deleted iam getting the 11th col. value ( which apears as a check box ) as selected..For example if there is 4 rows and i delete the 3rd and 4th row and then when i add rows its fine for the 3rd row and for the 4th row ( which was the last one which was slected to be deleted ) i get the option as a selected one..
    But while adding i use the above said Data object only..I then used the the
    JTablename.getValueAt(i,10); to print the value and iam geting false only..
    And more over when i try to focus in the cell in 1st row last column of the table by the setSelection method , the focus goes to the cell which appears to be enbled..
    My friends asked me to use the follwing methods before adding rows ..
    1. clearSelection()
    2. Validate()
    3. repaint()
    But the problem seems not over can anyone help....
    U can mail me to [email protected]
    Love,.
    Siva

    Yes, relatively easily, I think.
    In your end jump script set a second value in a different GPRM that identifies the last film played. This way the play all flag is set and you know which clip has just been seen.
    On resuming the play all you need to reset the play all flag to '1' and then look at the other GPRM to see which clip played last. Use a bunch of jump commands to get back in to the playback at the start of the next logical clip and it should continue through as before.
    The secret here is to clear the play all flag when showing a few clips, but use your 'resume play all' button to reset the flag and see where you were by reading the other GPRM.
    The downside here is that you could be in clip 3 when you exit the play all, but you would have to resume clip 3 from the start when you return as the 'Resume' info will get cleared if you start showing other clips in the mean time.
    Have you also considered setting up a video jukebox? You could then pick a selection of tracks to play in the order they were chosen and leave them to run through. This is a much trickier bit of scripting, but very possible!
    Stories could have made things easier, but given the set-up that you have built you can still get what you need from the scripting

Maybe you are looking for

  • How do I import addresses from Word into Address Book?

    I have all my addresses formatted as a label document in Word (so I can print on Avery labels). How can I import this information into Address Book?

  • INVOICE의 TAX LINE TYPE이 'IPI' 로 생성

    제품 : FIN_AP 작성날짜 : 2003-05-12 INVOICE의 TAX LINE TYPE이 'IPI' 로 생성 ================================== PURPOSE AP Period Closing 시 발생하는 data 문제를 아래 방법으로 해결한다. Problem Description Oracle Applications 11i Ap Period closing 을 할 수 없고 다음과 같은 Error가 발생한다. "To

  • Price List Setup - R12

    Hello Friends, I am trying to setup a Price List ( in a new R12 instance, not a R12 VISION instance ). When with Responsibility "Oracle Pricing Manager", I click on Price List Setup, I get a message - Pricing APIs are not available for Basic Pricing

  • Some interview questions help

    Hi friends i have some interview questions please give me good answers.thanks for advance. 1.what is info provider?what is advantages and disadvantages? 2.when your working process chains you set up 2 jobs ,one is 12 pm and anothet 3 am.when you come

  • Export in AddressBook are from the old Tiger DB

    Hi, When I export my address book from AddressBook on Leopard, it exports only my old address book from Tiger... In my Application Support/AddressBook I have this 2 files of DB : -rw------- 1 dulrich dulrich 421888 Oct 30 08:10 AddressBook-v22.abcddb