EDI 850: one vendor, multiple purchasing orgs

We have sussessfully implemented EDI 850 (purchase order) interface by using PO output, IDoc ORDERS05 and ABAP-PI port with a custom function module, which writes the IDoc data into a file and sends it to a third-party software (Gentran).
Now the problem is that we have 2 purchasing organizations (EKORG) and for each organization we need to create a separate file and send it to a different FTP server. Unfortunately, EKORG is not included anywhere in the IDoc control record (EDI partner profile is set up by vendor), only in the IDoc segments.
Has anyone had the same issue and what would you recommend?

Hi Jelena,
Welcome to SDN.
Are you using process code ME10 (FM IDOC_OUTPUT_ORDERS)?
If you are then there is user exits EXIT_SAPLEINM_001 that can be used to add additional information to IDoc control record.
For example you can use EDIDC-MESCOD and/or EDIDC-MESFCT to populate the mapping for your purchasing organization (EKORG).
You can code something like this inside user exits.
IF EKKO-EKORG = '0001'
  CONTROL_RECORD_OUT-MESCOD = '1'.
ELSEIF EKKO-EKORG = '0002'.
  CONTROL_RECORD_OUT-MESCOD = '2'.
ELSE.
ENDIF.
then you can use CONTROL_RECORD_OUT-MESCOD to distinguish/map purchase organization into EDI850 in the middleware system (Gentran).
Hope this will help.
Regards,
Ferry Lianto

Similar Messages

  • EXTEND VENDOR  FROM PURCHASE ORG LEVEL TO CO CODE LEVEL

    Dear friends,
    I have create a  vendor master  at purchase organization level  using  T code mk01,  Now  want to extend it to company code level, please suggest me  how to extend vendor code  form  purchase oganiztion level to  company code,
    With regards,
    ARABBAS
    Note : Please search forum before posting
    Edited by: Jeyakanthan A on May 30, 2011 9:48 PM

    Hi
    MK01 can be used for maintaining the vendor details at the purchasing org level & for general data
    FK01 can be used for maintaining the vendor details at the company code level & for general data.
    XK01 can be used for maintaining the vendor details at the company code , purchasing org level and general data
    if wnat extend vendor at company code level,then use t-code xk01 or fk01
    check following link
    [Vendor create]
    Regards
    Kailas Ugale

  • One Vendor Multiple Address

    Hi
    Is Possible to create  Single Vendor with Multiple Address for diffrent Plant.( with Out Partner Fucntion )
    Thanks,

    if you mean different addresses wiht addresses in e.g. different cities, then it is not possible
    if you mean different address as the same address but one in english and the other in chinese fonts, then it is possible with international address setup.

  • Same Purchasing group assigment to multiple Purchasing Org

    Dear all,
    I am facing an issue in SRM 5.0 in Classic Scenario.
    In R/3 the freedom exist to assign independently the Purchasing Organization and the Purchasing Group to a PREQ or PO.
    Then the following lists have been created:
    <u>PurchORG</u>:
    - PORG1: Porg of country 1
    - PORG2: Porg of country 2
    <u>and PurchGROUP</u>
    - PGRP1: Pgrp Office sup
    - PGRP2: Pgrp IT
    and then I want to be able to use all the following combinations:
    PORG1-PGRP1
    PORG1-PGRP2
    PORG2-PGRP1
    PORG2-PGRP2
    To do that I create in my Organization Plan the following:
    - PORG1
         -PGRP11
         -PGRP12
    - PORG2
         -PGRP21
         -PGRP22
    However as I am in Classical Scenario I need to link the OrgPlan Pgrp to the coresponding in R/3
    - PORG1
         -PGRP11 >PGRP1
         -PGRP12 >PGRP2
    - PORG2
         -PGRP21 >PGRP1 : Error Purchasing group ... in system ... already assigned to ... (message BBP_ATTR 030)
         -PGRP22
    1) I have read somewhere but I can not find it anymore that the system messages can be updated to avoid this error and to allow that functionality. Has somebody done it? Where is it? I am correct?
    2) Otherwise do you have an option to do it? 
    How must I create my Org Plan as I suppose all Porg and PGrp must exist once in Org Plan.
    Then must I use the BADI BBP_PGRP_FIND with Determine Responsible Purchasing Group(s) BADI BBP_PGRP_FIND.  Can you explain how, or provide piece of code.
    I looked in doculentation but I don't see clearly the difference between the 2 exit objects (they seem duplicate for me):
    - ES_PURCH_DATA - This output structure should contain the object type and the object ID of the default purchasing group and the higher-level purchasing organization. If you are dealing with a backend purchasing group (purchasing organization), then you must also define the corresponding backend IDs.
    - ET_PURCH_DATA - This output table passes the list of all responsible purchasing groups and their higher-level purchasing organizations. A table line is formed corresponding to structure ES_PURCH_DATA.
    Thanks in advance
    RD

    Hi
    <b>You can go through the link for complete code and other required details -></b>
    https://www.sdn.sap.com/irj/sdn/wiki?path=/display/srm/badi-general+information&
    Re: Purchasing group from external requirements
    Re: BAdI BBP_PGRP_FIND
    Re: Purchasing group from external requirements
    Re: Sample code for BADI implementation
    Every purchaser will be assigned to the relevant purchasing groups in Organization structure and purchasing groups have the product responsibility (product category) and person/organization responsiblility assigned in the 'Responsibility' tab. I think this should be sufficient to get the linkage.
    Re: "Proc_Group" assignment to shopping cart  from transferred requisitions
    Using BAdI BBP_PGRP_FIND for purch.group determination
    Use Function Module -> BBP_OM_READ_PURCH_ORG_ID
    Give Logical system and Purchasing group to this FM.
    It will give you
    ES_PURCH_ORG-OT
    ES_PURCH_ORG-OBJID
    Use this info in table HRP1000(Infotype 1000 DB Table) to get the value of text.
    Function module - BBP_OM_DETERMINE_RESP_PGRP
    The purchaing groups are responsible for product catrgories (material group) and not material numbers. If you use "describe requirement" to create a shopping cart, the purchasing group will default from this responsibilty of product categorty and not material number.
    Also the purchasing group can default on other criterias like the organizational responsibility and so on....
    Inorder to determine the reponsible purchase organization for creating shopping carts for all product categories, this task can be accomplished by implemeting the badi BBP_DOC_CHANGE_BADI. here you have to write some logic to change the purchasing organization based on product category. In the purchasing cycle Purchase Organization is not responsible to procure the product, Purchase Group is responsible for the same. In the Organization structure after defining Purchasing organization, you might have define Purchase Group also in the purcase group RESPONSIBLE TAB you have to define the PRODUCT CATAGORY to be procure by this Purchase group.
    Do let me know.
    Regards
    -Atul

  • Purchasing Groups for multiple Purchase Organizations

    Dear all,
    in SRM 5.0 we are using two different purchase organizations which are linked to backend purchase organizations in extended classeical szenario.
    When I try to assign purchasing groups linked to backend purchasing groups to both both purchase organizations I get the following error message:
    >> Purchasing group xxx in system xxx already assigned to unit xxx
    >> Message no. BBP_ATTR030
    >>
    >> Diagnosis
    >> You have attempted to enter the backend ID of a purchasing group or to change an existing one. >> >> However, this backend ID is already allocated to unit xxx (organizational unit xxx) in the organizational structure.
    >>
    >>
    >> Procedure
    >> Enter a different backend ID for the selected purchasing group.
    Is there a way to assign purchasing groups to more than one purchase org?
    Thanks and regards
    AD

    Hi,
    See the solution in the foll thread:
    Same Purchasing group assigment to multiple Purchasing Org
    BR,
    Disha.
    Do reward points for useful answers

  • Company code and Purchase Org during vendor registration

    Hi,
    I have one enterprise context, with many company codes and purchasing org.
    I am aware that vendor master data is at enterprise level in ESO. However while integrating to backend i need to capture the relevant co code and Purchasing org.
    When the Purchaser wants to create a vendor, there does not seem anyway to enter which Purchasing org and company code the vendor should be created for.
    Need your suggestions for the following options
    1) capture co code and Purchasing org on bespoke fields and then in PI, pass these values to Co code and Purch org resp
    2) create company contexts - would this resolve this? what are the implications if one vendor needs to be extended to multiple co codes
    regards
    Subrote

    Hi,
    Have you imported integration config workbook.
    As part of ECC integartion  guide we have couple of workbook and XML needs to integrated, which will create all the required extension for vendor master and vendor registration.
    Once you imported the integration workbook, you will able to see the company code and purchasing org screens in vendor master.
    Thank you,
    Mani

  • Vendor replication to multiple purchasing organizations in SRM

    In R/3 we have extended vednors to multiple purchasing organizations. In SRM we want to keep the same structure. However, when we replicate vendors from R/3 to SRM, the vendor is only connected to one purchasing organization in SRM. Due to the amout of vendors we have, we do not want to extend vendors manually in SRM. Running BBP_GETVD for a second time does not work either. Has anybody any suggestions how to deal with this?
    Ed Muhlradt

    Hi
    <u>Refer to Web page transactions - Manage Business Partners ( or Instead of BBPSTART or BBPSC01, type the transaction - BBPMAININT ) in the SRM web page.
    There, you can associate multiple purchase organizations to the same vendor.</u>
    <i>Other links of interest : -></i>
    <b>How to assign contact person user id to Vendor uploaded from ECC?
    Vendor replication - account group change
    vendor replication
    Vendor Replication in SUS scenario
    http://help.sap.com/saphelp_srm50/helpdata/en/bb/6c0e3b02616a42e10000000a11402f/frameset.htm
    vendor replication
    Do we need to have Multiple Vendor Roots in PPOCV_BBP for Multiple back end
    Payment Terms not getting updated for local Purch Org Vendor Combination
    Regards
    - Atul

  • Want to create a multiple Purchase Order using one file source

    I'm want to create a multiple purchase order using one source file. I want to read the file source create LINES in a purchase order and when the Vendor code changes I want to Add the purchase order and then create a new purchase order and Add LINES and so on.
    Right now I get  Item.no is missing [POR1.ItemCode][Line 2]

    Here is a code sample
        Private Sub testcode()
            Dim strOrdplanFile As String
            Dim oLineRec As SAPbobsCOM.Recordset
            Dim strLine As String = ""
            Dim ItemName As String
            Dim Quantity As String
            Dim RequiredDate As String
            Dim SupplierType As String
            Dim ShipTo As String
            Dim Vendor As String
            Dim oPurchaseOrder As SAPbobsCOM.Documents
            Dim bAddPOrder As Boolean = True
            Dim bPurchase As Boolean = False
            Dim sSQL As String
            Dim iReads As Integer = 1
            Dim iCurrentPurchaseNumber As Integer = 0
            Dim bErrors As Boolean = False
            Dim retCode As Double
            oPurchaseOrder = oCompany.GetBusinessObject(SAPbobsCOM.BoObjectTypes.oPurchaseOrders)
            strOrdplanFile = strFolderLocation & "ORDPLAN.TXT"
            If File.Exists(strOrdplanFile) And FileLen(strOrdplanFile) > 0 Then
                Dim sr As New StreamReader(strOrdplanFile)
                strLine = sr.ReadLine()
                txtPurRec.String = "0"
                oFormStatus.Update()
                Try
                    Do
                        Vendor = strLine.Substring(0, 8).Trim()
                        ShipTo = strLine.Substring(12, 8).Trim()
                        SupplierType = strLine.Substring(26, 1)
                        ItemName = strLine.Substring(27, 20).Trim()
                        Quantity = strLine.Substring(94, 8)
                        RequiredDate = strLine.Substring(206, 9)
                        oLineRec = oCompany.GetBusinessObject(SAPbobsCOM.BoObjectTypes.BoRecordset)
                        sSQL = "SELECT PrcrmntMtd, CardCode FROM OITM WHERE ItemCode = '" & ItemName & "'"
                        oLineRec.DoQuery(sSQL)
                        If oLineRec.RecordCount() > 0 Then ' if it exists add the record
                            If oLineRec.Fields.Item(0).Value.ToString = "B" Then
                                If (bAddPOrder) Then
                                    oPurchaseOrder.CardCode = Vendor
                                    oPurchaseOrder.DocDueDate = RequiredDate
                                    'Add first item to the purchase order
                                    oPurchaseOrder.Lines.ItemCode = ItemName
                                    oPurchaseOrder.Lines.WarehouseCode = ShipTo
                                    oPurchaseOrder.Lines.Quantity = CDbl(Quantity)
                                    oPurchaseOrder.Lines.Add()
                                    bAddPOrder = False
                                    bPurchase = True
                                    iCurrentPurchaseNumber = iCurrentPurchaseNumber + 1
                                    txtPurRec.String = "R: " & iReads & " W: " & iCurrentPurchaseNumber.ToString
                                    oFormStatus.Update()
                                Else
                                    'compare CardCode to make sure Vendor hasn't change
                                    If (oPurchaseOrder.CardCode.CompareTo(Vendor) = 0) Then
                                        'Add item to the purchase order
                                        oPurchaseOrder.Lines.ItemCode = ItemName
                                        oPurchaseOrder.Lines.WarehouseCode = ShipTo
                                        oPurchaseOrder.Lines.Quantity = CDbl(Quantity)
                                        oPurchaseOrder.Lines.Add()
                                    Else
                                        'vender code changed
                                        retCode = oPurchaseOrder.Add()
                                        If (retCode <> 0) Then
                                            SBO_Application.MessageBox(oCompany.GetLastErrorDescription(), 1, "OK", "", "")
                                        End If
                                        oPurchaseOrder.CardCode = Vendor
                                        oPurchaseOrder.DocDueDate = RequiredDate
                                        'Add first item to the purchase order
                                        oPurchaseOrder.Lines.ItemCode = ItemName
                                        oPurchaseOrder.Lines.WarehouseCode = ShipTo
                                        oPurchaseOrder.Lines.Quantity = CDbl(Quantity)
                                        oPurchaseOrder.Lines.Add()
                                        bAddPOrder = False
                                        bPurchase = True
                                        iCurrentPurchaseNumber = iCurrentPurchaseNumber + 1
                                        txtPurRec.String = "R: " & iReads & " W: " & iCurrentPurchaseNumber.ToString
                                        oFormStatus.Update()
                                    End If
                                    iReads = iReads + 1
                                End If 'new
                                strLine = sr.ReadLine()
                            End If
                        End If
                    Loop Until sr.EndOfStream
                Catch ex As Exception
                    MsgBox(ex.Message, MsgBoxStyle.Information)
                End Try
                If (bPurchase) Then
                    lRetCode = oPurchaseOrder.Add()
                End If
                sr.Close()
                swLogFile.WriteLine("Purchase orders stored : " & iCurrentPurchaseNumber)
                oPurchaseOrder = Nothing
            End If
        End Sub

  • Multiple currency for one vendor

    Hi,
    Is there any way to have multiple currency for one Vendor?

    Hi Siva,
    Yes, It is possible to maintain multiple currency for one vendor. How ? The procedure as follows.
    During vendor creation using T-code XK01 and currency enter input data screen select Extra option on the top of the screen click and display  'Add Purchasing Data'  option click opened new screen and give input data plant, tick mark of the option Data retent.at plant level allowed and tick for OK.
    After that, you have enter multiple currency for the same vendor during vendor creation time, then you will create PO using T-code ME21N the currency field you have fill as you required currency by default first currency of vendor created will be display.
    Hope, it is useful for you.
    Regards,
    K.Rajendran

  • Assign Multiple Sales Org for One Plant in STO process

    Hi Experts,
    Aware that I can assign multiple sales org to 1 plant (relationship: many to many).
    I am trying to create STOs to supplying plant and assigning them to different sales organization but encountered problem.
    Example:
    Supplying Plant 1000 - Sales Org 1000A (food) and 1000B (apparel)
    Receiving Plant 1100
    Plant 1100 wants to issue 2 STOs to Plant 1000 - 1 for each Sales Org (for instance STO1 to food division, and STO2 for apparel division).
    However, when I tried creating STO in the system, noticed that in the shipping tab (item details) the sales org, DC has been assigned to 1 particular assignment and data is locked.
    Tried to get into SPRO to configure and define the shipping data for plants but noticed that it's 1 to 1 relationship (SPRO - IMG - MM - PO - Set up Stock Transport Order - Define Shipping Data).
    How can this be done?

    You can set different sales areas (~sales organisation) for one plant in SAP - based on issuing SLoc provided STO between storage locations is activated.
    SPRO > Materials Management > Purchasing > Purchase Order > Set up Stock Transport Order > Set Up Stock Transfer Between Storage Locations > Define Shipping Data for Stock Transfers Between Storage Locations
    Edited by: Csaba Szommer on Jul 2, 2011 6:14 PM

  • Need to extend vendor to a new Purchasing Org

    Hello All,
    I am getting a flat file with existing vendors in SAP System. I need to extend these vendor to the new specified Purchase Org. and also update the fields as per in the excel file (being uploaded).
    One way is to use BDC and perform the desired functionality.
    Second method is to use the BAPI BAPI_VENDOR_CREATE, which again uses CALL TRANSACTION.
    Is there any other method to extend vendor's (except the other 2 stated above).
    Thanks in advace..!!
    Regards,
    Tarun

    Hello,
    Can be done using IDoc, by populating the various segments for basic type CREMAS05 using the new purchasing org and then passing the details to function module IDOC_INBOUND_SINGLE.
    Pass the sender and receiving systems/ports both as the same.
    Other alternative approach is using BDC; extending vendor using XK01 (for new purchasing org) and then update the extended vendor using XK02.
    Regards,
    Tarun

  • Central Purchase Org and Multiple co codes

    Hello everyone,
                          We are working in SRM 5.0 classic deployment and PDP scenario. We have an issue. We have central purchase org and multiple co codes. So one purchase org will be responsible for all the co codes. In the backend system, pur org is not assigned to any co code since it is a central pur org. Now in SRM , we created a root org, under the root org we created different companies and at the same level i.e under root- purchase org is created and then purchsae groups. In attribute BUK of purchase org, all co codes are assigned. When we check BBP_ATTR_CHECK for this purchase org, we get an error- "company cannot be determined. So we'll not be able to shop. Please let me know if anyone has ever worked on this scenario and whatz the solution? Suitable points will be awarded for the useful answers. Thanks in advance.
    Regards
    Kapil

    I would not suggest this as an approach. First question is what kind of accounting reports do they need on plant level? Is it AR/AP items per plant or complete set of financial reports include BS and P&L statement.
    WERKS field exists in BSEG, so I guess some report can be generated to represent open items on this level.
    But if you need deeper division in the company on this level, then segments or business areas should be used.
    regards

  • One Vendor Code - Multiple Addresses

    Hi Experts ,
      We have One Vendor But he has two different Plants and we need to create PO with Ref. to Both the Plants. Do we need to create Two Separate Vendor codes in SAP with Different Addresses  or we can utilize same Vendor Code for both Addresses.
    SAP Version we are Using : SAP R/3 ECC 6.0
    Kindly Guide.
    Regards
    Honey

    it is possible to assign only one vendor to a supplying plant. If you have multiple supplying plants then you can
    create multiple vendors and assign each of them to a plant. You do not need to reorganize your purchasing organization for this. Once you make the plant assignment to the vendor you can then use this vendor for raising the stock transport order for this plant. Treat this vendor similar to any other vendor for the receiving plant.
    Plants that are involved in company-internal business transactions can be described in terms of a business partner (such as a vendor or customer). Such a company-internal transaction might involve a stock transport order followed by a delivery and possibly an invoice, for example. What is important to bear in mind is that the business partner
    you assign to the plant for this purpose is a theoretical business partner which describes the plant and not an actual external business partner with which your company has business relations.

  • How to create one inbound delivery for multiple purchase order?

    Hi Experts,
    Please let me know how can I create one inbound delivery for multiple purchasing documents(PO or SA)? 
    Is there a configuration needed for this?  If yes, please let me know the configuration to make this happen.
    Appreciate your help on this.  Right answers will be rewarded.
    Thank you.
    with regards,
    Muthu Ganapathy.

    Hi,
    my situation is:
    - a WM managed warehouse, society A;
    - a HU managed warehouse (without WM), society B;
    - a purchasing process of HU from society A towards society B.
    Society B have a scheduling agreement; when a delivery schedule appears, in society A born a sales order and a delivery. After the registration of the delivery good issue, an idoc transfer information for inbound delivery creation.
    This process is ok without WM, but with a WM managed warehouse the idoc has the following problem:
    "V51VP - item was not found - process cancelled".
    Can you help me to transfer these HU?

  • How to combine multiple purchased aac files into one aac file

    I recently purchased in iTunes an album consisting of 16 m4a files.  I ended up creating a playlist in iTunes for the songs.  I would like to create one m4a file which combines all and then play it in iTunes.  Is the copy protection preventing me from doing so?
    I know how to convert m4a files that I have converted to mp3 and combine them using Terminal with a cat command.  Then I import that combined file into iTunes.  All is well in this case.  I tried this with the 16 m4a files and I could not import the resultant mp3 file into iTunes.
    Any way to combine multiple purchased aac files?

    A simple way to accomplish the job, though not recommended is to print the 2 page file to a new PDF with multi-up (assuming you select vertical rather than horizontal locations) and adjust the paper in the Adobe PDF printer to be 8.5X22. At least you might give it a shot. Some variation, along with rotation possibly, might work.

Maybe you are looking for

  • Downloads from ALV GRID-Text conversion to dates in EXCEL

    When downloading table displays of data from ALV-GRID for excel spreadsheet, we end of with files that have a header and various line ifnromation.  IF we manually clear up the display, then we can have the individicual column headers used and force t

  • Syncing Windows users with Mac users home folders

    Hello, I have setup my 10.6 XServe to allow Windows user to connect. The Windows machines log into the server just fine but when they save something to their Documents, Desktop etc... it doesn't show up when they log into a Mac machine and vice versa

  • Internal table -Logic-Data manipulation

    Hi, I have following requirement. Input Internal table *A T1   1   3 *A T2   4   5 *A T3   1   2 *B T4   1   2 *B T5   3   6 *B T6   1   7 Output *A T1   1     3 *A T2   4     5 *B T6   1     7 basically i should delete overlapping records  eg: since

  • Reverse telecine and final cut

    hi. hope the gurus can help. we shot a short with dvx 100a. we shot on 24p (NORMAL). I am trying to create a 23.98 workflow for the video. all the footage was captured in DV NTSC, and used cinema tools to Reverse Telecine. here come the issues: how d

  • 4-pin FW card for G5

    I've been looking (and searching previous posts) for answers but haven't had much luck. I want to add a 4-pin firewire port to several Powermac G5s. Some are dual processor (PCI) and some are quad processor (PCI express). I want to add the port so th