Skip to Content
author's profile photo Former Member
Former Member

How to Create Sales Order in Other Company Database

Hi everyone,

I am using SAP 9.0.I have a issue as follows.

Customer has two companies.These two companies has interlinked transactions.

Let us take an example

companies :Company A

Company B

Issue : If the Company A has Purchase order then Company B has Sales order.

customer wants to automate this process.How can do this by using SDK?

Please suggest me.

Thanks and Regards

DEV

Add a comment
10|10000 characters needed characters exceeded

Related questions

2 Answers

  • author's profile photo Former Member
    Former Member
    Posted on Jan 07, 2014 at 06:59 AM

    hi.

    You want to communicate with two data bases then

    have a look on below posts ..

    it might be helpful..

    http://scn.sap.com/thread/3261116

    http://scn.sap.com/thread/3290268

    Add a comment
    10|10000 characters needed characters exceeded

    • Former Member Former Member

      hi..

      It is executing successfully

      means what which means it is running without errors i think..



      u have to use like below


      return_value2 = oGoodsReceiptPO.Add()

      If return_value2 <> 0 Then

      ocompany.GetLastError(return_value2, SerrorMsg)

      End If

      above change some code..

      lRetcode = oDoc.Add()

      If lRetcode <> 0 Then

      ocompany.GetLastError(return_value2, SerrorMsg)

      End If

      put break point on If lRetcode <> 0 Then

      if it is lretcode =0 no problem

      other wise it will give the error.description..



  • author's profile photo Former Member
    Former Member
    Posted on Jan 07, 2014 at 07:08 AM

    Hi DEV,

    By a way or another, you have to connect on both companies and enter the corresponding documents.

    Your choices are DI, DIS and B1if, depending on if it has to be a server process your skills and license used.


    But in your sample code, your're connecting only on one of the companies to add a document: not on the second one. You have to open a connection onto the second company and add also the corresponding document.

    Regards,

    Eric

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.