Code samples for all

I just wanted to share with the community there is a huge code base at
koders.com
Over 2 million lines of code....
that has tonz of examples from almost every language. Check it out. It's pretty neat stuff if you have time to search through the code.

Choosing between CMP or BMP depends on the business requirements.
If your application has a lesser complex mapping, development time is less or there is no benefit is achieving a greater control over database transactions, CMP would be preferred. However, if you wish to have a greater degree of control over the database transactions and/or the database has complex mappings, it is better to opt for BMP.
As for the code samples, you coild find hundreds of them if you do a Google search.
Regards
xH4x0r

Similar Messages

  • How can i write the below code using "For all entries"

    Hi
    How can we write the below code using "for all entries" and need to avoid joins...
    Please help
    SELECT aaufnr aobjnr aauart atxjcd a~pspel
    agstrp awerks carbpl cwerks
    INTO TABLE t_caufv
    FROM caufv AS a
    INNER JOIN afih AS b
    ON aaufnr = baufnr
    INNER JOIN crhd AS c
    ON bgewrk = cobjid
    AND c~objty = 'D'
    WHERE ( a~pspel = space
    OR a~txjcd = space
    OR NOT a~objnr IN
    ( select OBJNR from COBRB AS e
    WHERE objnr = a~objnr ) )
    AND a~werks IN s_plant
    AND a~auart IN s_wtype
    AND NOT a~objnr IN
    ( select OBJNR from JEST AS d
    WHERE objnr = a~objnr
    AND ( dstat = 'A0081'OR dstat = 'A0018' )
    AND d~inact 'X' ).
    Reward points for all helpfull answers
    Thanks
    Ammi.

    Hi,
    SELECT objnr objid aufnr
            from afih
            into table t_afih.
    SELECT objnr
            from JEST
            into table t_JEST
            where stat = 'A0045'
               OR stat = 'A0046'
               AND inact 'X'.
    SELECT objnr
            from COBRB
            into table t_cobrb.
    SELECT arbpl werks objid objty
          from crhd
          INTO table it_crhd
          FOR ALL ENTRIES IN it_afih
          WHERE objty eq 'D'
          AND gewrk = it_afih-objid.
    SELECT aufnr objnr auart txjcd pspel gstrp werks aufnr
            FROM caufv
            INTO table t_caufv
            FOR ALL ENTRIES IN it_afih
            WHERE aufnr = it_afih-aufnr
              And pspel = ' '
              AND txjcd = ' '
             ANd objnr ne it_crhd-objnr
              AND auart in s_wtype
              AND werks in s_plant.
             AND objnr ne it_jest-objnr.
    dont use NE in the select statements, it may effect performance also. Instead use if statements inside
    loops.
    loop at t_caufv.
    read table it_chrd............
      if t_caufv-objnr ne it_chrd-objnr.
      read table it_jest..........
       if   if t_caufv-objnr ne it_jest-objnr.
        (proceed further).
       endif.
      endif.
    endloop.
    hope this helps.
    Reward if useful.
    Regards,
    Anu

  • Code Samples for SDK programming in Java

    I need a complete set of Code Samples for SDK programming in Java, like the one that is available in VB and .Net.
    For Example, if you look at the following directory of machine where SDK is installed,
    C:\ProgramFiles\SAP\SAP Business One SDK\Samples\COM DI\VB.NET
    we have following Sample programs in C Sharp, VB6, VB.Net
    01.BasicOperations
    02.MetaDataOperations
    03.UsingSBObob
    04.SerialAndBatch
    05.OrderAndInvoice
    06.ObjectsSchemas
    07.Permissions
    08.LoadFromXML
    09.BudgetEditor
    10.Messages Service
    11.Basic Company Settings
    12. Report Layout Service
    13.SaveXML
    14.ItemCycleCount
    15.ApprovalStagesAndTemplateServices
    16.Alert Management Service
    Iam looking for Samples like what is available above so that we can understand JCO better.

    Hi Sridharan,
    The only JCO samples I know of are posted in the [thread|;.
    Regards,
    Vítor Vieira

  • Tutorial & Code Sample for Developping Composites with CAF

    Do you have tutorials & Code samples for developping composites with CAF like Webdypro for Java as on this SDN site:
    https://www.sdn.sap.com/irj/sdn/developerareas/webdynpro?rid=/library/uuid/49f2ea90-0201-0010-ce8e-de18b94aee2d
    Thanls, regards, peter

    Take a look at https://www.sdn.sap.com/irj/sdn/developerareas/xapps?rid=/webcontent/uuid/7b9b3834-0801-0010-6a9a-dc53e0db37f2">the [original link is broken] [original link is broken].
    cheers,
    Marilyn

  • Code samples for SSLEngine?

    I am attempting to re-implement the SSL support in our product under the new non-blocking I/O model. SSLEngine seems to be the starting point...but I can't find any code samples anywhere showing it working.
    Anybody have any ideas where to look?
    There used to be a whole suite of samples in the JSSE...but don't know where they are, now that the JSSE is part of J2SE :(

    SSLEngine is new in tiger (JDK 1.5), and as such, hasn't been released
    publically yet. I believe they are looking at sometime in Q1 2004 for the first
    public beta, and ships later in 2004. If you're a licensee, you can get early drops.Yup...I'm currently working with JDK1.5 b30.
    Anyway, SSLEngine will eventually have sample code, but nothing has been produced yet.
    On the whole, the non-blocking model takes some care to use correctly. The SSLEngine
    is pretty straightforward, but it's not as simple as SSLSocket.I'm aware of that - we've already rewritten our product to utilize java.nio. That's why I was
    hoping to find some code samples for the new SSLEngine class.
    To answer your other (implied) question, the sample
    code for JDK 1.4 can be found in the JSSE Reference Guide. See:
    http://java.sun.com/j2se/1.4.2/docs/guide/security/jsse/JSSERefGuide.html#CodeExamples
    Thanks for the link...I guess I should have looked in the OLD jdk docs. The 1.5 docs
    don't include most of the 'guide' folder from previous releases.

  • Java code sample for uploading file

    Guys can some one give me a java code sample for uploading more than 1 file .
    I have a working example but that is only for one file.
    thanks
    M

    Throw it away. Go to the [http://commons.apache.org/fileupload] and carefully read both 'User Guide' and 'Frequently Asked Questions' sections.
    And please, please also carefully read this article: [http://balusc.blogspot.com/2008/06/what-is-it-with-roseindia.html].

  • Code samples for using HTTPServices in Cairngorm framework

    Hello there,
    Does anyone have any samples for retrieving data through
    HTTPServices using the cairngorm framework model. All samples on
    the web, as far as I have searched, lead only to remote services
    mode of communication only.
    Any help here would be greatly appreciated.
    Thanks,
    Arun B
    [email protected]

    I wrote a sample code modifiying the Remote Object examples
    .. I got this working now . Please ignore this message, just incase
    anyone needs my sample just email me..

  • Code sample for rtp server. please!

    hi
    I need to get a rtp server code, may it simple, in order to learn from it. Did not find anything from browsing. could anyone send me a sample or a link?
    thanx a lot

    Hi,
    thanks for the link. I have aleready checked that, i should have specified more..
    The thing is that these examples require that we have the client IP and port . But in case of a NATed client, I don t see how to get this client IP.
    I looked in JMF API desperately for getting client info. But the only thing I get is the Participant class. No IP address nor a port to work with.
    'Anyone has a clue, or a code sample of a small server that listen for clients and retrieve dynamically their IP/port? would help a Lot
    thanx

  • Any code samples for inputting content into content manager 8.1?

    Does anybody know where to find code samples of adding content to the Content Manager
    via the Java API?
    The only code I can find is the "Content Manager Example Portlet" and it is 7.0,
    not 8.1.
    It's not clear from the documentation what the Repository and Path are supposed
    to be named. Perhaps we had a working example, this might help.
    Thanks
    Dave

    Does anybody know where to find code samples of adding content to the Content Manager
    via the Java API?
    The only code I can find is the "Content Manager Example Portlet" and it is 7.0,
    not 8.1.
    It's not clear from the documentation what the Repository and Path are supposed
    to be named. Perhaps we had a working example, this might help.
    Thanks
    Dave

  • Code sample for body height on kinect v2

    Someone have a good code sample to get the body height on kinect v2?
    Regards.

    have you looked at:
    https://social.msdn.microsoft.com/Forums/en-US/eba64c3f-ab99-4ccc-932e-df82740a885d/kinect-height-measurement?forum=kinectv2sdk
    Carmine Sirignano - MSFT

  • Java code samples for java mappings

    Dear all,
    Can you please send me a sample scenario in which you used the java mapping.
    How do we assign the source structure,the target structure.
    How do we map source->target
    Do we give the source and target interface names in execute method)?
    if so where do we map the same.
    we have one to one mapping in graphical,message mappings which i worked with.
    is there any tool for making the same thing in java?
    Kindly send me the documents if any on java mapping to [email protected]
    Please clarify.....

    ref:
    /people/prasad.ulagappan2/blog/2005/06/29/java-mapping-part-i
    /people/prasad.ulagappan2/blog/2005/06/29/java-mapping-part-ii
    and
    https://www.sdn.sap.com/irj/sdn/wiki?path=/display/xi/javaMappingSample+Code&

  • Code sample for using change document function modules

    Can someone send me some sample code for using function modules CHANGEDOCUMENT_READ_HEADER and CHANGEDOCUMENT_READ_POSITIONS?  I'm specifically looking for changes that occured to the standard price field in the material master (MBEW-STPRS) and I need to pull the most recent price change for a given material.  I'm not sure how to write the code efficiently since I don't have a date to pass (again, since we're looking for the most recent change.)
    Thanks!

    hi check this..
    CHANGEDOCUMENT_READ_HEADERS
    Example:
    CALL FUNCTION 'CHANGEDOCUMENT_READ_HEADERS'
    EXPORTING
    objectclass = 'EINKBELEG'
    objectid = l_objectid
    username = space
    TABLES
    i_cdhdr = lt_cdhdr.
    LOOP AT lt_cdhdr WHERE udate IN s_aedat.
    CALL FUNCTION 'CHANGEDOCUMENT_READ_POSITIONS'
    EXPORTING
    changenumber = lt_cdhdr-changenr
    TABLES
    editpos = lt_editpos.
    LOOP AT lt_editpos WHERE fname = 'LOEKZ'
    AND f_new = 'L'.
    p_desc = text-r01. " Cancel Contract
    ENDLOOP.
    ENDLOOP.
    CHANGEDOCUMENT_READ_POSITIONS
    Example:
    CALL FUNCTION 'CHANGEDOCUMENT_READ_HEADERS'
    EXPORTING
    objectclass = 'EINKBELEG'
    objectid = l_objectid
    username = space
    TABLES
    i_cdhdr = lt_cdhdr.
    LOOP AT lt_cdhdr WHERE udate IN s_aedat.
    CALL FUNCTION 'CHANGEDOCUMENT_READ_POSITIONS'
    EXPORTING
    changenumber = lt_cdhdr-changenr
    TABLES
    editpos = lt_editpos.
    LOOP AT lt_editpos WHERE fname = 'LOEKZ'
    AND f_new = 'L'.
    p_desc = text-r01. " Cancel Contract
    ENDLOOP.
    ENDLOOP.
    Check this link.
    http://www.sap-img.com/mm001.htm
    <REMOVED BY MODERATOR>
    venkat.
    Edited by: Alvaro Tejada Galindo on Mar 18, 2008 4:05 PM

  • Error code 80070308 for all windows update

    Hi,
    I'm unable to install any kind of update. The install finishes with the following message : Unknown error code 80070308.
    My system info is as follows:
    OS: win7 Pro 32-bit, downloaded from ms website
    Processor: AMD Athlon XP2400+ @ 2.66 GHz
    RAM: 1GB
    I already saw this similar topic "VPC7 install failure: Prior to restart " but there is no solution.
    Thanks !

    Hi Deguich,
    Generally, the Windows Update issue can be caused by one of the following factors:
    1. The Windows Update service has been stopped.
    2. Corrupted Windows Update Temporary folder.
    In order to narrow down the cause of this issue and resolve it, I suggest you refer to the following steps. After finishing each step, you can check the result again.
    NOTE: Some third party programs can affect the Windows Update service. If you are running any third party applications such as Spyblocker, Internet or web accelerators (programs designed to boost the speed of the Internet connection), security or anti-virus programs (Norton, McAfee, etc.), I recommend we temporarily disable or shut them down and then try accessing Windows Update later. Please understand that we are disabling these programs only for the purpose of troubleshooting and we can re-enable these programs after we finish troubleshooting.
    Step 1: Verify the relevant Windows Update services
    ================================
    1. Click the "Start" Button, in “Search" bar, type: "services.msc" (without quotes) and press Enter. If you are prompted for an administrator password or confirmation, type the password or provide confirmation.
    2. Double click the service "Windows Update".
    3. Click on the "General" tab; make sure the "Startup Type" is "Automatic" or "Manual". Then please click the "Start" button under "Service Status" to start the service.
    4. Please repeat the above steps with the "Background Intelligent Transfer Service" service.
    You can also temporarily stop these services, restart the computer, and then start these services again. If any service is missing or cannot be stopped or restarted, please let me know.
    Step 2: Rename the Windows Update Softwaredistribution folder
    ================================
    This problem may occur if the Windows Update Software distribution folder has been corrupted. We can refer to the following steps to rename this folder. Please note that the folder will be re-created the next time we visit the Windows Update site.
    1. Close all the open windows.
    2. Click the "Start" Button, click "All programs", and click "Accessories".
    3. Right-click "Command Prompt", and click "Run as administrator".
    4. In "Administrator: Command Prompt" window, type in "net stop WuAuServ" (without the quotes) and press Enter.
    Note: Please look at the cmd window and make sure it says that it was successfully stopped before we try to rename the folder. However, if it fails, please let me know before performing any further steps and include any error messages you may have received when it failed.
    5. Click the Start Button, in the “Search" bar, type in "%windir%" (without the quotes) and press Enter.
    6. In the opened folder, look for the folder named "SoftwareDistribution".
    7. Right-click on the folder, select Rename and type "SDold" (without the quotes) to rename this folder.
    8. While still in the "Administrator: Command Prompt" window, type the command "net start WuAuServ" (without the quotes) in the opened window to restart the Windows Updates service.
    Note: Please look at the cmd window and make sure it says that it was successfully started. However, if it failed, please let me know before performing any further steps and include any error messages you may have received when it failed.
    If the issue persists, would you please upload the following information to SkyDrive and provide us the link for analyzing?
    How to capture a screenshot
    ================================
    1. Press the Print Screen key (PrtScn) on your keyboard.
    2. Click the "Start" Button, type "mspaint" in the Search Bar and Press Enter.
    3. In the Paint program, click the "Edit" menu, click "Paste". Then click the "File" menu, and click "Save".
    4. The "Save As" dialogue box will appear. Type a file name in the "File name:" box, for example: "screenshot".
    5. Make sure "JPEG (*.JPG;*.JPEG;*.JPE;*.JFIF)" is selected in the "Save as type" box, click "Desktop" on the left pane and then click "Save".
    How to collect the System Information
    ================================
    The System Information can provide us with more information about the current status of the system. I would like to check it for you. Please send it to me using the following steps:
    1. Click the "Start" Button, type "MSINFO32" in the Search Bar and press Enter to start System Information.
    2. On the popup window, on the menu bar, click "File", and click "Save", type a file name and then choose NFO as "Save as type", click "Desktop" on the left pane, and click Save.
    How to collect the WindowsUpdate.log file
    ================================
    1. Click the "Start" Button, type "WindowsUpdate.log" (without the quotes) in the Search Bar and Press Enter. We will see a file named "WindowsUpdate.log"
    2. Now click on the "File" menu and then click on the "Save As".
    3. From the left panel, click "Desktop" and click the Save button.
    Arthur Li - MSFT

  • Fatal error installation code 1603 for all-in-one printer C4280

    Until a month ago, I'd been successfully running my C4280 with my Dell 1535 (Windows 7 32-bit) for about a year. (It's not a new printer but it works perfectly well; it was a hand-me-down after my own HP printer died after many, many years of good service.)  I uninstalled the software because the Solution Center stopped working, cleaned up my registry, deleted temp files, ran Uninstall L_3, installed Windows updates, installed Malwarebytes, checked the condition of my .NET Framework, etc.,  etc. I have literally spent about a month trying to get the printer software to install to no avail. I have been in every forum on the internet, tried every solution posted here or on the Micsrosoft website. I have read about the incompatibiltiy between HP and Win 7 and cannot find a solution. I don't know what else to do.
    The only thing I have not done--and will not do--is to reinstall Windows, the last solution suggested by all the HP reps when all other solutions fail. What does it say about a tech-based company who's solution is to throw the baby out with the bathwater?
    Pretty pathetic that one would have to chuck out a perfectly good printer because the software will not install. If anyone has any viable suggestions--other than rolling back the system to an earlier version or re-installing Windows--I'd LOVE, LOVE, LOVE to hear it. If I'm forced to buy a new printer because I could not install the driver, I vow never to buy another HP product as long as I walk the earth. 
    Here's the log info:
    The following lines were retrieved from the installation error logs.
    +00000000000001970176/s/Now Launching=X:\hpzprl01.exe -inf -m 
    preload_drivers-IXXX -f "X:\hpoins13.dat" -Validate No at" -Validate
    No
    Failed to add catalog file for
    'X:\hposcu11.inf_x86_neutral_8470ae2dd4974995\hposcu11.inf'.
    SetupINFsListedInDatFile failed with Fatal error during installation.
    Exit code=1603
    error situation code 25389268
    Thanks in advance.

    BunnyVonBunny wrote:
    Here's the log code:
    Error code 31100272
    +00000000000732983296/s/Now Launching=X:\hpzprl01.exe -inf -m 
    preload_drivers-IXXX -f "X:\hpoins13.dat" -Validate No at" -Validate
    No
    Exit code=1603
    Hi BunnyVonBunny,
    I appreciate your efforts thus far and I understand how frustrating this has been. Please complete the steps in the following document; Fatal Error 'Error 1603. A fatal error occurred during installation' (MSI Error 1603) Displays Durin....
    Some of these steps maybe the same as what I have already suggested but doing them in the order the document suggests could be what it takes to resolve the issue.
    Please click the Thumbs up icon below to thank me for responding.
    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    Please click “Accept as Solution” if you feel my post solved your issue, it will help others find the solution.
    Sunshyn2005 - I work on behalf of HP

  • Script code sample for looping  through the records from xml data file in formCalc script

    Hi
       I have a xml data file which contains a sequence of repeating applicant data like given below
                       US
                       II
                       CEO
                       Mr
                       111111111
                       0000000111
                       GuarantorA
                       111
                       IN
                       11111
                       WILLIAMS1
                       R3
                       KENNETH1
                       City1GU
                       PA
                       1934-03-14
                       [email protected]
                       GU
                       R
                       113 Lazlo LaneCA
                       Suite 3500CA
                       OaklandCA
                       TX
                       11345
                       AL
    I want to assign a textfield with a value based on the value of coap_flag.
    So i need to loop through all the record and check the value of coap_flag and then assign the textfield a value based on that.
    I am new to Adobe livecycle...Please help me how it can be done.
    I have developed something like this
    foreach Item in ($record.applicant[*].coap_flag) do
    test.value=Item
    if(test.value=="MA")then
    concat($record.applicant.first_name,$record.applicant.middle_name)endif
    endfor

    Using the data you posted in the forum, I copied it a couple of times to give multiple records and used this code to extract the different values that you wanted. I had to wrap it in a <root> node that I called root (to make it valid XML). In my case I wrote the extracted values to a field, but in your case you can do whatever you want with them. Note that this was done in javascript:<br /><br />var currentElement;<br />var obj;<br /><br />//Get the nodes below the root node in the dataDom<br />obj = xfa.datasets.data.root.nodes;<br /><br />//Set an initial value for the textField<br />TextField1.rawValue = "The values of the coap_flag are: ";<br /><br />//Loop through the nodes in the obj set <br />for (i=0; i< obj.length ; i++){<br />     //set the currentElement to the 1st child node<br />     currentElement = obj.item(i);<br />     //Check to see if it is an applicant node<br />     if (currentElement.name == "applicant"){<br />          //It is an applican, now find the coap_flag node value and write it to the text field<br />          TextField1.rawValue += "\n" + xfa.resolveNode("xfa.datasets.data.root.applicant[" + i + "]").coap_flag.value;<br />     }<br />}

Maybe you are looking for

  • Can I find an iphoto events in time machine

    Using a macbook pro with Lion 10.7 how can I find an iphoto event in time machine hard drive back up.  When I look in picture folder for a back up date I see some individual pictures and an icon for iphoto library.  I thought clicking on that would s

  • Java.util.regex.Pattern.error(Pattern.java:1713)

    Hi, I have some users migrating from Toad to SQL Developer. The following script was correctly running with Toad and not with SQL Developer : DECLARE I_DEB DATE; I_FIN DATE; BEGIN I_DEB := to_date('01072010','ddmmyyyy'); I_FIN := to_date('17092010','

  • How to restrict use of network adaptors

    Hello guys, I'm now setting up a small home server and at home we have right now the possibility of two different internet connections. I want to restrict one interface only to SSH/SCP (although I quite trust this connection still public IP seems as

  • Error coming after using an ssis package to create an sql job

    Hi I have created an SSIS package and try to create a job on the same when i run the job it if failing an dgiving me the below error Executed as user: xxxxx\FESGSQLA. Microsoft (R) SQL Server Execute Package Utility  Version 10.50.4000.0 for 64-bit 

  • Decrypt video file(flv)??

    Hello I write program to encrypt / decrypt  video file , for encryption I can write a code that give for example "film.flv" and store it every where that I want. but Ihave another code that decrypt that file and store it,but I want that have code to