UDO data adding policy

Hello Everyone,
I've noticed that in my UDO matrix only visible & active columns are being saved in the DB, although i do manage and set values in some fields which are not represented on matrix, through the DBDataSource. Is there any way to make it save these fields values also?
Thanks
Mosh

Hello
Yes. from B1 2007 PL 46 you have DI API Interface for UDO.
You may try this interface.
sample code from help
Dim oGeneralService As SAPbobsCOM.GeneralService
Dim oGeneralData As SAPbobsCOM.GeneralData
Dim oChild As SAPbobsCOM.GeneralData
Dim oChildren As SAPbobsCOM.GeneralDataCollection
Dim oGeneralParams As SAPbobsCOM.GeneralDataParams
'Get GeneralService (oCmpSrv is the CompanyService)
Set oGeneralService = oCmpSrv.GetGeneralService("MainUDO")
'Create data for new row in main UDO
Set oGeneralData = oGeneralService.GetDataInterface(gsGeneralData)
oGeneralData.SetProperty "Code", "First"
oGeneralData.SetProperty "U_Data", "my data"
'Create data for a row in the child table
Set oChildren = oGeneralData.Child("ChildUDO")
Set oChild = oChildren.Add
oChild.SetProperty "U_Data", "child data"
oChild.SetProperty "U_Type", 6
'Add the new row, including children, to database
oGeneralService.Add oGeneralData
Regards,
J

Similar Messages

  • UDO with DI object - some times udo data gets added but not di obj data

    Dear Experts,
      Greetings.
       I have created a customized inventory transfer form according to the customer need. I have used document type udo object and inventory transfer. Some times the udo data gets added without adding the data through inventory transfer object. Below is the code that i am using in the item event,
    If pVal.ItemUID = "1" And pVal.EventType = SAPbouiCOM.BoEventTypes.et_ITEM_PRESSED And pVal.Before_Action = True _
                        And pVal.FormMode = SAPbouiCOM.BoFormMode.fm_ADD_MODE Then
                        Try
                            If DeliveryChallanValidate(oForm) = False Then
                                If DC_company.InTransaction Then
                                    DC_company.EndTransaction(SAPbobsCOM.BoWfTransOpt.wf_RollBack)
                                End If
                                BubbleEvent = False
                                Exit Sub
                            Else
                                Try
                                    DC_company.StartTransaction()
                                   'Inventorytransfer function is used to add the inventory transfer data through DI 'object.Returns
             ' true if sucessfully added and false if there is any error.
                                    If InventoryTransfer(oForm) = True Then
                                            If DC_company.InTransaction Then
                                                DC_company.EndTransaction(SAPbobsCOM.BoWfTransOpt.wf_Commit)
                                            End If
                                            BubbleEvent = True
                                            Exit Sub
                                    Else
                                        If DC_company.InTransaction Then
                                            DC_company.EndTransaction(SAPbobsCOM.BoWfTransOpt.wf_RollBack)
                                        End If
                                        BubbleEvent = False
                                        Exit Sub
                                    End If
                                Catch ex As Exception
                                    If DC_company.InTransaction Then
                                        DC_company.EndTransaction(SAPbobsCOM.BoWfTransOpt.wf_RollBack)
                                    End If
                                    BubbleEvent = False
                                    DC_Application.StatusBar.SetText(ex.Message, SAPbouiCOM.BoMessageTime.bmt_Short, SAPbouiCOM.BoStatusBarMessageType.smt_Error)
                                End Try
                            End If
                        Catch ex As Exception
                            If DC_company.InTransaction Then
                                DC_company.EndTransaction(SAPbobsCOM.BoWfTransOpt.wf_RollBack)
                            End If
                            BubbleEvent = False
                            DC_Application.StatusBar.SetText(ex.Message, SAPbouiCOM.BoMessageTime.bmt_Short, SAPbouiCOM.BoStatusBarMessageType.smt_Error)
                            Exit Sub
                        End Try
                    End If
    I Would like to know if there is any other method by which if there is any error the UDO data or DI object then both should not add. I am working in SBO 2007B Patch 17.
    Regards,
    Gokul K.

    Dear Siva,
      Thanks for your response. I did go through the links that you have posted. I do not have any problem in adding the stock transfer through DIAPI. My problem is that if the addon that i have developed gets disconnected, what happens is like only the udo data from the user defined form gets added and the stock transfer does not work. Hope i made my point clear.
    Regards,
    Gokul K.

  • Date Added field blank in attachment

    Hi All,
    I am adding an attachment (through coding ) to an UDO.
    The attachemmt attaches fine but the Date Added field is blank and non editable.
    Moreover I cannot find any APIs to fill this field with the current date.
    As a result, my UDO does not get saved.
    Please provide pointers to fill the Date Added field either automatically or through coding.
    Regards,
    Himanshu

    Since there are no standard API's to set the date added field., you can use getExtensionField to set the date. The field ID for date Added within AttachmentSubIBeanIfc is "MODIFIED".
    You can use this line of code to set the date added:
    attachmentBean.getExtensionField("MODIFIED").set(TypeFactory.createSysDatetime(new java.util.Date()));
    where attachmentBean is of type AttachmentSubIBeanIfc.
    regards,
    Immanuel
    Edited by: immanuel farrar on Mar 23, 2010 5:42 AM

  • I just upgraded to the latest version of iTunes and it duplicated virtually every track in my music library. I need a quick way to delete the duplicates. Sorting by "Date Added" will not help because they are all listed as added on 12/12/2011.

    Library Duplicated
    I just updated to the latest version of iTunes and it duplicated virtually every track in my library. I need a quick way to delete the duplicates. Sorting by "Date Added" will not work, because every track is listed as added on 12/12/2011 even though this happened today 12/19/2011.

    I've written a script called DeDuper which can help remove unwanted duplicates. See this  thread for background.
    tt2

  • Got a new Mac, my iTunes is whack, (No Play Count or Date Added)

    Hello, everybody. It's been a rough night.
    I currently own a G4 iMac and I just got a brand new Macbook. The Macbook is very nice, it's extremely speedy and I am sure I will grow to love it. We've got just one hurdle to get through together: the organization of my music in iTunes. Now, I've had the iMac for five years, and not long after I got it adding music to it became something of an importance, it was my music player. Over the past five years I've not only added thousands of songs, but meticulously and very specifically organized them into playlists based on the number of spins they have and when they were added. To a lot of people I know this sort of thing isn't a huge deal, but for me this organization became, and I kid you not, a huge, huge part of my life.
    So I get the new Macbook, fire it up and use Migration Assistant, (with the iMac in Target Disk Mode), to move my data over. When it's done I open the iTunes and am greeted with... nothing. Well, okay, all of my music is there, that's nice, (it's what iTunes is for, etc etc), but NONE of my play count or date added information remains. I weep inside.
    Being that this is my first new computer in five years, (a long time!), you might be able to tell that I was hesitant about upgrading. Before getting my Macbook I asked experts at the Apple Store if this method would work, and even received assurance from several people online that everything would be preserved. So, I did my homework, but my Macs and I both apparently failed the test. Here's where we are now:
    1. The iMac, (running Tiger), still has iTunes on it, with all the information, nothing seems to have changed on that end.
    2. The Macbook has a hard drive full of music with no playlist, play count or date added data.
    3. I do own an iPod where I backed up the music before the move. I know that the data information on playlists, play count and date added is on the iPod. I do not dare plug it in to the new machine for fear of the unknown.
    Which brings me here, is there some way, any way of rectifying this? Here is what I would like:
    1. For the Macbook iTunes to look EXACTLY like the iMac's does.
    2. For it to work with both my old iPods without question.
    This has been long, and I fear that some may pass it over as something too much of an banality to be needed help with. But like some collect shoes or hats, I collect music. It's a lovely collection and it's a large part of who I am. I could start all over, but that's sort of like saying the world could start over if it by chance happened to forget how to turn. It would take a lot of effort, and there would be some (more) tears, but I could move on. But I really, really don't want to. I just want things to be the way they were. I'd very much like to have this information present, and I thank you all for your time.

    ADDED:
    Now that I look at it, appears that nothing except for my applications transferred over. My old computer is listed in the Hard Drive, but I can't access any of the folders because I don't have that "level of privileges" or whatever, (odd, considering they're both my computers, do they need to be hooked up for this?). I don't really need for my old applications to be there, (Hello, iWork '06 Demo!), so can I just go and erase them, or am I better just starting all over again?

  • How do I display my columns, like "date added" in the new iTunes?

    I updated iTunes. I like to play the music I most recently added first. I had this all sorted into neat columns in the old iTunes and now I cannot seem to sort by "date added" or "date modified".

    If you don't see anything when you connect your ipod it's meybe something wrong with the USB cable, If you have another you can try that.
    try to shut down or restart your ipod and then connect it.

  • Is there a way to organize files by date added?

    I'm trying to put a scrapbook together for a friend and am including all of the files he sent me and stuff in order of the date that he sent them...but there's only the option to organize by date modified or date created....none of which help me with this...I really need to do date added. Is there any way to do it?

    I apologize if I misunderstood your question. So are you asking when someone sends you pics in a email, you want to add them to iphoto or a folder in finder by the date of the email and not the date of picture? I am not sure if this will help or maybe you already did this. I chose "quick look" at the attachment of an email with an older pic and chose the icon to add to iphoto. When I did this it created a event with todays date. The email was from Jan 4th, so it recognized todays date. Unfortunately though, when I tried this with recent pics sent to me (xmas), it created a folder based on the date the picture was taken. So I am really not sure if there is a way to do it. The only other suggestion I have, which is not the quickest. First I would create a specific folder for this project in finder. Next when you receive the email, click to save attachment. In the "save as" box, name the file the date you received it and any additional info if you want. Next find the folder you created and save in there. At least you will be able to access the pics in one place and the file name will say when you received them. I hope this helps. I am not an expert yet on my mac, but I just tried that and it worked. Good luck. Lee Ann

  • I got the new iPhone5 back in Dec, I hooked it up to my computer for the 1st time this wk.  It deleted all new data added since Dec (notes,contacts,texts,pics, info in apps) and reverted back to all my old data.  How can I retrieve all the lost data??

    I got the new iPhone5 back in Dec, I hooked it up to my computer for the 1st time this wk.  It deleted all new data added since Dec (notes,contacts,texts,pics, info added to apps) and reverted back to all my old data (literally uploaded all of my old texts and 1400 old pics and deleted anything new).  How can I retrieve all the lost data?? Please help!!

    SkyDaughter29 wrote:
    My current situation: I have soooo many texts on my iphone and I haven't deleted many because I need the information contained in them for future reference and for legal purposes.  I would really like to find a means and way to save them other than on the phone itself. I've done searches for various apps yet I'm not finding what I think I would need.  It appears Apple does not sync the texts between the iphone and my MacBook Pro.
    Try the computer apps PhoneView (Mac) or TouchCopy (Mac & PC):
    http://www.ecamm.com/mac/phoneview/
    http://www.wideanglesoftware.com/touchcopy/index.php
    Best of luck.

  • I want to retain my itunes 'date added' information when transferring to my new macbook pro

    Hello There
    I think even before I ask this, that I know what the answer will be, so please don't laugh at me, just sympathise..
    I have a lot of music. A lot. So much I need to use the date added to keep it all organised and know where I am. Previously I used a computer from work for everything, but just got a shiny new macbook pro - woo hoo!
    First thing I did was transfer my itunes library. I use a HD so pretty easy, simply hold down the option key whilst starting itunes, select the library on my HD and wallop, off we go. After a few minutes of chugging all my music is there and my playlists. Fantastic I thought, but then hold on - date added says today. This can't be right I say to myself, some of these files were added in 2008...
    Being slightly paranoid about doing this I created a copy of my old itunes library - better safe than sorry. I open the old back up of itune library (an xml file) and sure enough, all the correct dates are there. I open up the new one and it says everything was imported today. Weird. So I try reimporting -doesn't work, overwriting the new xml file with the old info, saving and opening itunes again - no sir. Nothing works. It appears that whilst I can interact with the xml file, itunes uses another file (itunes document) which checks consistency, and won't allow the xml file info to overwrite, simply rehashes to the dates it thinks are right.
    Done a fair bit of research and I think the answer is there is not an answer. Being the wise old owl that apple is, it has decided that users will not want this information if they ever move or buy new computers, so while it will keep your playlists, it won't have this bit of info. My only option has been to create spreadsheets of old list for reference.
    I'm hoping out there someone will tell me that apple have realised this is rubbish and have fixed, or will say fret no longer, here is the magic workaround, but I haven't found anyone who can yet. Does anyone have the answer?
    Until then, I will continue to perform this awkward workaround and stick pins into the apple voodoo doll.
    Cheers
    Mr Sherlock

    weird very weird. today i did this again today after already being unsuccessful earlier. exactly the same thing as i have done before, exactly. didn't try to import. didn't say damaged library, copied everything in including date. have tried it about 10 times no luck. today it just worked.
    how weird is that?
    oh well JG - maybe you mixed a magic potion for me?
    anyway, thank you for all the help.
    to anyone else reading this all i can say is keep trying, you never know. follow the above advice. you may feel exasperated and think you have done it already, but keep trying.
    cheers
    P

  • When I sort by date added in Column View in Finder, how can I make the most recent files appear at the top of the list?(Mavericks)

    In 10.8, when I sorted Finder by date added or date created in column view, the most recent files would appear at the top of the list. Currently, this happens as it should in every single view mode EXCEPT column view (which is pretty much the only view I ever use). Currently, I have a folder with over 2000 files in it that date back to 2011, so now I have to scroll for like ten minutes just te get to files that were most recently added. Who in their right mind would want to sort by last modified with the oldest result listed FIRST? Ridiculous. I can't figure this out. Any help?

    Thanks for the reply leroydouglas! Unfurtunately this doesn't cause the column to be ordered correctly either. After selecting this option, the files seem to be ordered by label, and the most recently added file is somewhere in the middle of the list. I'd like it to be at the top, and have other files/folders descend in retrochronological order by their add date.
    Any other input from the community would be greatly appreciated, even if it's just confirming that this is/is not expected behavior. I'd be super bummed to find out that this IS expected behavior, as it's really counterintuitive and extremely inconvenient.
    Thanks again!

  • Song order on ipod problem ( only sorted as date added)

    Basically what the title states. I just got a new Ipod (30G) and I just finished putting 1000+ songs on it, it was hard work but i finally got it. Yet I found out that my ipod is doing to the same things my other one was doing, Instead of sorting the songs in Alphabetical order by Artist in my playlist, it will only sort it by date added instead.
    I put my songs manually instead of syncing and Im not about to reorganize all my songs on Itunes for this problem.
    Is there anyone who can help me?
    Thanks.
      Windows XP  

    I'm not letting this question die out here.
    Any help is appreciated.
    thanks.

  • How do I transfer "date added" from one iTunes library to another?

    I recently transfered my iTunes library from one Mac to another w/ no problem, however all of the dates in the date added column show the date of the library transfer and not the original date the music was imported into iTunes. Is there any way to retrieve or preserve the original dates? I know, not a "real' problem, but a concern for me nonetheless.
    Thanks to anyone who can help.
    R.H. Sharp

    iPhoto Library Manager - http://www.fatcatsoftware.com/iplm/ -
    Generally it is not advised to have multiple Photo libraries - but if you do you need IPLM to manage them
    LN

  • A sorting songs by the "date added" bug on iPhone and iTunes?

    So I've run accross a bug (maybe) that has really been annoying me for a few months now. It has been present since like iOS5 beta 3. It has to do with how my songs are sorted on my iPhone. I've always had my songs sorted by "date added" and I have never had a problem with them showing up in that way. During the beta, my songs started showing up backwards on my phone. My oldest songs would show up first on my phone's iPod even though in my iTunes they were sorted with the newest songs on top. I figured this was a bug and that it would be fixed by apple in the later versions of iTunes and after the official release of iOS5, but I was wrong. It didn't fix after I receieved my 4S. On a side note, I was having this problem initially on my iPhone 4, and it continued on to my iPhone 4S. This is probably one of the MOST ANNOYING problems I've had with my iPhone because my car displays my songs in the order they are on my phone too, and in my car I have to use a wheel and not a touchscreen to scroll all the way to the bottom (you get my point). I haven't actually found a fix for this to where everything works as it is supposed to, but today as I was tinkering with my iTunes to finally fix this problem I decided to sort all my songs by "newest songs modified" just to see if it would fix my sorting problem. It worked. My phone now has all my new songs on top of each of my playlists in ONLY the playlists I choose to have sorted in that specific way. After I realized this fixed my problem, I tried to re-sort all my songs by "date added" again just to see if it would fix my problem because having them sorted by "date modified" is an annoying problem I just dont want to have. It didn't work. So right now, I am sorting my songs on my phone by "date modified" because "date added" doesnt sort them the way it is supposed to when any playlist is transferred from my iTunes to my iPhone. Anyone know whats up? How can I let apple know about this annoying problem? Could it just be me and my computer? I've gone through multiple versions of iTunes, iOS5s including beta, and I've had the problem on two different iPhones. Coincidence? By the way I'm running windows 7, and no, I haven't searched much for this problem on forums or on google because it seems too specific to my situation (and im too lazy to look hard enough).

    my problem started with the recent upgrade and this idea (sort on PC iTunes by date modified) worked. I did have to remove my playlist from my phone first and then resync to get things to respond but it seems to work. Why on earth Apple does not provide a mechanism for sorting ON THE F*&^ING PHONE is beyond me. For a company who's mantra is building things that 'they'd want to use' this gaff cannot possible fit into that paradigm.

  • How to restore my old Itunes Library WITH the DATA (plays & date added) from a time machine

    Hi,
    I recently got my macbook fixed through the apple store and the repairers replaced my hardrive, therefore wiping my computer of all its infor, including my Itunes library. Luckily, I had everything backed up on my time machine.
    My question is how I can put back all my music into Itunes but also restore my data such as ratings, date added, and number of plays. Of course, I just want all my music back on my computer but stuff like this is what makes my library unique and personal to me. I enjoy listening to my music in order of when I downloaded them, bringing me back to specific experiences and times of my life where I enjoyed the group of songs, but I cannot do that when my Itunes has the "date added" of my songs all on the same date (the date that I'm putting my music back on).
    Is there any way to take my itunes from library from my time machine and restore that back onto my itunes? (I've recently updated my Itunes too)
    Please, anything helps!
    Thanks!

    whosurBrendan wrote:
    I was also previously having problems doing a full system restore from my most recent backup.
    Depending on what kind of problems, they may be damaged. 
    Long story short, all I want to do is restore my Itunes and just the Itunes from where and what it was like before.
    Have you already set up a user account?  If so, you might be able to selectively restore your iTunes library from your backups, via the "Star Wars" display, per #15 in Time Machine - Frequently Asked Questions.
    But the user account you've set up may not be recognized as the same one as on your backups; you may not have permission to view, much less restore, the library.  

  • Album view in order of date added. Is it possible?

    album view in order of date added. Is it possible?
    In v10 I got used to ordering my music library with the newest additions on top, date added with the album view if it didn't take up more space.
    Now it's just the songs and I really don't like this. Album view is interesting but usless in alphebetical order which seems to be the default.
    I was told by another person here to use a smart playlist but the method they suggested was not clear.
    Can someone please explain how to do this or if there is a better alternative for someone who liked the old song view>date added>with album art?
    -thanks

    Welcome to the Apple Discussions. By "nr" are you referring to the shipping invoice that comes with the book? If so the answer is no. To order a book the library containing the book needs to be used.
    If someone had a copy of the library that created the book initially they could order a book on their own Apple account without you knowing about it. *+BUT they would have to have a copy of the iPhoto LIbrary to do so.+*
    So unless you think someone had access to your computer which housed the library a second copy of the book could not have been ordered.
    OT

Maybe you are looking for

  • [CS4][JS] Accessing skewed text items

    The following code snippet successfully finds all the skewed text in a document and then removes the skew: //Clear the find/change preferences. app.findTextPreferences = NothingEnum.nothing; app.changeTextPreferences = NothingEnum.nothing; //Set the

  • Sapscript: Print different languages

    Dear all, We have the following issue I need your help on: We have an offer, which has to be printed in Chinese and English. For printing we use the Sapscript forms ... Here is the current coding for printing (SE71): - Chinese: Printout is in Chinese

  • How to pass one sapce to char type variable

    Hi, There is one import parameter in rfc "zstat" with char type and length 1. I want to pass value equal to one space in this variable during execution of RFC so that it passes the condition in code where it is not initial. But during runtime it does

  • Adobe Reader crashing on iOS when submitting by email

    I have problem with Adobe Reader on iOS devices. Basically i have PDF document which has 1 text field, 1 submit button and 4 more blank pages. Submit button is configured to submit by email. When i type in something in text field and click on submit

  • Flash support for Safari on the iPhone

    Anyone know/heard anything about Flash support? I'm amazed how limiting browsing the web with iPhone is w/out it.