Selection criteria of NTP server

Hi
If 4 x NTP servers are configured on cisco router then what is the criteria that which server cisco picks first ? can some one share the selection criteria of NTP servers, same questions for NTP peer.
Thanks !
Regards,
Umair

Hi,
"In a common client/server model, a client sends an NTP message to one or more servers and processes the replies as received. The server interchanges addresses and ports, overwrites certain fields in the message, recalculates the checksum, and returns  the message immediately. Information included in the NTP message allows the client to determine the server time with respect to local time and  adjust the local clock accordingly. In addition, the message includes information to calculate the expected timekeeping accuracy and reliability, as well as select the best server."
So in other words "Before synchronizing, NTP compares the time reported by several network devices and does not synchronize with one that is significantly different, even if it is a stratum 1."
You can prefer a server:  ntp server prefer
You also can peer NTP servers.  If you have two or more peers then the most accurate peer acts as the server and the other peer(s) act as clients.
Here are some helpful commands:
show ntp associations
show ntp status
debug ntp events
debug ntp adjust
debug ntp core
Note: NTP server functionality is supported starting in Cisco NX-OS Release 5.2.
Hope this helps.

Similar Messages

  • Selection criteria are not applied to summary fields on group footers.

    I wonder if anyone can help me with this problem.  I am using Crystal reports version 11.2, and my data source is a Sql Server view.
    The records on the view have a date field, and I have selected all records within a given date range in "Selection Formulas".
    The records are then grouped, and the Crystal summary facility used to summarise number fields on the group footers.
    So for example, if my view contains four records, one with field "amount" = 2, one with field "amount" = 8, one with field "amount" = 6, one with field "amount" = 3, but only the first two records are within the valid date range, you would expect to see the first two records listed out at detail level, then field "amount" summarised at group level, with a summarised value of 10.
    ie ....                record1                      2
                           record2                      8   
                           group level total         10
    This works fine when I run the report using Crystal's "print preview" facility.  However, when the report is run from within an application written in C#.NET, the selection criteria are not applied to the summary field, so you get ..
                           record1                      2
                           record2                      8   
                           group level total          19
    I tried putting the date selection criteria at both record and group level, but that did not work.
    I googled the problem and found an article explaining that Crystal first performs the record-level selection, then it creates the groups and totals up any summary fields, and only then does it apply the group-level selection criteria, which can lead to problems like the one I have described above.  However, since I have put my date selection criteria at both record and group level, I do not understand why I still get the problem.
    In one report I got round this problem by creating a formula that returned zero if the record date was outside of the valid date range, and returned the number field to be summarised if the date was valid, then summarising that formula, instead of summarising the number field directly.
    In other reports I created one formula to set a shared variable as zero, then another formula to accumulate it at detail record level, then another formula to display the variable at the group footer.  In other words, I did not bother with the Crystal summary facility at all, but created my own summary facility.
    While googling the problem to see what other people did in this situation, I noticed that most fixes used variations of the "shared variables and formulae" fix to get round the problem.
    The problem is that I have lots of complex reports and it will take ages to replace the summarised fields with shared variables and formulae.  The reports were initially tested with "Print Preview" so we did not notice this problem until the C#.Net application was ready to use them.  And I can't believe that you are simply meant to ignore the summary facility and re-invent the wheel by doing it all manually.
    Please tell me that there is something simple that I have been doing wrong!!!  If I have not given enough information for you to answer, please let me know.
    Thanks,
    Anne-Marie

    Hi, Anne-Marie;
    You may be running into a common issue that is docuemented here:
    [SelectionFormula|https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/oss_notes_boj/sdn_oss_boj_erq/sap(bD1lbiZjPTAwMQ==)/bc/bsp/spn/scn_bosap/notes%7B6163636573733d36393736354636443646363436353344333933393338323636393736354637333631373036453646373436353733354636453735364436323635373233443330333033303331333233303334333833393335%7D.do]
    Regards,
    Jonathan
    Edited by: Jonathan Parminter on Mar 16, 2009 8:03 AM

  • Updated Report Selection Criteria doesn't show in Publication

    Hi,
    This is my first post in this forum and I'm relatively new to Crystal Reports Server.
    We have Crystal Reports Server 2008 V1 SP3.
    I have two independent reports that I've put together in a report publication. The report is saved to the file system.
    I made a change to one of the report's selection criteria. I viewed the report thru the Crystal Reports Program and Infoview/CMC to confirm the additional records I wanted showing were showing. They were and everything worked.
    A week went by and I noticed that the saved report didn't have the additional records.
    I've contacted SAP support and we were able to get everything working by doing the following
    1) Remove the updated report from the publication's Source Documents list. Save and Close
    2) Re-add the report to the publication's Source Documents list.
    3) Delete the old recurring schedule (so we don't have two instances doing the same thing).
    4) Re-create a new schedule for the delivery (not reschedule and replace an existing nor reschedule and create new, but a brand new one).
    These changes were compounded by the fact that I had 4 different scheduled instances, each with a different parameters, so these 4 steps were actually closer to 8.
    In my own testing I was able to confirm something similar happens with a single report (not part of a publication) when you change the selection criteria. I had to create a new scheduled delivery in order to get the selection criteria change to flow thru.
    My questions to all you is
    Is there some other way to distribute 2 reports in way that making a change the criteria of the report doesn't require doing anything else?
    Thanks.
    Edited by: David Steven on Feb 13, 2012 9:58 PM

    Hi RobbinsFam!
    Here is an article that describes the issue you are seeing, and can provide you with some helpful troubleshooting steps:
    iOS: Unable to import photos to computer
    http://support.apple.com/kb/ts3195
    Thanks for coming to the Apple Support Communities!
    Cheers,
    Braden

  • ASA5500 using Windows 7 computer as NTP server

    I have an ASA5510 connected to a computer running Windows 7 (the NTP Server) on its "inside" interface.
    Using the ASDM, I have configured the ASA5510 to use the Windows 7 as its NTP server (my architecture forces me to use a local machine as an NTP server):
         -IP address: 192.0.99.1 (the ASA5510 has an IP address of 192.0.99.40)
         -Interface: inside
         -Key number: None
         -Enable NTP authentication: no.
    I have other Windows computers on the "inside" interface using the NTP Server, so NTP traffic is relayed without any problem. But somehow, the ASA5510 is not able to synchronize with the NTP Server.
    I see the following log entry:
         -Source IP: 192.0.99.1
         -Source Port: 123
         -Destination IP: 192.0.99.40
         -Destination port: 65535
         -Description: Teardown UDP connection 3905 for inside: 192.0.99.1/123 to identity: 192.0.99.40/65535 duration 0:02:01 bytes 96
    so it seems like the ASA5510 sends a request to the NTP Server, but I am not sure whether the reply doesn't get processed correctly, or the connection stays open too long (my UDP connection timeout is the default, 2 minutes).
    I had trouble getting SonicWALL NSA2400s to use Windows 7 devices as NTP servers. I had to get a firmware version where there was no MD5 authentication (which I think is OK in this case), and change a setting in the Windows registry (HKEY_LOCAL_MACHINE/SYSTEM/CurrentControlSet/services/W32Time/Config/AnnounceFlags: from 0xa to 0x5)
    any insight is welcome.
    Pedro

    I have turned on all ntp debugging, and run "show ntp status" and "show ntp assoc":
    CCG-SHIP-FWL(config)# show debug
    debug ntp adjust enabled at level 1
    debug ntp authentication enabled at level 1
    debug ntp events enabled at level 1
    debug ntp packets enabled at level 1
    debug ntp params enabled at level 1
    debug ntp select enabled at level 1
    debug ntp sync enabled at level 1
    debug ntp validity enabled at level 1
    CCG-SHIP-FWL(config)# show ntp status
    Clock is unsynchronized, stratum 16, no reference clock
    nominal freq is 99.9984 Hz, actual freq is 99.9984 Hz, precision is 2**6
    reference time is 00000000.00000000 (06:28:16.000 GMT Thu Feb 7 2036)
    clock offset is 0.0000 msec, root delay is 0.00 msec
    root dispersion is 0.00 msec, peer dispersion is 0.00 msec
    CCG-SHIP-FWL(config)# show ntp assoc
          address         ref clock     st  when  poll reach  delay  offset    disp
    ~192.16.99.1      .LOCL.            1   380  1024  337    73.0  255671    71.0
    * master (synced), # master (unsynced), + selected, - candidate, ~ configured
    CCG-SHIP-FWL(config)# NTP: xmit packet to 192.16.99.1:
    leap 3, mode 3, version 3, stratum 0, ppoll 1024
    rtdel 0000 (0.000), rtdsp 10400 (1015.625), refid 00000000 (0.0.0.0)
    ref 00000000.00000000 (06:28:16.000 GMT Thu Feb 7 2036)
    org d34ac42f.4609d99d (20:21:03.273 GMT Tue May 1 2012)
    rec d34a6050.3598360c (13:14:56.209 GMT Tue May 1 2012)
    xmt d34a6250.22e73ba2 (13:23:28.136 GMT Tue May 1 2012)
    NTP: rcv packet from 192.16.99.1 to OWN_FWL_LAN_PORT on inside:
    leap 0, mode 4, version 3, stratum 1, ppoll 1024
    rtdel 0000 (0.000), rtdsp a0bf4 (10046.692), refid 4c4f434c (76.79.67.76)
    ref d34abbb0.bb426e39 (19:44:48.731 GMT Tue May 1 2012)
    org d34a6250.22e73ba2 (13:23:28.136 GMT Tue May 1 2012)
    rec d34ac62f.3977adb6 (20:29:35.224 GMT Tue May 1 2012)
    xmt d34ac62f.3977adb6 (20:29:35.224 GMT Tue May 1 2012)
    inp d34a6250.233258a0 (13:23:28.137 GMT Tue May 1 2012)
    NTP: nlist 0, allow 0, found 0, low 0.000000, high 0.000000
    NTP: no select intersection
    NTP: synchronization lost

  • Xntpd on Solaris 10 gets synchronised with a higher stratum NTP server

    The Solaris 10 machine has the following configuration in etc/inet/ntp.conf
    server 10.24.179.33 prefer
    server 127.127.1.0
    fudge 127.127.1.0 stratum 8
    The Linux Fedora Core 4 test machine(10.24.179.33 ) configured as NTP server running ntpd V4 has the following configuration
    server 127.127.1.0
    fudge 127.127.1.0 stratum 10
    The solaris 10 xntpd get synchronised to Linux NTP server even though it is at a higher stratum level.
    # ntpq -p
    remote refid st t when poll reach delay offset disp
    ==============================================================================
    *10.24.179.33 LOCAL(0) 11 u 18 64 77 2.04 0.084 376.68
    LOCAL(0) LOCAL(0) 8 l 17 64 77 0.00 0.000 385.01
    The expectation was the solaris machine should not consider the server at a higher stratum level(11) for synchronistation. It should have got synchronised to the Local clock which is at stratum level 8.

    I now tried waiting for an hour, but the xntpd id still synchronised to the higher stratum clock from the NTP server 10.24.179.33. Please verify the logs below.
    Does the prefer keyword in line "server 10.24.179.33 prefer" has anything to do with this behaviour ?
    What does the RFC1305 say on process of selecting a synchronisation source ?
    My understanding was that xntpd should not be synchornising with a higher stratum clock from the NTP server (which is at stratum 11) when it already has as another server(here the local clock) which is at a lower stratum (we have simulated this by fudging the local clock to stratum 8).
    Please correct me on this.
    You have mentioned that "Stratum number is not absolute for choosing a clock. A higher stratum may be preferred in some situations."
    Could you explain me more on these situations and I also want to know the rules used by xntpd to choose a clock?
    Or you could provide any links where I can read more on this aspect.
    # ntpq -p
    remote refid st t when poll reach delay offset disp
    ==============================================================================
    10.24.179.33 LOCAL(0) 11 u 13 64 1 0.52 -0.001 15875.0
    LOCAL(0) LOCAL(0) 8 l 12 64 1 0.00 0.000 15885.0
    (WCCONGO02):(root) UTC 1:21:37 VER R-02.01.16.03
    # ntpq -p
    remote refid st t when poll reach delay offset disp
    ==============================================================================
    *10.24.179.33 LOCAL(0) 11 u 1 64 77 0.52 -0.244 376.77
    LOCAL(0) LOCAL(0) 8 l 64 64 37 0.00 0.000 885.01
    (WCCONGO02):(root) UTC 1:26:45 VER R-02.01.16.03
    # uname -a
    SunOS WCCONGO02 5.10 Generic_127127-11 sun4v sparc SUNW,Netra-T5440
    (WCCONGO02):(root) UTC 1:29:44 VER R-02.01.16.03
    # ntpq -p
    remote refid st t when poll reach delay offset disp
    ==============================================================================
    *10.24.179.33 LOCAL(0) 11 u 40 64 377 0.61 0.415 0.56
    LOCAL(0) LOCAL(0) 8 l 39 64 377 0.00 0.000 10.01
    (WCCONGO02):(root) UTC 2:7:56 VER R-02.01.16.03
    # ntpq -p
    remote refid st t when poll reach delay offset disp
    ==============================================================================
    *10.24.179.33 LOCAL(0) 11 u 13 64 377 2.26 1.289 0.66
    LOCAL(0) LOCAL(0) 8 l 12 64 377 0.00 0.000 10.01
    (WCCONGO02):(root) UTC 2:22:25 VER R-02.01.16.03
    Edited by: SujithKS on May 27, 2009 10:34 AM
    Edited by: SujithKS on May 27, 2009 11:26 AM

  • Variable selection criteria in the record selection

    Variable selection criteria in the record selection with Crystal Report with SQL 2005 Server tables.
    In the record selection I would like to use the value of the field u201CsSQL1u201D as part of the selection criteria instead the field name {tblReportAccessAutority.sSQL1}
    The value of the field {tblReportAccessAutority.sSQL1} is {tblSalesReporting.sJEDivisionCode} = 'I'
    I tried with formulas, SQL expressions, but nothing works.
    Record selection of the report:
    {tblReportAccessAutority.sUserID} = CurrentCEUserName
    and {tblSalesReporting.sLegalEntity} = {?Legal Entity}
    and {tblSalesReporting.sJEPeriod} = {?PARAM_PERIOD}
    and {tblSalesReporting.sIG3rd} =  {?PARAM_IG3RD}
    and {tblReportAccessAutority.sSQL1}                           <---this is the problem line
    The field {tblReportAccessAutority.sSQL1} is not converted in the value:
    {tblSalesReporting.sJEDivisionCode} = 'I'     
    The tables tblSalesReporting and tblReportAccessAutority are joined in this report.
    Many thanks for your help.
    Roger

    How is the syntax for the selection criteria in the record selection?
    {tblReportAccessAutority.sUserID} = 'ch1scro2'
    and {tblSalesReporting.sLegalEntity} = {?Legal Entity}
    and {tblSalesReporting.sJEPeriod} = {?PARAM_PERIOD}
    and {tblSalesReporting.sIG3rd} = {?PARAM_IG3RD}
    and SELECT {@sSQL_Condition} ???????? or
    and  {@sSQL_Condition} ??????? or how?
    The expression fir the formula {@sSQL_Condition} is:
    TOTEXT({tblReportAccessAutority.sSQL1})
    The field definition for {tblReportAccessAutority.sSQL1} is nvarchar(50).
    Thanks Roger

  • Data selection criteria

    Post Author: malibu0814
    CA Forum: WebIntelligence Reporting
    I have a report that I would like to define the selection criteria by an external source.  For instance, my data has an item field that if I could allow users to fill in an external file (.xls, .csv, .txt, etc.) with the values to be selected I could then allow my users to run their own reports rather than constantly coming to me for assistance.  Here is an example file input:
    item-no-1
    item-no-2
    item-no-3
    item-no-4
    item-no-5
    item-no-6
    item-no-7
    item-no-8
    item-no-9
    item-no-10
    item-no-11
    item-no-12
    This would be in lieu of using the Prompt feature for the field.
    Thanks.

    Post Author: jsanzone
    CA Forum: WebIntelligence Reporting
    Malibu0814:
    You don't give much details on your database architecture (i.e. are your universes pointing to MySQL, some other DBMS, or to Access tables, etc, etc).  My suggestion would be to either give the users the capability to populate a special data mart in the DBMS, or give them a shared folder to update a spreadsheet/access table, or take the user's input and populate the same.  Once the data is captured to an agreeable location, then use that as a "reference" table of sorts that links in and causes it to be the final "filter" for the report that they want.
    An alternative to all of this would be for you to do a "one-time" upload to a reference table (along the thought above), but put in every conceivable value and make that a part of the report in the form of a prompt.  When users want to run their report they just comb through the prompt selecting the item(s) they want and they can serve themselves without troubling you.  The only time you would get involved would be to add yet another value to the reference table that was not captured in the first go around.
    Good luck!

  • W32tm always on "Local CMOS clock" on virtual domain controller - cannot change to NTP server

    The domain controller (Server 2012R2) is hosted on Hyper-V (Server 2012R2). It is a PDC.
    - firewall disabled
    - cleaned up w32tm:
    net stop w32time
    w32tm /unregister
    w32tm /register
    net start w32time
    - applied ifixit from http://support.microsoft.com/kb/816042 to enable external ntp server de.pool.ntp.org
    - disabled
    VMICTimeProvider in registry
    (HKLM\SYSTEM\CurrentControlSet\Services\W32Time\TimeProviders\VMICTimeProvider\Enabled = 0)
    I can manually query the ntp server de.pool.ntp.org:
    w32tm /stripchart /computer:de.pool.ntp.org /samples:5 /dataonly
    de.pool.ntp.org wird verfolgt [131.188.3.221:123].
    5 Proben werden gesammelt.
    Es ist 24.04.2014 10:07:36.
    10:07:36, +00.0115379s
    10:07:38, -00.0025048s
    10:07:40, -00.0008595s
    10:07:42, -00.0010477s
    10:07:44, -00.0014516s
    But still, w32tm does NOT query the ntp server:
    PS C:\Windows\system32> w32tm /query /source
    Local CMOS clock
    rosch

    Hi rosch,
    Based on your description, please check if disable the "Time synchronization" Integration service. Please refer
    to the following operation.
    In Hyper-V Manager, right click the DC and select “Settings…”.
    In the left panel of Settings, navigate to Integration Services and click it.
    Then in the right panel, please uncheck Time synchronization.
    By the way, please check if can connect to the time server and UDP port was opened for NTP.
    If any update, please feel free to let me know.
    Hope this helps.
    Best regards,
    Justin Gu

  • 3750 stack won't sync with NTP server

    Any help greatly appreciated with this one - I can't for the life of me figure out what's going wrong here.
    I'm working on a 3750 stack in Singapore (UTC +8) and I'm trying to get it to sync its clock with 3.sg.pool.ntp.org.
    This is the weird part - "sh ntp associations" shows that it is syncing:
      address         ref clock       st   when   poll reach  delay  offset   disp
    *~199.195.193.200 203.117.180.36   2     52     64   377 80.936 -13895.  1.771
    * sys.peer, # selected, + candidate, - outlyer, x falseticker, ~ configured
    And "sh ntp associations de" shows that it's happy:
    199.195.193.200 configured, our_master, sane, valid, stratum 2
    ref ID 203.117.180.36, time D691F63E.C4B691CD (17:26:22.768 UTC Tue Jan 28 2014)
    our mode client, peer mode server, our poll intvl 64, peer poll intvl 64
    root delay 196.39 msec, root disp 592.71, reach 377, sync dist 944.69
    delay 80.93 msec, offset -13895.2686 msec, dispersion 2.65
    precision 2**20, version 4
    org time D691FA8F.5FF29003 (17:44:47.374 UTC Tue Jan 28 2014)
    rec time D691FA9D.5041E9C7 (17:45:01.313 UTC Tue Jan 28 2014)
    xmt time D691FA9D.3B3524C8 (17:45:01.231 UTC Tue Jan 28 2014)
    filtdelay =    82.20   80.93   82.17   81.49  155.78   81.08   84.67   82.09
    filtoffset = -13897. -13895. -13899. -13900. -13901. -13872. -13876. -13876.
    filterror =     0.00    0.99    1.98    2.94    3.94    4.92    5.87    6.81
    minpoll = 6, maxpoll = 10
    But the clock is stubbornly remaining unsynchronised ("sh ntp st"):
    Clock is unsynchronized, stratum 16, reference is 199.195.193.20
    nominal freq is 119.2092 Hz, actual freq is 119.2092 Hz, precision is 2**17
    reference time is 00000000.00000000 (08:00:00.000 UTC Mon Jan 1 1900)
    clock offset is -13895.2686 msec, root delay is 0.00 msec
    root dispersion is 14.62 msec, peer dispersion is 3.26 msec
    loopfilter state is 'CTRL' (Normal Controlled Loop), drift is 0.000000000 s/s
    system poll interval is 64, never updated.
    NTP-relevant config is as follows (no ACLs, outbound UDP 123 allowed on perimeter firewall):
    clock timezone UTC 8 0
    ntp server 3.sg.pool.ntp.org
    I have configured a pair of stacks in Hong Kong for NTP (though that was a couple of months ago and I recall that those were a pain at the time as well) and those are working fine.

    Much to my annoyance, the switch stack is now synchronised.  No  configuration changes were made in the interim; it just looks like it  needed a long time (well over an hour in this case) to start syncing  properly.

  • NTP server unreachable through ASA firewall

    Hi all,
    I've configured a DMZ switch to point to an NTP server on on the Inside, but I get a debug message on the switch that says:
    NTP: <NTP server IP address> unreachable
    I'm confident that the NTP server is configured properly, as there are more than a dozen other hosts using it, successfully. The difficulty here is that the NTP packets are having to flow from the DMZ to the Inside. I have a rule set on the firewall that permits the IP address of the switch to connect to the IP address of the NTP server as follows:
    access-list intdmz1_acl extended permit udp host <IP address of switch> host <IP address of NTP server> eq ntp
    I can see the hit counter on this rule incrementing.
    The firewall can ping the NTP server, and the NTP server can ping the switch, so I think routing is OK.
    Output from the DMZ switch:
    switch#show ntp associations
          address         ref clock     st  when  poll reach  delay  offset    disp
    ~192.168.65.254   0.0.0.0          16     -    64    0     0.0    0.00  16000.
    * master (synced), # master (unsynced), + selected, - candidate, ~ configured
    switch#show ntp status
    Clock is unsynchronized, stratum 16, no reference clock
    nominal freq is 119.2092 Hz, actual freq is 119.2092 Hz, precision is 2**17
    reference time is 00000000.00000000 (00:00:00.000 GMT Mon Jan 1 1900)
    clock offset is 0.0000 msec, root delay is 0.00 msec
    root dispersion is 0.00 msec, peer dispersion is 0.00 msec
    PRNLN-DMZ-SW01#sh run | inc ntp
    ntp source Vlan138
    ntp server 192.168.65.254
    ukhvdc00vs01#sh run | inc ntp
    ntp source Vlan65
    ntp master 3
    ntp update-calendar
    ntp server 0.uk.pool.ntp.org
    ntp server 1.uk.pool.ntp.org
    PRNLN-DMZ-SW01#show ntp status
    Clock is unsynchronized, stratum 16, no reference clock
    nominal freq is 119.2092 Hz, actual freq is 119.2092 Hz, precision is 2**17
    reference time is 00000000.00000000 (00:00:00.000 GMT Mon Jan 1 1900)
    clock offset is 0.0000 msec, root delay is 0.00 msec
    root dispersion is 0.00 msec, peer dispersion is 0.00 msec
    Does the firewall rule need to permit more than UDP/123 for this to work perhaps?
    NTPconfig on DMZ switch:
    switch#sh run | inc ntp
    ntp source Vlan138
    ntp server <IP address of NTP server>
    ===================
    NTP config on NTP server:
    NTP_Server#sh run | inc ntp
    ntp source Vlan65
    ntp master 3
    ntp update-calendar
    ntp server 0.uk.pool.ntp.org
    ntp server 1.uk.pool.ntp.org
    Any guidance welcomed.
    Thank you,
    Olly

    Hi Julio,
    Hi Julio,
    For the purposes of this information:
    DMZ switch IP = 5.6.7.8
    NTP server IP = 10.1.1.1
    Here's the output from the show commands:
    ciscoasa# show capture NTPCAPTUREDMZ
    11 packets captured
       1: 16:22:05.271500 802.1Q vlan#138 P6 5.6.7.8.123 > 10.1.1.1.123:  udp 48
       2: 16:23:09.276185 802.1Q vlan#138 P6 5.6.7.8.123 > 10.1.1.1.123:  udp 48
       3: 16:24:13.274033 802.1Q vlan#138 P6 5.6.7.8.123 > 10.1.1.1.123:  udp 48
       4: 16:24:57.272813 802.1Q vlan#138 P6 5.6.7.8.123 > 10.1.1.1.123:  udp 48
       5: 16:24:58.279480 802.1Q vlan#138 P6 5.6.7.8.123 > 10.1.1.1.123:  udp 48
       6: 16:24:59.277817 802.1Q vlan#138 P6 5.6.7.8.123 > 10.1.1.1.123:  udp 48
       7: 16:25:00.275971 802.1Q vlan#138 P6 5.6.7.8.123 > 10.1.1.1.123:  udp 48
       8: 16:25:01.275559 802.1Q vlan#138 P6 5.6.7.8.123 > 10.1.1.1.123:  udp 48
       9: 16:25:02.272599 802.1Q vlan#138 P6 5.6.7.8.123 > 10.1.1.1.123:  udp 48
      10: 16:25:03.279129 802.1Q vlan#138 P6 5.6.7.8.123 > 10.1.1.1.123:  udp 48
      11: 16:25:04.277710 802.1Q vlan#138 P6 5.6.7.8.123 > 10.1.1.1.123:  udp 48
    11 packets shown
    ciscoasa# show capture NTPCAPTUREINSIDE
    0 packet captured
    0 packet shown
    ciscoasa# show capture NTPASP | include 10.1.1.1
    419: 16:24:13.274171 802.1Q vlan#138 P6 5.6.7.8.123 > 10.1.1.1.123:  udp 48
    1820: 16:24:57.272904 802.1Q vlan#138 P6 5.6.7.8.123 > 10.1.1.1.123:  udp 48
    1841: 16:24:58.279587 802.1Q vlan#138 P6 5.6.7.8.123 > 10.1.1.1.123:  udp 48
    1876: 16:24:59.277909 802.1Q vlan#138 P6 5.6.7.8.123 > 10.1.1.1.123:  udp 48
    1934: 16:25:00.276062 802.1Q vlan#138 P6 5.6.7.8.123 > 10.1.1.1.123:  udp 48
    2027: 16:25:01.275651 802.1Q vlan#138 P6 5.6.7.8.123 > 10.1.1.1.123:  udp 48
    2068: 16:25:02.272690 802.1Q vlan#138 P6 5.6.7.8.123 > 10.1.1.1.123:  udp 48
    2095: 16:25:03.279221 802.1Q vlan#138 P6 5.6.7.8.123 > 10.1.1.1.123:  udp 48
    2129: 16:25:04.277802 802.1Q vlan#138 P6 5.6.7.8.123 > 10.1.1.1.123:  udp 48
    2200: 16:25:05.275849 802.1Q vlan#138 P6 5.6.7.8.123 > 10.1.1.1.123:  udp 48
    2233: 16:25:06.274094 802.1Q vlan#138 P6 5.6.7.8.123 > 10.1.1.1.123:  udp 48
    2275: 16:25:07.273606 802.1Q vlan#138 P6 5.6.7.8.123 > 10.1.1.1.123:  udp 48
    2327: 16:25:08.280182 802.1Q vlan#138 P6 5.6.7.8.123 > 10.1.1.1.123:  udp 48
    2347: 16:25:09.277222 802.1Q vlan#138 P6 5.6.7.8.123 > 10.1.1.1.123:  udp 48
    2373: 16:25:10.275467 802.1Q vlan#138 P6 5.6.7.8.123 > 10.1.1.1.123:  udp 48
    2399: 16:25:11.273759 802.1Q vlan#138 P6 5.6.7.8.123 > 10.1.1.1.123:  udp 48
    2414: 16:25:12.273347 802.1Q vlan#138 P6 5.6.7.8.123 > 10.1.1.1.123:  udp 48
    I'm guessing we should see some packets in the second capture, but we're not...
    Does this help?
    Thanks!
    Olly

  • Ntp server connection

    Hello,
    have a problem connecting to the ntp server please see below:
    dslrouter#show ntp associations
          address         ref clock     st  when  poll reach  delay  offset    disp
    ~130.88.203.12    0.0.0.0          16     -    64    0     0.0    0.00  16000.
    * master (synced), # master (unsynced), + selected, - candidate, ~ configured
    dslrouter#show ntp status
    Clock is unsynchronized, stratum 16, no reference clock
    nominal freq is 250.0000 Hz, actual freq is 250.0000 Hz, precision is 2**16
    reference time is 00000000.00000000 (00:00:00.000 UTC Mon Jan 1 1900)
    clock offset is 0.0000 msec, root delay is 0.00 msec
    root dispersion is 0.00 msec, peer dispersion is 0.00 msec
    any reasons as this is the first time I am trying to synch to an NTP server.
    on the wan inbound I have permitted the destination udp 123 port through the access-list

    Do you have any ACL input in Gateway...disable one moment for test...it could be a problem from your ISP or ISP filter/Firewall input/output?? Could you try with another NTP server...

  • Cisco 3750X wont sync to ntp server

    sh version
    Switch Ports Model              SW Version            SW Image
    *    1 30    WS-C3750X-24       15.0(2)SE5            C3750E-UNIVERSALK9-M
    nsi.swcore01#sho ntp associations
      address         ref clock       st   when   poll reach  delay  offset   disp
     ~192.168.68.254  .INIT.          16      -   1024     0  0.000   0.000 15937.
     * sys.peer, # selected, + candidate, - outlyer, x falseticker, ~ configured
    nsi.swcore01#sh ntp status
    Clock is unsynchronized, stratum 16, no reference clock
    nominal freq is 119.2092 Hz, actual freq is 119.2092 Hz, precision is 2**17
    reference time is 00000000.00000000 (08:00:00.000 GMT Mon Jan 1 1900)
    clock offset is 0.0000 msec, root delay is 0.00 msec
    root dispersion is 46985.14 msec, peer dispersion is 0.00 msec
    loopfilter state is 'FSET' (Drift set from file), drift is 0.000000000 s/s
    system poll interval is 64, never updated.
    I tried to manually set the time so that the ntp server and the switch will have almost identical time, and btw NTP Server is a firewall, IP of the switch is allowed, and im actually seeing logs on the firewall side(watchguard) that it is trying to sync w/ the ntp server

    NTP server is watchguard firewall, other devices such as AD, ubuntu server is pointed on it and using its time sychronization and its working, i dont know why im having an issue w/ cisco 3750x

  • How can i change the record selection criteria via SDK?

    Hi,
    I wanna change the record selection criteria  in rpt file in java program, What API is required?
    Thanks.
    Forest

    Hi,
    You can use RAS API to change record selection formula at runtime. Go to
    https://www.sdn.sap.com/irj/boc/index?rid=/webcontent/uuid/f0aea666-5384-2b10-ffb0-a6facef1d5e5
    and look for Report Application Server Java SDK Feature Samples. It contains the record selection change code.
    Thanks
    Aasavari

  • Selection Criteria addition-Not working

    Hi!
    I have this report wherein I need to add two fields VBAP-Kunnr and knvv-konda in the selection screen so that I can do my drill down or search criteria based upon these two selections also apart from the existing ones, but unfortunately I am unable to get throiugh this and somehow putting this two selections in the selection criteria its not taking any effect or its just actinga  dummy selection and I am unale to drill down my report based upon those. Can anyone have a look and let me know what could be the problem please. Help would be highly appreciated.
    Thanks
    *& Include ZSD_PFGENERATETOP Report ZSD_PFGENERATE
    REPORT zsd_pfgenerate LINE-SIZE 170 LINE-COUNT 65.
    TABLES: lips, likp, vbap, vbak, vbrp, vbpa, vbrk.
    CONSTANTS: cns_vgtyp TYPE vbrp-vgtyp VALUE 'J',
    cns_intyp TYPE vbrk-vbtyp VALUE 'M',
    cns_vkorg TYPE vbak-vkorg VALUE 'CA01',
    cns_vkorg_US type vbak-vkorg value 'US01', "DEVK903521
    cns_parsh TYPE vbpa-parvw VALUE 'WE',
    cns_parsp TYPE vbpa-parvw VALUE 'AG',
    cns_parre type vbpa-parvw value 'RE', "bill-to
    cns_auzwp TYPE vbak-auart VALUE 'ZWP',
    cns_auzct TYPE vbak-auart VALUE 'ZCT',
    cns_auzif TYPE vbak-auart VALUE 'ZIF',
    cns_auztm TYPE vbak-auart VALUE 'ZTM',
    cns_fkff TYPE vbrk-fkart VALUE 'ZFF5',
    cns_fkos TYPE vbrk-fkart VALUE 'ZOF5',
    cns_upd(1) TYPE c VALUE 'S',
    cns_mode(1) TYPE c VALUE 'N'.
    Internal Tables and Work Areas
    DATA: BEGIN OF it_vbpos OCCURS 0,
    werks TYPE vbap-werks,
    audat TYPE vbak-audat,
    auart TYPE vbak-auart,
    kunag TYPE vbak-kunnr,
    name1_ag TYPE kna1-name1,
    kunsh TYPE likp-kunnr,
    name1_sh TYPE kna1-name1,
    vbeln TYPE vbak-vbeln,
    posnr TYPE vbap-posnr,
    vbdel TYPE likp-vbeln,
    psdel TYPE lips-posnr,
    kunre type kunre, "Bill-to Party
    name1_re type kna1-name1, "Bill-to Party Name
    END OF it_vbpos,
    BEGIN OF it_vbpos_temp OCCURS 0,
    vgbel TYPE lips-vgbel,
    vgpos TYPE lips-vgpos,
    vbeln TYPE vbak-vbeln,
    posnr TYPE vbap-posnr,
    END OF it_vbpos_temp,
    BEGIN OF it_report OCCURS 0,
    werks TYPE vbap-werks,
    vbeln TYPE vbak-vbeln,
    vbdel TYPE likp-vbeln,
    audat TYPE vbak-audat,
    auart TYPE vbak-auart,
    name1_ag TYPE kna1-name1,
    name1_sh TYPE kna1-name1,
    name1_re type kna1-name1, "Bill-to Party Name
    mark(1) TYPE c,
    END OF it_report,
    BEGIN OF it_vbeln OCCURS 0,
    vbeln TYPE vbak-vbeln,
    END OF it_vbeln,
    wa_vbeln LIKE LINE OF it_vbeln,
    wa_vbpos LIKE LINE OF it_vbpos,
    wa_report LIKE LINE OF it_report,
    wa_sel LIKE LINE OF it_report.
    DATA: it_vbrp type table of vbrp,
    it_vbrk type table of vbrk.
    BDC Variables
    DATA: BEGIN OF bdc_tab OCCURS 0.
    INCLUDE STRUCTURE bdcdata.
    DATA: END OF bdc_tab.
    DATA: wa_bdc LIKE LINE OF bdc_tab,
    it_bdcmess TYPE TABLE OF bdcmsgcoll.
    *& Selection-Screen definition
    SELECTION-SCREEN BEGIN OF BLOCK block2 WITH FRAME TITLE text-002.
    PARAMETERS: p_rdff TYPE c RADIOBUTTON GROUP rad1 DEFAULT 'X',
    p_rdos TYPE c RADIOBUTTON GROUP rad1.
    SELECTION-SCREEN END OF BLOCK block2.
    SELECTION-SCREEN BEGIN OF BLOCK block0 WITH FRAME TITLE text-000.
    SELECT-OPTIONS: s_werks FOR vbap-werks OBLIGATORY NO INTERVALS,
    s_auart FOR vbak-auart,
    s_kunag FOR vbak-kunnr, "Sold-to Party
    s_kunnr FOR likp-kunnr, "Ship-to Party
    s_kunre for vbak-kunnr, "Bill to Party
    s_vdatu FOR vbak-vdatu OBLIGATORY.
    SELECTION-SCREEN END OF BLOCK block0.
    SELECTION-SCREEN BEGIN OF BLOCK block1 WITH FRAME TITLE text-001.
    PARAMETERS: p_vgbel TYPE vbak-vgbel.
    SELECTION-SCREEN END OF BLOCK block1.
    selection-screen begin of block block3 with frame title text-003.
    parameters: p_billed RADIOBUTTON GROUP r1,
    p_delvd RADIOBUTTON GROUP r1 default 'X',
    p_all RADIOBUTTON GROUP r1.
    selection-screen end of block block3.
    *& Include ZSD_PFGENERATEE01
    START-OF-SELECTION.
    PERFORM read_report.
    END-OF-SELECTION.
    SET PF-STATUS 'STAT1000'.
    IF it_vbpos[] IS INITIAL.
    MESSAGE s999(z001) WITH 'No Data Selected for this criteria'.
    ELSE.
    PERFORM show_report.
    ENDIF.
    *& List Events
    AT USER-COMMAND.
    CASE sy-ucomm.
    WHEN 'SELE'.
    LOOP AT it_report INTO wa_report.
    wa_report-mark = 'X'.
    MODIFY it_report FROM wa_report.
    ENDLOOP.
    PERFORM show_report.
    WHEN 'DSEL'.
    LOOP AT it_report INTO wa_report.
    wa_report-mark = ''.
    MODIFY it_report FROM wa_report.
    ENDLOOP.
    PERFORM show_report.
    ENDCASE.
    AT LINE-SELECTION.
    DO.
    READ LINE sy-index FIELD VALUE wa_report-mark wa_report-vbeln
    wa_report-vbdel.
    IF sy-subrc NE 0.
    EXIT.
    ELSE.
    CALL FUNCTION 'CONVERSION_EXIT_ALPHA_INPUT'
    EXPORTING
    input = wa_report-vbeln
    IMPORTING
    output = wa_report-vbeln.
    CALL FUNCTION 'CONVERSION_EXIT_ALPHA_INPUT'
    EXPORTING
    input = wa_report-vbdel
    IMPORTING
    output = wa_report-vbdel.
    READ TABLE it_report INTO wa_sel
    WITH KEY vbeln = wa_report-vbeln.
    IF sy-subrc EQ 0.
    wa_sel-mark = wa_report-mark.
    MODIFY it_report FROM wa_sel INDEX sy-tabix.
    ENDIF.
    ENDIF.
    ENDDO.
    REFRESH: it_vbeln.
    LOOP AT it_report INTO wa_report WHERE mark EQ 'X'.
    CASE 'X'.
    WHEN p_rdff.
    wa_vbeln = wa_report-vbdel.
    WHEN p_rdos.
    wa_vbeln = wa_report-vbeln.
    ENDCASE.
    APPEND wa_vbeln TO it_vbeln.
    ENDLOOP.
    SORT it_vbeln BY vbeln.
    DELETE ADJACENT DUPLICATES FROM it_vbeln.
    IF NOT it_vbeln[] IS INITIAL.
    PERFORM process_vf01.
    ENDIF.
    *& Include ZSD_PFGENERATEF01
    *& Form read_report
    Routine to read applicable orders from database
    FORM read_report.
    DATA: lwa_lips TYPE lips,
    lc_vbeln TYPE vbrk-vbeln.
    Retrieve sales orders based on selection criteria where billing doc has not been
    created for the delivery yet
    REFRESH: it_vbeln, it_vbpos, it_report.
    Select into table based on Onsite/Fixed Facility
    CASE 'X'.
    WHEN p_rdff.
    changed for performance reasons (i.e. time-out)
    k~vgbel is not in it_vbpos but was in select statment ?
    SELECT vbap~werks vbak~audat vbak~auart vbak~kunnr AS kunag
    vbak~vbeln vbap~posnr
    INTO CORRESPONDING FIELDS OF TABLE it_vbpos
    FROM vbak INNER JOIN vbap
    ON vbak~mandt = vbap~mandt
    AND vbak~vbeln = vbap~vbeln
    WHERE vbap~werks IN s_werks
    AND vbak~vdatu IN s_vdatu
    AND vbak~vkorg in (cns_vkorg,cns_vkorg_US)
    AND vbap~oid_ship IN s_kunnr
    AND vbak~kunnr IN s_kunag
    AND vbak~auart IN s_auart
    AND ( vbak~auart = 'ZWP' or vbak~auart = 'ZIF' or
    vbak~auart = 'ZCT' or vbak~auart = 'ZTM' or
    vbak~auart = 'ZOIL' ).
    IF SY-SUBRC = 0.
    SELECT vgbel vgpos vbeln posnr FROM lips
    INTO CORRESPONDING FIELDS OF TABLE it_vbpos_temp
    FOR ALL ENTRIES IN it_vbpos
    WHERE vgbel = it_vbpos-vbeln
    AND vgpos = it_vbpos-posnr
    %_hints oracle 'index ("LIPS" "LIPS~Z01")'.
    SORT it_vbpos_temp by vgbel vgpos.
    LOOP AT it_vbpos.
    READ TABLE it_vbpos_temp
    WITH KEY vgbel = it_vbpos-vbeln vgpos = it_vbpos-posnr
    BINARY SEARCH.
    IF SY-SUBRC = 0.
    it_vbpos-vbdel = it_vbpos_temp-vbeln.
    it_vbpos-psdel = it_vbpos_temp-posnr.
    modify it_vbpos.
    ENDIF.
    ENDLOOP.
    ENDIF.
    WHEN p_rdos.
    SELECT k~vbeln p~posnr k~kunnr AS kunag k~audat k~auart p~werks k~vgbel
    INTO CORRESPONDING FIELDS OF TABLE it_vbpos
    FROM vbak AS k INNER JOIN vbap AS p ON k~vbeln = p~vbeln
    WHERE p~werks IN s_werks AND k~vdatu IN s_vdatu AND
    k~vkorg in (cns_vkorg,cns_vkorg_US) AND "DEVK903521
    k~vgbel EQ p_vgbel AND
    k~kunnr IN s_kunag AND k~auart IN s_auart AND
    p~oid_ship IN s_kunnr.
    ENDCASE.
    Determine if delivery has been billed out, if not can create PF Invoice - CHANGED
    LOOP AT it_vbpos INTO wa_vbpos.
    Check Ship-to in
    SELECT SINGLE kunnr INTO wa_vbpos-kunsh FROM vbpa
    WHERE parvw EQ cns_parsh AND vbeln EQ wa_vbpos-vbeln.
    IF sy-subrc NE 0.
    DELETE TABLE it_vbpos FROM wa_vbpos.
    CONTINUE.
    ENDIF.
    Check for Bill-to
    select single kunnr into wa_vbpos-kunre from vbpa
    where parvw eq cns_parre and vbeln eq wa_vbpos-vbeln
    and kunnr in s_kunre.
    IF sy-subrc NE 0.
    DELETE TABLE it_vbpos FROM wa_vbpos.
    CONTINUE.
    ENDIF.
    Get Partner Texts
    SELECT SINGLE name1 INTO wa_vbpos-name1_ag FROM kna1
    WHERE kunnr EQ wa_vbpos-kunag.
    SELECT SINGLE name1 INTO wa_vbpos-name1_sh FROM kna1
    WHERE kunnr EQ wa_vbpos-kunsh.
    SELECT SINGLE name1 INTO wa_vbpos-name1_re FROM kna1
    WHERE kunnr EQ wa_vbpos-kunre.
    CASE 'X'.
    WHEN p_rdff.
    IF p_delvd = 'X'.
    optimized for performance reasons i.e. time-out
    Check if delivery has been billed out
    SELECT SINGLE k~vbeln INTO lc_vbeln
    FROM vbrp AS p INNER JOIN vbrk AS k ON p~vbeln = k~vbeln
    WHERE p~vgtyp EQ cns_vgtyp AND p~vgbel EQ wa_vbpos-vbdel AND
    p~vgpos EQ wa_vbpos-psdel AND k~vbtyp EQ cns_intyp AND
    k~fksto NE 'X'.
    refresh: it_vbrp, it_vbrk.
    select vbeln from vbrp
    into corresponding fields of table it_vbrp
    where vgtyp = cns_vgtyp and vgbel = wa_vbpos-vbdel
    and vgpos = wa_vbpos-psdel
    %_hints oracle 'index ("VBRP" "VBRP~Z01")'.
    if sy-subrc = 0.
    sort it_vbrp by vbeln.
    delete adjacent duplicates from it_vbrp comparing vbeln.
    select vbeln from vbrk
    into corresponding fields of table it_vbrk
    for all entries in it_vbrp
    where vbeln = it_vbrp-vbeln
    and vbtyp = cns_intyp and fksto 'X'.
    IF sy-subrc EQ 0.
    DELETE TABLE it_vbpos FROM wa_vbpos.
    CONTINUE.
    ENDIF.
    endif.
    ELSEIF p_billed = 'X'.
    Check if delivery hasn't been billed out
    SELECT SINGLE k~vbeln INTO lc_vbeln
    FROM vbrp AS p INNER JOIN vbrk AS k ON p~vbeln = k~vbeln
    WHERE p~vgtyp EQ cns_vgtyp AND p~vgbel EQ wa_vbpos-vbdel AND
    p~vgpos EQ wa_vbpos-psdel AND k~vbtyp EQ cns_intyp AND
    k~fksto NE 'X'.
    refresh: it_vbrp, it_vbrk.
    select vbeln from vbrp
    into corresponding fields of table it_vbrp
    where vgtyp = cns_vgtyp and vgbel = wa_vbpos-vbdel
    and vgpos = wa_vbpos-psdel
    %_hints oracle 'index ("VBRP" "VBRP~Z01")'.
    if sy-subrc = 0.
    sort it_vbrp by vbeln.
    delete adjacent duplicates from it_vbrp comparing vbeln.
    select vbeln from vbrk
    into corresponding fields of table it_vbrk
    for all entries in it_vbrp
    where vbeln = it_vbrp-vbeln
    and vbtyp = cns_intyp and fksto 'X'.
    IF sy-subrc NE 0.
    DELETE TABLE it_vbpos FROM wa_vbpos.
    CONTINUE.
    ENDIF.
    endif.
    ENDIF.
    WHEN p_rdos.
    IF p_delvd = 'X'.
    Check if order has been billed out
    SELECT SINGLE * FROM vbrp
    WHERE vbeln EQ wa_vbpos-vbeln AND
    vgpos EQ wa_vbpos-posnr.
    IF sy-subrc EQ 0.
    DELETE TABLE it_vbpos FROM wa_vbpos.
    CONTINUE.
    ENDIF.
    ELSEIF p_billed = 'X'.
    Check if delivery hasn't been billed out
    SELECT SINGLE k~vbeln INTO lc_vbeln
    FROM vbrp AS p INNER JOIN vbrk AS k ON pvbeln = kvbeln
    WHERE pvgtyp EQ cns_vgtyp AND pvgbel EQ wa_vbpos-vbdel AND
    pvgpos EQ wa_vbpos-psdel AND kvbtyp EQ cns_intyp AND
    k~fksto NE 'X'.
    refresh: it_vbrp, it_vbrk.
    select vbeln from vbrp
    into corresponding fields of table it_vbrp
    where vgtyp = cns_vgtyp and vgbel = wa_vbpos-vbdel
    and vgpos = wa_vbpos-psdel
    %_hints oracle 'index ("VBRP" "VBRP~Z01")'.
    if sy-subrc = 0.
    sort it_vbrp by vbeln.
    delete adjacent duplicates from it_vbrp comparing vbeln.
    select vbeln from vbrk
    into corresponding fields of table it_vbrk
    for all entries in it_vbrp
    where vbeln = it_vbrp-vbeln
    and vbtyp = cns_intyp and fksto 'X'.
    IF sy-subrc NE 0.
    DELETE TABLE it_vbpos FROM wa_vbpos.
    CONTINUE.
    ENDIF.
    endif.
    ENDIF.
    ENDCASE.
    MOVE-CORRESPONDING wa_vbpos TO wa_report.
    APPEND wa_report TO it_report.
    MODIFY it_vbpos FROM wa_vbpos.
    ENDLOOP.
    if 'onsite field summary', then process by release sales orders
    IF p_rdos = 'X'.
    sort it_report by vbeln.
    delete adjacent duplicates from it_report comparing vbeln.
    else.
    SORT it_report BY werks name1_ag name1_sh vbeln.
    DELETE ADJACENT DUPLICATES FROM it_report.
    endif.
    SORT it_report BY name1_sh werks name1_ag vbeln.
    ENDFORM. " read_report
    *& Form process_vf01
    Call transaction VF01 and fill screen table with order values
    FORM process_vf01.
    DATA: ln_index(2) TYPE n,
    lc_field(20) TYPE c,
    lc_fkart TYPE vbrk-fkart,
    li_lines TYPE i,
    lc_msgtxt(99) TYPE c,
    lwa_bdcoptions TYPE ctu_params,
    lwa_mess LIKE LINE OF it_bdcmess.
    REFRESH: it_bdcmess.
    lwa_bdcoptions-dismode = cns_mode.
    lwa_bdcoptions-updmode = cns_upd.
    CASE 'X'.
    WHEN p_rdff.
    lc_fkart = cns_fkff.
    WHEN p_rdos.
    lc_fkart = cns_fkos.
    ENDCASE.
    REFRESH: bdc_tab.
    PERFORM update_bdc USING: 'X' 'SAPMV60A' '0102',
    ' ' 'BDC_CURSOR' 'RV60A-FKART',
    ' ' 'RV60A-FKART' lc_fkart,
    ' ' 'BDC_OKCODE' '/00'.
    LOOP AT it_vbeln INTO wa_vbeln.
    ln_index = sy-tabix.
    Up to the second delivery of the BDC add the Delivery to the screen, after that click the More Documents for every entry. logic changed for DEVK902353
    CASE ln_index.
    WHEN 1.
    CONCATENATE 'KOMFK-VBELN' '(' ln_index ')' INTO lc_field.
    PERFORM update_bdc USING: ' ' lc_field wa_vbeln.
    WHEN 2 OR 3.
    IF p_rdos 'X'.
    CONCATENATE 'KOMFK-VBELN' '(' ln_index ')' INTO lc_field.
    PERFORM update_bdc USING: ' ' lc_field wa_vbeln,
    'X' 'SAPMV60A' '0102',
    ' ' 'BDC_OKCODE' 'FKAN'..
    ELSE.
    CONCATENATE 'KOMFK-VBELN' '(' ln_index ')' INTO lc_field.
    PERFORM update_bdc USING: ' ' lc_field wa_vbeln.
    ENDIF.
    WHEN OTHERS.
    If p_rdos 'X'.
    CONCATENATE 'KOMFK-VBELN' '(2)' INTO lc_field.
    PERFORM update_bdc USING: ' ' lc_field wa_vbeln,
    'X' 'SAPMV60A' '0102',
    ' ' 'BDC_OKCODE' 'FKAN'.
    endif.
    ENDCASE.
    ENDLOOP.
    VF01 will go to a different screen if only one line selected
    DESCRIBE TABLE it_vbeln LINES li_lines.
    IF li_lines EQ 1.
    PERFORM update_bdc USING: 'X' 'SAPMV60A' '0104',
    ' ' 'BDC_OKCODE' '=SICH'.
    ELSE.
    PERFORM update_bdc USING: 'X' 'SAPMV60A' '0102',
    ' ' 'BDC_OKCODE' '=SICH'.
    ENDIF.
    CALL TRANSACTION 'VF01' USING bdc_tab OPTIONS FROM lwa_bdcoptions
    MESSAGES INTO it_bdcmess.
    WRITE: / 'BDC Messages:'.
    SKIP.
    LOOP AT it_bdcmess INTO lwa_mess.
    CALL FUNCTION 'RH_MESSAGE_GET'
    EXPORTING
    arbgb = 'VF'
    msgnr = lwa_mess-msgnr
    msgv1 = lwa_mess-msgv1
    msgv2 = lwa_mess-msgv2
    msgv3 = lwa_mess-msgv3
    msgv4 = lwa_mess-msgv4
    IMPORTING
    msgtext = lc_msgtxt
    EXCEPTIONS
    message_not_found = 1
    OTHERS = 2.
    WRITE: /5 lc_msgtxt.
    ENDLOOP.
    ENDFORM. " process_vf01
    form update_bdc *
    subroutine to add the data to the bdc table for trans. vf01 *
    FORM update_bdc USING dynpro field content.
    CLEAR bdc_tab.
    IF dynpro EQ 'X'.
    bdc_tab-program = field.
    bdc_tab-dynpro = content.
    bdc_tab-dynbegin = 'X'.
    ELSE.
    bdc_tab-fnam = field.
    bdc_tab-fval = content.
    ENDIF.
    APPEND bdc_tab.
    ENDFORM. "UPDATE_BDC
    *& Form show_report
    Report to Display Available Orders on Screen
    FORM show_report .
    DATA: l_idx TYPE i.
    WRITE: / 'Available Orders/Deliveries for Plant:'.
    LOOP AT s_werks.
    WRITE: s_werks-low.
    ENDLOOP.
    SKIP.
    FORMAT INTENSIFIED ON COLOR COL_HEADING.
    WRITE: /5 text-h01, text-h02.
    CASE 'X'.
    WHEN p_rdff.
    WRITE: text-h06.
    ENDCASE.
    WRITE: text-h03, text-h04, text-h05, text-h07,
    / sy-uline.
    FORMAT INTENSIFIED OFF COLOR OFF.
    l_idx = 0.
    LOOP AT it_report INTO wa_report.
    IF l_idx EQ 0.
    FORMAT COLOR COL_NORMAL INTENSIFIED ON.
    l_idx = 1.
    ELSE.
    FORMAT COLOR COL_NORMAL INTENSIFIED OFF.
    l_idx = 0.
    ENDIF.
    WRITE: / wa_report-mark AS CHECKBOX,
    wa_report-auart UNDER text-h01,
    wa_report-vbeln UNDER text-h02.
    CASE 'X'.
    WHEN p_rdff.
    WRITE: wa_report-vbdel UNDER text-h06.
    ENDCASE.
    WRITE: wa_report-audat UNDER text-h03,
    wa_report-name1_ag UNDER text-h04,
    wa_report-name1_sh UNDER text-h05,
    wa_report-name1_re under text-h07.
    HIDE: wa_report-mark, wa_report-vbeln, wa_report-vbdel.
    ENDLOOP.
    ENDFORM. " show_report
    Thanks for your kind help.
    Aarav.

    Hi, Anne-Marie;
    You may be running into a common issue that is docuemented here:
    [SelectionFormula|https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/oss_notes_boj/sdn_oss_boj_erq/sap(bD1lbiZjPTAwMQ==)/bc/bsp/spn/scn_bosap/notes%7B6163636573733d36393736354636443646363436353344333933393338323636393736354637333631373036453646373436353733354636453735364436323635373233443330333033303331333233303334333833393335%7D.do]
    Regards,
    Jonathan
    Edited by: Jonathan Parminter on Mar 16, 2009 8:03 AM

  • How to sync clock of Cisco ASA 5505 from NTP Server on internet

    Hi there!
    i've setup a site, with cisco ASA 5505. It has public ip also.
    i want to sync the clock of firewall from on ntp server on internet, or with internal domain controller that is inside LAN.
    The firewall has public IP also.
    how can i do this?
    Regards!

    Hello Lasandro,
    This should do it!
    http://www.cisco.com/en/US/docs/security/asa/asa84/configuration/guide/basic_hostname_pw.html#wp1236530
    Looking for some Networking Assistance? 
    Contact me directly at [email protected]
    I will fix your problem ASAP.
    Cheers,
    Julio Carvajal Segura
    http://laguiadelnetworking.com

Maybe you are looking for

  • Boot Camp,installing windows 7 on hd bay 2 mac OS on hd bay 1, and only 0 and 1 are listed

    I know this is silly but, I have a seperate HD in bay #2 its formated NTFS ready to go for the Windows 7 install, my Mac OS X Lion HD is in bay #1, once booted into Windows and I begin to install PC OS, Windows askes me which drive. HD 0 or HD 1 now

  • Problem with consolidation

    Hello Experts ! I'm working with intercompany addon. When i try send data from branch company into consolidation company i get error meassege : exception userdef="false" type="hard"><message>com.sap.b1i.xcellerator.XcelleratorException: XCE001 Nested

  • How to customize sequence setting

    Hi, It is probably a very basic question but cannot find how to customize the sequence settings. When I created new project, I chose NTCS setting. The movie source I used is 1280x960. When I drag it in the sequence window, it doesn't fit in the forma

  • Problems with DNG codec

    I have installed the DNG codec on my laptop. Restarted, but afterwards couldn't see any thumbnails for my DNGs (DNGs created with the Adobe DNG convertor from an EOS 10D, and also DNGs created with CaptureOne 4, same camera). On top of that, thumbnai

  • OnLoad Error

    Hello Forum, I am getting the error message "onLoad m_movie = null" when my movie loads on the stage. I am using Action Script 3, and Flash CS3 Professioal. I get the error, but the movie loads and plays, how can I get rid of this error message? My p