Can I modify the LineStatus and OpenQty fileds in POR1 using DI API?

Hi, guys,
The addon under development will run on SBO 2005B PL35. I tried to use DI API to directly modify the values of LineStatus and Openqty in POR1 throught following codes. No error come up but the values of LineStatus and Openqty in POR1 didnot changed.
Something wrong in the codes? Or such action is not allowed in SBO 2005B?
Thanks for your reply!
TRY
sSQL = "SELECT * FROM POR1 T0 where DocEntry = " & poEntryNo & " and LineNum = " & oPOLine
oDataTable.ExecuteQuery(sSQL)
oDTSize = oDataTable.Rows.Count
Offset = oDataTable.Rows.Offset
If (oDTSize > 1) Then
        oLineStatus = oDataTable.GetValue("LineStatus", Offset)
        If oLineStatus = "O" Then
               oOpenQty = oDataTable.GetValue("OpenQty", Offset) - CInt(omatrix.Columns.Item("col_Qty").Cells.Item(row).Specific.string)
               If oOpenQty > 0 Then
                       oDataTable.SetValue("OpenQty", Offset, oOpenQty)
               Else
                       oDataTable.SetValue("OpenQty", Offset, 0)
                       oDataTable.SetValue("LineStatus", Offset, "C")
               End If
       End If
End If
CATCH ex as exception
       sbo_application.message(ex.exception)
End TRY

hi
In your code, I didn't find a code which update the LineStatus value in the database.
You are just updating the DataTable object. Which will not reflect in the database.
Use the SAPbobsCOM.Documents object if you need to update the LineStatus.
In Documents object there is a Lines subobject available. Update the LineStatus property.
Anoop

Similar Messages

  • How do I drag an image or text box to the "workspace" off of my working file but where I can still see the image and text box for future use?

    How do I drag an image or text box to the "workspace" off of my working file but where I can still see the image and text box for future use?
    When I drag the item off of the trifold that I am creating, it just disappears but I still want to use it.  I just need to move it out of the way to modify other portions of the document.
    thanks,
    C

    Add another page below the current one to use as a storage area. You can't use the grey area around the page for storing items you want to use later.
    Go to the Pages Menu>Provide Pages Feedback if you would like to request this feature be added in future versions.

  • Can I change the drive and directory that 3.6 uses for default Profiles?

    My C:\ drive is getting overloaded. Can I move my Firefox 3.6 default Profile to another drive and directory? If yes, I assume the Managing Profiles and Backing Up Your Info articles apply.

    Thanks for the suggestion.
    Here are my assumptions:
    After getting to the Environmental Variables screen:
    1. HiLite the TEMP Folder and click on Edit.
    2. HiLite Variable Value and change path from:
    %USERPROFILE%\Local Settings\Temp TO
    G:\My Docs\My Computer\Local Settings
    Or do I need to use some variation of the %..% convention?
    Do I then “Move” the current files or just reboot?
    Thanks for your patience.

  • How can I make the popup with empty fileds and create new record?

    I would like to use a popup to create new record.
    I created a af:popup by drag and drop a VO from data control to jsff. then, I created a button and place a af:showPopupBehavior. I was able to popup window by click the button.
    however, the window filled with the information from the 1st record. and when I select a record in table and click popup, the popup is filled with that record.
    How can I make the popup with empty fileds and create new record by saving the popup?
    Thanks

    You can have edit and new buttons, in the PopupFetchEvent identify button source (using popupFetchEvent.getLaunchSourceClientId()) if new button clicked clear the binding using below code.
    If you want to see empty fields, in the popup PopupFetchEvent clear the input component bindings.
    resetBindingValue("#{bindings.<componentid>.inputValue}", null);
        public static void resetBindingValue(String expression, Object newValue) {
            FacesContext ctx = FacesContext.getCurrentInstance();
            Application app = ctx.getApplication();
            ExpressionFactory elFactory = app.getExpressionFactory();
            ELContext elContext = ctx.getELContext();
            ValueExpression valueExp = elFactory.createValueExpression(elContext,expression,Object.class);
            Class bindClass = valueExp.getType(elContext);
            valueExp.setValue(elContext,newValue);
        }

  • When I logon for XP, if I am no actively doing something for several minutes I am logoff and must reenter my logon again. How can I modify the time it stays active?

    When I first logon to windows xp if I am not actively doing something minutes I am logoff and must re-enter my ogon again. How can I modify the length of time that it stays active?

    You can find that in control panel

  • How can i change the title and image of  published exe

    Hi ,
    I have published a fla file in exe format .
    how can i change the title and image of this exe? do I ve to
    use some of the available softwares in the market? cant i do the
    customised setting in the flash player itself?

    On Fri, 4 Apr 2008 06:21:15 +0000 (UTC), "mFlexDev"
    <[email protected]> wrote:
    > I have published a fla file in exe format .
    > how can i change the title and image of this exe?
    I beleave the easiest way is to use PEResourceExplorer,
    Resource
    Hacker or similar software to modify EXE resources, such as
    window
    title and window icon.

  • Can you modify the price of a contract in the ME32K directly from the item

    Hello,
    I am in ECC6.0
    I need to modify the price of an item in the contract (ME32K WK or MK) but it is grey (only in display). So I must do Item-Condition and then I can modify the price of the item.
    Can you modify the price of a contract in the ME32K directly from the item screen?
    I have try with several field selections but nothing.
    AKTV     Change
    MKK     Quantity contract (for MK)
    WKK     Value Contract (for WK)
    PT0K     Standard item contract
    Cheers,
    Marta

    HI,
    If you maintain any condition in the contract line item condition, like freight, discount etc. the landed price gets populated in the line item price field. So if you want to make any change in base price, it has to be changd in the line item condition.
    This is because, You can maintain different validity period in condition and maintain different price in each validity period. So which price you want to pick? So the system captures the price from condition and populate it in the item price field depending on the validity period price.
    Hope this helped you.
    Regards

  • How can we modify the maximum no. of columns in pivot table ?

    hi all,
    How can we modify the maximum no. of columns in pivot table ?
    do i need to change the nqconfig.ini or instanceconfig file or else?
    thnx..

    A little search on the forum :
    In the instanceconfig.xml add a <PivotView> element under <ServerInstance> if one does
    not exist already.
    Within the <PivotView> element add an entry that looks like:
    <MaxCells>nnnnnn</MaxCells>
    where nnnnnn is your desired limit for the maximum total number of cells allowed
    in a pivot.
    Warning: an excessively large number will cause more memory consumption and
    slower browser performance.The details here :
    Oracle BI EE (10.1.3.2): Maximum total number of cells in Pivot Table excee

  • How can you modify the displayed columns on a Related Information List?

    How can you modify the displayed columns on a Related Information List? For example, how could you add the "Type" column to the List of columns displayed for Service Requests when you are viewing the Contacts Detail page?
    Thanks

    I'd have to say I think this is one of the biggest flaws in the OnDemand system currently. The solution I have come up with is to create reports and put them in webapplets showing the data I want to show. I have then removed the standard Related Info List Objects and added weblinks to create new records as the button on the List object is also gone.
    Keep in mind that doing this does slow things down a little, so it may not work if you have a big user base.
    RWB.

  • How can I modify the logon screen on the portal

    Hi,
    We have designed some BI queries, when we open Query Designer and execute them (CTRL + R) an Internet Explorer open and ask us to log on this BI Portal.
    On this Portal login screen, I can only provide my user name and password.
    We would like the user to be able to select the language and to change is password.
    How can we enable those changes ?
    Thanks,
    Hugo

    Although in iSQL*Plus 9.0.1 you can't modify the default
    login HTML, you can create your own static HTML "login"
    page. Just make sure the correct login credential
    parameters are passed to the iSQL*Plus URL. Your users will
    have to call your new static page instead of the default
    iSQL*Plus login page.
    Copy the HTML from the default login page and change the
    FORM ACTION to include the host and port:
    <FORM ACTION="http://host.port/isqlplus" METHOD="post">
    and change the "Connection Identifier" field to a drop down
    list of the connection identifiers you want:
    <TD CLASS="label">Connection Identifier:</TD>
    <TD>
    <SELECT NAME="sid">
    <OPTION SELECTED>SID1</OPTION>
    <OPTION>SID2</OPTION>
    <OPTION>SID3</OPTION>
    </SELECT>
    </TD>
    Add your own logo, joke of the day, and put it in
    production....
    iSQL*Plus 9iR2 has an option for a drop down list of connect
    identifiers to be configured in the default login screen.
    This allows sys admins to restrict the DB servers that can
    be accessed. No other connect identifiers can be used, even
    from CONNECT commands in scripts.
    On the OTN home page there seems to be an "early access"
    link for down loading the 9i Database R2.
    -- CJ

  • Can we modify the ME5A  standard report

    dear gurus
    I wnat to include the two columns where i need to fetch the data from P.R , Can we modify the ME5A  standard report.
    Regards
    srinivas

    Hi
    Pl do n't do any modification the SAP standard report would suggest you to copy the programme and rename & create Z report with addition of two columns as per your requirement which is the best option
    Regards

  • Can't modify the advanced Java setting

    I can't modify the advanced Java setting in Windows Vista if the UAC is on. If I disable the UAC the setting can be modified but when I turn the UAC on again return the old setting. This is a big problem because the jre in IE7 results deactivate and I can't open the Java applet infact the browser show the message:
    alt="Your browser understands the <APPLET> tag but isn't running the applet, for some reason." Your browser is completely ignoring the <APPLET> tag!
    I have installed the latest version: Java Runtime Environment 6 Update 4
    Thanks for the support sorry for the bad English.

    See http://www.google.com/search?q=java+vista+uac+problem

  • Qosmio X500-15F - How can I modify the DPI?

    Hello
    With Qosmio X500-15F and graphic card NVIDIA GeForce GTX 460M
    I'm using a professional software for jewelry building (Matrix 6.0 based on Rhinoceros 3D 4.0 SR9). When starting it, the software is asking me to set the DPI to normal.
    How can I modify the DPI? I already tried different resolution settings. It doesn't change the problem.
    Thanks for help

    DPI is how many pixels per inch of the LCD. You can't change that.
    I think the software needs a specific resolution or LCD size. Try lowering the resolution to 1280x800 or try an external monitor.

  • Can I just limit user can only modify the x value of a point?

    In my effect, I add a point by using PF_ADD_POINT. But I just want user can only modify the x value, is this possible? How can I do it?

    hello shibin.chris! welcome to the forum!
    well, there's no switch you can flip to have such behavior, but you can:
    1. supervise the param, so whenever the user changes the value you can keep
    the X and restore the Y. (won't hold water in case of keyframing or
    expression)
    2. set an expression that would do the same.
    3. check the param at some events (such as the render call), and modify the
    keyframes and values if necessary. (won't handle expressions)
    that's all i can think of.

  • Can we modify the attributes(structure-fields) of NUMKR structure

    can we modify the attributes(structure-fields) of NUMKR structure?

    NUMKRS Infotype 0000
    Country grouping
    comapny code
    Personal area
    personla subarea
    employee group
    employee subgroup
    so did u assigned number ranges for employee subgroups
    Internal number ranges will be given by the system
    and external by the consultants
    check and let me know if there is any issues
    have u done in this manner

Maybe you are looking for

  • New to the Mac and need a little help!

    I recently upgraded our pc in the house to windows vista. Before the upgrade I could use remote desktop to access the files on a shared drive. Now I cannot. Any help would be appreciated. I am using a mini Mac with 10.4.9 on a 1.873 core duo mini. Us

  • Bring window back to focus after using "command-m"

    when i press "command-m" it minimizes any given window to the stack area(dont know if its called that) but when i "command-tab" and select the window i just minimized in an effort to bring it up again, it doesn't(the menu bar changes but i cant see t

  • Embedding Xcelsius in WEBI report

    Hi, Can anyone let me know how to embed Xcelsius Flash in WEBI report? I know that we need to use iframe syntax but can anyone give me exact steps and syntax of the same? Thanks, Shweta

  • JSP Compiler

              Originally I post it to weblogic.developer.interst. But I guess this may be a better space to post the JSP related question. Sorry for the double post           Hi, there,           I tried to use the weblogic.jspc to compile my JSP files f

  • Netflix Silverlight update OS 10.4.11

    So, I'm trying to watch Netflix Watch It Now and the site keeps telling me that I need to update my version of Silverlight. The funny part is that the newest update for Silverlight (5.0) only runs on OS 10.5 or higher. Does this mean I can't watch Ne