Sound position incorrect with multiple MP3s

Hi all, I have a slideshow that has a few different
soundtracks that are loaded in dynamically depending on which slide
is showing. I have a Pause button that pauses the slideshow and
soundtrack and records the position of the soundtrack, so that when
the Play button is pressed, the slideshow and soundtrack resume
where they left off. The problem is that the Flash player records
the position from the begining of the first soundtrack and doesn't
restart from zero when a new soundtrack is loaded. So when the play
button is pressed, the soundtrack offset gets further and further
off depending on how long the slideshow has been running and how
many soundtracks have loaded. In other words, if the first
soundtrack is 30 seconds long , the second one is 120 seconds long,
and the slideshow is paused in the middle of the second soundtrack,
the position should be about 60,000, however it is returned as
90,000 because it includes the 30 seconds from the first
soundtrack. Does anyone know a quick fix for this, short of
creating new sound objects each time I load a new soundtrack?
Thanks, JD
Here is the pertinent code:
_root.createEmptyMovieClip("soundtrack_mc",300);
mainSound = new Sound(soundtrack_mc);
mainSound.loadSound("MP3/Soundtrack-01.mp3",true);
mainSound.setVolume (70);
function pauseSlideshow(){
pauseTime = mainSound.position;
mainSound.stop();
clearInterval(loadInterval);
function playSlideshow(){
startTime = pauseTime/1000;
mainSound.start(startTime,1);
loadInterval = setInterval(fadeAndLoad, 4000);
}

Yes, I did solve this problem simply by creating a new sound
object each time I needed to load a new soundtrack instead of
loading the next soundtrack into the same sound object. Here is the
function I created to load the next soundtrack. This function is
being called by another function that checks an array to see if
it's time to load the next soundtrack based on the number of the
current image that is loading.
You will notice that each time I load a soundtrack I create a
new sound object. I keep the name of the object the same so all my
other code still works. This is the line of code that creates the
new sound object and puts it in the soundtrack movie clip each time
I load a new soundtrack.
mainSound = new Sound(soundtrack_mc);
Here is the complete function:
function fadeDownSoundtrack(endVol){
setVol = mainSound.getVolume();
if(setVol < 10){
setVol = 80;
soundtrack_mc.onEnterFrame = function(){
startVol = mainSound.getVolume();
if(startVol > endVol){
mainSound.setVolume(startVol - 5);
volFader1 = startVol;
}else{
delete this.onEnterFrame;
soundtrackNum += 1;
mainSound = new Sound(soundtrack_mc);
mainSound.loadSound(("MP3/Soundtrack-" + soundtrackNum +
".mp3"),true);
mainSound.setVolume (setVol);
volFader1 = setVol;
Hope that helps. JR

Similar Messages

  • Problems with sound when I embed multiple videos on auto play into a composition widget.

    I am having problems with the sound when I embed multiple videos on autoplay into a composition widget in Muse. It sounds as if they are all playing at once. Note that within the compostion widget, options - the auto play is disabeled.
    I've a television set that has buttons below and I want the users to flick through the channels.
    I need the oriantaion to be stacked as they're contained within a frame (the tv). I have tried the lightbox view (which at first seamed to solve the problem), but unfortunately the position, orientation moves when shown on different divises. It Had to be quite precise as I was ovelaying the original frame within the light box.
    Could you please help me with this?
    Also, I wanted to let you know that I think this software is amazing. Great job!
    here is the link:
    http://albanconnell.com/moving-image.html

    Hi Alban,
    I see what you are seeing. Could you send your file so I can investigate more? Send it to [email protected], with a link to this thread in the message body. If the file is >20mb, our email system cannot handle it so use a service like Adobe SendNow.
    Thanks,
    Sam

  • Problem with Sound.position

    I find that Sound.position does not reset to 0 when using
    Sound.loadSound(). It seems to continue with the last value. If a
    loaded sound is stopped at position 500. Starting the sound again
    plays the sound from 0 but position starts at 500?
    I have worked around this by making a new sound object when a
    loadedSound is stopped. Is there a better solution?

    This is not an intermittent problem. This is how the Sound
    object works. I'm using Flash 8. It worked this way under Flash 7
    also.
    Try it for yourself. Follow these steps:
    1) Make a new text field to display the position. Then make
    two buttons one to play and one to stop the sound.
    2) Make a Sound object
    3) Add an onEnterFrame function to the main timeline that
    puts the position of the sound in the field
    4) Set up the first button to call loadSound. Set up the
    second button to stop the sound.
    Test your movie. Click the first button, the sound starts to
    play and you will see the value of position in your text field.
    Click the second button. The sound stops and the field still
    shows the current value of position.
    Note this says that position doesn't get set to 0 when you
    stop your sound.
    Next click the first button to play your sound. Clicking this
    calls loadSound again which starts the audio from the beginning.
    But, the position displayed in the field doesn't start form 0. It
    continues from where it was last. If the sound gets to the end. The
    value stops increasing but the sound continues to play?

  • Using multiple MP3 Player With iTunes

    I'm new to iTunes and have a Sansa MP3 player that I want to give my young son. I would then buy an iPod for myself. Can I transfer songs back and forth to multiple MP3 players (not necessarly iPods) from my PC without purchasing the same song again? In other words, once I buy a song, can I sync it to multiple palyers?

    Content purchased from the iTunes Store is in a protected AAC format except for EMI songs, which are unprotected AAC songs. Neither format will work on an MP3 player without being converted; see here for instructions on converting an unprotected song.
    A song can be synced from the iTunes library to any handheld player capable of using that format without needing to purchase it again.
    (23363)

  • Print to pdf often doesn't work with multiple pages?

    When I try to print to pdf, it often doesn't work right.
    I can select, for example, multiple Excel worksheets to print. It looks fine with 4 pages in Preview, but when I select save as .pdf, it only prints 2 of the 4 pages, and it prints those in 2 separate documents rather than a single .pdf document with multiple pages.
    Is there a way to do this? Is this an Apple error or Microsoft error? Since it looks fine in Preview, my guess it is an Apple error?
    Mark

    It sounds like this is the problem with the way Apple handles multiple orientations in a pdf document. You can use Acrobat to print the files - it handles multiple orientations correctly. There was a previous thread on this:
    http://discussions.apple.com/message.jspa?messageID=1983431#1983431

  • I want to use Mac Mail for my work email address, which containts multiple outbound options (i.e. hr@, me@ etc). Is there a way to set up Mac Mail to have an account with multiple outbound addresses rather than adding in multiple accounts?

    I want to use Mac Mail for my work email address, which containts multiple outbound options (i.e. hr@, me@ etc). Is there a way to set up Mac Mail to have an account with multiple outbound addresses rather than adding in multiple accounts?

    This sounds like the age old problem with keychain & Safari. I don't know of a way to solve it without using something like 1Password.
    The iOS app has it's own built in browser, so it has more control over what gets autofilled. Safari on OS X has an 1Password extension that handles account selection & autofill etc.
    Keychain is great in principle, but it quickly falls down when you need tight integration with many ID's & different use cases (work, home etc).
    I'd suggest you submit feedback to Apple about your thoughts. I did so years ago about this issue & this is how far we have come (back to the point where me.com synced passwords) :^)
    http://apple.com/feedback/macosx.html
    Other tools like lastpass or keypassx may also help if you want to truly segregate password storage, but that doesn't fix autofill, the way around that issue is to dedicate one browser for work.

  • How do I join multiple mp3 files into one mp3 file?

    Hello,
    I have multiple mp3 files that I would like to join into one mp3 file and to use it as an audio book. This explains how to do it, but in iTunes 12, I do not see an option called "Part of a Compilation" option.
    Is there a way to do it in iTunes without installing a new app?
    Thank you.

    Eugene,
    Those instructions, if I read them correctly, are about how to collect several MP3s into a single audiobook.  They will not create a single continuous MP3.
    iTunes does not have the ability to combine multiple MP3s into a single MP3.  The best it can do is if you burn them to audio CD and then rip back with "Join Tracks" enabled.  The better way is to use an audio editor such as Audacity, or a special purpose combing tool such as MP3 Joiner.

  • When I go into full screen mode in Safari 5.1 on LION it switches to a new Space, making my other displays useless. Anyone else annoyed that Apple has completely left out those with multiple displays?

    I had a fear that this was going to be the case, but you can't have two full screen apps open in two different displays. At least that's how Safari fullscreen works. When switching over to full screen mode in safari, it automatically creats a new space, turns on four finger gesture to swipe through full screen apps which I had turned off in place of App Switcher.
    I don't use spaces because of the lack of support for using spaces with multiple displays. I would use spaces and mission control if I had control of each display's mission control separately.
    The fix would be to unlink the displays so they can scroll through full screen apps by themselves. I want this feature so I can mix and match the full screen apps on my three different displays. I see this beneficial for more people with multiple displays. in the future when thunderbolt display links, people will want better support too.
    I know I would use spaces and mission control more if I could have this ability. I'd be interested to know people's opinion.

    No no, if you read what I said, it would be that each individual display would be customizable to the user. The way you have it, it sounds like your second display will be dedicated to scrolling through fullscreen apps not allowing you to do it on the home screen. This is silly because with my concept, you could do that, by dragging apps to fullscreen in your second display, but if you want you could tell another display to scroll through fullscreen apps (independently) if you wanted. Each display will have it's own mission control with it's own set of desktops. I also can see how some people would still want them linked together, so this could just be a little check box made in mission control prefs to "link" or "unlink" desktops with link checked by default.
    With your solution you're limited to your setup. but what if the person has three or four displays? Well then your solution would limit them to one dedicated display that scrolls through fullscreen apps where mine lets a person customize their desktops depending on their preference and setup.
    further example: if you have safari, address book and mail in one display, you could still have ichat, PS and Illustrator in your second, and a text editor, FTP Client and iTunes in your third. Then you would mix and match these apps but it would promote the use of mulitple displays as well as benefit people with three or more, which thunderbolt, Cinema Display and Pro computers support.

  • My positive experience with FCPX.

    In an effort to present the other side of the coin on this forum, that FCPX can work very well, here is my story.
    For the last 8 years I've been using Final Cut Express on an older Macs. It worked fine for my various projects, although the incessant rendering would be very frustrating. (I never did find the proper format to prevent it.) When Final Cut Pro X was released, I read about it's shortcomings, so I passed.
    Five months ago I was planning to video my nephew's wedding so I looked closely at Final Cut Pro X, but was very daunted by how completely different it was from FCE. A few days later I was in my local Apple Store asking their video expert about the rendering in FCE, basically he said to get FCPX, which not only handles many formats, but renders in the background when needed, and has a lot more features than FCE.
    I went home and looked at my first FCPX tutorial online and thought, OK, it looks like I'm going to have to start from scratch to learn it. My MacBook Pro was going on 6 years old, so I also decided to buy a new one that could handle FCPX. I had to stay on Snow Leopard OS 10.6.8 for one vitally important application that was not being upgraded, so I went to the Apple refurb site and found a 17" 2.2Ghz i7 late 2011 that fit the bill (I wanted the ExpressCard slot), marked down from $2600 to $1900, I grabbed it.
    I immediately installed 16 GB of RAM, and replaced the internal drive with the one in my old laptop, a fairly new Seagate XT Hybrid 750 GB/16 GB HD/SSD. I then bought FCPX. (After completing one small project, I actually replaced the 750 hybrid with an OWC 960 GB dual platter RAID 0 internal SSD, wow, is it fast. I work my current project there, then when complete, move it to the 750 hybrid or a 3 TB I put in a Seagate GoFlex Thunderbolt adapter .)
    I have to admit that it took me a couple of days to let go of FCE and get used to the FCPX Events/Projects system, but I got through it. I did look at tutorials, but actually learned far more by exploring the menus, panes and icons, experimenting, trial and error, and reading this forum.
    I finished the wedding video (32 minutes long) in about a week (learning as I went). It was shot with one camera, which forced me to do some creative editing by lifting, moving and zooming various pieces (and cutting around a very oblivious professional photographer), which gave me a multi-camera look. I added a title, transitions, adjusted dark scenes, leveled the audio in many places, diminished airplane and wind noise, and dropped in a sound effect of my nephew breaking a glass under foot (which did not actually break at the time).
    I shared the wedding video to my AppleTV2, and to DVD (3 copies), and to YouTube, without any overt problems. Yes, each operation had it's learning curve, but I accomplished them all in a rather short time. The first time I uploaded it to YouTube, it took about 8 hours for a 1080 2.8 GB version, but when it was done, the YouTube site had a message that it was too long, I had to register to have longer than 15 minute videos. I then used FCPX to upload a 720 version (the actual original format), 985MB, which took about 2 hours (even with a 1 mbps upload internet service). It looks great via the YouTube app on my AppleTV2.
    The only overt problem I have is a crash once in awhile either at launch or very shortly after, but I delete the prefs and continue on. I also installed some free plugins that seemed to cause some crashing, so I removed them, but the next time I opened the wedding project, I had all kinds of warning triangles. Turned out I used some of the plugins and FCPX warned that they were missing. It took a few minutes of searching this forum to learn how to get rid of those effects, I didn't even have to ask anyone.
    I just bought two new 1080p AVCHD video cameras and really look forward to using them for a festival on Sunday where I'm playing with a ukulele orchestra (which I also took up a few months ago). I'm going to tackle the multicam operations with that project (something I did in my own way with FCE, even though it did not actually have that function).
    My view of many of the posts on this forum is that either they have a system/hardware problem outside of FCPX, or they do not make enough of an effort to learn and understand FCPX. It takes diligence and patience, which in my experience, really does pay off. I used to dread doing tweaks in FCE, now I look forward to it in FCPX.

    I'd just like to add my positive-ness with FCPX! I've used it from 10.0.1 and, since 0.3, I have loved it and raved about it when anyone asks. The multicam feature is amazing! I used to use Vegas MS for some casual editing and the biggest annoyance with FCPX at the start was the magnetic timeline but after a day or so I got used to it and now can't imagine using anything else. I've had the odd crash but they are few and far between. I won't say I haven't sworn at it a few times but the fault is usually mine in the end!
    I use an upgraded 2012 MacBook Pro with 16GB memory and a Seagate Hybrid XT disc for my more "beefy" projects but I've found my 2011 MacBook Air works great with smaller projects (4GB RAM and 256GB SSD). Interesting article on fcp.co about MBAs and FCPX if anyone is considering purchasing one.
    I tend to learn things as I go along; I know what I want to achieve and then work out how to get there, often with the help of the nice people in this forum . With FCPX, once you understand the basic structure it's not too difficult.
    It seems one of the common themes is problems with importing AVCHD / MTS files. Since 0.3 I've never had any problems as long as I follow my basic rules -
    Format the SD card in the camera just before use (use "low level" if offered for the first format) and shoot your footage. Use the same quality format on that card throughout the shoot.
    Remove the card and plug it into the computer's card reader. Do NOT interfere with or modify the files in Finder in any way!
    In FCPX create an archive from the card on a separate external disc. (If the card doesn't show up then try another card reader - there can be differences in USB chipset implementations).
    Import to the events from the archive. Once done, repeat from 1.
    Phil

  • Sending mail with multiple attachments

    hi.I wrote a code to send mail.but i need to send mail with multiple attachments.here is the code i wrote.what should i do to send the mail with multiple attachments.if i run this code iam able to send mails but not attachments.please help me
    <%@ page import="javax.mail.*,javax.mail.internet.*,java.util.Date,java.io.*,java.net.InetAddress,java.sql.*,java.util.Properties,java.net.*,javax.sql.*,javax.activation.*,java.util.*,java.text.*" %>
    <%@ page import="java.io.*,java.sql.*,java.net.*,java.util.*,java.text.*" %>
    <%
         String Attachfiles1="";
         String Attachfiles2="";
    String Attachfiles3="";
    if("Send".equalsIgnoreCase("send"))
              try
         String subject="",from="",url = null,to="";
         String mailhost = "our local host";
         Properties props = System.getProperties();
         String msg_txt="";
         String strStatus="";
    // byte[] bin=.....;
    //Adds Attechment:
    Multipart multipart = new MimeMultipart();
    BodyPart messageBodyPart = new MimeBodyPart();
    messageBodyPart.setText("Here are my attachments");
    multipart.addBodyPart(messageBodyPart);
    messageBodyPart = new MimeBodyPart();
    //first attachment
    DataSource source = new FileDataSource("C:\\img1.jpg");
    messageBodyPart.setDataHandler(new DataHandler(source));
    messageBodyPart.setFileName("C:\\Telnor1.jpg");
    multipart.addBodyPart(messageBodyPart);
    //Second attachment
    DataSource source2 = new FileDataSource("C:\\img2.jpg");
    messageBodyPart.setDataHandler(new DataHandler(source2));
    messageBodyPart.setFileName("C:\\Telnor2.jpg");
    multipart.addBodyPart(messageBodyPart);
    //etc...
    message.setContent(multipart);
    Transport.send( message );
    String mailer = "MyMailerProgram";
    to=request.getParameter("to");
    from=request.getParameter("from");
    subject=request.getParameter("subject");
    msg_txt=request.getParameter("message");
    props.put("mail.smtp.host", mailhost);
    Session mailsession = Session.getDefaultInstance(props, null);
    Message message = new MimeMessage(mailsession);
    message.setFrom(new InternetAddress(from));
    message.setRecipients(Message.RecipientType.TO,InternetAddress.parse(to, false));
    message.setSubject(subject);
    message.setHeader("X-Mailer", mailer);
    message.setSentDate(new Date());
    message.setText(msg_txt);
    BodyPart messageBodyPart = new MimeBodyPart();
    BodyPart messageBodyPart2 = new MimeBodyPart();
    Multipart multipart = new MimeMultipart(); // to add many part to your messge
    messageBodyPart = new MimeBodyPart();
    javax.activation.DataSource source = new javax.activation.FileDataSource("path of the file");
    messageBodyPart.setDataHandler(new DataHandler(source));
    messageBodyPart.setFileName("file_name");
    messageBodyPart2.setText("message"); // set the txt message
    multipart.addBodyPart(messageBodyPart);
    multipart.addBodyPart(messageBodyPart2);
    Transport.send(message);
    out.println("Message Sent");
    catch (Exception e)
    e.printStackTrace();
    if("Attachfiles".equalsIgnoreCase("attachfiles"))
    Attachfiles1=request.getParameter("fieldname1");
    Attachfiles2=request.getParameter("fieldname2");
    Attachfiles3=request.getParameter("fieldname3");
    %>
    <html>
    <body>
    <div class="frame">
         <form action="Composemail.jsp" method="post">
              <b>SelectPosition:</b> <select name="cars" >
    <option value="ABAP">ABAP
    <option value="saab">Saab
    <option value="fiat">Fiat
    <option value="audi">Audi
    </select><br><br>
    <table border="1" cellpadding="2" cellspacing="2">
    <tr><th>Name</th>
    <th>EmailId</th>
    <th>ContactNumber</th>
    <th>Position</th>
    </tr>
    <tr>
    <td>
    </td>
    </tr>
    </table><br>
    <b>SelectUser :</b><select name="cars">
    <option value="Administrator">Administrator
    <option value="saab">Saab
    <option value="fiat">Fiat
    <option value="audi">Audi
    </select>
    <br>
    <b>To :</b>&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp<input type="text" name="to" size="72"><br>
    <b>From :</b>&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp<input type="text" name="from" size="72"><br>
    <b>Subject :</b>&nbsp&nbsp&nbsp<input type="text" name="subject" size="72"><br>
    <%=Attachfiles1%><br><%=Attachfiles2%><br><%=Attachfiles3%><br><br>
    <b>Message:</b><br>
    &nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp<textarea rows="10" cols="50" name="message">
    </textarea> <br><br>
    <b>AttachedFile:</b>&nbsp<input type="file" name="fieldname1" value="filename" size="50"><br><br>
    <b>AttachedFile:</b>&nbsp<input type="file" name="fieldname2" value="filename" size="50"><br><br>
    <b>AttachedFile:</b>&nbsp<input type="file" name="fieldname3" value="filename" size="50"><br><br>
    &nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp<input type="submit" name="attachfiles" value="Attachfiles">
    <center>
    <input type="submit" name="send" value="Send" >
    </center>
    </form>
    </div>
    </body>
    </html>

    Create a separate MimeBodyPart object for each attachment, rather than reusing
    the same one over and over.

  • How to confiture virtual hosts with multiple domain names

    hello,
    I've read through some of the postings here on virtual hosts, but I thought I'd better solicit advice before I actually try some of the things I've read about.
    In a nutshell, I've purchased multiple domain names that I'd like to alias to a new site (currently it is just a subfolder in the main site directory) on my OS 10.3.x server. There is only the one main site configured right now on the box, so I know I need to set up a second "virtual site" pointing to the files in this subfolder to make it function as its own site.
    I've dabbled around with the sites settings in the GUI, but I'd probably be most comfortable setting all this up in the httpd.conf by hand if I could. But I'm weary of this because I know it might be better to use the GUI because of OS X Server's flavor of WebObjects and Apache (sigh).
    So, I have two main questions:
    1) How would I set up this second site using the GUI in server settings? Do I need to first move the subfolder out of the main folder before it can be designated its own site? Or can I just point to it in the GUI? Can I use one of my purchased domain names in the domain field?
    2) Currently, I have URL Forwarding set with my multiple domain names, but I'm thinking there might be a better way to do this? For SEO I'd rather use some type of redirect rather than being penalized by search engines for having what looks to be multiple domains pointing to the same site.I'm thinking I should create virtual sites for each domain name I've purchased with a hard redirect back to the main site?
    Any suggestions would be appreciated.
    Thanks
    G4 Mac OS X (10.3.9) 10.3.9 Server
    G4 Mac OS X (10.3.9) 10.3.9 Server

    thank you for your reply.
    > You can create each site as a new Site in Server
    Admin. When you do this you can choose any
    directory on disk as the document root for each
    site.This means you can move the sites' folders out of
    /Library/WebServer/Documents if you like - you could
    create /Library/WebServer/site1,
    /Library/WebServer/site2, etc. (or even be outside of
    /Library/WebServer if you want).
    so, are you are saying that I could designate one site to be
    /Library/WebServer/Documents/site1
    and another to be
    /Library/WebServer/Documents/site1/directory1
    even though directory1 is contained within site1's structure? I'm not advancing this as a good idea, necessarily. I'm just wondering if Apache would complain.
    > Each site should have the domain name set as per your
    registered domains. Apache will need this to
    determine the correct site to serve for each
    request.
    Well, after some additional research I'm thinking I'm missing a critical piece of the puzzle. That being access to the DNS host server that manages the context of my server. I have purchased domain names through an outside registrar that point to my site and I can create virtual hosts on my server, but I don't have the ability to add the new virtual host names into the DNS server that manages my box. If that makes sense. Or maybe I'm missing something?
    >
    I'm not sure why you're using URL forwarding at all.
    Without that piece of information it's impossible to
    tell you whether you should continue using them or
    not - in general there's no need to use URL
    forwarding if you have multiple Virtual Hosts setup,
    but it sounds like you have multiple hostnames
    pointing to the same content, so your needs may be
    different.
    I'm using forwarding for the reason I list above. I didn't purchase hosting with the registrar where I purchased my domain names, so they are parked on the registrar's name server with URL forwarding to my server. The DNS server that manages my box resides in a different location and I don't have the ability to add DNS entries pointing to virtual hosts that I want to set up. Am I stuck?
    G4 Mac OS X (10.3.9) 10.3.9 Server

  • Word property with multiple lines

    Good Morning,
    I have a Document Library with an Word template, I fill some properties of the library so I can put this properties in the template. I am trying to write a line break, Any idea?
    Thanks.

    Hi,
    According to your post, my understanding is that you want to use Word property with multiple lines.
    Per my knowledge, you can remove two updates: KB2760769 and
    KB2760758.
    The working version of office is 14.0.6129.5000.
    Here is a similar thread for your reference:
    http://sharepoint.stackexchange.com/questions/77759/inserting-multi-line-text-field-quick-part-from-sharepoint-crashes-word
    More information:
    Office 2010 Update KB2760758 Incorrectly Checks Multi-Line Columns
    As this question is more relate to Word, I suggest you post it to the corresponding forum, you will get more help and confirmed answers from there.
    http://social.technet.microsoft.com/Forums/en-US/home?forum=officesetupdeployprevious
    Best Regards,
    Linda Li
    Linda Li
    TechNet Community Support

  • Msg SE181 on ML81N/ME21N- PR WITH MULTIPLE SERVICES ITEMS-1 ACC. ASSIGNMENT

    Hi,
    when trying to create a new order using transaction ME21N or creating an entry sheet  on an existing order based on a purchase requisition  with multiple items in the tab services , the system gives the error message SE181 .
    Debugging , i've discovered that the part of code in wich the system gets stuck , is the following :
    PROGRAM  DIMP_GENERAL_SAPLMLSP - INCLUDE LMLSPF3W
    Check if accounting data is in sync with service data "846124
               IF ACC_TOTAL NE COMSRV-NETPR and glob_empty_package NE 'X'.
                  IF SY-TCODE = 'ML81'.
                    MESSAGE I181.
                    EXIT.
                  ELSE.
                    IF GLOB_SUBSCREEN_INIT EQ SPACE.
                      ACT_PACKNO = ESLL-PACKNO.
                      MESSAGE E181.
                    ELSE.
                      perform add_message using comsrv-packno
                                          'E' 'SE' '181' '' '' '
    Someways , it risults that the total of the items value inserted in the tab services , is different from the total NETPR in eban .
    But that is not true . ACC_TOTAL is the variable in which the values of the multiline services is put ; I thought that maybe finding out how it is populated could help me to fix the issue , but I did'nt manage to do that .
    Can somebody help me , please?
    Thanks and Regards,

    Hi,
    I have found a note for this error:
    1102653 SE181 with correct account assignment data
    1159878    ML81N: SE181 is displayed when you delete a entry s
    I have also seen many customers with same error that also applied some of the following notes:
    1113594    BAPI_PO_CHANGE - No rounding in multiple acc -> SE1
    846124     ME21N: Account assignment prompt missing for subite
    800471     ML81: Commitments and reference problems
    784911     ML81N Problems with account assignment
    749021     Service selection with incorrect documents
    716030     ML81N: SE001 when copying a new entry sheet
    709163     ML81N - Multiple Account Assignments - Postings inc
    Best regards,
    Arminda Jack

  • Outbound EDI X12 document with multiple ST transactions segments

    Hello all.
    I am STILL using Oracle B2B 10.1.2.3 MLR 16 and need the ability to send outbound transactions (EDI X12 856 4010) with one ISA envelope and multiple ST segments. When I enqueue the 856 to the IP Out queue with multiple ST's, B2B does not generate unique ST Control #'s and the segment count is doubled for the second ST loop. Is it possible to get an accurate segment count with the MACRO's?
    If this is not possible, will someone please help me understand the batching process. I have followed the instructions in the B2B_TN_012_EDI_OutBound_Batching.pdf file, but I am getting very generic null pointer errors in B2B.
    Any help will be greatly appreciated.
    Thank you.
    Nick Graves

    Hello All.
    I am desperate for some help with batching. I cannot get the count/ID based batching to work or the time interval batching to work. I recveive the following error message with batch ID based batching:
    Error -: AIP-50014: General Error: java.lang.NullPointerException
         at oracle.tip.adapter.b2b.engine.Engine.processOutgoingMessage(Engine.java:1260)
         at oracle.tip.adapter.b2b.engine.Engine.handleMessageEvent(Engine.java:2549)
         at oracle.tip.adapter.b2b.engine.Engine.processEvents(Engine.java:2482)
         at oracle.tip.adapter.b2b.data.MsgListener.onMessage(MsgListener.java:530)
         at oracle.tip.adapter.b2b.data.MsgListener.run(MsgListener.java:376)
         at java.lang.Thread.run(Thread.java:534)
    Caused by: java.lang.NullPointerException
         at oracle.tip.adapter.b2b.packaging.mime.MimePackaging.pack(MimePackaging.java:107)
         at oracle.tip.adapter.b2b.msgproc.Request.outgoingBatchRequest(Request.java:1445)
         at oracle.tip.adapter.b2b.engine.Engine.processOutgoingMessage(Engine.java:1239)
         ... 5 more
    Time interval batching produces this error:
    Error Brief :
    Duplicate transaction node GUID encountered.{br}{br}This error was detected at:{br}{tab}Segment Count: (N/A){br}{tab}Composite Position: 0{br}{tab}Sub-Element Position: (N/A){br}{tab}Characters: 0 through 0
    Duplicate transaction node GUID encountered.{br}{br}This error was detected at:{br}{tab}Segment Count: (N/A){br}{tab}Composite Position: 0{br}{tab}Sub-Element Position: (N/A){br}{tab}Characters: 0 through 0

  • Issue with multiple attachments in email program

    Hi All,
    i need one program which sends 3 excel sheets as an atatchments. in these attachments data should be separated by tab. i am not able to find suitable program for the requirement anybody can send me the code .
    thanks,
    maheedhar

    hi,
    Refer to this link...
    send mail with multiple excel attachments
    Cancatenate  fields of internal table CL_ABAP_CHAR_UTILITIES=>HORIZONTAL_TAB  to get the tab position between the fields.

Maybe you are looking for

  • Open and close front panel

    Hi, I wish to have a VI that works as a main menu from which you start new VI's depending on your choice. When the new VI start I want the main menu to hide it's front panel temporarily until it the second VI returns. Anyone has a solution to this? /

  • Event times incorrect

    All the times in my event start and end at 8 after the hour, why?

  • Adobe AIR extension for DreamweaverCS4がインストール不可

    Download the Adobe AIR extension for Dreamweaver CS4 (MXP, 42.55MB)をダウンロードし. extension managerCS4をダブルクリックでインストールすると. 「メニューを更新できません.拡張機能はインストールされません.」 と出ます. Download the Adobe AIR installer はインストール済みです. どうしたら.拡張機能をインストールできますか?

  • Setup Time Machine Backup To Multiple Devices

    I currently have a Time Capsule and I let Time Machine run it's regular back ups. What would I have to do if I wanted to run a manual backup once a month to another drive/device? Can this be done, or would I need to use another backup program/method

  • Why have I lost my contact distribution lists in IOS 7?

    After I converted to IOS 7 on both my iphone 4 and IPad A1396, I lost the distribution lists in my contacts.  They remain on my home and office PCs.  Is there any way to retrieve them for my iphone and ipad?