Adding JornalEntries from GetObjectFromXml

Hi everybody,
i'm receving this message when Adding journal entries loaded by GetObjectFromXml: "You cannot edit totals in system currency JDT1.SYSCred line 1". Seems to be the same error in this thread....
Re: GetBusinessObjectFromXML doesn't work with JournalEntries in 2005A SP1 , some solution or idea?!!
Thanks,
Leo Azevedo
PS: My SAPbosCOM version 2007.0.0.0

Hi Leonardo,
I attached an example of a valid journal entry. You will notice this xml has two lines. This is the minimum, a journal entry must always be balanced, and therefore will always have two lines for a minimum containing a credit amount and a debit amount. I couldn't find the counter amount in the example you attached. If you edit this sample it will probably work.
Kind regards,
Winfried Tiemessen
<?xml version="1.0" encoding="UTF-16"?><BOM><BO><AdmInfo><Object>30</Object><Version>2</Version></AdmInfo><JournalEntries><row><ReferenceDate>20100507</ReferenceDate><Memo>Leveringen - C1001</Memo><Reference>42</Reference><Reference2></Reference2><TaxDate>20100507</TaxDate><UseAutoStorno>tNO</UseAutoStorno><Series>23</Series><StampTax>tNO</StampTax><DueDate>20100507</DueDate><AutoVAT>tNO</AutoVAT><ReportEU>tNO</ReportEU><Report347>tNO</Report347><BlockDunningLetter>tNO</BlockDunningLetter><AutomaticWT>tNO</AutomaticWT></row></JournalEntries><JournalEntries_Lines><row><Line_ID>0</Line_ID><AccountCode>7000</AccountCode><Debit>2.490000</Debit><Credit>0.000000</Credit><FCDebit>0.000000</FCDebit><FCCredit>0.000000</FCCredit><DueDate>20100507</DueDate><ShortName>7000</ShortName><ContraAccount>3000</ContraAccount><LineMemo>Leveringen - C1001</LineMemo><ReferenceDate1>20100507</ReferenceDate1><Reference1>42</Reference1><Reference2></Reference2><ProjectCode></ProjectCode><CostingCode></CostingCode><TaxDate>20100507</TaxDate><BaseSum>0.000000</BaseSum><DebitSys>2.490000</DebitSys><CreditSys>0.000000</CreditSys><VatLine>tNO</VatLine><SystemBaseAmount>0.000000</SystemBaseAmount><VatAmount>0.000000</VatAmount><SystemVatAmount>0.000000</SystemVatAmount><GrossValue>0.000000</GrossValue><AdditionalReference></AdditionalReference><TaxPostAccount>tpa_Default</TaxPostAccount><WTLiable>tNO</WTLiable><WTRow>tNO</WTRow></row><row><Line_ID>1</Line_ID><AccountCode>3000</AccountCode><Debit>0.000000</Debit><Credit>2.490000</Credit><FCDebit>0.000000</FCDebit><FCCredit>0.000000</FCCredit><DueDate>20100507</DueDate><ShortName>3000</ShortName><ContraAccount>7000</ContraAccount><LineMemo>Leveringen - C1001</LineMemo><ReferenceDate1>20100507</ReferenceDate1><Reference1>42</Reference1><Reference2></Reference2><ProjectCode></ProjectCode><CostingCode></CostingCode><TaxDate>20100507</TaxDate><BaseSum>0.000000</BaseSum><DebitSys>0.000000</DebitSys><CreditSys>2.490000</CreditSys><VatLine>tNO</VatLine><SystemBaseAmount>0.000000</SystemBaseAmount><VatAmount>0.000000</VatAmount><SystemVatAmount>0.000000</SystemVatAmount><GrossValue>0.000000</GrossValue><AdditionalReference></AdditionalReference><TaxPostAccount>tpa_Default</TaxPostAccount><WTLiable>tNO</WTLiable><WTRow>tNO</WTRow></row></JournalEntries_Lines></BO></BOM>

Similar Messages

  • How to get latest added file from a folder using apple script

    Hi..
    I am trying to get a latest added file from a folder..and for this i have below script
    tell application "Finder"
        set latestFile to item 1 of (sort (get files of (path to downloads folder)) by creation date) as alias
        set fileName to latestFile's name
    end tell
    By using this i am not able to get latest file because for some files the creation date is some older date so is there any way to get latest file based on "Date Added" column of a folder.

    If you don't mind using GUI Scripting (you must enable access for assistive devices in the Accessibility System Preference pane), the following script should give you a reference to the last item added to any folder. Admittedly not the most elegant solution, but it works, at least under OS X 10.8.2.
    set theFolder to choose folder
    tell application "Finder"
        activate
        set theFolderWindow to container window of theFolder
        set alreadyOpen to exists theFolderWindow
        tell theFolderWindow
            open
            set theInitialView to current view
            set current view to icon view
        end tell
    end tell
    tell application "System Events" to tell process "Finder"
        -- Arrange by None:
        set theInitialArrangement to name of menu item 1 of menu 1 of menu item "Arrange By" of menu 1 of menu bar item "View" of menu bar 1 whose value of attribute "AXMenuItemMarkChar" is "✓"
        keystroke "0" using {control down, command down}
        -- Sort by Date Added:
        set theInitialSortingOrder to name of menu item 1 of menu 1 of menu item "Sort By" of menu 1 of menu bar item "View" of menu bar 1 whose value of attribute "AXMenuItemMarkChar" is "✓"
        keystroke "4" using {control down, option down, command down}
        -- Get the name of the last item:
        set theItemName to name of image 1 of UI element 1 of last scroll area of splitter group 1 of (window 1 whose subrole is "AXStandardWindow")
        -- Restore the initial settings:
        click menu item theInitialSortingOrder of menu 1 of menu item "Sort By" of menu 1 of menu bar item "View" of menu bar 1
        click menu item theInitialArrangement of menu 1 of menu item "Arrange By" of menu 1 of menu bar item "View" of menu bar 1
    end tell
    tell application "Finder"
        set current view of theFolderWindow to theInitialView -- restore the initial view
        if not alreadyOpen then close theFolderWindow
        set theLastItem to item theItemName of theFolder
    end tell
    theLastItem
    Message was edited by: Pierre L.

  • I have added music from my CD library to iTunes but now my iPod will not sync.  Message says not enough free space.  How can I sync only a portion of my library to my 8Gb Nano?

    I have added music from my CD library to iTunes on my PC.  I now have too many songs in my iTunes and I have insufficient space in my 8 Gb Nano.  I am unable to sync my iPod now.  How can I get my iPod to sync?  I only want a portion of my songs on the Nano.

    Hi wisemra,
    First, make sure your iTunes does not attempt to sync automatically. Open iTunes, and select Preferences under the iTunes menu item:
    Then, once you have hooked up your device and selected it, you should see the device Profile pages to the right. Select the Music tab:
    Once you get to the Music detail screen, you will see the option to "Sync Music". You can then select "Sync Entire Music Library" or you can select "Sync Selected Playlists, Artists, Albums, Genres". Click on the second one. Then, below, you can select which of your music from the library you want on your device:
    Your will show a list of your music. Mine doesn't because I sync with an iTunes library on different computer, but once you have selected the options I have shown you, you will see the music listed. Just pick what you want on your device and then click "Sync" at the bottom.
    Cheers,
    GB

  • I created a new itunes, but when i add the music i added it from my external hard drive by accident, so when i disconnect it and wish to play music without having it connected, obviously it asks me to located my songs, i dont want to locate each song help

    i created a new itunes, but when i add the music i added it from my external hard drive by accident, so when i disconnect it and wish to play music without having it connected, obviously it asks me to located my songs, i dont want to locate each song and i dont want to have to add all my music again, is there anyway of changing the location to a new folder all at once? for example, if it is my computer/harddrive/music/.... can i change it to mydocuments/musis/...
    and having the exact same music folder so all the further directions are accurate?
    thanks
    please i need help

    pass the music on your external hard drive to the computer then drag the to Itunes

  • How do you get Itunes to only sync newly added photos from my phone to the computer and not every photo on my phone each time I try to sync?

    How do you get Itunes to only sync newly added photos from my phone to the computer and not every photo on my phone each time I try to sync?

    Hello Angelcasper,
    Welcome to Apple Support Communities.
    The following article provides some suggestions on importing photos from your iOS device to your computer.
    iOS: Import personal photos and videos from iOS devices to your computer
    http://support.apple.com/kb/HT4083
    Regards,
    Jeff D.

  • Adding fields from KOMK structure to screen painter.

    Hello Everyone,
    i have created an Extra tab(like ADDITIONAL DATA B) using BADI, i have added fields from VBAP table, its working fine. But when i add fields from KOMK structure(KOMK-STCEG) only empty field is showing. Do i need to code something in PBO or PAI?
    Thanks & Regards,
    NarsiReddy Cheruku.

    Hello NarsiReddy,
    I assume that you have linked the field KOMK-STCEG using "Get from Dictionary" option from your above screenshot.
    In PBO section, make sure to write the logic to update the value in the field. The logic which you would build, would be based on your requirement. For instance, you can use BELNR to check and its corresponding STCEG could be found in the structure KOMK.
    But if the KOMK structure itself is not filled with any value, then there is some problem with your code. Try to check your BADI and its corresponding structures which would get updated at runtime and use them appropriately.
    Thank you.
    Regards,
    Naresh

  • How to save only newly added elements from the trailing list

    Dear,
    I have a shuttle bean with left and right trailing lists.
    At some point I save the right trailing list content to DB. Then I add additinal elements to the trailing list. Trying to save again gives me oracle.jbo.TooManyObjectsException: JBO-25013: Too many objects match the primary key oracle.jbo.Key
    exception.
    What is the approach I can take to only save newly added elements from the shuttle?
    I am wondering if I can put the extra logic (what logic would that be - do I need to check the PK value that is already in the database?) in the AM method with which I save the shuttle like here (TicketID and ResponsibilityID are primary key)
    if (items != null)
    Object ia[] = items.toArray();
    for(int i=1; i<ia.length; i++)
    Row rowApproval = vo.createRow();
    vo.insertRow(rowApproval);
    rowApproval.setNewRowState(Row.STATUS_INITIALIZED);
    Row row = vo.getCurrentRow();
    row.setAttribute("TicketId",items.get(0));
    row.setAttribute("ResponsibilityId",items.get(i) );
    row.setAttribute("Status",items.get(i));
    or should I do something in the EO?
    Thank you
    Anatoliy

    Hi,
    Can you please clarify - do I have to make a loop? I mean for every record/element in the trailing list
    I run the VO (that I will create) VO.executeQuery?Yes you do need to execute the VO for every record....by passing the different parameter in each iteration.
    Regards,
    Gyan

  • WrapPanel not found even after adding it from Blend

    Everytime I run I get a parse error that tells me WrapPanel is not found in the assemblies, even though it builds fine. I added it from blend and made sure all of the references were there. What step could I be missing?
        xmlns:toolkit="http://schemas.microsoft.com/winfx/2006/xaml/presentation/toolkit"
     <toolkit:WrapPanel/>
    and the references are Windows.Controls, Windows.Controls.Toolkit, and Windows.Controls.Toolkit.Internals
    Thanks,
    Shane

    Hi all,
    I faced the same problem: in one application the control worked fine but not in the other one.
    While checking the dll in .\bin\Debug I detected, that System.Windows.Controls.Toolkit and System.Windows.Controls.Toolkit.Internals were not present.
    The solution was quite easy: Adding the two dlls also to the main project.
    In my case the structure of the LightSwitch solution is:
    MySolution
      MyWrapPanel
      MyLightSwitchProject
      MyLightSwitch.DesktopClient
      MyLightSwitch.Server
    Refereces to the two toolkit-dlls have to be added to MyWrapPanel and MyLightSwitch.DesktopClient.
    I hope this helps other people trapping into this bug.
    Best Regards
    Hans

  • I have a problem in the liquefaction of confidentiality and answers when asked to reset the answers but remembered email added halted from by Microsoft Corporation, Is it possible to cancel the account and send the answers added on my email and thank you

    Dear,s
    I have a problem in the liquefaction of confidentiality and answers when asked to reset the answers but remembered email added halted from by Microsoft Corporation, Is it possible to cancel the account and send the answers added on my email:
    <Email Edited by Host>
    Thanks

    You are not addressing Apple here. And your post is a bit confusing. See Klaus's answer in this thread:
    https://discussions.apple.com/thread/5228474?tstart=0

  • Adding music from cd

    adding music from cd

    Bought a new i mac, but it doesn't have facility for CD's as they're being phased out. I still have lots of CDs with music I love on them, so want to somehow get this music into my new i mac & into my i phone for my art workshops.
    My 'old' Macbook pro can take CD's but is unstable (on its 3rd HD! hence the new i mac purchase!) so I have been unwilling to build up my itunes library on the Macbook HD as I don't trust it.
    Any suggestions would be much appreciated (as we are getting tired of hearing the same old tunes on the iphone...)

  • Deleted the recently added section from the source area how can i add back

    how can i add back the recently added section from the source without reinstalling itunes thanks in advance....
    insp 8100   Windows XP  

    Ok that is easy.
    1) File > New Smart Playlist.
    2) Make sure match the following rule is checked
    3)The first drop down change to date added.
    4)Set the second drop down setting
    5) Enter the number you want based on step 4
    The rest of the check marks are up to you but make sure "Live Updating" is checked.
    Take some time playing around with the smartlists. I love them!! I have a 2 level smartlist at work, I hardly use the regular playlists.

  • HT1338 I have added photos from iPhoto into Photo Stream and enabled my iCloud but I can't see any uploaded photos. Does this sound right?

    I have added photos from iPhoto into Photo Stream and enabled my iCloud but I can't see any uploaded photos. Does this sound right?

    Enable PhotoStream in iCloud first, then add the photos to PhotoStream in iCloud. Of course, you will need PhotoStream also enabled on your other devices also in order to view them.

  • Once I "match" and upload my songs, will newly added albums (from LPs) automatically be uploaded/matched after the initial batch? Do I have to keep the initial batch on that Mac?

    Once I "match" and upload my songs, will newly added albums (from LPs) automatically be uploaded/matched after the initial batch? Do I have to keep the initial batch on that Mac?

    Fryx wrote:
    Once I "match" and upload my songs, will newly added albums (from LPs) automatically be uploaded/matched after the initial batch?
    Yes.
    Fryx wrote:
    Do I have to keep the initial batch on that Mac?
    No. However iTunes Match is not a backup service: FAQ: Why iTunes Match Can Not Be Used as a Backup

  • How can I see the history of Team Members added & removed from the Project

    Dear Folks,
       Would like to know,  if there is a  report / change document report, on the History of Team members
    being added / removed from an active project.
    Regards,
    Owais...

    Hi Owais,
    Try using CN60 report to see added & removed team members from the project.
    Regards,
    Sandeep

  • Locking clips, adding slideshows from iphoto to imovie and reverting clips.

    I have a few questions about imovie HD 6.
    1. I am working on adding snips of video and pictures to my imovie project. However, I have several small clips that I want to add to a single audio clip. Is there a way to lock several video clips to my audio clip? It seems as though when I try to add another 'lock' the first one disappears. (I thought of maybe splitting the audio clip up. Is there an easier way that i'm not seeing?)
    2. Is there a way to keep the quality from an iphoto slideshow after importing it into imovie. Is it even possible to import an iphoto slideshow into imovie?
    3. I had a large 1 hour clip that I split up into 20 or 25 clips. I then added some effects to some of the clips. If I decide later that I do not want a particular effect and click the 'revert to original' button. Will it revert my entire 'library' of clips that I created back into the 1 hour clip I started with?
    Thanks,
    Elly

    1. The function locks an audio clip to a video clip, not a video clip to an audio clip. So, after locking an audio clip to a video clip, if you then lock the audio clip to another video clip it will unlock the first one. That's why you are observing that the lock disappears. If you lock the audio clip to the first video clip in a series, that will keep the audio clip in place for the entire series when you slide the first clip along the time line, pushing the other video clips ahead of it. I would not split up the audio clip into several pieces, unless you intend to move or change the sequence of the individual video clips.
    2. In iMovie playback, your iPhoto images are displayed in low resolution. Therefore, your iPhoto images always will look worse in iMovie playback. However, the display in your final product DVD will look much clearer than in iMovie playback. Yes, you can export an iPhoto slide show into iMovie. The best way that I have found is to use the iPhoto file menu to export the slideshow to your desk top as a full quality Quicktime Movie (File/Export/Full Quality) and then drag that Quicktime movie into your iMovie project as one long clip. You can also drag it directly into an iDVD project as a movie.
    3. The "revert" function will operate only on the split clip that you select to revert. The remaining split off clips will remain un-reverted. For example, if you split a clip into clips A, B, and C, and then revert clip A back to the original, clip A will revert back to the entire original clip that you had split into A, B, and C. (In your case, that would be the entire one hour clip that you started with, with no effects in it.) So clip A will now also include B and C and all other clips that you may have split from the original clip. But B and C also will still remain untouched as additional separate clips. That leaves you with having to re-edit clip A to avoid having repetitious clips. Rather than using the "revert to original" function to clear an effect from a clip, instead use the "clear" function. Each time that you use the "clear" function on a clip, it will remove the last added effect from the selected clip but will not effect any of the other clips.
    I hope that I have answered your questions. I suggest that you set up a small test iMovie project and experiment with the "revert" and "clear" functions.

Maybe you are looking for