Code for internal project

Dear All,
I have been given a project in which we have to enter  the Co Code, period, posting date & Posting year at the selection screen. Upon entering these values the report should get displayed showing the Co Code(which is being entered), bus area(for that co code), G/L account number and amount.
The values of G/L account & amount for that particular co code & bus area should be taken from the transaction code F.01, and we have to take only nodes U20 & U472 into consideration.
Then take node J(expenditure) from F.01 & take the net amount by subtracting from the values of U20 & U472.
If any body has the idea about how to take the node values & do the calculation, plz tell me.
waiting for ur replies eagerly.
reg,
nishu

useful Tables are BKPF+BSEG, If u are using BSEG u may face Performance Problems , So let me know more details abt this requirement.
Regards
Prabhu

Similar Messages

  • SSD code for internal bank

    Making customizing for automatic payment, i have error F0275 "no SSD code for internal bank" when generating. Following the link to customizing i enter in the internal bank setting. But what is the field to fill? i dont found fields with SSD description.
    thanks
    Davide

    Found!
    It is necessary fill the field T012D-DTAWS; in Italy it isn't used but in Germany (we working on german subsidiary) is necessary.

  • I have the code for this project, but how do I add this user-defined exception that I want?

    For a final VB.NET project, I have to write a project that ascends and descends a word or number chosen by the user. 
    This is what I want to do:
    I want to add a user defined error that will stop the program and tell the user to input a value into the program if they did not. I do not know how to do this. I think I would use a Null Reference exception. 
    Here is the code for the project:
    Module Module1 'VB.NET Final Project 12/30/14 . Option 3: Write a program to run two separate threads printing numbers or words (It can do both) in ascending and descending orders. The words have to be given by the user.
        Dim Ascending As System.Threading.Thread = New Threading.Thread(AddressOf PrintAscend) 'Two threads are declared,
        Dim Descending As System.Threading.Thread = New Threading.Thread(AddressOf PrintDescend) 'ascending and descending 
        Sub Main()
            Console.WriteLine("VB.NET Final Project 12/30/14 . Option 3: Write a program to run two separate threads printing numbers or words (It can do both) in ascending and descending orders. The words have to be given by the user.")
            Ascending.Start() 'starts first thread
        End Sub
        Sub PrintAscend()
            Console.WriteLine("Please type in a word to print in ascending order.") 'the program asks for users to input a word
            Dim input As String 'as a string
            input = Console.ReadLine()
            For i As Integer = 0 To input.Length - 1
                Console.WriteLine(input.Chars(i)) 'prints the letters of the word in ascending order 
            Next
            If Ascending.ThreadState = Threading.ThreadState.Running Then Descending.Start() 'starts second thread
        End Sub
        Sub PrintDescend()
            Console.WriteLine("Please type in a word or number to print in descending order.")
            Dim input As String
            input = Console.ReadLine() 'user inputs the word that he wants
            For i As Integer = input.Length - 1 To 0 Step -1
                Console.WriteLine(input.Chars(i)) 'prints the letters of the word in descending order 
            Next
            Console.WriteLine("Please press enter key to close the program, and thanks for your time.")
            Console.ReadKey()
        End Sub
    End Module

    Dejavu again?
    Is your teacher instructing you to use a User Defined
    error or do you just want to accept the user input, check it, give a message, and repeat?
    It seems to me you are missing the basic program loop? This example checks the user input and then performs an action, then repeats. If the user enters Quit execution stops. Is that what you want to do?
    Module Module1
    Sub Main()
    Console.Title = "Make a Decision"
    Dim theline As String = ""
    Do While theline <> "Quit"
    Console.WriteLine(vbLf & "Enter a or b." & vbLf)
    theline = Console.ReadLine()
    Select Case theline
    Case "a", "A"
    Console.WriteLine(vbLf & ">> Result: You entered A.")
    Console.WriteLine(vbLf & " ** Output Complete **" & vbLf)
    Case "b", "B"
    Console.WriteLine(vbLf & ">> Result: You entered B.")
    Console.WriteLine(vbLf & " ** Output Complete **" & vbLf)
    Case Else
    Console.WriteLine(vbLf & """" & theline & """ is invalid.")
    End Select
    Loop
    End Sub

  • BIC code for International bank transfers

    Could someone tell me if in SAP exsist a database of BIC code for International bank transfers?
    Thanks

    Hi Umberto Gandalf,
    you find the BIC codes in table BNKA - it's called SWIFT there.
    Regards,
    Jörg Racz

  • Using aggregation in ABAP code for internal table

    I have written following code to get cumulative amount on a date but i have to hit database for each record.
    Can't I use some function similar to SUM for doing the same thing on internal table??It would increase my performance.
    code is:
        SELECT SUM( DEB_CRE_LC ) FROM /BIC/AZFIAR_O500
         INTO LV_BALMONTH   WHERE   DEBITOR = LV_DEBITOR AND
        CALMONTH GE LV_STARTMONTH AND CALMONTH  LE LV_LASTCALMON.
    I want to put  ZFIAR data to internal table and read and do SUM thing..is it possible?? withotut usiong loop.
    regards,
    rakesh

    Hi Rajesh,
    types : begin of ty_tab,
                date type dats,
                DEB_CRE_LC   type .....     " delare type & is the filed need to summerized
                end of ty_tab,
    data: itab type standard table of ty_tab.
    SELECT date
                  SUM( DEB_CRE_LC )  as DEB_CRE_LC  FROM /BIC/AZFIAR_O500
                  INTO corresponding fields of itab
                  where CALMONTH GE LV_STARTMONTH AND CALMONTH LE LV_LASTCALMON
                  group by date.   " date is the field available in your ODS/transparent table
    simulate the above code in your program...
    Hope this will work..

  • Problem with 2 codes for same project

    i need help please, i have two C++ (colser to being C codes) on the same project,but VS does not allows them both to build solution,i asked my teacher and she told me that the VS running them together  and told me to run the separately,someone
    can please tell me how to do so? i need to do that until tomorrow`s night,please answer that ASAP. thanks for any help

    i need help please, i have two C++ (colser to being C codes) on the same project,but VS does not allows them both to build solution,i asked my teacher and she told me that the VS running them together  and told me to run the separately,someone
    can please tell me how to do so? i need to do that until tomorrow`s night,please answer that ASAP. thanks for any help
    A project can only have one main() function. If you have two, then name them (say) main1() and main2(). Then do something like
    int main()
    main1();
    main2();
    return 0;
    Or you can run just one of them by commenting out the call to the other.
    If something like this does not work for you, then you need to explain more about your code.
    David Wilkinson | Visual C++ MVP

  • Using CRM opportunities for recording internal project bids - pros/cons?

    We use CRM Opportunities for recording project pursuit of externally funded projects and it works well for this. We have one sales cycle with associated statuses and phases.
    I am considering using Opportunities to record bids for internal projects and funding as this also goes through an approval process. I think an alternative sales cycle with different phases and status may be needed as the transaction is currently highly tailored for external needs.
    Alternatively to use another version of Opportunities with a different field selection. I'd be interested in views or lessons from your own experience

    We use CRM Opportunities for recording project pursuit of externally funded projects and it works well for this. We have one sales cycle with associated statuses and phases.
    I am considering using Opportunities to record bids for internal projects and funding as this also goes through an approval process. I think an alternative sales cycle with different phases and status may be needed as the transaction is currently highly tailored for external needs.
    Alternatively to use another version of Opportunities with a different field selection. I'd be interested in views or lessons from your own experience

  • [Competition] International Project CARS Challenge

    It's time for another PlayStation Plus International Challenge!
    Prepare to race the clock and your fellow challengers, the ultimate test of speed and skill with Project CARS!
    Your opponents will be:
       German forum
     Polish forum
     Spanish forum
     French forum
        Italian forum
        Russian forum
        English forum
        Portuguese forum
        Greek forum
        Dutch forum
    - What you need to know:
    For this challenge, we will provide a total of 6 custom tracks over the course of 6 weeks. There will also be a prize for the fastest time within our community in each track! That's right - we will offer 6 prizes, one for each of our most skilled drivers.
    On top of that, at the end of the 6 tracks, we will add up everyone's points and the top 16 with the highest score will be qualified for the European Grand Final for a multiplayer race to determine the Project CARS European Champion! Make sure to participate in each of our tracks for the best chance at earning a place in the final. 
    The champion will earn their place in our special European Champions Leaderboard:
    http://community.eu.playstation.com/t5/PS-Plus/European-Champions-Leaderboard/td-p/23310093 
    More information about the qualification rules:
    If there are multiple players tied for the 16th position, the tie-breakers will be as follows in this order:
    - Tie-breaker 1: Highest number of tracks ran in the competition
    - Tie-breaker 2: We will add the times from each participant for each of their tracks, and the fastest time wins
    - Tie-breaker 3: If multiple players still have the same time among the 6 tracks, we will randomly pick the qualified player(s)
    - How many points will you win at the end of a track?
    For each track we will be awarding points for each placement, as illustrated below:
    1st place - 27 points
    2nd place - 22 points
    3rd place - 18 points
    4th place - 15 points
    5th place - 13 points
    6th place - 12 points
    7th place - 11 points
    8th place - 10 points
    9th place - 9 points
    10th place - 8 points
    11th place - 7 points
    12th place - 6 points
    13th place - 5 points
    14th place - 4 points
    15th place - 3 points
    16th place - 2 points
    17th place and onwards - 1 point
    This leaderboard will be the European leaderboard - players from all over Europe will be directly competing with you!
    - How do I participate?
    For each of our custom tracks, you will be required to play the track in Time Trial Mode, and post a screenshot of your best lap time. We will organise challengers into a leaderboard over the course of the week the track is running, so you can keep an eye on your competitors' times. Please note that you can submit a screenshot/time as many times as you like, as we will only take into account your best time.
    The elements we will be looking at are in red. Please note that we expect this specific type of screenshot, and other screenshots may be disregarded. Please also note that we will be looking at the "Lap" time, not the "Best Lap", as we want to see who does best within the time awarded.
    Taking a Screenshot with your PS4:
    After you have passed the finish line and you are satisfied with your lap time, press the options button to display your scoreboard, as in the example below. Then, press the 'Share' button on your Dualshock 4 controller, and upload the screenshot to social media or download it onto a USB stick. After retrieving the screenshot, post it on the forum and we'll add your name to the leaderboard!
    European Points Leaderboard
    Our first track:
    Mode: Time Trial
    Track Name: Dubai GP
    Car Type: Open Wheel
    Car Model: Formula B
    Track 1, Dubai GP Leaderboard - 13th of July - 20th of July
    Prize - MotoGP 15 (PS4)
    UK Winner - 
    The first track is now over! Here is our second track:
    Mode: Time Trial
    Track Name: Imola
    Car Type: GT
    Car Model: Pagani Zonda R
    Track 2, Imola Leaderboard - 20th of July - 27th of July
    Prizes - Full Auto 2: Battlelines (PS3), MX vs. ATV: Untamed (PS3) & Cars: Mater-national Championship (PS3)
    UK Winner - 
    The second track is now over! Here is our third track:
    Mode: Time Trial
    Track Name: Le Mans, 24h
    Car Type: Prototype
    Car Model: Audi R18 TDI
    Track 3, Le Mans 24h Leaderboard - 27th of July - 3rd of August
    Prize - Le Tour de France (PS4)
    UK Winner - 
    The third track is now over! Here is our fourth track:
    Mode: Time Trial
    Track Name: Brno
    Car Type: Touring
    Car Model: Renault Clio Cup
    Track 4, Brno Leaderboard - 3rd of August - 10th of August
    Prize - MX vs. ATV Supercross (PS3), NASCAR 09 (PS3), Juiced 2: Hot Import Nights (PS3)
    UK Winner - 
    The fourth track is now over! Here is our fifth track:
    Mode: Time Trial
    Track Name: Road America
    Car Type: Road
    Car Model: McLaren 12C
    Track 5, Road America Leaderboard - 10th of August - 17th of August
    Prize - Motorcycle Club (PS4)
    UK Winner - 
    The fifth track is now over! Here is our sixth and final track:
    Mode: Time Trial
    Track Name: Azure Circuit
    Car Type: Open Wheel
    Car Model: Formula A
    Track 6, Azure Circuit Leaderboard - 17th of August - 24th of August
    Prize - Voucher Code for Project CARS DLC
    I have read and understood the Terms & Conditions
    Personal data collected via this competition will be dealt with in accordance with our privacy policy: http://legaldoc.dl.playstation.net/ps3-eula/psn/e/e_privacy_en.html

    InsaneBirch wrote:
    - How do I participate?
    For each of our custom tracks, you will be required to play the track in Time Trial Mode, and post a screenshot of your best lap time. We will organise challengers into a leaderboard over the course of the week the track is running, so you can keep an eye on your competitors' times. Please note that you can submit a screenshot/time as many times as you like, as we will only take into account your best time.
    Section 7 of the "Specific Rules for “International Project CARS Challenge” Competition" states that "Each Entrant may only submit one (1) entry per Weekly Track and will only be eligible to win one (1) Prize per Weekly Track (as defined below)"
    Can you confirm which is correct?
    Also, there will be tracks where passing over the white line (deemed the 'track') will not invalidate lap times. As there is no way to verify whether one has abused the track 'limits', can we assume the laps submitted are correct as far as the game sees it?
    I have set a very competitve time but do not want to comment without confirmation of my first point above.
     You can post as many attempts as you wish. Only 1 of those (You're fastest) will count as the 1 valid entry.
    There is no way to tell if a driver has exceeded track limits, without a video. Which isn't required in the stated competition rules. Therefore, what the game deems the track, will count as as a valid time.

  • Missing Functionality -where do I set a budget for a Project?

    Budgeting for Projects is non - existent
    Budget for Profit and Loss for a particular project , How is it done ?
    Does not work , No facility to put in Budget for a project ?
    The report I am trying to run is:
    REPORTS>FINANCIAL>BUDGET REPORTS>Profit and Loss Statement Budget Report.Then go to Expanded and choose a PROJECT, say MailOrder.
    The result is that it will show the MailOrder project for the ACTUAL but it will show the whole company Turnover against the BUDGET column.
    This is because there is no place to set a budget for MailOrder Project in the first place. So the question is where do I set a budget for a Project?
    1 Budget setup screen - this has no facility to setup a budget for a PROJECT
    2.Budget Profit and Loss - this has the facility to run a PROJECT budget but the figures for the Budget cannot be right because they were not setup in the first place.
    PS MailOrder project is just an example.
    Version: SAP BUSINESS ONE 2007 A Patch Level 41
    Description of requirements: As above
    (Valid as of: (Date that this legal requirement is applicable) N/A
    Business needs: Customer cannot set the budget for a project and this effects their accounting.
    Examples: (Please describe a typical example, how the functionality should work.)
    Current Workaround: None.
    Proposed solution: Create a Project and then be able to set a Budget for it
    Edited by: Darpal Thiarha on May 14, 2008 10:34 AM

    Hi Darpal/Kerstin
    Please ignore my previous replies because I have now worked out why this idea will not work:
    Kerstins' idea is based on setting up new Nominal Codes for every Project and for Every Nominal Code in the Profit and Loss structure. Apart from the fact that this will create a messy Nominal Structure with hundreds of Nominal Codes, the main issue here is the way the Cost Of Goods Sold is structured. The logic of our Nominal Structure for Sales and Cost of Goods is based on Item/Item Groups and the Nature of these Items. In our case we sell Skin Care products under 3 Brands. Say Brand A, B and C
    So Brand A is summarised into one item Group and the ITEM GROUP is coded to Sales Nominal 20000 and the Cost of this group is coded to Nominal 30000. In Kertins suggestion, I would need to raise a Nominal Code 20001 for say Project Mail Order and 30001 for the Cost of Goods for Mail Order but this the Mail Order project is selling ALL our brands (A,B,C) - so you can see the problem here. You cannot use Nominal Codes for two different purposes and make it work. So the problem here is that my BRAND A summary will contain a Nominal with a Project Mail Order, that has SALES of Brand A,B,C. The Net effect will be that we will not be able to summarise anything in SALES and Cost of SALES in a logical way (Neither by Brand or By Project) and the Nominal Structure will be a mess.
    My conclusion is that SAP b1 Sales and Cost of Goods section demands certain logic when building the Nominal Codes, and this is based on the NATURE OF THE STOCK ITEM and trying to superimpose the PROJECT issue into this, will never work. In my view, the PROJECT issue needs to be sorted without involving New Nominal codes and the starting point would be in sorting out the SALES and COST of SALES and the project Budget for this.
    Please let me know if you need further illustration of the problem.

  • Determine of Tax Code for Country/Product Category - Table handling

    Dear Experts,
    in SRM 7.0, CS, i am facing the following requirement regarding tax codes:
    We have users from different countries using SRM. These different countries have different tax codes that are to be used for legal reasons.
    My question is, how i can achieve a system behaviour, by which in the shopping cart, the correct tax codes gets selected automatically, based on the country of the user, who is creating the shopping cart.
    Question 1:
    Is it correct to assume, that this requirement can be achieved by maintaining the "Determine of Tax Code for Country/Product Category" - Table?
    Q2:
    What is the purpose of the 1st column of the above mentioned table, "Domestic/International Indicator"? Can it be left blank?
    Q3:
    Is it possible to fill in the values for the field "Country" BUT to leave the field "Category ID" empty???The reason for asking it, that otherwise several hundreds entries would have to be maintaind manaully...
    Q4:
    From where in the shopping cart or ppoma settings is the system fetching the Country code, in order to be able to use it in the table? Is there any specific attribute maintenance that has to be taken care of, so the above mentioned table can be used (e.g. delivery address, including the country information)?
    Thank you very much for your help in understanding the topic.

    Hi
    Here are my responses to your questions:
    Question 1:
    Is it correct to assume, that this requirement can be achieved by maintaining the "Determine of Tax Code for Country/Product Category" - Table?
    Answer -  If you have a requirement where different countries have different tax codes, then you do need this confiugration. Otherwise Configuraiton in Enter Tax Code  are sufficient.
    Q2:
    What is the purpose of the 1st column of the above mentioned table, "Domestic/International Indicator"? Can it be left blank?
    Answer - Sometimes you have different codes for International and Domestic purchases for a product Category. IN those situations you can select Domestic/International field to differentiate btw tax codes. Otherwise this field can be left blank
    Q3:
    Is it possible to fill in the values for the field "Country" BUT to leave the field "Category ID" empty???The reason for asking it, that otherwise several hundreds entries would have to be maintaind manaully...
    Answer - No, if you enter country, then Category Id field is mandatory. You may enter * in case you dont have multiple backend systems. otherwise you will ve to ve individual entries for each category and backend system.
    Q4:
    From where in the shopping cart or ppoma settings is the system fetching the Country code, in order to be able to use it in the table? Is there any specific attribute maintenance that has to be taken care of, so the above mentioned table can be used (e.g. delivery address, including the country information)?
    Answer - It is picked up from the address of the user where is will receive goods. and Domestic/International will be decided based on Vendor address with reference to thta address.
    I hope my responses clarify your doubts.
    Regards
    Virender Singh

  • Line item display for Internal Order

    Hi All,
    What is the transaction code for  Internal Order line item display.
    Thanks,
    Misbah

    Hi,
    Its KOB1 to KOB4.
    Rgds.

  • What should be my code for EDIT, if my codes for ADD is just like this?

    Private Sub BT_ADD_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles BT_ADD.Click
    If CB_link.Checked = True Then
    Dim dt As New DataTable
    dt.Columns.Add("Link", GetType(String))
    dt.Columns.Add("Type", GetType(String))
    dt.Columns.Add("Time/Duration", GetType(String))
    dt.Columns.Add("Repetition", GetType(String))
    Dim currentLink As String
    Dim currentTime As String
    Dim currentInterval As Integer
    Dim currentRepetition As String
    If RB_Time.Checked = True Then
    Dim d1 As DateTime = DTP_Now.Value
    Dim d2 As DateTime = DTP_Now1.Value
    Dim result As TimeSpan = d1.Subtract(d2)
    Dim days As Integer = result.TotalDays
    currentLink = TB_link.Text
    currentTime = days
    currentRepetition = "Today"
    If TimeOption(currentInterval) = True Then
    dt.Rows.Add(currentLink, True, currentInterval, currentRepetition)
    Else
    dt.Rows.Add(currentLink, False, currentTime, currentRepetition)
    End If
    DGV_running.DataSource = dt
    DGV_running.Columns(1).Visible = False
    DGV_running.Columns(0).Width = 300
    DGV_running.Columns(2).Width = 150
    DGV_running.Columns(3).Width = 150
    If RB_Daily.Checked = True Then
    'Dim d1 As DateTime = DTP_Now.Value
    'Dim d2 As DateTime = DTP_Now1.Value
    'Dim result As TimeSpan = d1.Subtract(d2)
    'Dim days As Integer = result.TotalDays
    currentLink = TB_link.Text
    currentTime = days
    currentRepetition = "Daily"
    If TimeOption(currentInterval) = True Then
    dt.Rows.Add(currentLink, True, currentInterval, currentRepetition)
    Else
    dt.Rows.Add(currentLink, False, currentTime, currentRepetition)
    End If
    End If
    If RB_Weekly.Checked = True Then
    'Dim d1 As DateTime = DTP_Now.Value
    'Dim d2 As DateTime = DTP_Now1.Value
    'Dim result As TimeSpan = d1.Subtract(d2)
    'Dim days As Integer = result.TotalDays
    currentLink = TB_link.Text
    currentTime = days
    currentRepetition = "Weekly"
    If TimeOption(currentInterval) = True Then
    dt.Rows.Add(currentLink, True, currentInterval, currentRepetition)
    Else
    dt.Rows.Add(currentLink, False, currentTime, currentRepetition)
    End If
    End If
    If RB_Monthly.Checked = True Then
    'Dim d1 As DateTime = DTP_Now.Value
    'Dim d2 As DateTime = DTP_Now1.Value
    'Dim result As TimeSpan = d1.Subtract(d2)
    'Dim days As Integer = result.TotalDays
    currentLink = TB_link.Text
    currentTime = days
    currentRepetition = "Monthly"
    If TimeOption(currentInterval) = True Then
    dt.Rows.Add(currentLink, True, currentInterval, currentRepetition)
    Else
    dt.Rows.Add(currentLink, False, currentTime, currentRepetition)
    End If
    End If
    ElseIf RB_Interval.Checked = True Then
    currentLink = TB_link.Text
    currentInterval = NUD_interval.Text
    currentRepetition = "N/A"
    If TimeOption(currentInterval) = True Then
    dt.Rows.Add(currentLink, True, currentInterval, currentRepetition)
    Else
    dt.Rows.Add(currentLink, False, currentTime, currentRepetition)
    End If
    DGV_running.DataSource = dt
    DGV_running.Columns(1).Visible = False
    DGV_running.Columns(0).Width = 300
    DGV_running.Columns(2).Width = 150
    DGV_running.Columns(3).Width = 150
    End If
    End If
    End Sub
    Here's the GUI of my project.
    This project will call a website to be loaded.

    Imports System.IO
    Imports System.Text
    Public Class frm_main
    Public currentRunningTime As Integer = 0
    Private Sub BT_ADD_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles BT_ADD.Click
    If CB_link.Checked = True Then
    Dim dt As New DataTable
    dt.Columns.Add("Link", GetType(String))
    'dt.Columns.Add("Type", GetType(String))
    dt.Columns.Add("Time/Duration", GetType(String))
    dt.Columns.Add("Repetition", GetType(String))
    Dim currentLink As String
    Dim currentTime As String
    Dim currentInterval As Integer
    Dim currentRepetition As String
    If RB_Time.Checked = True Then
    Dim d1 As DateTime = DTP_Now.Value
    Dim d2 As DateTime = DTP_Now1.Value
    Dim result As TimeSpan = d1.Subtract(d2)
    Dim days As Integer = result.TotalDays
    currentLink = TB_link.Text
    currentTime = days
    currentRepetition = "Today"
    'currentInterval = DTP_Now.Text
    'If TimeOption(currentInterval) = True Then
    ' dt.Rows.Add(currentLink, True, currentInterval, currentRepetition)
    'Else
    dt.Rows.Add(currentLink, currentTime, currentRepetition)
    'End If
    DGV_running.DataSource = dt
    'DGV_running.Columns(1).Visible = True
    DGV_running.Columns(0).Width = 100
    DGV_running.Columns(1).Width = 90
    DGV_running.Columns(2).Width = 68
    If RB_Daily.Checked = True Then
    currentLink = TB_link.Text
    currentTime = days
    currentRepetition = "Daily"
    'currentInterval = DTP_Now1.Text
    'If TimeOption(currentInterval) = True Then
    ' dt.Rows.Add(currentLink, True, currentInterval, currentRepetition)
    'Else
    dt.Rows.Add(currentLink, currentTime, currentRepetition)
    'End If
    End If
    If RB_Weekly.Checked = True Then
    currentLink = TB_link.Text
    currentTime = days
    currentRepetition = "Weekly"
    'currentInterval = DTP_Now1.Text
    ' If TimeOption(currentInterval) = True Then
    ' dt.Rows.Add(currentLink, True, currentInterval, currentRepetition)
    ' Else
    dt.Rows.Add(currentLink, currentTime, currentRepetition)
    ' End If
    End If
    If RB_Monthly.Checked = True Then
    currentLink = TB_link.Text
    currentTime = days
    currentRepetition = "Monthly"
    'currentInterval = DTP_Now1.Text
    'If TimeOption(currentInterval) = True Then
    ' dt.Rows.Add(currentLink, True, currentInterval, currentRepetition)
    'Else
    dt.Rows.Add(currentLink, currentTime, currentRepetition)
    'End If
    End If
    ElseIf RB_Interval.Checked = True Then
    currentLink = TB_link.Text
    currentInterval = NUD_interval.Text
    currentRepetition = "N/A"
    'If TimeOption(currentInterval) = True Then
    dt.Rows.Add(currentLink, currentInterval, currentRepetition)
    'Else
    ' dt.Rows.Add(currentLink, False, currentTime, currentRepetition)
    'End If
    DGV_running.DataSource = dt
    'DGV_running.Columns(1).Visible = True
    DGV_running.Columns(0).Width = 100
    DGV_running.Columns(1).Width = 90
    DGV_running.Columns(2).Width = 68
    End If
    End If
    TB_link.Clear()
    CB_link.Checked = False
    RB_Time.Checked = False
    RB_Interval.Checked = False
    RB_Daily.Checked = False
    RB_Weekly.Checked = False
    RB_Monthly.Checked = False
    RB_Time.Enabled = False
    RB_Interval.Enabled = False
    RB_Daily.Enabled = False
    RB_Weekly.Enabled = False
    RB_Monthly.Enabled = False
    NUD_interval.Value = 0
    DTP_Now.Enabled = False
    DTP_Now1.Enabled = False
    End Sub
    Private Sub BT_EDIT_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles BT_EDIT.Click
    'Dim dt As New DataTable
    DGV_running.BeginEdit(selectAll:=True)
    'TB_link.Text = dt.Rows(0)("Link").ToString()
    TB_link.Text = DGV_running.Rows(0)("Link").ToString() 'Class "System.Windows.Forms.DAtaGridViewRow" cannot be indexed because it has no default property.
    End Sub
    Private Sub BT_DEL_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles BT_DEL.Click
    Dim dt As New DataTable
    DGV_running.DataSource = dt
    TB_link.Clear()
    dt.Rows.Clear()
    CB_link.Checked = False
    RB_Time.Checked = False
    RB_Interval.Checked = False
    RB_Daily.Checked = False
    RB_Weekly.Checked = False
    RB_Monthly.Checked = False
    RB_Time.Enabled = False
    RB_Interval.Enabled = False
    RB_Daily.Enabled = False
    RB_Weekly.Enabled = False
    RB_Monthly.Enabled = False
    NUD_interval.Enabled = False
    NUD_interval.Value = 0
    Timer1.Stop()
    End Sub
    Function TimeOption(ByVal interval As Integer)
    Dim result As Boolean = False
    If interval > 0 Then
    result = True
    Else
    result = False
    End If
    Return result
    End Function
    Sub CreateTimer(ByVal timerInterval As Integer)
    Dim newTimer As New Timer
    newTimer.Interval = timerInterval * 1000
    newTimer.Tag = DateTime.Now
    AddHandler newTimer.Tick, AddressOf TickHandler
    End Sub
    Sub TickHandler(ByVal sender As Object, ByVal e As EventArgs)
    Dim currTimer As Timer = DirectCast(sender, Timer)
    End Sub
    Private Sub BT_Stop_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles BT_Stop.Click
    Timer1.Stop()
    Dim CloseApp As String
    CloseApp = MsgBox("Do you want to EXIT this app?", MsgBoxStyle.YesNo, "Exiting")
    If CloseApp = vbYes Then
    Me.Close()
    Application.Exit()
    End
    Else
    Me.Refresh()
    TB_link.Clear()
    RB_Time.Checked = False
    RB_Interval.Checked = False
    RB_Daily.Checked = False
    RB_Weekly.Checked = False
    RB_Monthly.Checked = False
    RB_Time.Enabled = False
    RB_Interval.Enabled = False
    RB_Daily.Enabled = False
    RB_Weekly.Enabled = False
    RB_Monthly.Enabled = False
    NUD_interval.Value = 0
    End If
    End Sub
    Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
    If Not File.Exists("C:\phptrigger.txt") Then
    File.Create("C:\phptrigger.txt")
    End If
    Timer2.Interval = 1000
    Timer2.Enabled = True
    RB_Time.Enabled = False
    RB_Daily.Enabled = False
    RB_Weekly.Enabled = False
    RB_Monthly.Enabled = False
    RB_Interval.Enabled = False
    NUD_interval.Enabled = False
    DTP_Now.Enabled = False
    End Sub
    Private Sub Timer1_Tick(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Timer1.Tick
    currentRunningTime = currentRunningTime + 1
    Dim currentTime As String = DateTime.Now.ToString("hh:mm:ss tt")
    For Each row As DataGridViewRow In DGV_running.Rows
    If row.Cells(1).Value = "False" Then
    Dim sourcePath As String = row.Cells(0).Value
    Dim runTime As String = row.Cells(2).Value
    Dim dateRunTime As Date = CDate(runTime)
    Dim dateCurrentTime As Date = CDate(currentTime)
    If dateRunTime = dateCurrentTime Then
    Try
    My.Computer.Network.UploadFile("C:\phptrigger.txt", sourcePath & "/phptrigger.txt", "", "")
    Catch ex As Exception
    'MsgBox("Error: " & ex.ToString())
    End Try
    End If
    End If
    If row.Cells(1).Value = "True" Then
    Dim sourcePath As String = row.Cells(0).Value
    Dim intervalSeconds As Integer = row.Cells(2).Value
    If (currentRunningTime Mod intervalSeconds) = 0 Then
    Try
    My.Computer.Network.UploadFile("C:\phptrigger.txt", sourcePath & "/phptrigger.txt", "", "")
    Catch ex As Exception
    'MsgBox("Error: " & ex.ToString())
    End Try
    End If
    End If
    Next
    'MsgBox("The Link was SUCCESSFULLY loaded!")
    End Sub
    Private Sub BT_START_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles BT_START.Click
    Timer1.Start()
    'Dim headers = (From header As DataGridViewColumn In DGV_running.Columns.Cast(Of DataGridViewColumn)() _
    ' Select header.HeaderText).ToArray
    Dim rows = From row As DataGridViewRow In DGV_running.Rows.Cast(Of DataGridViewRow)() _
    Where Not row.IsNewRow _
    Select Array.ConvertAll(row.Cells.Cast(Of DataGridViewCell).ToArray, Function(c) If(c.Value IsNot Nothing, c.Value.ToString, ""))
    Using sw As New IO.StreamWriter("c:\link.txt")
    'sw.WriteLine(String.Join(",", headers))
    For Each r In rows
    sw.WriteLine(String.Join(",", r))
    Next
    End Using
    Process.Start("c:\link.txt")
    End Sub
    Private Sub Timer2_Tick(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Timer2.Tick
    Timer2.Interval = 1000
    Timer2.Enabled = True
    Label2.Text = Date.Now
    End Sub
    Private Sub RB_Time_CheckedChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles RB_Time.CheckedChanged
    RB_Daily.Enabled = True
    RB_Weekly.Enabled = True
    RB_Monthly.Enabled = True
    NUD_interval.Enabled = False
    DTP_Now.Enabled = True
    End Sub
    Private Sub RB_Interval_CheckedChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles RB_Interval.CheckedChanged
    NUD_interval.Enabled = True
    RB_Daily.Enabled = False
    RB_Weekly.Enabled = False
    RB_Monthly.Enabled = False
    End Sub
    Private Sub CB_link_CheckedChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles CB_link.CheckedChanged
    RB_Time.Enabled = True
    RB_Interval.Enabled = True
    End Sub
    End Class
    Here's my Full code for this project.
    The aim of this project is to call a webpage or a website then a .txt will be created inside of it all the process that you made in this project.
    Now if still you can't understand it, then try it to re-construct.

  • Are there any good tool for checking security risks, Code review, memory leakages for SharePoint projects?

    Are there any good tool for checking security risks, Code review, memory leakages for SharePoint projects?
    I found one such tool "Fortify" in the below link. Are there any such kind of tools available which supports SharePoint?
    Reference: http://www.securityresearch.at/en/development/fortify/
    Amalaraja Fernando,
    SharePoint Architect
    Please Mark As Answer if my post solves your problem or Vote As Helpful if a post has been helpful for you. This post is provided "AS IS" with no warrenties and confers no rights.

    Hi Amalaraja Fernando,
    I'm not sure that there is one more tool that combines all these features. But you may take a look at these solutions:
    SharePoint diagnostic manager
    SharePoint enterprise manager
    What is SPCop SharePoint Code Analysis?
    Dmitry
    Lightning Tools Check
    out our SharePoint tools and web parts |
    Lightning Tools Blog | Мой Блог

  • Hi i need a code for timetable generaation project

    Hi friends i am doing a project of timetable generation for college but i got confused so please send me the code for it on my email id [email protected] thank you

    Code for time table generation. No problem. Here you go.
    System.out.println("                  Sun  Mon  Tue  Wed  Thu  Fri  Sat ");
    System.out.println(" 9AM:");
    System.out.println("10AM:");
    System.out.println("11AM:");
    System.out.println("12PM:");
    System.out.println(" 1PM:");
    System.out.println(" 2PM:");
    System.out.println(" 3PM:");
    System.out.println(" 4PM:");
    System.out.println(" 5PM:");It is easy to get confused because of the way that "10" has more characters than "9". The trick is to put a space before the 9 so that the numbers will line up correctly.
    You can also put more spaces in between the days of the week if there isn't enough room to pencil in your classes.
    Good luck with your studies!

  • Do we need to put the following code in the web-xml for the project to run

    Hi^^^,
    actually I have created a project in Eclipse WTP and I am running it from remote server. Its giving me 404 error when I tried to run it.
    I know 404 error is generally due to some error in deployment descriptor.
    I am going through this tutorial for creating project in eclipse WTP
    this says that I need to include the following code in web-xml. Please look at the quotes below
    "Web modules in J2EE has a deployment descriptor where you configure the web application and its components. This deployment descriptors is called the web.xml. According to the J2EE specification, it must be located in the WEB-INF folder. web.xml must have definitions for the Servlet and the Servlet URI mapping. Enter the following lines into web.xml:"
    "Listing 2. Deployment Descriptor web.xml"
    <servlet>
    <servlet-name>Snoop Servlet</servlet-name>
    <servlet-class>org.eclipse.wtp.tutorial.SnoopServlet</servlet-class>
    </servlet>
    <servlet-mapping>
    <servlet-name>Snoop Servlet</servlet-name>
    <url-pattern>/snoop/*</url-pattern>
    </servlet-mapping>
    My question is, it is necessary to include the above lines between <servlet> and </servlet-mapping> in web-xml
    thanks and regards,
    Prashant

    pksingh79 wrote:
    actually I have created a project in Eclipse WTP and I am running it from remote server. Its giving me 404 error when I tried to run it.
    I know 404 error is generally due to some error in deployment descriptor. what's the url you've put.
    <servlet>
    <servlet-name>Snoop Servlet</servlet-name>
    <servlet-class>org.eclipse.wtp.tutorial.SnoopServlet</servlet-class>
    </servlet> Every Servlet has to have a <servlet></Servlet> tag in the web.xml
    the <servlet-name>is for the naming the servlet and the <servlet-calss>is for class file of the servlet in your case the .class file is to be in the package of tutorial,if it's not then how the container will no where the calss file is
    <servlet-mapping>
    <servlet-name>Snoop Servlet</servlet-name>
    <url-pattern>/snoop/*</url-pattern>
    </servlet-mapping>You type something in your url likk http://localhost:8080/webappname (Tomcat server),so for url mapping instead of typing the entire class file name ,you just enough have to type what you've put in the <url-mapping> tag and it has to be inside of <servlet-mapping>
    I think the problem is in <url-pattern> change it like /snoop<url-pattern>
    My question is, it is necessary to include the above lines between <servlet> and ></servlet->mapping> in web.xmlSo now you think whether you need something inside <servlet>and </servlet-mapping>

Maybe you are looking for