FMS on DocDate

i am trying to get date by using FMS in deposit
SELECT $[$39.1.1.1.DATE]
i am using the aboe query it works but the result comes on 20100119 but i want this on 19-01-2010 .
need  solution on this.

Hi Kumar Amith
check out this query for ur FMS
select Convert (varchar(11),convert(DateTime,T0.[DeposDate]),105)from ODPS T0
I think this will solve ur prob if so pls do close the thread
cheers
Jenny

Similar Messages

  • FMS for Udf based on Posting Date + 4 weeks and +4 weeks excluding weekends

    Hello,
    Requirement 1
    Have made a udf in the Sales Order Header as Manfacture Drawing Rel Date U_FDRDT in which I want that if a Sales Order posting date is 15/12/2010 then this udf should automatically update with the + 4 weeks date i.e 14/01/2011
    Requirement 2
    Another UDF is also made as U_FRDWDT in which I want that if the Sales Order posting date is 15/12/2010 then this udf should automatically update + 4 weeks EXCLUDING Fridays and Saturdays which is there in the 4 weeks hence the result should be e.g 27/01/2010 which is excluding Fridays and Saturdays.The requirement is as such that Friday and Saturday are holidays for the company and the client wants to have this field updated on + 4 weeks basis but it should not consider Friday and Saturday as its holiday.
    Also note in SAP base setup Holiday Master Weekend is set from Friday to Saturday. Will this help in any way of updating the field or through formated search.
    Kindly advise what best solution can be given
    Regards,
    Soni

    Hi,
    One question per thread. This is forum rule.
    Here is FMS for the 1st one:
    SELECT DateAdd(WW,4,$[ORDR.DocDate\])
    Please post another for the 2nd.
    Thanks,
    Gordon

  • FMS QUERY

    Hi all,
    I want to write FMS Query on reference field of payment means window on change of vendor code while making outgoing payment. Is It possible ?
    If i run the query in query generator it gives me the result. But by capturing system information it gives me NO DATA.
    Thanking you
    Malhaar

    Hi Malhaar.........
    Try this.......
    SELECT S0.SERIESNAME + ltrim(str(P0.DOCNUM)) as PO
    FROM OPOR P0 INNER JOIN POR1 P1 ON P0.DOCENTRY = P1.DOCENTRY
    INNER JOIN NNM1 S0 ON P0.SERIES = S0.SERIES
    INNER JOIN OCRD C0 ON P0.CARDCODE = C0.CARDCODE
    LEFT JOIN OCTG T0 ON C0.GROUPNUM = T0.GROUPNUM
    LEFT JOIN OSHP D0 ON P0.TrnspCode=D0.TrnspCode
    WHERE (DateDiff(D,P0.DocDate,Getdate()) = 0 OR DateDiff(D,P0.U_ETD,Getdate()) = 0) AND T0.GroupNum = 21 AND P0.CARDCODE = $[OVPM.CardCode.0]
    Hope this will help you.......
    Regards,
    Rahul

  • Needed help in FMS

    Dear Experts,
    I have made an FMS to get Sales Opportunity no in Sales Quotation row level. Actually there is no direct link between Sales Opportunity & Sales Quotation in B1, after the Quotation get saved in the system which is been created from the Opportunity it stores the information of link doc type & doc no in Opportunity table - OPR1.
    But i need a Opportunity no before the Quotation is saved for that i have an FMS which has an error of  date/time out of range
    for the first query:
    FMS-1:
    select a.OpprId from OOPR a
                        left join OPR1 b on a.OpprId=b.OpprId
                        left join OQUT c on b.OpenDate=c.DocDate
                        where a.CardCode=$[OQUT.CardCode] and b.OpenDate= $[OQUT.DocDate]
    Then i created the second Query:
    FMS-2:
    select a.OpprId from OOPR a
                        left join OPR1 b on a.OpprId=b.OpprId
                        left join OQUT c on b.OpenDate=c.DocDate
                        where a.CardCode=$[OQUT.CardCode] and b.OpenDate= convert(datetime, $[oqut.docdate], 103)
    it has started giving an error of Internal error (-1003)
    Kindly suggest what are possible change can be done to over come from this issue.
    Thanks in Advance...
    Regards
    Krishna

    Hi Krishna,
    you do not have to type http.
    The syntax is dollar sign,opening square bracket,table name.column name.datatype,closing square bracket
    In SAP B1 2007 it was
    The syntax is dollar sign,opening square bracket,dollar sign,table name.column name.datatype,closing square bracket
    Thanks
    malhaar

  • FMS for PO reference in Goods Receipt

    Hi ,
          I want show PO reference in Goods receipt by FMS which can takes item, quantity from PO directly ,i tried query it takes PO number and Item code but quantity of PO not reflect in Goods receipt (Inventory transcations).i want to use same functionality of Inventory transfer after pressing Cntl+tab. query is as below -
    SELECT T1.[ItemCode], T1.[Dscription],  T0.[DocNum], T0.[DocDate],  T1.[Quantity],T1.[OpenQty], T1.[WhsCode] FROM OPOR T0  INNER JOIN POR1 T1 ON T0.DocEntry = T1.DocEntry WHERE T1.[WhsCode] >=[%2] AND  T1.[WhsCode] <=[%3] AND  T0.[DocStatus] =[%4]
    Rgds
    Sudhir Pawar.

    You could make a limited solution with 3 FMS:
    1. One FMS on a header level field where as a result the FMS can store the DocEntry of the selected PO.
    2. One FMS on the item number column listing the row data from this PO based on the stored PO docentry number. The user should activate this FMS manually. This list on the first column should show the item number. The selection from this list determines the selected items.
    3. One FMS on the quantity column refreshing on the item number selecting the quantity from the PO determined by the docentry stored by the first FMS and the item number.
    The limitations:
    - it works only with one PO and
    - it gives good quantity only if there is only one row in the PO with the selected items,

  • Query FMS to display total qty SO

    Dear All,
    I would like to have total quantity of item that sold to the customer in the BP master data customer.
    The total quantity is based on SO quantity. I have created a UDF and I try to use this query FMS:
    SELECT SUM(QUANTITY) FROM INV1 with (NOLOCK)  INNER JOIN OCRD
    T0 ON T0.CARDCODE = INV1.BASECARD WHERE YEAR(DOCDATE)
    = YEAR(GETDATE()) AND T0.CARDCODE = $[$5.0.0] AND T0.CARDTYPE = 'C'
    Pls give advice if there is something wrong with the query or if the query is not valid to have
    such result. Thanks in advance
    Steve

    Hi,
    when run the FMS using mine (modified from yours):
    SELECT SUM(QUANTITY) FROM
    [dbo].[INV1] T0 WITH (NOLOCK) INNER
    JOIN [dbo].[OINV] T1 ON T1.DocEntry = T0.DocEntry
    inner join ocrd t2 on
    t2.cardcode = t1.cardcode
    WHERE YEAR(T0.DOCDATE) = YEAR(GETDATE())
    AND T2.CARDCODE = $[$5.0.0]
    AND $[$40.0.0] = 'C'
    or yours:
    SELECT SUM(QUANTITY) FROM
    [dbo].[INV1] T0 WITH (NOLOCK)
    INNER JOIN [dbo].[OINV] T1 ON
    T1.DocEntry = T0.DocEntry
    WHERE YEAR(T0.DOCDATE) =
    YEAR(GETDATE()) AND
    T2.CARDCODE = $[$5.0.0]
    AND $[$40.0.0] = 'C'
    will erupt "internal error (3006)..." message. I could not understand why it is happened.
    Rgd,
    Steve "Edu"

  • Copied DocDate of Good Receipt into Good issue Docdate Field

    Hi,
    I want to copied the Field of DOCDATE of Good Receipt into Field of DOCDATE into Good Issue can u plz tell me how it can be done ?

    Hi Chaitesh......
    In Which field do you wat the DocDate of Goods Rec. copied to Goods Issue?
    Is that UDF or you want it in GI's Standard Posting Date Field.
    If incase you have to create a Ref. No. field on Goods Issue Document where Goods Receipt Records will be fetched through FMS and once your select the GR's Document No. it will auto fetched DocDate of Goods Rec. into Field where you want to display...........
    Regards,
    Rahul

  • FMS Problem

    Dear expert,
    I have an FMS of Purchase Detail in sales quotaion.
    Query:
    select opor.Docnum as 'PO No.',por1.linenum,
    cardname as 'Supplier Name',Quantity,
    opor.Docdate as 'PO Date',
    from por1
    inner join opor on opor.docentry=por1.docentry
    where POR1.itemcode=$[qut1.itemcode]
    but,  IF only one Purchase transaction against that item then that transaction list is not opened when click on FMS.
    I cannot see the list of one transaction.
    Please give me any solution on this.
    Regards,
    Sumeet Vaity

    Hi Sumit..........
    Try this.........
    Select ltrim(Str(T0.DocNum))+'!'+ltrim(Str(T1.LineNum)), T0.CardName,
    T0.DocDate, T1.Quantity From OPOR T0 Inner Join POR1 T1 On T0.DocEntry=T1.DocEntry
    Where T1.ItemCode=$[QUT1.ItemCode.0]
    Hope this will help you to bring the list of Transactions related to the selected Items......
    Regards,
    Rahul

  • 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");
    }

Maybe you are looking for

  • Display an Alert message in PL/SQL block in APEX

    Hi, we are getting an oracle exception while inserting a new row. As it is having the unique constaint on a coulumn. Now the problem iis we need to Display an "Alert message" based on the input field validation. That java script code for alert has to

  • I can't deinstall iTunes due to error 0x80070091.

    I can no longer access iTunes from Windows 7. Following the support protocol I am deleting all Apple related software,but cannot delete the iTunes folder. It says the folder is empty but when i try to delete, it reports an unexpected error is prevent

  • ORA12801 errors in JDBC

    Any reason why we would get this error? java.sql.SQLException: ORA-12801: error signaled in parallel query server P002 ORA-00604: error occurred at recursive SQL level 2 ORA-00060: deadlock detected while waiting for resource null

  • Cannot locate 'upgrade catalog' tab in LR4.2 file pulldown

    I'm trying to bring PSE8 catalogs in to LR4.2 but I do not see the 'upgrade catalog' command in the file pulldown as shown in the LR4 tutorials. Thanks in advance, Chris

  • Process- For Unique

    hi In a form we can create a process for checking Null or not but for Uniqueness we don't have a process, is there any way to created a process for checking Uniqeness becoz when i enterring empno in the emp table when the empno already in the table a