Seeburger help required for Supplier Invoice (EDI 810) and Dispatch Advice

Hi All,
Pls let me blog/steps for scenario for Supplier Invoice and Dispatch Advice using Seeburger.
For Supplier Invoice I assume R/3 will send data to Vendor (810).
1. Pls let me know for R/3 to XI will we use INVOCE IDOC?
2. Pls let me know for R/3 to XI Communication do we will use same Distributiion Model setup?
3. Pls let me know what Seeburger BIC modules I need to use in Seeburger AS2/File Receiver Adapter
4. Which Interface and Adapter  I need to use for 810 and which Interface and Adapter  I need to use for 997.
    Pls send its setup with its Mappings defined in Modules.
5. What is Disptach Advice?  Is it also same like Supplier Invoice ? Does it also have EDI Number and if yes then what?
Pls send me blogs for the above Supplier Invoice and Dispatch Advice settings.
Regards

>
Rickkk wrote:
> Hi Ravi and All
>
> I am thankful to all of you for great help of yours.
>
> Steps:
>
> 1) I wil create an INvoice in your backend system. It will generate an IDOC.
> 2) This IDOC will be sent to my XI system.
> 3) I will map the IDOC to the Target XML 810 --- From where I will get this Target XML 810 ?
YOu have to login to the Physical box in which XI is installed (Take Basis Help.
In one of the drives, you will find a folder called seeburger.
Inside that folder, you can browse to find the XSD structure for your 810 .
YOu will find different XSDs for different versions of 810.
Suppose your EDI 810 version is 4010, then you have to use the XSD for 810 4010 version (There will be separate folders for each transaction set/version combination.
It will be there also in the software CD that seeburger provides when you buy it.
> 4) I need a seeburger receiver AS2 adapter that consist of modules that will convert the XML 810 docuemnt to EDI document.
>
> Below are the modules will be present in you suggested seeburger receiver AS2 adapter
> module key                  Parameter name               Parameter value
> bic                                destSourceMsg               MainDocument
> bic                                destTargetMsg                MainDocument
> bic                                mappingName                  <the name of your X2E mapping for 810>
> exit                               JNDIName                         deployedAdapters/SeeXIAS2/shareable/SeeXIAS2
>
Yes.
> 5. As per blog  -
/people/rajeshkumar.pasupula/blog/2009/08/05/wanna-implement-seeburger-for-edi-find-the-booster
>
> For 997 Interface we are using seeburger Sender adapter and for 850 Interface we are using Split997 Sender adapter -- Reverse order
>
> For this scenario will it be like this again like
> For 997 Interface we will use Seeburger Receiver AS2 Adapter where the above modules are configured -- Pls suggest
>
> For 810  Interface we will use Split997 Receiver adapter -- No modules configured Pls suggest
>
> I request you to kindly send me snapshots or blogs which has snapsot for this scenario.
>
No need of split 997 in outbound case. In this case, you will send the 810 and the partner will send the 997.
So, to receive that 997 file, you need another scenario. You need the split 997 communication channel only in inbound case like in 850, but not in outbound case.
> Last point -- is Dispatch advice direction is like 850 (Inbound ) or its direction is like 810 (outbound)?
> Do we have IDOC or something like that present and its mapping ?
>
like I said earlier, it is an outbound document if your company is the vendor.
It will be inbound if your company is the Customer to some other company.
The IDOC that is used usually will be DESADV idoc.
> Regards

Similar Messages

  • Seeburger help required for 850, 810, Dispatch Advice (DESADV IDOC)

    Hi All,
    Pls let me know for below 4 points:
    1. Please let me know blogs which clearly shows settings for Seeburger components for 850 or 810.
    --- Seeburger Workbench
    --- Seeburger Mapping Designer (BIC)
    --- Seeburger Counter and Varaibles
    --- Seeburger AS2 Spoke
    --- Any other Seeburger Component setting required
    I have understand blog for 850 -- /people/rajeshkumar.pasupula/blog/2009/08/05/wanna-implement-seeburger-for-edi-find-the-booster
    2. Anybody has blog for 810 or Dispatch Advice (IDOC type DESADV).
    3. Can anybody provide me Mapping Logic (at field level) done in XI/PI for 850, 810 , Dispatch Advice (IDOC type DESADV) .
    4.  I have heard that Seeburger now provides standard mappings for PI/XI  for 850, 810 , DESADV etc. so we do not require to do mappings in PI/XI now as it is already done. Any one knows about it.
    Regards

    > Pls let me know for below 4 points:
    >
    > 1. Please let me know blogs which clearly shows settings for Seeburger components for 850 or 810.
    > --- Seeburger Workbench
    > --- Seeburger Mapping Designer (BIC)
    > --- Seeburger Counter and Varaibles
    > --- Seeburger AS2 Spoke
    > --- Any other Seeburger Component setting required
    Hello Rickk,
                          There is no blog for the 810 scenario ...
    you need to configure the partner related stuff in seeburger workbench if it is inbound only like 850,852,860..
    not for outbound like 810,856...i.e no need to configure the partner data in seeburger workbench for this..
    You need to look for developing mappings if EDI message is other than Version 4010 by default there are mappings available for
    810,856,850,997..if your edi messages are other than this then you need to look for BIC tool for developing mappings.
    There is no need to set anything for counter and varaibles
    ..no idea about AS2 spoke,,,
    Apart from thjis no need to do anythings in seeburger ...
    HTH
    Rajesh

  • Seeburger help required for 810 and Dispatch Advice (IDOC type DESADV).

    Hi All,
    1. Please let me know blogs which clearly shows settings for Seeburger components for 850 (Purchase Order) to IDOC Scenario
    --- Seeburger Workbench
    --- Seeburger Mapping Designer (BIC)
    --- Seeburger Counter and Varaibles
    --- Seeburger AS2 Spoke
    --- Any other Seeburger Component setting required
    I have understand blog for 850 -- /people/rajeshkumar.pasupula/blog/2009/08/05/wanna-implement-seeburger-for-edi-find-the-booster
    2. Anybody has blog for 810 or Dispatch Advice (IDOC type DESADV).
    3. Can anybody provide me Mapping Logic (at field level) done in XI/PI for 850, 810 , Dispatch Advice (IDOC type DESADV) .
    Regards

    Hi Rickkk,
    1. Please let me know blogs which clearly shows settings for Seeburger components for 850 (Purchase Order) to IDOC Scenario
    --- Seeburger Workbench
    --- Seeburger Mapping Designer (BIC)
    --- Seeburger Counter and Varaibles
    --- Seeburger AS2 Spoke
    --- Any other Seeburger Component setting required
    For SEEBURGER workbench please go through this blog and navigate the enbebbed links furthur to know about Seeburger workbench too.
    /people/prateek.srivastava3/blog/2009/08/01/seeburger--part-1--the-basics
    2
    2. Anybody has blog for 810 or Dispatch Advice (IDOC type DESADV).
    For 810 i think the procedure would be the same but themseeburger mapping program that validates the ANSX 810 would be different.As far as 997is concerned 997 is a functional acknowledgement.Its a genric format that is used to send acknowledgement for any EDI transaction set that has been sent.
    3. Can anybody provide me Mapping Logic (at field level) done in XI/PI for 850, 810 , Dispatch Advice (IDOC type DESADV) .
      The logic will be based on the trading partner guidelines which will contain the description of all the semantic and syntactiic description about the segments ,its feilds.we need to consider the guidelines and target side specifications too while mapping.
    Thanks,
    Ram.

  • Seeburger help required for Purchase Order,Dispatch Advice,Supplier Invoice

    Dear All,
    I wanted to do the Seeburger implementation.
    I wanted to convert the EDIFACT to XML struture and XML struture to EDIFACT  using the seeburger adpater for --
    Purchase Order , Dispatch Advice and Supplier Invoice.
    Points:
    1. How will vendor will send and receive data to PI. (means how to use Seeburger spoke and how to give unique Ids in Seeburger AS2 adapter)
    2. How to do Edifact to XML conversion and XML to Edifact conversion using Mapping Designer
    3. How to configure modules in Seeburger AS2 adapter
    Regards

    HI,
    For Seeburger implementation you should take licance for BIC MD and Adapters(AS2,SFTP).
    1)You will receive the data from the vendor ,you need to configure the AS2 Sender Adapter and you need configure the Party with AS2ID(Global Indentfier).
    2)For Conversion for the EDIFACT to XML you need to generate the the BIC mapping In BIC MD.once generate the map you can loaded the map into XI server.you need to configure the mapping detials in module(Classifer,BIC,Spliter......).
    Steps to genrate the BIC MAP:
    Steps :-
          1) Right click on Data type and Export structure (msg_....xml).
          2) Run u201CCreateXMLmessageu201D, (source file msg_....xml, target file XML_....xml).
          3) Import XMLu2026.xml to your Project XML Message.
          4) Run u201CCreateMappingXMLToEdiu201D source file (msg_...xml),target file      (X2E_....xml)
          if you are converting XML to Edi format.
          5) Run u201CCreateMappingEdiToXMLu201D source file (msg_....xml),target file      (E2X_....xml) if you are converting Edi to XML format.
          6) Import X2E/E2X_.....xml to your project mappings
    3) you need to open firwall from the vendor and your system..
    AS2 Sender Adapter:
    Transpoert protocl:HTTP
    Message Protocol:AS2
    Authincation Requered(Check box)
    Message subject:
    Asynchorns MDM Settings:
    Server Certifacte:
    Private key:
    HTTP TimeOut:
    MDM retry interval:
    MDM retry Count:
    Proxy Server:
    Proxy prot:
    Proxy User and Password.
    For more information end to end :above menation rajesh weblog.
    regards,
    Ramesh

  • "Invoice History Report "show wrong balance for supplier invoice with USD

    Invoice History Report show wrong balance for supplier invoice with USD Currency
    After I run this report i see in the last of this report there is difference between the supplier total
    USD (Currency ) and the open Balance USD , it is decreased the open balance
    for supplier with 2300 USD with out any reasons
    bellow is some data copy of the report
    ======================================================
    Supplier Site Total: SAR 34,700.00
    Supplier Site Total: USD 39,000.00
    Supplier Total: SAR 34,700.00
    Supplier Total: USD 39,000.00
    Open Balance: SAR 34,700.00
    Open Balance: USD 36,700.00
    *** End of Report ***
    ==============================================
    please advise me from where can this differenc ( 39000 - 36,700=2300 )COMMING
    or it is bug in this report , becuase i compare this report with other report in account payable like
    -supplier open balance letter
    -invoice register report
    -invoice aging report
    all this report give me the amount for supplier USD =39000
    BUT AGIN FROM WHERE THE SYSTEM DECREASED THE AMOUNT TO 36,700
    thanks

    Can you try running Create Accounting For payments just before you run the Invoice History Report and re-check .
    Thanks

  • Error: Preceding document required for the invoice is not available

    Dear SRM Experts,
    We are on SRM7.0 with SAP 4.6 C as backend SAP R/3 system (Classic Deployment).
    When we try to create an invoice in SRM wrt a PO ( with item category B ... created from a limit SC with invoice only option), we get an error :
    Line 1: Preceding document required for the invoice is not available
    We are not sure ..why this error is coming and what preceding document system is checking ?
    As the PO is with item category B.. the GR is not required
    Any inputs will be highly appreciated..
    Thanks and Regards,
    Ram

    Hi!
    This error usually comes up when the PO has the flag GR_BASEDIV set. Please check your PO and verify if it is flagged.
    Best regards,
    Christian Zeuch

  • ERROR: The cabinet file 'Sql.cab' required for this installation is corrupt and cannot be used

    As the title indicates, I'm having this error during installation. It occurs when I try to install
    the "Management Studio" part of the program. I've tried a bunch of things like
    copying to hard drive and installing, but to no avail. To isolate the problem, i've even tried removing Reporting services, since at the time of failure it seems to be trying to install/configure the Microsoft.Reporting Services dll.
    Additionally, I have SQL Express installed (installed it separately, not as part of the SQL 2005 DVD), VS 2005, .NET Framework 2.0, SQL Management Studio Express CTP. Could the Management Studio Express be causing a problem?
    Please note:
    Although the error is about missing / corrupt Sql.cab, I have searched the entire dvd for the said file, but there is no file called Sql.cab on the dvd. Am I missing something?
    Any solution would be greatly appreciated.
    TIA

    I was installing SQLServer2014_Developer which I had just purchased as a 64bit iso download to VirtualBox Windows_10_64bit Instance that i had just created.
    I got the following error about 90% through the SQLServer2014_Developer install:
    >>> ===================================================================
    >>> SQL Server 2014
    >>> ===================================================================
    >>> TITLE: Microsoft SQL Server 2014 Setup
    >>> ------------------------------
    >>> The following error has occurred:
    >>> The cabinet file 'Sql.cab' required for this installation is corrupt and cannot be used.
    >>> This could indicate a network error, an error reading from the CD-ROM, or a problem with this package.
    >>> For help, click:
    >>> h t t p ://go.microsoft.com/fwlink?LinkID=20476&ProdName=Microsoft%20SQL%20Server&EvtSrc=setup.rll&EvtID=50000&ProdVer=12.0.2000.8&EvtType=0xDF039760%25401201%25401
    >>> ------------------------------
    A quick rerun of failed SQLServer2014_Developer install just for the Management_Tools and review of the SQLServer2014_Developer install logs
      confirmed error still prelevant:
    C:\Program Files\Microsoft SQL Server\120\Setup Bootstrap\Log\...
    >>> ...
    >>> Detailed results:
    >>>   Feature:                       Management Tools - Complete
    >>>   Status:                        Failed: see logs for details
    >>>   Reason for failure:            An error occurred for a dependency of the feature causing the setup process for the feature to fail.
    >>>   Next Step:                     Use the following information to resolve the error, and then try the setup process again.
    >>>   Component name:                SQL Server Management Services
    >>>   Component error code:          1335
    >>>   Component log file:            C:\Program Files\Microsoft SQL Server\120\Setup Bootstrap\Log\20150206_223659\sql_ssms_Cpu64_1.log
    >>>   Error description:             The cabinet file 'Sql.cab' required for this installation is corrupt and cannot be used. This could indicate a network error, an error reading
    from the CD-ROM, or a problem with this package.
    >>>   Error help link:               h t t p ://go.microsoft.com/fwlink?LinkId=20476&ProdName=Microsoft+SQL+Server&EvtSrc=setup.rll&EvtID=50000&ProdVer=12.0.2000.8&EvtType=sql_ssms.msi%40InstallFiles%401335
    >>>
    >>>   Feature:                       Management Tools - Basic
    >>>   Status:                        Failed: see logs for details
    >>>   Reason for failure:            An error occurred during the setup process of the feature.
    >>>   Next Step:                     Use the following information to resolve the error, and then try the setup process again.
    >>>   Component name:                SQL Server Management Services
    >>>   Component error code:          1335
    >>>   Component log file:            C:\Program Files\Microsoft SQL Server\120\Setup Bootstrap\Log\20150206_223659\sql_ssms_Cpu64_1.log
    >>>   Error description:             The cabinet file 'Sql.cab' required for this installation is corrupt and cannot be used. This could indicate a network error, an error reading
    from the CD-ROM, or a problem with this package.
    >>>   Error help link:               h t t p ://go.microsoft.com/fwlink?LinkId=20476&ProdName=Microsoft+SQL+Server&EvtSrc=setup.rll&EvtID=50000&ProdVer=12.0.2000.8&EvtType=sql_ssms.msi%40InstallFiles%401335
    >>> ...
    Reading though the many Google hits going way back AD-2000/AD-2006/AD-2011/AD-2014 for various installs including SQLserver_2008/2012 etc
    I noted that in the main there were x2 common themes.
    1. Problem with corruption the original download.
    --- Although I had not run the download checksum
    --- I had previously just installed SQLServer2014_Developer successfully, so at the minute, I was confident downloads were ok.
    --- Many hits mentioned this 'Sql.cab' file and 90% of the install had been successfull -
    --- I figured the chances of us all having corruption of this one files were agaianst the odds and
    ---   probably re-downloading it would not fix this - but I kicked a re-download off anyhow .
    While it was running ...
    2. Network issue when installing - some of the hits asked if could be related to Virtual drives.
    --- This struck a chord
    --- I had downloaded the SQLServer2014 .iso to my host PC and then copied it onto one OneDrive so I could access it within the VirtualBox_Windows_10.
    --- From within the VirtualBox_Windows_10 I had then used SetupVirtualCloneDrive5450.exe to mount the OneDrive SQLServer2014 .iso and then autorun the install.
    What worked for me ...
    --- I decided to
    --- 1. Copy the same SQLServer2014 .iso that had failed to install x2 from OneDrive to the c:\ root of the VirtualBox_Windows_10.
    --- 2. Remount the same SQLServer2014 .iso from c:\ again using SetupVirtualCloneDrive5450.exe.
    --- 3. Re-run the SQLServer2014 install using the repair mode.
    This time the [Maintenance] [Repair] install completed with all elements showing installed successfully.
    Hope this helps
    Andy

  • Error: the cabinet file required for this installation is corrupt and cannot be used.

    Hi, ive recently just built a brand new computer and purchased windows 7 64 bit. the system runs fine except for the fact that i cannot install any games (these include command and conquer 4, red alert 3 and sims 3. i go to install and partway through it stops with a message saying:
     "the cabinet file 'name.cab' required for this installation is corrupt and cannot be used. this could indicate a network error, an error reading from the CD ROM, or a problem with this package."
    At first i suspectd a faulty cd rom drive, but the same thing happend wen i tried it with another drive. i know the disks are fine because theyr new. iv searced online and tried things such as disabling the antivirus, going into command prompt and deleting the .....\SQMClient\DisabledSessions as administrator and anything else that was recommended, but it still cant seem to like cabinet files (btw when the installation stops it doesnt always stop on the same .cab as a previous attempt, sometimes it gets further through the installation than others). they install fine on other computes with windows 7 64bit.
    Any help is appreciated! Thanx

    Hi Dazattack, I suggest you check the following KB article first:
    Error message during Office 2000 or Office XP installation: "Error 1335 - Cannot Copy Cab File Office1.cab"
    http://support.microsoft.com/kb/314810
    Note: Though it's for Office, some steps in the article can still be used in such scenario.
    Meanwhile, can you install other applications that downloaded from the Internet ?
    Sean Zhu - MSFT

  • Query to get batch GLBATCH name for the invoices of AP and AR

    Please provide a query to get GLBatch name for an invoice of AR and AR.
    From one cursor iam getting invoice number and invoiceID of AP and AR.
    I have written query but it is taking much time
    select distinct gjb.NAME
    from gl_je_headers gjh,
    gl_je_lines gjl,
    gl_je_batches gjb
    where gjl.REFERENCE_2=to_char(:p_invoiceid)
    and gjh.JE_HEADER_ID=gjl.JE_HEADER_ID
    and gjh.JE_BATCH_ID=gjb.JE_BATCH_ID
    so iam getting performance problem.
    Please suggest if iam wrong.
    Waiting for your valuable suggestion.
    Thanks
    ganesh

    Hi,
    the version of Oracle E-Business Suite is R12
    and ORacle Database IS 11I
    Thanks & Regards
    ganesh

  • When I turned off Find my iPhone, Apple sent me an email saying: I got an email from Apple saying: your Apple ID and password will no longer be required for someone to erase, reactivate, and use your iPhone. I don't understand!

    I just turned off Find my iPhone after hearing about the hacking in Australia.  I got an email from Apple saying:  your Apple ID and password will no longer be required for someone to erase, reactivate, and use your iPhone.  Does this mean that anyone can have access to my iPhone?  I still have to put my passcode in.

    What that means is the activation lock does not operate if you did what you said you did. Bottom line, turn it back on. That will then require anyone trying to use the device to have yoru Apple ID and password.
    Barry

  • Business area required for few invoices

    Hi friends i have one issue  which is as per requirement i selected business area is optional but for few invoices it is mandatory and for few invoices it not required, then i done validation it is asking business area for all invoices can i apply substution what is the procedure how it helps me
    please answer i will assign points
    Thanks and Regards
    chennu

    > Hi friends i have one issue  which is as per
    > requirement i selected business area is optional but
    > for few invoices it is mandatory and for few invoices
    > it not required, then i done validation it is asking
    > business area for all invoices can i apply substution
    > what is the procedure how it helps me
    >  please answer i will assign points
    >
    > Thanks and Regards
    >  chennu
    In validation provide the conditions under which it should look for BA and conditions underwhich it should not. Substitution will not help you in resolving this to my  understanding.

  • Urgent Help Required for Check Box in Table Column

    Hi all,
    Could any body help me to solve my problem?
    First of all I have created a table whose one column is check box. The column of the tables are Name,Phone,ID,Address and a checkBox columns.In one view
    the table will be found with data. I want to click on some of the rows(suppose there are 5 rows, but based on some condition I have selected the check box of 3 rows).
    Next there will be a button(Supose SEND Button).
    After selecting the check box I want to press that button and then a new window will come which will show two tables. one for  selected rows(with the same columns name except check box) and another for Unchecked rows with the same column name(Name,Phone,ID,Address).
    Could any body help me by sending the details and code?
    Thanks and Regards.
    Sudip

    Hi Sudip,
    1) create custom controller and appropriate context structure there (dataNode(Name,Phone,ID,Address,Check))
    2) create view StartView. Map data node from custom controller to node in view. Create table and bind context node attributes to appropriate table columns.
    3) create view ResultView. Map data node from custom controller to node in view. Create 2 nodes (CheckedData, UncheckedData) with supply methods. Create filtering implementation in supply methods (add checked and unchecked node elements to appropriate nodes).
    4) create new window with resultView as default view
    4) in startView in button action handler put something like
         IWDWindowInfo _windowInfo = wdComponentAPI.getComponentInfo().findInWindows("Popup");
         IWDWindowManager manager = wdComponentAPI.getWindowManager();
         IWDWindow _window = manager.createWindow(_windowInfo, true);
         _window.open();        
    So, just tried localy and it works.
    Best regards, Maksim Rashchynski.

  • Urgent Help Required for Connect Four Game

    Hi all,
    I am a student and I have a project due 20th of this month, I mean May 20, 2007 after 8 days. The project is about creating a Connect Four Game. I have found some code examples on the internet which helped me little bit. But there are lot of problems I am facing developing the whole game. I have drawn the Board and the two players can play. The players numbers can fill the board, but I have problem implementing the winner for the game. I need to implement the hasWon() method for Horizontal win, Vertical win and Diagonal win. I also found some code examples on the net but I was unable to make it working. I have 5 classes and one interface which I m implementing. The main problem is how to implement the hasWon() method in the PlayGame class below with Horizontal, vertical and diagonal moves.
    Sorry there is so much code.
    This the interface I must implement, but now I am only implementing the int move() of this interface. I will implement the rest later after solving the winner problem with your help.
    Interface code..............
    interface Player {
    void init (Boolean color);
    String name ();
    int move ();
    void inform (int i);
    Player1 class......................
    import java.util.*;
    import java.io.*;
    import javax.swing.*;
    public class Player1 implements Player
    public Player1()
    public int move()
    Scanner scan = new Scanner(System.in);
    // BufferedReader stdin = new BufferedReader (new InputStreamReader(System.in));
    int player1;
    System.out.println ("What is your Number, player 1?");
    player1 = scan.nextInt();
    System.out.println ("Hey number"+player1+" are you prepared to CONNECT FOUR");
    System.out.println();
    return player1;
    //Player.move();
    //return player1;
    }//end move method
    public void init (Boolean color)
    public void inform (int i)
    public String name()
    return "Koonda";
    }//end player1 class
    Player2 class...........................
    import java.util.*;
    import java.io.*;
    import javax.swing.*;
    public class Player2 implements Player
    public int move()
    //int cup0,cup1,cup2,cup3,cup4,cup5,cup6;
    // cup0=5;cup1=5;cup2=5;cup3=5;cup4=5;cup5=5;cup6=5;
    //int num1, num2;
    Scanner scan = new Scanner(System.in);
    // BufferedReader stdin = new BufferedReader (new InputStreamReader(System.in));
    int player2;
    System.out.println ("What is your Number, player 2?");
    player2 = scan.nextInt();
    System.out.println ("Hey "+player2+" are you prepared to CONNECT FOUR");
    System.out.println();
    //return player1;
    return player2;
    }//end move method
    public void init (Boolean color)
    public void inform (int i)
    public String name()
    return "malook";
    }//end player1 class
    PlayGame class which contains all the functionality.........................................................
    import java.util.*;
    import java.io.*;
    import javax.swing.*;
    public class PlayGame
    //Player player1;
    //Player player2;
    int [][]ConnectFourArray;
    boolean status;
    int winner;
         int player1;
         int player2;
         public PlayGame()
              //this.player1 = player1;
              //this.player2 = player2;
         public void StartGame()
         try{
         // int X = 0, Y = 0;
         //int value;
         int cup0,cup1,cup2,cup3,cup4,cup5,cup6;
    cup0=5;cup1=5;cup2=5;cup3=5;cup4=5;cup5=5;cup6=5;
         int[][] ConnectFourArray = new int[6][7];
         int num1, num2;
         for(int limit=21;limit!=0;limit--)
    BufferedReader selecter = new BufferedReader (new InputStreamReader(System.in));
    String column1;
    System.out.println();
    for ( int row=0; row < ConnectFourArray.length; row++ ){
    System.out.print("Row " + row + ": ");
    for ( int col=0; col < ConnectFourArray[row].length; col++ )
    System.out.print( ConnectFourArray[row][col] + " ");
    System.out.println();
    System.out.println();
    System.out.println ("Please Select a column of 0 through 6 ");
    column1 = selecter.readLine();
    num1= Integer.parseInt(column1);
    System.out.println();
    if (num1==0){
    ConnectFourArray[cup0][0]=1;
    cup0=cup0-1;
    else if (num1==1){
    ConnectFourArray[cup1][1]=1;
    cup1=cup1-1;
    else if (num1==2){
    ConnectFourArray[cup2][2]=1;
    cup2=cup2-1;
    else if (num1==3){
    ConnectFourArray[cup3][3]=1;
    cup3=cup3-1;
    else if (num1==4){
    ConnectFourArray[cup4][4]=1;
    cup4=cup4-1;
    else if (num1==5){
    ConnectFourArray[cup5][5]=1;
    cup5=cup5-1;
    else if (num1==6){
    ConnectFourArray[cup6][6]=1;
    cup6=cup6-1;
    System.out.println();
    BufferedReader selecter2 = new BufferedReader (new InputStreamReader(System.in));
    String column2;
    System.out.println();
    for ( int row=0; row < ConnectFourArray.length; row++ ){
    System.out.print("Row " + row + ": ");
    for ( int col=0; col < ConnectFourArray[row].length; col++ )
    System.out.print( ConnectFourArray[row][col] + " ");
    System.out.println();
    System.out.println();
    System.out.println ("Please Select a column of 0 through 6 ");
    column1 = selecter.readLine();
    num1= Integer.parseInt(column1);
    System.out.println();
    if (num1==0){
    ConnectFourArray[cup0][0]=2;
    cup0=cup0-1;
    else if (num1==1){
    ConnectFourArray[cup1][1]=2;
    cup1=cup1-1;
    else if (num1==2){
    ConnectFourArray[cup2][2]=2;
    cup2=cup2-1;
    else if (num1==3){
    ConnectFourArray[cup3][3]=2;
    cup3=cup3-1;
    else if (num1==4){
    ConnectFourArray[cup4][4]=2;
    cup4=cup4-1;
    else if (num1==5){
    ConnectFourArray[cup5][5]=2;
    cup5=cup5-1;
    else if (num1==6){
    ConnectFourArray[cup6][6]=2;
    cup6=cup6-1;
    System.out.println();
    System.out.println();
    catch (Exception E){
    System.out.println("Error with input");
    System.out.println("Would you like to play again");
    try{
    String value;
    BufferedReader reader = new BufferedReader (new InputStreamReader(System.in));
    // Scanner scan = new Scanner(System.in);
    System.out.println("Enter yes to play or no to quit");
    // value = scan.nextLine();
    // String value2;
    value = reader.readLine();
    //value2 = reader.readLine();
    if (value.equals("yes"))
    System.out.println("Start again");
    StartGame(); // calling the StartGame method to play a game once more
    else if (value.equals("no"))
    System.out.println("No more games to play");
    // System.exit(0);
    else
    System.exit(0);
    System.out.println();
    catch (Exception e){
    System.out.println("Error with input");
    finally
    System.out.println(" playing done");
    //StartGame();
    //check for horizontal win
    public int hasWon()
    int status = 0;
    for (int row=0; row<6; row++)
    for (int col=0; col<4; col++)
    if (ConnectFourArray[col][row] != 0 &&
    ConnectFourArray[col][row] == ConnectFourArray[col+1][row] &&
    ConnectFourArray[col][row] == ConnectFourArray[col+2][row] &&
    ConnectFourArray[col][row] == ConnectFourArray[col+3][row])
    //status = true;//int winner;
    if(status == player1)
    System.out.println("Player 1 is the winner");
    else if(status == player2)
    System.out.println("Player 2 is the winner" );
    }//end inner for loop
    }// end outer for loop
    } // end method Winner
    return status;
    }//end class
    ClassConnectFour which designs the board........................
    import java.util.*;
    import java.io.*;
    import javax.swing.*;
    public class ClassConnectFour
         //Player player1;
         //Player player2;
         public ClassConnectFour()
              //this.player1 = player1;
    public void DrawBoard()
    int[][] ConnectFourArray = new int[6][7] ;
    for ( int row=0; row < ConnectFourArray.length; row++ ){
    System.out.print("Row " + row + ": ");
    for ( int col=0; col < ConnectFourArray[row].length; col++ )
    System.out.print( ConnectFourArray[row][col] + " ");
    System.out.println();
    System.out.println();
    }//end class
    TestConnetFour class which uses most of the above class..................
    import java.util.*;
    import java.io.*;
    import javax.swing.*;
    public class TestConnectFour
    public static void main(String[] args)
    ClassConnectFour cf = new ClassConnectFour();
    cf.DrawBoard();
    Player1 player1 = new Player1();
    Player2 player2 = new Player2();
    player1.move();
    player2.move();
    System.out.println("Number 1 belongs to player " + player1.name());
    System.out.println("Number 2 belongs to player " + player2.name());
    PlayGame pg = new PlayGame();
    pg.StartGame();
    pg.hasWon();
    //pg.Play();
    //System.out.println(player.name());
    //System.out.println(player2.name());
    }// end main
    }//end class
    I am sorry for all this junk code but I only understand it this way. Your urgent help is required. Looking forward to your reply.
    Thanks in advance.
    Koonda
    //

    Hi,
    Thanks for your help but I really don't understand the table lookup algorithm. Could you please send me some code to implement that.
    I will send you the formatted code as well
    Thanks for your help.
    looking forward to your reply.
    Koonda
    Hi all,
    I am a student and I have a project due 20th of this month, I mean May 20, 2007 after 8 days. The project is about creating a Connect Four Game. I have found some code examples on the internet which helped me little bit. But there are lot of problems I am facing developing the whole game. I have drawn the Board and the two players can play. The players numbers can fill the board, but I have problem implementing the winner for the game. I need to implement the hasWon() method for Horizontal win, Vertical win and Diagonal win. I also found some code examples on the net but I was unable to make it working. I have 5 classes and one interface which I m implementing. The main problem is how to implement the hasWon() method in the PlayGame class below with Horizontal, vertical and diagonal moves.
    Sorry there is so much code.
    This the interface I must implement, but now I am only implementing the int move() of this interface. I will implement the rest later after solving the winner problem with your help.
    Interface code..............
    interface Player {
    void init (Boolean color);
    String name ();
    int move ();
    void inform (int i);
    Player1 class......................
    import java.util.*;
    import java.io.*;
    import javax.swing.*;
    public class Player1 implements Player
    public Player1()
    public int move()
    Scanner scan = new Scanner(System.in);
    // BufferedReader stdin = new BufferedReader (new InputStreamReader(System.in));
    int player1;
    System.out.println ("What is your Number, player 1?");
    player1 = scan.nextInt();
    System.out.println ("Hey number"+player1+" are you prepared to CONNECT FOUR");
    System.out.println();
    return player1;
    //Player.move();
    //return player1;
    }//end move method
    public void init (Boolean color)
    public void inform (int i)
    public String name()
    return "Koonda";
    }//end player1 class
    Player2 class...........................
    import java.util.*;
    import java.io.*;
    import javax.swing.*;
    public class Player2 implements Player
    public int move()
    //int cup0,cup1,cup2,cup3,cup4,cup5,cup6;
    // cup0=5;cup1=5;cup2=5;cup3=5;cup4=5;cup5=5;cup6=5;
    //int num1, num2;
    Scanner scan = new Scanner(System.in);
    // BufferedReader stdin = new BufferedReader (new InputStreamReader(System.in));
    int player2;
    System.out.println ("What is your Number, player 2?");
    player2 = scan.nextInt();
    System.out.println ("Hey "+player2+" are you prepared to CONNECT FOUR");
    System.out.println();
    //return player1;
    return player2;
    }//end move method
    public void init (Boolean color)
    public void inform (int i)
    public String name()
    return "malook";
    }//end player1 class
    PlayGame class which contains all the functionality.........................................................
    import java.util.*;
    import java.io.*;
    import javax.swing.*;
    public class PlayGame
    //Player player1;
    //Player player2;
    int [][]ConnectFourArray;
    boolean status;
    int winner;
    int player1;
    int player2;
    public PlayGame()
    //this.player1 = player1;
    //this.player2 = player2;
    public void StartGame()
    try{
    // int X = 0, Y = 0;
    //int value;
    int cup0,cup1,cup2,cup3,cup4,cup5,cup6;
    cup0=5;cup1=5;cup2=5;cup3=5;cup4=5;cup5=5;cup6=5;
    int[][] ConnectFourArray = new int[6][7];
    int num1, num2;
    for(int limit=21;limit!=0;limit--)
    BufferedReader selecter = new BufferedReader (new InputStreamReader(System.in));
    String column1;
    System.out.println();
    for ( int row=0; row < ConnectFourArray.length; row++ ){
    System.out.print("Row " + row + ": ");
    for ( int col=0; col < ConnectFourArray[row].length; col++ )
    System.out.print( ConnectFourArray[row][col] + " ");
    System.out.println();
    System.out.println();
    System.out.println ("Please Select a column of 0 through 6 ");
    column1 = selecter.readLine();
    num1= Integer.parseInt(column1);
    System.out.println();
    if (num1==0){
    ConnectFourArray[cup0][0]=1;
    cup0=cup0-1;
    else if (num1==1){
    ConnectFourArray[cup1][1]=1;
    cup1=cup1-1;
    else if (num1==2){
    ConnectFourArray[cup2][2]=1;
    cup2=cup2-1;
    else if (num1==3){
    ConnectFourArray[cup3][3]=1;
    cup3=cup3-1;
    else if (num1==4){
    ConnectFourArray[cup4][4]=1;
    cup4=cup4-1;
    else if (num1==5){
    ConnectFourArray[cup5][5]=1;
    cup5=cup5-1;
    else if (num1==6){
    ConnectFourArray[cup6][6]=1;
    cup6=cup6-1;
    System.out.println();
    BufferedReader selecter2 = new BufferedReader (new InputStreamReader(System.in));
    String column2;
    System.out.println();
    for ( int row=0; row < ConnectFourArray.length; row++ ){
    System.out.print("Row " + row + ": ");
    for ( int col=0; col < ConnectFourArray[row].length; col++ )
    System.out.print( ConnectFourArray[row][col] + " ");
    System.out.println();
    System.out.println();
    System.out.println ("Please Select a column of 0 through 6 ");
    column1 = selecter.readLine();
    num1= Integer.parseInt(column1);
    System.out.println();
    if (num1==0){
    ConnectFourArray[cup0][0]=2;
    cup0=cup0-1;
    else if (num1==1){
    ConnectFourArray[cup1][1]=2;
    cup1=cup1-1;
    else if (num1==2){
    ConnectFourArray[cup2][2]=2;
    cup2=cup2-1;
    else if (num1==3){
    ConnectFourArray[cup3][3]=2;
    cup3=cup3-1;
    else if (num1==4){
    ConnectFourArray[cup4][4]=2;
    cup4=cup4-1;
    else if (num1==5){
    ConnectFourArray[cup5][5]=2;
    cup5=cup5-1;
    else if (num1==6){
    ConnectFourArray[cup6][6]=2;
    cup6=cup6-1;
    System.out.println();
    System.out.println();
    catch (Exception E){
    System.out.println("Error with input");
    System.out.println("Would you like to play again");
    try{
    String value;
    BufferedReader reader = new BufferedReader (new InputStreamReader(System.in));
    // Scanner scan = new Scanner(System.in);
    System.out.println("Enter yes to play or no to quit");
    // value = scan.nextLine();
    // String value2;
    value = reader.readLine();
    //value2 = reader.readLine();
    if (value.equals("yes"))
    System.out.println("Start again");
    StartGame(); // calling the StartGame method to play a game once more
    else if (value.equals("no"))
    System.out.println("No more games to play");
    // System.exit(0);
    else
    System.exit(0);
    System.out.println();
    catch (Exception e){
    System.out.println("Error with input");
    finally
    System.out.println(" playing done");
    //StartGame();
    //check for horizontal win
    public int hasWon()
    int status = 0;
    for (int row=0; row<6; row++)
    for (int col=0; col<4; col++)
    if (ConnectFourArray[col][row] != 0 &&
    ConnectFourArray[col][row] == ConnectFourArray[col+1][row] &&
    ConnectFourArray[col][row] == ConnectFourArray[col+2][row] &&
    ConnectFourArray[col][row] == ConnectFourArray[col+3][row])
    //status = true;//int winner;
    if(status == player1)
    System.out.println("Player 1 is the winner");
    else if(status == player2)
    System.out.println("Player 2 is the winner" );
    }//end inner for loop
    }// end outer for loop
    } // end method Winner
    return status;
    }//end class
    ClassConnectFour which designs the board........................
    import java.util.*;
    import java.io.*;
    import javax.swing.*;
    public class ClassConnectFour
    //Player player1;
    //Player player2;
    public ClassConnectFour()
    //this.player1 = player1;
    public void DrawBoard()
    int[][] ConnectFourArray = new int[6][7] ;
    for ( int row=0; row < ConnectFourArray.length; row++ ){
    System.out.print("Row " + row + ": ");
    for ( int col=0; col < ConnectFourArray[row].length; col++ )
    System.out.print( ConnectFourArray[row][col] + " ");
    System.out.println();
    System.out.println();
    }//end class
    TestConnetFour class which uses most of the above class..................
    import java.util.*;
    import java.io.*;
    import javax.swing.*;
    public class TestConnectFour
    public static void main(String[] args)
    ClassConnectFour cf = new ClassConnectFour();
    cf.DrawBoard();
    Player1 player1 = new Player1();
    Player2 player2 = new Player2();
    player1.move();
    player2.move();
    System.out.println("Number 1 belongs to player " + player1.name());
    System.out.println("Number 2 belongs to player " + player2.name());
    PlayGame pg = new PlayGame();
    pg.StartGame();
    pg.hasWon();
    //pg.Play();
    //System.out.println(player.name());
    //System.out.println(player2.name());
    }// end main
    }//end classI am sorry for all this junk code but I only understand it this way. Your urgent help is required. Looking forward to your reply.
    Thanks in advance.
    Koonda

  • Help required for unicode compatibilty

    Dear All,
    We are in a process of analyzing the impact of unicode compatibility for our environment.
    Following is our scenario:
    - ECC6.0 is non unicode systsem
    - Need to buid unicode CRM 7, SCM 7, PI 7.1 and BI7
    - Need to integrate the above systems to non unicode ECC system.
    Our questions are :
    1. Is there any performance consideration when using communication between an Unicode and non-Unicode system?
       Is Unicode - Unicode faster than Unicode - non-Unicode communication performance wise?
    2. Do we face any  technical or functinal problems while trying to integrate
       unicode BI/ NW Java Stack  to non unicode systems.
    3. Do we need to review our sizing estimations due to unicode implemenation?
    5. what will be the storage consumption increase for unicode systems compared to non unicode?
    It would be greatly helpful for me if you can clarify these doubts.
    Thanks and Regards

    Hi,
    1. I think no one has really measured this. I expect a slightly higher requirement for Unicode <--> Non-Unicode interfaces.
    2. Please have a look at SAP Notes 838402, 73606, 975768 and 1358929 for restrictions in Non-Unicode systems. SAP highly recommends to go for Unicode in the whole landscape.
    3. and 5.  If you use the SAP quicksizer (http://service.sap.com/quicksizing), then Unicode is integrated.
    " Please note that the Quick Sizer results include Unicode requirements. For more
    information on additional requirements caused by Unicode, see
    http://service.sap.com/unicode -> Unicode Media Library -> Unicode information on
    specific topics: SAP Business Suite Unicode Hardware Requirements"
    Best regards,
    Nils Buerckel
    SAP AG

  • Help required for dynamic quarter calculation

    I have a requirement, where the user will have the liberty to choose his self defined Quarter and the report output will be grouped based on what he selects.
    The data in the table is at daily grain.
    So ,if the user selects date as 1st April and number of quarters as 2.
    The report should show the data aggregated for previous 2 quarters where 1st April is the start date.
    i.e.Feb-March-April as Q2
    and Nov-Dec-Jan as Q1
    Please suggest how to implement this.
    Best Regards,
    Sud

    Hi,
    Welcome to the forum!
    Whenever you have a question, please post a little sample data (CREATE TABLE and INSERT statements) for all the tables involved, so the people who want to help you can re-create the problem and test their ideas. Also post the results you want from that data, and an explanation of how you get those results from that data.
    If the problem involves parameters (such as the number of quarters you want, and the starting point of one of the quarters) then post a few sets of parameters, and the results you want from the same sample data for each set.
    Explain, using specific examples, how you get those results from that data.
    Always say what version of Oracle you're using (e.g. 11.2.0.2.0).
    See the forum FAQ {message:id=9360002}
    Here's one way you can pass the set the number of quarters, and the starting date of the last quarter wanted:
    WITH   params      AS
         SELECT  TO_DATE ( '01-Apr-2012'     -- Beginning of last quarter
                   , 'DD-Mon-YYYY'
                   )     AS s_date
         ,     5          AS num_quarters
         FROM     dual
    ,     quarters_wanted         AS
         SELECT  ADD_MONTHS ( start_date)
                      , 3 * (1 - LEVEL)
                      )   AS start_dt
         ,     ADD_MONTHS ( start_date)
                      , 3 * (2 - LEVEL)
                      )   AS end_dt
         FROM     params
         CONNECT BY     LEVEL <= num_quarters
    SELECT       q.start_date
    ,       COUNT (*)     AS num_rows
    FROM       quarters_wanted  a
    JOIN       your_table        t  ON  t.date_column  >= q.start_date
                           AND t.date_coplumn <  q.end_date
    GROUP BY  q.start_date
    ;No matter what date you pick (it doesn't have to be the beginning of a month) or how many quarters you want, you only have to change 2 lines in the params sub-query.
    If you want to include quarters that have no data in your table (with a COUNT of 0) then change the inner JOIN in the main query to a LEFT OUTER JOIN.

Maybe you are looking for

  • Is it safe to delete these files?

    I'm making a video in iMovie, and as it is around 15 minutes long, all the clips and audio I have imported into iMovie takes up a huge amount of space on my computer, which means I can't make the video into a file as there's not enough space on the h

  • Big problem after updating to 14.2.A.1.136

    Hello everyone, Yesterday I updated my Xperia Z1 to this version 14.2.A.1.136 Android version 4.3 I have done this update through my PC because this update was not available on my phone. But after i have successfully done this update and have followe

  • Having trouble with gigabyte geforce 8600 gts not displaying in device manager

    hey i recently got a gigabyte geforce 8600gts and i installed it in the pci-ex slot and its not found once i started up windows and windows did not prompt for found new hardware, could the vga card not function or is it the slot. there is power to th

  • How to stop last action ?

    HI, I recently made a little mistake...on my imac and that reminded me that I have been meaning to find this out in general..The keyboard shortcut would have come in handy in this case. How can I stop an action that I do not want to continue ? Or...w

  • Router series 2900 o 3900 problema en configuracion como gateway de voz

    Hola buenas tardes a todos. Se me esta presentando una problemática muy recurrente, si se realiza el upgrade de hardware de una plataforma 2800, a las plataformas 2900 o 3900, las controladoras de e1 para voz por TDM deja de funcionar, aunque se les