FMS in Frieght

Hi Experts,
                       In Sales Quotation, frieght charge should get atomatically add based on some formula.
                       The formula is   (Sum(Quantity))/5.385
                       for this i created a query
                       SELECT (sum(T0.[Quantity]))/5.385 FROM QUT1 T0  INNER JOIN OQUT T1 ON T0.DocEntry = T1.DocEntry WHERE T1.[DocNum] = $[OQUT.DocNum]
                        But when i applied this query using FMS freight charge window its not working, it giving some internal error...

Hi,
         if i use the row level freight, how i will calculate the freight charge automatically
             I need to calculate like this Quantity/5.385
                So wat will be the code for that....
                     can u pls suggest me.....

Similar Messages

  • FMS in frieght window

    Hi All,
    I did make an udf named is U_PERCENT on frieght window. Now i want an fms that when I entered number in udf column then amount column should be updated as " DocTotal * UDF value/100"..
    waiting for reply..
    Regards
    Deepak Tyagi

    Hello Depak,
    Try this i have same work for your requirement..may be it will work
    Create Table In SQL----
    Select here your database in  plase of "Your Database Name"----
    Use [Your Database Name]
    CREATE TABLE dbo.Freight(
    GRPONO nvarchar(50)NULL,
    GRPOAMOUNT nvarchar(50) NULL
    FMS Must be Excecude on GRPO before open freight window----
    Declare @GRPONO as Nvarchar(10)
    Declare @GRPOAMOUNT as Nvarchar(10)
    set @GRPONO = $[OPDN.DocNumber]
    Set @GRPOAMOUNT = $[OPDN.DocTOtal]
    Insert Into Freight (GRPONO,GRPOAMOUNT) Values(@GRPONO,@GRPOAMOUNT)
    --Create FMS for pick DocTotal On the freight Windows in UDF ---
    select GRPOAMOUNT from Freight
    delete GRPOAMOUNT
    After GET Doctotal on Freight window now you are free make any calculation on Freight window.
    Thanks
    Manvendra Singh Niranjan

  • Could I have CASE or IF statement in FMS queries?

    Is it possible to have case statements in FMS queries:
    For example:
    SELECT T0.[U_DepoistfeeON] case
          when T0.[U_DepoistfeeON] is NOT BLANK  then $[$38.111.160]='Deposit Fee'
          when T0.[U_DepoistfeeON] is BLANK  then  then $[$38.111.160]=BLANK
    end FROM OITM T0
    What is wrong with above query please? Thank you very much.
    I do not mind even if above query is doable with an IF statement in it.

    Hi Rahul, this is what I want -
    I have a user defined field attached to item master OITM. The field is called : U_DepoistfeeON
    The above field contains additional depositFee taxes for selling beer bottles.
    I have also created a new tax as part of Freight handling. While on Sales Order screen, the Freight (unhide first through forms field) drop down can have the new tax type selected automatically "Deposit Fee".
    Thus, if the line item is of beer type that has U_DepositfeeON, then Freight field should automaticlally pick the type "Deposit Fee".
    If U_DepositfeeON is zero then I would like the Freight field on Sales Order screen ($38.111.160) set to blank.
    I tried to achieve this through following using case statement.
    select T0.U_DepoistfeeON
    from oitm t0
    case
    when T0.U_DepoistfeeON 0
    then $http://$38.111.160='Deposit Fee'
    when T0.U_DepoistfeeON = 0
    then $http://$38.111.160=''
    else
    $http://$38.111.160=''
    end;
    Of course it doesn't work. Note: I know I typed in DepoistfeeON, the error is not due to that.
    Thanks.

  • Trying to create a FMS query that shows available stock quantity on each Sales Order line

    Using SAP B1 v 8.82
    I realize that I may be going about this in completely the wrong way.  Here's my code:
    SELECT (T0.OnHand - T0.IsCommited + (SELECT SUM(ISNULL(T3.U_BO, 0)) FROM RDR1 T3 INNER JOIN OITM T4 ON T4.ItemCode = T3.ItemCode WHERE T3.U_BO > 0 AND T3.ItemCode = $[RDR1.ItemCode])) [available]
    FROM OITW T0
    INNER JOIN RDR1 T1 ON T1.ItemCode = T0.ItemCode
    INNER JOIN ORDR T2 ON T2.DocEntry = T1.DocEntry
    WHERE T0.WhsCode = 'ATL' AND T1.WhsCode = 'ATL' AND T2.DocNum = $[ORDR.DocNum] AND T1.LineNum = $[RDR1.LineNum]
    GROUP BY T0.OnHand, T0.IsCommited
    There is a UDF that I call upon in the RDR1 table called BO.  I created this field so that if a person wants to wait for a new batch they can "backorder" it.  In another UDF called "Available" I set up a user-defined value based on the above query.  The end result should be that whenever someone enters an item, the query finds the level of stock in the warehouse, subtracts the amount already committed, and adds back in any backorder quantities on other orders for the same item.  For example, say there's 1000 units of ITEM1 in stock, 2000 are ordered on SO # 1 and 500 are ordered on SO # 2.  The salesperson who created SO # 1 wants to wait for a new batch and types "2000" in the BO field.  I try to enter a new SO # 3 for 300 pieces.  When I key in ITEM1 on the first line, the field "Available" should update to say "500" (1000 - 2500 + 2000 = 500).
    It seems to be working, but only after the document is added.  In the example above I enter SO # 3 with a qty of 300 and when I go back to that SO I see that "Available" shows 200.  Ideally I'd like to see it say 500 while I'm working in the SO before I add it. 

    Edit2: Okay it so it works fine for any items that have a history, but it seems that if the item hasn't ever been on a Sales Order (i.e. it's not found in the RDR1 table) I get "no data found".  How can I make it simply return OnHand - IsCommited if it doesn't exist in the RDR1 table, but do the below query if it does?
    Actually that's not true.  I've got it working now.  I changed the query a bit and the update trigger, and it feels like it's working exactly like I wanted.  Query below if you're interested.
    /*Available FMS Sales Orders*/
    SELECT (T0.OnHand-T0.IsCommited+(SELECT SUM(ISNULL(T3.U_BO, 0)) FROM RDR1 T3 WHERE T3.ItemCode = $[RDR1.ItemCode]))
    FROM OITW T0
    INNER JOIN RDR1 T1 ON T0.ItemCode = T1.ItemCode
    WHERE T1.ItemCode = $[RDR1.ItemCode] AND T1.WhsCode = 'ATL'  AND T0.WhsCode = 'ATL'
    I have it on Auto Refresh -  When Field Changes "Document Total" - Refresh Regularly.
    Edit1: fixed grammatical error.

  • Need a hand to configure FMS 4.5 to output HTTP stream...

    Hi folks!
    I'm trying to setup Flash Media Server (Streaming server) and I'm having issues with outputting HTTP stream.
    The system works very well with the Flash ooutput, but for some reason the livepkgr won't work. Tried several things over the past two weeks, I've went thru docs and I don't know anymopre what else I can try... The source of the video feed is upstreamed from my own home computer, via Flash Live Encoder.
    I operate a dedicated server, running Windows 2008 Server. The default web site is IIS. I configured the ports so that port 80 is the default IIS inetpub/webroot, and the FMS 4.5 install is accessed via port 8134. So the IP http://184.107.48.113 opens the default Windows IIS, and http://184.107.48.113:8134 takes the request to the FMS install.
    The video stream is live on the Flash server, I can see it in the console, the livepkgr appears to be working, and I do see the .STREAM file being generated in the _definst_/livebroadcast/livestream folder. So the server works, and process the HTTP output.
    I believe the URL I should use to access the output HLS stream is: http://184.107.48.113:8134/livepkgr/_definst_/livebroadcast/livestream.f4m.m3u8
    but it returns a file not found message. Is there something wrong with the URL syntax? Or there is something else in the .conf files I must tweak? Or is it an issue with Apache 2.2 configuration?
    You can see the live Flash stream from my web site http://www.blackflag.tv I want to change this Flash stream to HTTP stream.
    Thanks for your help folks!!!
    -sv bell

    Hey,
    I tried playing HDS now and its working fine. It wasn't playing earlier.
    You can try it out by playing the content through the player here: http://www.osmf.org/configurator/fmp/#
    Input: http://184.107.48.113:8134/hds-live/livepkgr/_definst_/livebroadcast/l ivestream.f4m
    (Don't forget to select the radio button for HTTP streaming)
    This means everything is working on the server side.
    Now, I don't have an iDevice on me to check out HLS playback.
    You are using an older version of QuickTime, which could be an issue. Please let me know what publish settings you are using (as in the codecs).
    Also can you try playing it back through HTML5. To do that, just create an HTML page with the below content.
    <!DOCTYPE html>
    <html>
    <head>
    <title>Title of the document</title>
    </head>
    <body>
    <video width="320" height="240" controls="controls" src="http://184.107.48.113:8134/hls-live/livepkgr/_definst_/livebroadcast/livestream.m3u8"  />
    </body>
    </html>

  • FMS 3.5 says 'Bad network data': error in handling RTMP extended timestamps / chunkSize?

    Hello all,
    For a client, I am working on a project where a live RTMP stream is published to an Adobe FMS 3.5.6 server from a java application, using Red5 0.9.1 RTMPClient code.
    This works fine, until the timestamp becomes higher than 0xFFFFFF after 4.6 hours, and the RTMP extended timestamp field starts being used. I have already found: when the extended timestamp was written after the header, the last 4 bytes of the data were being cut off. I have fixed this locally, and now the data being sent seems to me to be conformant to the spec. However, FMS still throws an error message in the core log and then kills the connection from the Red5 client. Here is the error message:
    This is the error message:
    2011-06-03     14:28:02     13060     (e)2611029     Bad network data; terminating connection : chunkstream error:message length 11893407 is longerthan max rtmp packet length     -
    2011-06-03     14:28:02     13060     (e)2631029     Bad network data; terminating connection : (Adaptor: _defaultRoot_, VHost: _defaultVHost_, IP: 127.0.0.1, App: live/_definst_, Protocol: rtmp, Client: 5290168480216205379, Handle: 2147942405) : 05 FF FF FF 00 13 = 09 01 00 00 00 01 00 01 01 ' 01 00 00 00 00 00 13 4 09 0 00 00 01 ! 9A & L 0F FA F6 12 , B4 A6 CE H 8A AB DC G BB d k 1B 9F ) 13 13 D2 9A E5 t 8 B8 8D 94 ! 8A AE F6 AF } " U 0 D3 Q EF FF ~ 8D 97 D9 FF BE A3 F3 C9 97 o 9D # F9 7F h A4 F7 } / FB & F1 DC 9C BF   BD D3 E7 CA 97 FE E2 B9 E4 F7 9E 1A F6 BA } C9 w FC _ / / w FE n EF D7 P 9C F4 BE 82 8E F7 | BE 97 B4 BB D7 FE ED I / FB D1 93 9A F9 X \ 85 BD DD I E3 4 E8 M 13 D3 " ) BE A9 92 E5 83 D4 B4 12 DE D5 A3 E6 F4 k DE BF Q 3 A0 g r A4 f D9 BD w * } F7 r 8A S 2 . AB BD EE ^ l f AF E1 0B $ AF 9D D7 - BF E8 ! D3 } D3 i E3 B8 F2 M A8 " B1 A5 EF s ] A5 BC 96 E5 u e X q D2 F1 r F9 i 92 b EE Z d F9 * A6 BB FD 17 w 4 DD 3 o u EB ] ] EF FE B5 B1 0A F2 A0 DD FD B2 98 DF E8 e F6 CB FD 96 V % A5 D5 k ] FD w EF AF k v AA E8 ! 9F / w BE FA 9A _ E F2 D3 , ? 17 } AD 7 EC B3   } 07 B5 | z { { A5 = 11 90 CF BF ; 4 FE EF 95 F7 E7 DF B9 , AF z 91 CF C9 BD DE CB { F5 17 } F2 E5 D7 DF z E6 [ 96 > Y m 9F EB AF DD D8 E8 v B9 A8 E9 % A7 | 1 CF 8B D Z k N DF F8 N FA S R FE . ~ CB A 9 E1 ) 8F 8E BB EC c 6 13 F1 AC FD FD FC 8A F7 F3 K B9 FA ^ / A4 FC B9 AA F6 DE C2 [ 1A E c r B3 BF E5 EC B5 x 94 FD . A9 t I Q % EA EC DE | K FE z A4 97 F9 " 1 0F CA FB F5 F5 p 9E 99 3 - ; B8 F4 F1 FF t A3 EC BC # DE AC 91 13 19 o < 06 F5 FD 7F 7 _ $ D B t B5 0D 8A C1 C1 BA 0B FE DB B7 83 _ } BD z F7 CB { FC M A9 8D = D5 B1 < 85 = EF E1 ; BA H y FC BC B4 C A2 D9 ` e E4 94 H 5 13 ' 93 93 8E E C2 1C R 97 9 X B7 FF 10 9F { ) F1 CF AB AC ] EE H A2 DE D3 C5 m F6 K A2 A7 A2 89 D2 z EB DF 97 ^ k 9E 99 BB E7 B6 97 w { ~ + C7 B2 } FE ' C4 | B6 o H DD r A8 9F DC FF F9 Q b l 93 T B6 EE FF 11 j CD s P C F1 3 R I F8 D8 R 9D 93 AA D5 + DE FC BE " B9 E1 ` CB BD 0F F5 C7 AA w CF 8D p 9A F7 g f N FF 84 B7 K Q 93 g E1 - D3 s } w v AE 96 98 ED CF BA E9 2 . f 99 95 97 o 13 CA F7 s e $ F4 B5 15 C4 A8 DE M F7 w \ 8D 00 C6 C2 b D3 / 7 w F2 ' BF CD 89 FF > D7 FB BC A2 S N FB A5 CD AF D3 F9 9D DF AE B5 17 CF 9D B7 , B9 9 ^ 7F [ 93 84 F7 } _ EA DF u \ 99 Z t E CA M EF 7 " AD FE 92 9E n 7F EB D8 C { 99 8B 9E w H BF B1 | g 9F F3 FA E1 - E5 CB BB x CF p 8B D2 w v EF w FA E2 F7 s C5 AC $ FC B4 DB BE G E4 DC F0 A0 96 F3 ! t DC FF % A5 CB A4 ^ AB D2 BD E7 9A E ' 08 + AF U 17 EB 8A w A7 N E4 A5 x 93 12 _ - ; 09 DD DF m 11 BE w \ } BA D3 t BC D9 97 9B C5 7F D8 H F1 D 7 8A ^ FA n F0 B8 W E6 84 5 - 8 B5 h o C4 F7 83 P 88 CB AE m t BB L 95 A9 s 90 A2 Y o DF K _ / l D2 D1 C9 91 ' E4 BD / / D 97 m BB E7 14 93 % C5 ; DD CF D8 : ~ B5 4 F FA U F0 8F w w DC FD 83 FC 13 EF w p DA A5 07 _ * - 1D 14 9D D5 84 F E6 F0 FF E4 15 w n A5 9F DE d AE F5 " - f D2 AE 96 1F # FA F1 x C1 L DF l M 06 8A E4 z DB 17 BA l DA e 15 CD 85 86 1F 09 82 h ] C6 { E7 C5 AF Z C5 B0 83 v D9 03 FC / ~      -
    The message for which the hex dump is displayed, is a video message of size 4925 bytes. Below is the basic logging in my application:
    *** Event sent to RTMP connector: Video - ts: 16777473 length: 4925. Waiting time: -57937, event timestamp: 16777473
    14:28:02.045 [RtmpPublisher-workerThread] DEBUG o.r.s.s.consumer.ConnectionConsumer - Message timestamp: 16777473
    14:28:02.045 [RtmpPublisher-workerThread] DEBUG o.r.s.n.r.codec.RTMPProtocolEncoder - Channel id: 5
    14:28:02.045 [RtmpPublisher-workerThread] DEBUG o.r.s.n.r.codec.RTMPProtocolEncoder - Last ping time for connection: -1
    14:28:02.045 [RtmpPublisher-workerThread] DEBUG o.r.s.n.r.codec.RTMPProtocolEncoder - Client buffer duration: 0
    14:28:02.046 [RtmpPublisher-workerThread] DEBUG o.r.s.n.r.codec.RTMPProtocolEncoder - Packet timestamp: 16777473; tardiness: -30892; now: 1307104082045; message clock time: 1307104051152, dropLiveFuturefalse
    14:28:02.046 [RtmpPublisher-workerThread] DEBUG o.r.s.n.r.codec.RTMPProtocolEncoder - !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!12b Wrote expanded timestamp field
    14:28:02.046 [NioProcessor-22] DEBUG o.r.server.net.rtmp.BaseRTMPHandler - Message sent
    I have captured the entire frame containing this message with wireshark, and annotated it a bit. You can find it here:
    http://pastebin.com/iVtphPgU
    The video message of 4925 bytes (hex 00 13 3D) is cut up into chunks of 1024 bytes (chunkSize 1024 set by Red5 client and sent to FMS). Indeed, after the 12-byte header and the 4-byte extended timestamp, there are 1024 bytes before the 1-byte header for the next chunk (hex C5). The chunks after that also contain 1024 bytes after the chunk header. This appears correct to me (though please correct me if I'm wrong).
    When we look at the error message in the core log, the hex dump displayed also contains 1024 bytes, but it starts from the beginning of the message header. The last 16 bytes of the message chunk itself are not shown.
    My question is this: is the hex dump in the error message always capped to 1024 bytes, or did FMS really read too little data?
    Something that may be of help, is the reported 'too long' message length 11893407. This corresponds to hex B5 7A 9F, which can also be found in the packet, namely at row 0c60 (I've annotated it as [b5 7a 9f]. This location is exactly 16 bytes after the start of the 4th chunk data, not really a place to look for timestamps.
    My assumptions during this bug hunting session were the following (would be nice if someone could validate these for me):
    - message length, as specified in the RTMP 12 and 8-bit headers, defines the total number of data bytes for the message, NOT including the header of the first message chunk, its extended timestamp field, or the 1-byte headers for subsequent chunks. The behaviour is the same whether or not the message has an extended timestamp.
    - chunk size, as set by the chunkSize message, defines the total number of data bytes for the chunk, not incuding the header or extended timestamp field. The behaviour is the same whether or not the message has an extended timestamp.
    I believe I've chased this problem as far as I can without having access to the FMS 3.5 code, or at least being able to crank up the debug logging to the per-message level. I realize it's a pretty detailed issue and a long shot, but being able to publish a stream continuously 24/7 is critical for the project.
    I would be very grateful if someone could have a look at this hex dump to see if the message itself is correct, and if so, to have a look at how FMS3.5.6 handles this.
    Don't hesitate to ask me for more info if it can help.
    Thanks in advance
    Davy Herben
    Solidity

    Hello,
    It took a bit longer than expected, but I have managed to create a minimal test application that will reproduce the error condition on all machines I've tested on. The application will simply read an H264 file and publish it to an FMS as a live stream. To hit the error condition faster, without having to wait 4.6 hours, the application will add a fixed offset to all timestamps before sending it to the FMS.
    I have created two files:
    http://www.solidity.be/publishtest.jar : Runnable java archive with all libraries built in
    http://www.solidity.be/publishtest.zip : Zip file containing sources and libraries
    You can run the jar as follows:
    java -jar publishtest.jar <inputFile> <server> <port> <application> <stream> <timestampOffset>
    - inputFile: path to an H264 input video file
    - server: hostname or IP of FMS server to publish to
    - port: port number to publish to (1935)
    - application: application to publish to (live)
    - stream: stream to publish to (output)
    - timestampOffset: nr of milliseconds to add to the timestamp of each event, in hexadecimal format. Putting FFFFFF here will cause the server to reject the connection immediately, while FFFF00 or FFF000 will allow the publishing to run for awhile before the FMS kills it
    Example of a complete command line:
    java -jar publishtest.jar /home/myuser/Desktop/movie.mp4 localhost 1935 live output FFF000
    Good luck with the bug hunting. Let me know if there is anything I can help you with.
    Kind regards,
    Davy Herben

  • FMS won't run on RHEL 6.2 EC2 instance - _defaultRoot__edge1 experienced 1 failure

    I've got a fresh RHEL 6.2 64-bit instance on EC2. I've turned off the firewall and have  installed an FMS 4.5 dev server. In the logs directory I have admin and master logs (only). The admin logs look ok:
    #Fields: date
    time
    x-pid
    x-status
    x-ctx
    x-comment
    2012-02-29
    09:24:26
    1144
    (i)2581173
    FMS detected IPv6 protocol stack!
    2012-02-29
    09:24:26
    1144
    (i)2581173
    FMS config <NetworkingIPv6 enable=false>
    2012-02-29
    09:24:26
    1144
    (i)2581173
    FMS running in IPv4 protocol stack mode!
    2012-02-29
    09:24:26
    1144
    (i)2581173
    Host: ip-10-204-143-55 IPv4: 10.204.143.55
    2012-02-29
    09:24:26
    1144
    (i)2571011
    Server starting...
    2012-02-29
    09:24:26
    1144
    (i)2631174
    Listener started ( FCSAdminIpcProtocol ) : localhost:11110/v4
    2012-02-29
    09:24:27
    1144
    (i)2631174
    Listener started ( FCSAdminAdaptor ) : 1111/v4
    2012-02-29
    09:24:28
    1144
    (i)2571111
    Server started (./conf/Server.xml).
    The master logs contain these lines, repeating every 5 seconds:
    2012-02-29
    10:43:17
    1076
    (i)2581226
    Edge (2790) is no longer active.
    2012-02-29
    10:43:17
    1076
    (w)2581255
    Edge (2790) _defaultRoot__edge1 experienced 1 failure[s]!
    2012-02-29
    10:43:17
    1076
    (i)2581224
    Edge (2793) started, arguments : -edgeports ":1935,80" -coreports "localhost:19350" -conf "/opt/adobe/fms/conf/Server.xml" -adaptor "_defaultRoot_" -name "_defaultRoot__edge1" -edgename "edge1".
    The FMS install failed, complaining about a missing libcap.so until I installed the libcap.i686 package. The following libcap packages are now installed:
    libcap.i686               
    2.16-5.5.el6    
    @rhui-us-east-1-rhel-server-releases
    libcap.x86_64             
    2.16-5.5.el6    
    @koji-override-0/$releasever
    libcap-ng.x86_64          
    0.6.4-3.el6_0.1 
    @koji-override-0/$releasever
    libpcap.x86_64            
    14:1.0.0-6.20091201git117cb5.el6
    Any help would be most appreciated.
    /Ed.

    I had the same problem on CentOS 6.2 x86_64, albeit not on EC2. It seems that the installer creates a symlink to the i686 libpcap (libcap.so.1 -> /lib/libcap.so.2) and fmsedge won't run with it. Manually removing that symlink and instead linking to the libcap.so.2 in /lib64 solved the problem for me.
    cd /opt/adobe/fms
    rm libcap.so.1
    ln -s /lib64/libcap.so.2 libcap.so.1
    HTH, Jeremy

  • Newbie questions on fms and actionscript 3

    Ok, like I said I'm a newbie, but I do understand the differance between ssas and as3. Not all, but all most everything I see written in SSAS can be writen into a external AS3 file. This leads me to quite a few questions I'm hoping you kind people can shed some light on for me.
    1)  What is the advantage of writing a SSAS file over an external AS3 file?
    2) Can I write an .asc file in AS3 or do I have to use AS1? Please understand I'm using tuts from fmsguru.com and the books "Learning Flash Media Server" (pdf) and "Programming Flash Communication Server". I'm not a javascript programmer so nothing I do in AS1 seems to make any sence while everything I do in AS3 does. It may not seem like it to you people that are programmers, but to those of us that aren't, AS1 and AS3 are miles apart.
    3) kind of off topic, but a security question. I'm not a "hacker" and don't like the jerks that are. My question is on external AS / SSAS files and swf files. When my fla is compiled into a swf does my external AS files remain external? I assume they do, but then what is the threat of the swf being decompiled? In most projects I would do I could care less if somebody had access to my fla as long as they don't have my actionscript files.
    I don't know. Maybe on questions one and two I'm getting confused becasue I'm using out dated material. Again I assume that even though fms was built off of the javascript engine it should be able to read and execute my AS3 file. Other wise what was the point of the evolution of actionscript into a fully functional programming language?
    Thanks for any help you might have...

    1) I did not get this question correcly - for that matter SSAS can only be in AS1 - so i dont see reason comparing them
    2) It has to be AS1
    3) if you doing "include" stuff - i think code would go into compiled swf and proper decompiler would give you the code.
    Last para - Server-side engine understands only AS1 so it wont be able to read and understand your AS3 file.

  • FMS auto disconnects when using a class

    I am trying to implement a very simple class that will create
    an instance of the NetConnection object and connect to the FMS
    server. However, the client will connect then immediately
    disconnect when the swf is published. My code is as follows...
    FLA Code:
    import _includes.*;
    var obj_conn:Conn = new Conn();
    obj_conn.connect();
    Conn.as Code:
    class _includes.Conn
    public function Conn()
    public function connect()
    var nc:NetConnection = new NetConnection();
    nc.connect("rtmp://localhost/classtest");
    Please note that the connection works fine if I just create a
    NetConnection variable on the FLA itself in the timeline. Any
    suggestions/help would be appriciated!

    it think this is happen because you use local variable : your
    variable is delete at the end of connect() so your NetConnection
    will be closed in the same time.
    try this:
    Conn.as Code:
    class _includes.Conn
    private var objNetCon:NetConnection;
    public function Conn()
    public function connect()
    this.objNetCon = new NetConnection();
    this.objNetCon.connect("rtmp://localhost/classtest");
    }

  • Migo reference document not appearing in miro for frieght conditions

    Dear all,
    I ahve done migo for a po and i have checked GR based invoice in PO.When i am doing MIRO i am not getting the migo reference number for frieght condition where as the migo reference number is appearing for base price.How to get that migo reference number for frieght conditions also.
    thanks in advance
    regards
    vithal

    Sometimes the the MIGO creator might have reversed the same. In such cases the reversal document may be with different number in the same series and both posted & reversed documents will not appear in MIRO. Since you might checking with posted document number, you are seeing the blank in MIRO. In such cases, just enter the PO number in MIRO, give date & reference number press Show PO structure button in the left corner. You will find the following screen
    Expand the required once. The following screen appears. In this both positive & negative numbers with same reference & document type appearing are the reversed documents.
    Hope this is clear

  • Fms onLoad fails in one environment, but not another

    Totally stumped!
    I have an application that was running at influxis, no problem. The server side script performs an XML sendAndLoad, and then calls the client based upon the xml response.
    But then i installed my main.asc file into a different dev environment and the xml.sendAndLoad request totally fails. Using onHTTPStatus, I discovered that the error type is <100, with an error code of 0. According to Adobe, a 0 indicates that things were fine.
    I then implemented the onData method as shown in the adobe docs, and 'src' is coming back as undefined.
    The network engineer has confirmed that there are no network/firewall issues that would impact FMS talking to our application server, so FMS and the app server are free and clear to communicate with each other.
    Is there some sort of other setting that needs to happen to allow FMS to send and receive data? Is there something else I'm missing here?
    m
    .onData = function(src) {
    trace(">> " + this.httpStatusType + ": " + this.httpStatus);
    if (src == undefined) {
    trace("src == undefined. call onLoad(false) now. src = "+src);
    this.onLoad(false);
    } else {
    trace("src != undefined. call onLoad(true) now. src = "+src);
    this.parseXML(src);
    this.loaded = true;
    this.onLoad(true);

    I guess it may be due parsing error of xml file which you are using. Can you try with sample.xml given below :
    //sample.xml
    <Root>
    <UserList>
    </UserList>
    </Root>
    And then let me know all details as you told for the previous one.
    Regards,
    Amit

  • How can you make FMS 4.5 stop limiting itself to 20-25 Mbps of bandwidth?

    I'm working on an upgrade to an ActionScript 3.0 website, and this upgrade multiplies the number of RTMP connections that are liable to be used at one time for streaming live video and audio (sometimes uploading, but more often downloading).  Well, we pretty quickly hit some sort of limit with the performance where, even with a modest number of such connections, latency becomes a very serious issue.
    The server's computer's CPU and memory usage isn't going off the deep end, and the FMS server's CPU and memory usage isn't going off the deep end.  They don't even seem to be affected that much by this.  However in the admin console for the FMS server, it quickly becomes evident it's a bandwidth problem of sorts.
    What's strange though is that for a little while, if I keep just adding new connections, the bandwidth usage goes up fairly linearly. Then it peaks.  Once it gets to about 20-25 Mbps, it won't go any further.
    I've looked around for a way to configure this limit to be a lot higher than it currently is.  I haven't been able to find anything.  The closest I've come is with the BandwidthCap tags in Application.xml, but those don't really apply; they're just capping the bandwidth for individual connections.
    Is there not some way for me to raise the bandwidth limit for the overall server so that we could have a halfway decent number of simultaneous video streaming connections?  We are running the FMS server on a computer that meets only about half of the minimum memory requirements, and I am aware that this may be the only real problem here.  However I need to know whether this is true before I tell my boss that we need more memory.  If there is a chance this is just configurable or something, I need to try that first.  If it's basically of a computer resources issue due to not meeting the minimum requirements, I need a way to explain that that's exactly what the problem is.  Thanks!
    By the way I didn't find a forum specifically for FMS or anything, so I'm not sure if this is the right place for this post.

    I'm working on an upgrade to an ActionScript 3.0 website, and this upgrade multiplies the number of RTMP connections that are liable to be used at one time for streaming live video and audio (sometimes uploading, but more often downloading).  Well, we pretty quickly hit some sort of limit with the performance where, even with a modest number of such connections, latency becomes a very serious issue.
    The server's computer's CPU and memory usage isn't going off the deep end, and the FMS server's CPU and memory usage isn't going off the deep end.  They don't even seem to be affected that much by this.  However in the admin console for the FMS server, it quickly becomes evident it's a bandwidth problem of sorts.
    What's strange though is that for a little while, if I keep just adding new connections, the bandwidth usage goes up fairly linearly. Then it peaks.  Once it gets to about 20-25 Mbps, it won't go any further.
    I've looked around for a way to configure this limit to be a lot higher than it currently is.  I haven't been able to find anything.  The closest I've come is with the BandwidthCap tags in Application.xml, but those don't really apply; they're just capping the bandwidth for individual connections.
    Is there not some way for me to raise the bandwidth limit for the overall server so that we could have a halfway decent number of simultaneous video streaming connections?  We are running the FMS server on a computer that meets only about half of the minimum memory requirements, and I am aware that this may be the only real problem here.  However I need to know whether this is true before I tell my boss that we need more memory.  If there is a chance this is just configurable or something, I need to try that first.  If it's basically of a computer resources issue due to not meeting the minimum requirements, I need a way to explain that that's exactly what the problem is.  Thanks!
    By the way I didn't find a forum specifically for FMS or anything, so I'm not sure if this is the right place for this post.

  • How can I improve my FMS performance?

    Hi...
    I have two FMS 3.5 streaming servers... Both have Windows Server 2003 x64 with 16 GB of RAM...
    I'm streaming from a common storage and my Application.xml file is like this:
    <Application>
      <StreamManager>
        <VirtualDirectory>
          <!-- Specifies application specific virtual directory mapping for recorded streams.   -->
          <Streams>/;L:\media</Streams>
        </VirtualDirectory>
      </StreamManager>
      <DisallowedProtocols>rtmp,rtmps,rtmpt</DisallowedProtocols>
      <!-- Settings specific to runtime script engine memory -->
      <JSEngine>
        <!-- This specifies the max size (Kb.) the runtime can grow to before -->
        <!-- garbage collection is performed.                                 -->
        <RuntimeSize>20480</RuntimeSize>
      </JSEngine>
      <Client>
        <Bandwidth>
          <!-- Specified in bytes/sec -->
          <ServerToClient>2500000</ServerToClient>
          <!-- Specified in bytes/sec -->
          <ClientToServer>2500000</ClientToServer>
        </Bandwidth>
        <MsgQueue>
          <Live>
            <!-- Drop live audio if audio q exceeds time specified. time in milliseconds -->
            <MaxAudioLatency>2000</MaxAudioLatency>
            <!-- Default buffer length in millisecond for live audio and video queue. -->
            <MinBufferTime>2000</MinBufferTime>
          </Live>
          <Recorded>
            <!-- Default buffer length in millisecond for live audio and video, value cannot be set below this by Flash player. -->
            <MinBufferTime>2000</MinBufferTime>
          </Recorded>
          <Server>
            <!-- Ratio of the buffer length used by server side stream -->
            <!-- to live buffer.  The value is between 0 and 1.  To    -->
            <!-- avoid break up of audio, the ratio should not be more -->
            <!-- than 0.5 of the live buffer.                          -->
            <BufferRatio>0.5</BufferRatio>
          </Server>
        </MsgQueue>
         <!--OVERRIDE APPLICATION LEVEL-->
         <!-- Specifies the RTMP chunk size to use in all streams for this     -->
         <!-- application.  Stream content breaks into chunks of this size     -->
         <!-- in bytes.  Larger values reduce CPU usage, but also commit to     -->
         <!-- larger writes that can delay other content on lower bandwidth     -->
         <!-- connections.  This can have a minimum value of 128 (bytes) and     -->
         <!-- a maximum value of 65536 (bytes) with a default of 4096 bytes     -->
         <!-- Note that older clients may not support chunk sizes largee than     -->
         <!-- 1024 bytes. If the chunk setting is larger than these clients can     -->
         <!-- support, the chunk setting will be capped at 1024 bytes.          -->
         <OutChunkSize>3072</OutChunkSize>
         <!--OVERRIDE APPLICATION LEVEL-->
         <!-- An application can be configured to deliver aggregate messages to       -->
         <!-- clients that support them by setting the "enabled" attribute to "true". -->
         <!-- The server will attempt to send aggregate messages to these supported   -->
         <!-- clients based whenever possible.                                        -->
         <!-- When this setting is disabled, aggregate messages will always be broken -->
         <!-- up into individual messages before being delivered to clients.          -->
         <!--  The default is "true".                                         -->
         <AggregateMessages enabled="false"></AggregateMessages>
         <!--OVERRIDE VHOST LEVEL-->
         <AutoCloseIdleClients enable="true">     
              <CheckInterval>60</CheckInterval>
              <MaxIdleTime>1200</MaxIdleTime>
         </AutoCloseIdleClients>
      </Client>
    </Application>
    The Server.xml and fms.ini have default settings.
    My RAM usage is always low... 1,1 GB... and also my CPU usage is low. The FMSCore.exe process reaches 630 MB usage and then stays at this level.
    How can I use my server's RAM or have you any tips or suggestions to improve FMS performance with some special settings?
    I tried to change this in fms.ini:
    SERVER.FLVCACHE_MAXSIZE=500
    to 1000 but the application crashes after it reaches 2GB of RAM.
    Thanks in advance
    best,
    Marco

    Hi,
    Thanks for trying the different settings...
    When we talk of tuning for the best performance, different settings are required for different scenarios, for example, a live broadcast would require aggregation of messages (if latency is OK) but a live conferencing solution might need to disable it. So unless the use case is little briefed it is tough to conclude on any generic settings to improve performance.
    I would also like to comment on the FLVCache size. I recommend it to be set to 1/4 the size of your RAM. And you can safely tweak only the SERVER.MAXFLVCACHESIZE variable without worrying on the other variable (which is in percentage). This is supposed to take priority over all other settings.
    If your use case is a vod, have 1/4 RAM as cache size, and also tweak the video buffer settings for mp4 (if you have mp4 content as well). OutchunkSize is another variable that you may want to tweak (at the cost of CPU and latency). You can aggregate the messages.
    Also, you need to make sure of the client side buffer settings to match your FMS settings as well as your use case requirements.
    Hope it all helps.
    Thank you !

  • FMS for syncing background video

    I have a question regarding which version of Flash Media Server will best serve the project I am currently working on and whether the approach I have in mind is possible with FMS.
    The project envolves Flash Media Server syncing a dynamic background across multiple Flash Players running on separate computers on the same local network. One approach is to have FMS handle the variables and calculation on its side and communicate this to the other Flash Players (this I understand can be done with the Streaming Server).
    The second approach is to have FMS execute ActionScript on its own side to create the dynamic background and then serve this out as a video stream to the other computers. (With this approach FMS can completely takeover the processing required to generate the background content and the other computers only need to play it back as video. Is this type of approach possible with FMS and, if yes, with which version.
    If I am unclear about any part of my question, please feel free to ask. Thank you.

    Scenario 1 is possible with any version of FMS. The caveat to that is, if using Streaming Server, you'll need a .swf client (or other client that can send AMF data over a netstream) to send the data across a netstream using netstream.send(). The reason for this is that Streaming Server cannot execute server side actionscript, so the data has to be published to the stream from the client side.
    Scenario 2 is not possible with any version of FMS. FMS can't composite video or draw video frames, it can only serve pre-recorded video content or live streams published from client side applications.

  • How to isolate media files in Applications from video uploaders within FMS

    Hello,
    We have linux-centos with FMS 3.5.2, apache is on another server.
    We host media files within applications folders.
    The media files are uploaded via ssh by different users, each one populating her own my_app/streams.
    the problem:
    We do not want the users to be able to see/download one another files while connected via ssh.
    This is difficult because of the user/group needed by FMS.
    We tried several hours changing groups/users without finding a solution.
    Either FMS cannot stream or a user can see/download elsewhere than in her my_app/stream
    (to explain a bit better, I hope, a view of a situation where it does stream, but also leave media files accessible to useradm2)
    FMS is run by fmsuser:fmsgrp
    user1 uid:gid is usr1adm:fmsgrp
    user2 usi:gig is usr2adm:fmsgrp
    [root@my_serv ~]# tree -gup /home/sanmultimedia/applications/testaccess/
    /home/sanmultimedia/applications/testaccess/
    |-- [-rw-r----- fmsuser  fmsgrp   ]  main.asc
    `-- [drwxr-sr-x usr1adm  fmsgrp   ]  streams
        `-- [drwxr-sr-x usr1adm  fmsgrp   ]  video
            |-- [-rwxr-x--- usr1adm  fmsgrp   ]  SomaFM--4.mp3
            |-- [-rwxr-x--- usr1adm  fmsgrp   ]  testaccess1.flv
            |-- [-rwxr-x--- usr1adm  fmsgrp   ]  testaccess1_1000kbps.f4v
            |-- [-rwxr-x--- usr1adm  fmsgrp   ]  testaccess1_1500kbps.f4v
            |-- [-rwxr-x--- usr1adm  fmsgrp   ]  testaccess1_150kbps.f4v
            |-- [-rwxr-x--- usr1adm  fmsgrp   ]  testaccess1_500kbps.f4v
            `-- [-rwxr-x--- usr1adm  fmsgrp   ]  testaccess1_700kbps.f4v
    Does anyone has a hint ?
    Fred

    VOD changes won't help him, he said outside the applications
    folder. According to adobe any new vod folders must be in the
    applications folder, hence virtually worthless for most purposes. A
    better question may be, how do you specify a folder on a different
    local hard drive. I wish adobe wouldn't make it so complicated, it
    should be a really simple matter.

Maybe you are looking for

  • Sync session failed to start with itunes and iphone 5

    sync session failed to start with itunes and iphone 5

  • Problem in Transporting Holiday calender 2008 ....

    Hi Experts, I have prepared holiday calender for the year 2008. When im trying to transport the Holiday  calender from Development server to quality server Im getting message that """ALL PUBLIC HOLIDAYS,PUBLIC HOLIDAY AND FACTORY CALENDERS WILL BE TR

  • DW won't display folders created in Mac Finder

    I have a Mac. When I was using CS3, I could use Finder to create a folder, then put an image in that folder. If it didn't display in Dreamweaver, I'd just refresh the view, and it would appear. I just tried the same thing with CS6, and it doesn't wor

  • Intel I7 920 / only one core is working (?) Any idea?

    Hello all, I have a problem with my rendering. when I render with after, only one of the core's works (picture). working with: windows xp pro sp3 en adobe creative suit cs4 my pc: intel core i7 920 2.67 GHz memory: 3 gb ddr3 (667MHz) card: Nvidia GeF

  • JMF Video Stream

    I'm transmiting my webcam video to another computer via VideoTransmit.java. But when i'm sending my webcam video, at the same time i want to display my video on my computer too. How can i do that? import java.awt.*; import javax.media.*; import javax