Skip to Content
author's profile photo Former Member
Former Member

I have a problem 'LoadToDataSource'

Hi, Everyone!

I have a big big problem 'LoadToDataSource' Method

I make 2 Usertables (one is master type "@ZPH", other is master line type "@ZPL"), UDO("ZPH"), form(in screen painter), Bind Usertable in form (editbox, matrix).

It works good. adding, updating, deleting , Finding

But , if I input in code

-


<i>Dim odbds As SAPbouiCOM.DBDataSource

' Header Table Update

Set odbds = oForm.DataSources.DBDataSources("@ZPH")

odbds.setValue "U_Stat", 0, "O"

Set odbds = Nothing

' Line Table Update

oMatrix.FlushToDataSource

Set odbds = oForm.DataSources.DBDataSources("@ZPL")

<b>If odbds.getValue("U_ItemCode", oRow - 1) <> "" then

odbds.setValue "U_ProQty", oRow - 1, 25

endif</b>

oMatrix.LoadFromDataSource'(or oMatrix.SetLineData oRow)

Set odbds = Nothing</i>

-


I push "Update" button. Master Table is updated very well.

<b>But Master Line Table is not!!

And Something Strange is the Master Line Log Table(@AZPL) is inserted.(Although Master Line Table not Updated) </b>

Why things like happened?

Is it SDK bug? Or do you konw patch version for this problem?

I used SDK 6.7

And

-


<i>Dim odbds As SAPbouiCOM.DBDataSource

' Header Table Update

Set odbds = oForm.DataSources.DBDataSources("@ZPH")

odbds.setValue "U_Stat", 0, "O"

Set odbds = Nothing

' Line Table Update

oMatrix.FlushToDataSource

Set odbds = oForm.DataSources.DBDataSources("@ZPL")

<b> If odbds.getValue("U_ItemCode", oRow - 1) <> "" then

oMatrix.Columns("8").Cells(oRow).Specific.String =25

endif</b>

Set odbds = Nothing</i>

-


If I do like such as "<u>oMatrix.Columns("8").Cells(oRow).Specific.String =25</u>", It is very good.

But It is not for me. Because the Cursor moves from current column to the Column "8" and Back Current column.

I want to 'LoadDataSource'.

Do you know any Solution?

Add a comment
10|10000 characters needed characters exceeded

Related questions

1 Answer

  • Best Answer
    Posted on May 13, 2005 at 03:20 PM

    1) Sorry for the inconvenience, but I think this is a bug.

    Please report it on SAP Service Marketplace in case you use the most recent patch level (PL).

    2) I did not exactly try that - so I unfortunately cannot tell you whether it might be fixed in a more recent patch (what's the exact version / PL you use?).

    Maybe someone else can?

    3) Regarding your workaround:

    Try using

    oForm.Freeze(True)

    before you modify the cell + afterwards

    oForm.Freeze(False)

    .

    HTH,

    Frank

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.