Αναζήτηση

Tuesday, May 22, 2012

Create mysql database and tables with php

Create database and table(s) in MySQL Database with php code:

//-----------------------
// www.developerpages.gr
//-----------------------
$con = mysql_connect("localhost","root","12345");
if (!$con)
  {
  die('Could not connect: ' . mysql_error());
  }

// Create database
if (mysql_query("CREATE DATABASE my_test_db",$con))
  {

Tuesday, May 15, 2012

open text file with abap

Open text file  with ABAP :
1. open with "open dataset ". can run in background mode
You can open up to 100 files per internal session. The actual maximum number of simultaneously open files may be less, depending on the platform.
Example :

Sunday, May 13, 2012

Java for Statement

java for Statement and enhanced for Statement :

/*
 * www.developerpages.gr
 * Java for Statement
 */
package forstatement;

public class ForStatement {

    public static void main(String[] args) {
        System.out.println("The for Statement");
        System.out.println("-----------------");     
        for (int i = 0; i<10;i++){
          System.out.println("Step : " + i );
     
        }

  
       // enhanced for statement
        System.out.println("enhanced for statement");    
        System.out.println("----------------------");
        int[] nums = {1,2,3,4,5,6,7,8,9,10};
        for (int item : nums){
          System.out.println("Step : " + item );
     
        }    
    
    }
}

the output is :

Saturday, May 12, 2012

jQuery Hello World example


Hello World with jQuery :


<html>
<head>

jQuery Hello World


<script type="text/javascript" src="jquery-1.4.2.js">

</head>

<script type="text/javascript">

$(document).ready(function(){
 $("#flag").html("Hello World !! (display due to jQuery)");
});

</script>
<body>
<font color=red>
Hello World !! (display due to HTML)
</font>
<font color=blue>
<div id="flag">
</div>
</font>
</body>
</html>

Original Article : http://developerpages.gr/index.php/el/scripting-2/jquery/34-jquery-hello-world-example

AJAX Example

AJAX Example :


<html>
<body>

<div id="myDiv"><h2>Let AJAX change this text</h2></div>
<button type="button" onclick="loadXMLDoc()">Change Content</button>

</body>
</html>



Next, add a <script> tag to the page's head section. The script section contains the loadXMLDoc() function:

<head>
<script type="text/javascript">
function loadXMLDoc()
{
.... AJAX script goes here ...
}
</script>
</head>

VBScript "Hello World !"


Write   "Hello World !" with VBScript :

<html>
<body>
<script type="text/vbscript">
document.write("Hello World")
</script>
</body>
</html>

Original Article : http://developerpages.gr/index.php/el/scripting-2/vbscript/31-vbscript-hello-world

JavaScript simple example

Simple JavaScript Example :


<html>
<body>

<h1>Hello World ! </h1>

<script type="text/javascript">
document.write("<p>" + Date() + "</p>");
</script>

</body>
</html>



Stanford University Lectures for iPhone Application Development

19 Lectures from Stanford University for iphone Development

IPHONE app Hello World !

JSP Hello World !

Write "Hello World" with JSP

<HEAD>
<TITLE>hello jsp</TITLE>
<!-- the variable, message, is declared and initialized -->
<%!
String message = "Hello, World, from JSP";
%>
</HEAD>

<BODY>

<!-- the value of the variable, message, is inserted between h2 tags -->
<h2><font color="#AA0000"><%= message%></font></h2>

<h3><font color="#AA0000">
<!-- the java.util.Date method is executed and the result inserted between h3 tags -->
<%= new java.util.Date() %>
</font></h3>

</BODY>

</HTML>

Original Article : http://developerpages.gr/index.php/el/web-development-2/jsp/26-jsp-hello-world

ASP Hello World

Write "Hello World !" with ASP

<html>
<body>
<%
response.write("Hello World!")
%>
</body>
</html>

Original Article : http://developerpages.gr/index.php/el/web-development-2/asp/27-asp-hello-world

PHP "Hello World" Program

write "Hello World !" with PHP :

<html>
<head>
<title>My First PHP Page</title>
</head>
<body>
<?php
echo "Hello World!";
?>
</body>
</html>

Original Article : http://developerpages.gr/index.php/el/web-development-2/php/25-php-hello-world-program

Visual Basic "Hello World" Program

Write "Hello World" with Visual Basic :


Module Module1
    Sub Main()
        Console.WriteLine("Hello World !")
    End Sub
End Module

Original Article : http://developerpages.gr/index.php/el/desktop-development-2/visual-basic/37-visual-basic-hello-world-program

ABAP "Hello World" program

Write "Hello World !' with ABAP :

*&---------------------------------------------------------------------*
*& Report ZHELLOWORLD
*&
*&---------------------------------------------------------------------*
*&
*&
*&---------------------------------------------------------------------*

REPORT ZHELLOWORLD.


write :/ 'Hello World !'.

Original Article : http://developerpages.gr/index.php/el/desktop-development-2/abap/15-abap-hello-world-program

Δημιουργία Υλικού με BAPI Function

Μπορούμε να δημιουργήσουμε νέο υλικό στο R/3 με BAPI Functions είτε καλώντας τες εσωτερικά από το R/3  είτε καλώντας τες από άλλη εφαρμογή εξωτερικά από άλλο σύστημα αφού έχουμε πρώτα εξασφαλίσει στην σύνδεση του συστήματος με το R/3.


Για την δημιουργία υλικού στο SAP R/3 με BAPI functions xρησιμοποιούμε  :

Τι είναι το SAP CRM

To SAP CRM ( SAP Customer Relationship Management ) είναι μία λύση της SAP για διαχείρηση των πελατειακών σχέσεων των επιχειρήσεων. Ο λόγος που το αναφέρουμε είναι πως και εδώ όπως και στο SAP R/3 η γλώσσα προγραμματισμού είναι η ABAP.
Σχετικά μπορείτε να διαβάσετε στον σύνδεσμο http://www.sap.com/greece/solutions/business-suite/crm/index.epx

Original Article : http://developerpages.gr/index.php/el/desktop-development-2/abap/13-sap-crm

Τι είναι η γλώσσα ABAP

Η γλώσσα ABAP ( Advanced Business Application Programming ) είναι μία γλώσσα προγραμματισμού που δημιούργησε η SAP για να αναπτύξει εμπορικές εφαρμογές πάνω στην πλατφόρμα που έχει δημιουργήσει για μεγάλες ( κυρίως ) επιχειρήσεις, καθώς και να δώσει την δυνατότητα σε προγραμματιστές από όλο τον κόσμο να είτε να γράψουν τις δικές τους εφαρμογές είτε να γράφουν προγράμματα που θα τα ενσωματώνουν στις εφαρμογές που έχει αναπτύξει ήδη η εταιρία για τους πελάτες της.

Create Sales Order with BAPI Function

Create sales Order in SAP R/3 with BAPI funcion :


BAPI_SALESORDER_CREATEFROMDAT2 

CALL FUNCTION 'BAPI_SALESORDER_CREATEFROMDAT2'
EXPORTING
* SALESDOCUMENTIN =
ORDER_HEADER_IN =
* ORDER_HEADER_INX =
* SENDER =
* BINARY_RELATIONSHIPTYPE =
* INT_NUMBER_ASSIGNMENT =
* BEHAVE_WHEN_ERROR =
* LOGIC_SWITCH =
* TESTRUN =
* CONVERT = ' '
* IMPORTING
* SALESDOCUMENT =
TABLES
* RETURN =
* ORDER_ITEMS_IN =
* ORDER_ITEMS_INX =
ORDER_PARTNERS =
* ORDER_SCHEDULES_IN =
* ORDER_SCHEDULES_INX =
* ORDER_CONDITIONS_IN =
* ORDER_CONDITIONS_INX =
* ORDER_CFGS_REF =
* ORDER_CFGS_INST =
* ORDER_CFGS_PART_OF =
* ORDER_CFGS_VALUE =
* ORDER_CFGS_BLOB =
* ORDER_CFGS_VK =
* ORDER_CFGS_REFINST =
* ORDER_CCARD =
* ORDER_TEXT =
* ORDER_KEYS =
* EXTENSIONIN =
* PARTNERADDRESSES =
.

Original Article : http://developerpages.gr/index.php/el/desktop-development-2/abap/16-bapi1

Create Purchase Order with BAPI Function

Create purchase order with BAPI Function :


BAPI_PO_CREATE

CALL FUNCTION 'BAPI_PO_CREATE'
EXPORTING
PO_HEADER =
* PO_HEADER_ADD_DATA =
* HEADER_ADD_DATA_RELEVANT =
* PO_ADDRESS =
* SKIP_ITEMS_WITH_ERROR = 'X'
* ITEM_ADD_DATA_RELEVANT =
* HEADER_TECH_FIELDS =
* IMPORTING
* PURCHASEORDER =
TABLES
PO_ITEMS =
* PO_ITEM_ADD_DATA =
PO_ITEM_SCHEDULES =
* PO_ITEM_ACCOUNT_ASSIGNMENT =
* PO_ITEM_TEXT =
* RETURN =
* PO_LIMITS =
* PO_CONTRACT_LIMITS =
* PO_SERVICES =
* PO_SRV_ACCASS_VALUES =
* PO_SERVICES_TEXT =
* PO_BUSINESS_PARTNER =
* EXTENSIONIN =
* POADDRDELIVERY =
.
Original Article : http://developerpages.gr/index.php/el/desktop-development-2/abap/18-delivery-bapi-function

Create Delivery with BAPI Function

Create  Delivery  with BAPI Function :

BAPI_OUTB_DELIVERY_CREATE_SLS
CALL FUNCTION 'BAPI_OUTB_DELIVERY_CREATE_SLS'
* EXPORTING
* SHIP_POINT =
* DUE_DATE =
* DEBUG_FLG =
* NO_DEQUEUE = ' '
* IMPORTING
* DELIVERY =
* NUM_DELIVERIES =
TABLES
SALES_ORDER_ITEMS =
* SERIAL_NUMBERS =
* EXTENSION_IN =
* DELIVERIES =
* CREATED_ITEMS =
* EXTENSION_OUT =
* RETURN =
.

Original article : http://developerpages.gr/index.php/el/desktop-development-2/abap/18-delivery-bapi-function