EDI PO EDKA1-LIFNR

when I send a SAP PO outbound, how come the segment EDKA1-LIFNR is not populated?

As the defination says
<b>E1EDKA1</b>
IDoc: Document Header Partner Information
<b>Use</b>
The segment includes the address of the business partner. The individual roles of the business partners and their addresses are qualified in field "PARVW".
<b>LIFNR</b>
<b>Vendor number at customer location</b>
<b>Definition</b>
The number which the customer has assigned to the vendor.
It says Vendor number at customer location, could you check whether this is maintained? (might be reference number)
Regds
Manohar

Similar Messages

  • SO via inbound EDI. partner problem LIFNR - PARTN

    Hi,
    Working on PO -> SO interface. Question on populating VOE4 (EDPAR).
    in the inbound IDOC I have this segment:
    E1EDKA1:
    PARVW: AG
    PARTN: external customer number (in my case it is purchasing organisation)
    LIFNR: 'blank'
    In forums it is told that segment LIFNR should be populated by external customer number.
    What is the difference between PARVW and LIFNR? Does VOE4 look at PARTN for substitution?
    in my case seems that it ignores PARTN at all..
    Thanks,
    Artashes

    I think what you need is the following.
    On the EDIDC record, field SNDPRN, you need to have the Sold To customer number mapped.  You'll also need to have the SoldTo setup in WE20 with a partner profile.
    You can send in an Order to SAP with a Logical System in the above field but you then have to have the PARTN fields filled in with the correct Sold To Ship To.  Which you typically would not have.
    On the KA1 segments, you'll need two KA1 segments, one for the Sold To and the Other for the Ship To.  Since you already would know the Sold To since you put it in the EDIDC record, just fill it in the PARTN field, unless your partner wants their store number back.  Personally I would set it up this way with the external store number.
    So you'll want a KA1 record with the AG qualifier for the Sold To and the LIFNR field filled in with the partners external number for the Sold To.  This could be the Duns number or N1/04 code. 
    On the second KA1 for the ship to, set the qualifier to WE for Ship To and then fill in the LIFNR with the external store number.
    You'll now need entries in VOE4 for each KA1.  Customer would be the same as the Customer in the EDIDC record, field SNDPRN.  external function is either SP or SH.  External Number is the external number, either the DUNS number for the Sold To (Most likely) or the N1/04 code for the ship to.  Int No is the Internal customer number for the Sold To and Ship To. 
    Sold To 55555
    Customer Sender ID/Dunning #  123456789
    External Ship To Store #  321
    WE20 setup for  Sold To 55555
    VOE4 setup for 55555    SP    SOLD TO   123456789  55555
    VOE4 setup for 55555    SH    SHIP TO     321              55555
    I think what SAP Messed up on is the fact that we should not have an external cross reference or hard coding mechanism to populat the SNDPRN  with a customer number for inbound transactions in order for the EDPAR table to work correctly.  You can have a logical system at the EDIDC level but would need to populate the correct Sold To and Ship To on the KA1 segments.  When using the LIFNR fields, SAP Uses the SNDPRN, External Partner Number and Partner Function on the KA1 record to determine the Internal Customer Number. 
    If anyone else has an opinion please let me know.   I would love a way to be able to cross reference the Dunning Number for a partner to a Sold To within SAP and allow for the LIFNR fields to be used for the Ship To's.

  • EDI 810: Basic Type /NFM/INVOIC02,LIFNR and ROUTE Field

    Hi Sap Guru,
    When EDI 850 has been trigger, the sales order has been get created with IDoc. In IDoc we are getting LIFNR (vendor at customer place) as shown below in segment E1EDKA1 WE. But the same thing is not getting reflected at EDI 810.
    So please help me in this..... and also ROUTE field is not getting reflected in same EDI 810.
    I hope you will help me to get out from this asap.
    Thanks in advance...
    Regards,
    Kundan

    For the customer invoice EDI, the vendor number is not same for all customer. Each customer will assign a vendor number to the company. Hence you may need to go with user exit to populate the data.
    For route, I am not sure why customer is looking for route in billing document. Route mostly used in delivery related documents. So if a field is not available for route in IDOC INVOIC02, then you need add a Z-segment to populate the route value. Discuss with an ABAP'er for solutions.
    Regards,

  • Data Conversion rules for EDI processing (same client IDOC processing)

    Hi,
    I am trying to post IDOCS in same client.Its a PO->SO process.
    ie. there will be 1 outbound and inbound idoc in same client using EDI processing.
    I am using Data Conversion using Rulesfor converting sender fields.
    The LIFNR and PAORG od segment E1EDKA1 has to be converted.
    For ALE processing, the Data conversion is been done correctly.
    But no conversion is done for EDI.
    Can anybody help me with this problem ?
    Thanks in advance.
    Regards
    Megha

    Issue solved

  • EDI - IDoc - User Exit - Code - Problem - Help - Wanted

    Hi EDI Experts,
    I have extended ORDERS05 IDOC twice.
    ZVKSEG1 is the the segment under extended idoc ZVKORDRS05. This is for one partner.
    Z1DATESH01 is the segment under extended idoc Z1ORDER05. This is for another partner.
    I have completed the configuration thing in WE82 for both the extensions.
    Now the requirement is, whenever a PO is created for the first partner - 100290, the IDoc generated should contain the extra segment ZVKSEG1 and whenever PO is created for the second partner - 10099,the Idoc generated should contain the extrasegment Z1DATESH01.
    Using WE20, i have added the extended IDoc type in both the partner profiles under ORDERS message type.
    Now i've written the user exit for this using EXIT_SAPLEINM_002.
    tables: edidc.
    data: z_edidd like edidd occurs 0 with header line.
    data: y1dath01 like z1datesh01.
    data: yvkseg1 like zvkseg1.
    if edidc-rcvprn = '10099'.
    z_edidd[] = int_edidd[].
    loop at z_edidd.
    if z_edidd-segnam  = 'E1EDK01'.
    read table z_edidd  with key segnam  = 'Z1DATESH01'.
    if sy-subrc <> 0.
    y1dath01-DELDATE = sy-datum.
    clear z_edidd.
    z_Edidd-sdata = y1dath01.
    z_Edidd-segnam = 'Z1DATESH01'.
    append z_edidd.
    endif.
    endif.
    endloop.
    int_edidd[] = z_edidd[].
    elseif edidc-rcvprn = '100290'.
    z_edidd[] = int_edidd[].
    loop at z_edidd.
    if z_edidd-segnam  = 'E1EDK01'.
    read table z_edidd  with key segnam  = 'ZVKSEG1'.
    if sy-subrc <> 0.
    yvkseg1-name1 = 'ZVK Chemicals'.
    clear z_edidd.
    z_Edidd-sdata = yvkseg1.
    z_Edidd-segnam = 'ZVKSEG1'.
    append z_edidd.
    endif.
    endif.
    endloop.
    int_edidd[] = z_edidd[].
    endif.
    Could you please go through the code and tell me where did i go wrong. The extra segments are not being created for both the partners.
    I created PO using ME21n once for each vendor.
    Please help me out guys.
    Thanks,
    Matt

    I myself fixed this problem. I made use of XLFA1-LIFNR to manipulate the partner numbers.
    Thanks

  • SD-EDI Inbound ORDERS05

    Hi people!
    I want to receive sales orders from customers by EDI.
    When receiving the IDOC, the customer sent me his EDI partner number. (Operational point)
    How to translate the 13 digit number to my SAP customer number?
    I have WE20 actualized, the EDPAR table is also actualized...
    The message ORDER have the operational code ORD asigned with the function INPU_IDOC_ORDER.
    When processing the IDOC, the system was not able to determine the customer number from that external partner informed.
    Can someone help me please? There is something I done wrong...
    The steps I've done:
    (Example)
    - VOE4 - My SAP customer: 11 - Ext. function: SP - External Partner: 840000000000001
    - WE20 - Partner Type KU:
    Internal Parameters: Partner role: SP - Message type ORDERS - Process Code ORDE
    Function: IDOC_INPUT_ORDERS
    THe PI / XI station send me the IDOC to an Logic partner:
    - WE20 - Partner Type LS:
    Internal Parameters: Partner role: SP - Message type ORDERS - Process Code ORDE
    Function: IDOC_INPUT_ORDERS
    Debuging the process the system try to select the incorrect information with incorrect data into:
    Process Code ORDE
    Function: IDOC_INPUT_ORDERS
    PERFORM interpret_idoc_orders
    So, execute:
    - Auftragskopf Partnerinformationen -
    - partner data -
    WHEN 'E1EDKA1'.
    MOVE IDOC_DATA-SDATA TO E1EDKA1.
    PERFORM ZUORDNEN_ORDERS_E1EDKA1.
    Then execute:
    - Auftraggeber -
    - order party -
    WHEN 'AG'.
    IF E1EDKA1-PARTN EQ SPACE
    AND E1EDKA1-LIFNR NE SPACE.
    - ermitteln Partnernummer aus Tabelle EDPAR -
    - determine partnernumber from table EDPAR -
    PERFORM EXTERNAL_PARTNER USING IDOC_CONTRL-SNDPRN
    E1EDKA1-LIFNR
    E1EDKA1-PARVW
    E1EDKA1-PARTN.
    ENDIF.
    And that perform does ( in my opinion, an worng select into EDPAR)
    FORM EXTERNAL_PARTNER USING INPART
    EXPART
    PARTNERROLLE
    PARTNER.
    SELECT SINGLE * FROM EDPAR WHERE KUNNR = INPART
    AND PARVW = PARTNERROLLE
    AND EXPNR = EXPART.
    Thans in advance for any help!

    Hi,
    EDIDC-SNDPRN has to contain you My SAP Customer number i.e. in your example it is "0000000011( Remember you are using "KU" type of partner profile. So EDIDC-SNDPRN has to be valid customer in your system) and additional you need to send your external partner number in E1EDKA1-LIFNR field where E1EDKA1-PARVW = 'AG' and this should solve the problem. So if you are using XI you may need to use value mapping concept in order to populate EDIDC-SNDPRN correctly.
    Do not forget to populate EDPAR-KUNN2 ( Internal customer/Last field of the EDPAR table) field as well. You may fill it up with the same number as "0000000011".
    Hope this helps.
    Regards,
    Rudra

  • Automatic PO creation through EDI

    Hi experts,
    Please clarify me on the setup of creating PO's thru EDI in Purchasing automatically once PR is created in the system.
    My client is more or less a trading company. They buy from vendor & sell to their customer, like third party order process.
    So they create Sales Order & then PReq is created through ME57 & then they create PO through ME59.
    They want to create PO's automatically thru EDI as this can speed up the process so as the vendor is also looking for creating SO in their BaaN system automatically.
    I have configured the EDI setup for creating PO manually, meaning when I create manual PO the idoc xml file is ready for transfer.
    But I am looking for the steps so that once they create the PReq, EDI should automatically create PO in SAP & the idoc should be ready for transfer.
    Please suggest if this can be done thru any BAPI or BDC programs.
    Thanks in advance !
    Priyadarshini

    Hi Krishna,
    This is for automatically creating normal PO thru PReq. Since I have setup the EDI configs for creating PO thru manual process  thru Me21N then idoc gets generated.
    But my client is looking for the idocs to be generated automatically once the PReq are created thru Me57.
    is there a way?
    Rgds,
    Pri

  • EDI for creation of Sales Order and sending copy of Invoice

    Hello Experts,
    I am working on EDI. We have a scenario, where the purchase order created in the 3rd party system has to be converted into a sales order in our SAP system.
    Then, the regular flow would follow uptil delivery and creation of invoice in SAP.
    We have to send a copy of this Invoice back to the 3rd party system.
    So, in effect, we would have EDI at two points, while capturing the PO from the 3rd party and another when sending a copy of the Invoice back to the 3rd party.
    Please advise on how to go about implementing EDI in the above mentioned scenarios.
    Regards,
    Divyata

    Use EDI 850 Process code ORDE FM IDOC_INPUT_ORDERS for PO (Inbound)
    use EDI 810 Process code SD09  FM IDOC_OUTPUT_INVOIC for Invoic (Outbound)
    Edited by: srini korada on Jun 9, 2011 4:51 PM

  • Interface between sap to non sap using edi idoc

    hello abaper's,
                         i have requirment on creating Interface program for downloading files(PO)  from Non-sap system  to sap system using EDI Idoc techniques.pls give me a good tips for this requirment..
    With Regards
    MurugeshRajeev

    Hello,
            First of all, we'll need to identify as to what we want to do with the PO Data. For example, If we want to Create Sales Order, there is already a Posting Program available with the Name IDOC_INPUT_ORDERS (FM). This is useful for Creating a Sales Order automatically whenever a PO IDoc is received.
    Here is the Information for processing Standard IDoc.
    1. WE30 - ORDERS05 - IDoc  Type
    2. WE31 - Segment Definition for the IDoc Type
    3. WE81 - Logical Message Types (ORDERS)
    4. WE82 - Assigning the Message Type to IDoc Type
    5. WE42 - Define Process Code
    6. BD51 - If you want to Code a Custom Function Module,
                  then after creating it, you need to register the same
                  Function Module in this Transaction Code.
    7. WE57 - Assign Message Type / IDoc Type / FM group.
    8. WE20 - Partner Profiles
    9. WE21 - Port Definitions
    Hope this information was helpful.
    Thanks and Regards,
    Venkat Phani Prasad Konduri

  • Transformation issue with EDI 841 xsd generated by document editor

    Hi,
    I was trying to create a B2B Outbound interface with Doc Standard as EDI X12. When our custom payload for item is being mapped to the xsd of doc type 841 (generated using standard ecs with Oracle Doc Editor), the xengine is behaving a little weird. It's generating a file in the output directory for sure, but it's not having all the data I mapped. For Example, I wanted to have a datafile as below:
    ST~841~000000001
    SPI~00~~~~~~04~MF
    AMT~LI~0
    HL~1~~I~0
    SPI~ZZ
    LIN~~PN~ABC
    MSG~ABC
    PID~F~~~~ABC
    REF~ZZ~BaseUOMCode~EA~ZZ>EACH
    SE~38~000000001
    For which I mapped in xslt quite a few elements and corresponding payload that is coming in the console application message is as below:
    <?xml version = '1.0' encoding = 'UTF-8'?>
    <Transaction-841 xmlns:ns10="urn:oracle:b2b:X12/V4010/841" Standard="X12"
                     xmlns="urn:oracle:b2b:X12/V4010/841">
      <ns10:Segment-ISA>
        <ns10:Element-I12/>
      </ns10:Segment-ISA>
      <ns10:Segment-GS>
        <ns10:Element-28/>
      </ns10:Segment-GS>
      <ns10:Segment-ST>
        <ns10:Element-143>841</ns10:Element-143>
        <ns10:Element-329>1</ns10:Element-329>
      </ns10:Segment-ST>
      <ns10:Loop-HL>
        <ns10:Segment-HL>
          <ns10:Element-628>1</ns10:Element-628>
          <ns10:Element-735>I</ns10:Element-735>
          <ns10:Element-736>0</ns10:Element-736>
        </ns10:Segment-HL>
        <ns10:Loop-SPI>
          <ns10:Segment-SPI>
            <ns10:Element-786>ZZ</ns10:Element-786>
          </ns10:Segment-SPI>
          <ns10:Segment-LIN>
            <ns10:Element-235>PN</ns10:Element-235>
            <ns10:Element-234>ABC</ns10:Element-234>
          </ns10:Segment-LIN>
          <ns10:Segment-MSG>
            <ns10:Element-933>ABC</ns10:Element-933>
          </ns10:Segment-MSG>
        </ns10:Loop-SPI>
        <ns10:Loop-PID>
          <ns10:Segment-PID>
            <ns10:Element-349>F</ns10:Element-349>
            <ns10:Element-352>ABC</ns10:Element-352>
          </ns10:Segment-PID>
        </ns10:Loop-PID>
        <ns10:Loop-REF>
          <ns10:Segment-REF>
            <ns10:Element-128>ZZ</ns10:Element-128>
            <ns10:Element-127>BaseUOMCode</ns10:Element-127>
            <ns10:Element-352>Ea</ns10:Element-352>
            <ns10:Composite-C040>
              <ns10:Element-128>ZZ</ns10:Element-128>
              <ns10:Element-127>Each</ns10:Element-127>
            </ns10:Composite-C040>
          </ns10:Segment-REF>
        </ns10:Loop-REF>
      </ns10:Loop-HL>
      <ns10:Segment-SE>
        <ns10:Element-96>38</ns10:Element-96>
        <ns10:Element-329>1</ns10:Element-329>
      </ns10:Segment-SE>
      <ns10:Segment-GE>
        <ns10:Element-28/>
      </ns10:Segment-GE>
      <ns10:Segment-IEA>
        <ns10:Element-I12/>
      </ns10:Segment-IEA>
    </Transaction-841>
    However when the file is getting generated, the content misses the LIN Segment and below REF segment. It comes as below:
    ISA~00~          ~00~          ~ZZ~079763140      ~ZZ~V1             ~140901~1118~U~00401~100000012~1~T~>
    GS~GS~079763140~V1~20140901~1118~1012~X~004010
    ST~841~000000001
    SPI~00~~~~~~04~MF
    AMT~LI~0
    HL~1~~I~0
    SE~38~000000001
    GE~1~1012
    IEA~1~100000012
    Below are missing:
    SPI~ZZ
    LIN~~PN~ABC
    MSG~ABC
    PID~F~~~~ABC
    REF~ZZ~BaseUOMCode~EA~ZZ>EACH
    We are on 11G. What could go wrong here? Any help is appreciated.
    Regards,
    Subhadeep

    The problem is resolved after re-upload of ecs and xsd. There was a version mismatch and keeping validation off was generating half cooked file. Thanks for reading.
    Regards,
    Subhadeep

  • Problem with CRLF in a EDI file....

    Hello,
    I receive from my client a EDI file with a charcater in the end of the file, for this, the map generate the error Length limit exceeded - no SEG. delim. found!!!, but if I set "on" in the ingnoreCRLF option on the BICMD of Seebubrger, the map works correctly, I try too with the instruction setIgnoreCRLF("on") in the last segment of the EDI and this works too fine.
    But when I deploy the mappings_user.sda with this changes to XI and I receive the file in the BIC Module, the map doesn´t work, generate the same error to the character on the file.
    Can comebody help me please with an idea about this problem??.
    Greetings,
    Hervey

    Check the case of the file names such as map.jhm File names are not case sensitive when in a jar file.

  • How can I create unique partnerships to deal with like EDI messages?

    I have an EDI to Application partnership setup currently that deals with translating MEDRUC type EDIFACT messages to a mainframe format. The setup is
    Sender = PARTNERA,
    Receiver = PARTNERB
    DocType = MEDRUC.
    In the Input EDI tab the
    Sender Qualifier ID = ZZ:PARTNERA
    Receiver Qualifier ID = ZZ:PARTNERB
    Standard = EDIFACT
    Version = D
    Release Number = 97B.
    Use UNG to locate partnerships = No
    EDIFACT messages contain all this information in their UNB and UNH segments which is where SunONE IS B2B looks to then match against the relevant partnership. My problem is this does not go to enough granularity for me to distinguish uniqueness for the second partnership I need to create.
    The problem is the "Association assigned code" field in the UNH for EDIFACT messages is not catered for anywhere in the partnership details area. This means then that whilst my existing partnership deals with Simplified Billing Claim MEDRUC's which is Association assigned code = SBC20, I can't create an EDI to Application partnership for PARTNERA and PARTNER B to cater for Two Way Gap Claiming MEDRUC's which are Association assigned code = TWC10, ie the two messages are D97B MEDRUC type messages only distinguished from each other by this Association assigned code.
    Any ideas how can I then create a unique EDI to Application partnership for this TWC10 MEDRUC message?
    What I am thinking I will have to do is make this second partnership Application to Application and create a custom service to wrap the MEDRUC message with a HREC/TREC and use the parameters in the HREC to dictate the DocType rather than use the UNB/UNH segments in the MEDRUC?

    Hmmm. It looks like way back when the decision was made on how specific the keys had to be, they didn't get quite specific enough for your case. I'm not super experienced with EDIFACT but I'll throw out some suggestions based on my HREC and X12 knowledge.
    A. Could you handle both instnaces through the same partnership, but alter the map to create unique outputs based on the two different types? At least of the cards would need to be handled through Route, but you could have that picked up by a simple Outprep / Gateway Service list that put the data where you wanted it.
    B. Before Parse, run a custom service that is capable of inspecting for which type of data it is, then modify one of the key fields in place to find the Second partnership. Really getting adventurous, maybe you could alter keys in the UNG to make the distinction. This assumes that you don't have both types of documents in the same interchange.
    C. Your idea may be workable. Can you give some more detail on the make-up of the Service list and the destination/processing of the two differnt types of MEDRUC?
    Thanks.

  • EDI from Purchase Order to Sales Order

    Hi all,
    I've customized the EDI system: at purchase order creation the system automatically creates a sales order(inside the same system). Now i'm facing the following situation : since PO data is very different from SO data (eg. terms of payment), i'm getting errors when i integrate the sales order idoc. Is there a way that i can "map" the "transalation" of the PO to SO data. How can i do this? Best regards,
    PCastro

    Pedro, when you create the SO , what are the steps before creating the Idoc, is it automated, if not  you can maybe write some ABAP code and change the data before the Idoc is created.
    I cannot get the full picture of what you are doing but if the Idoc creation in not automatic you can always change the values in some ABAP code.
    If it is automatic, see if there are any user exits.
    Regards

  • Processing options for EDI vendor Invoices

    I'm trying to get a better understanding of what my options are for processing EDI vendor invoices and would appreciate some help.  I'm using  message type INVOIC02 with process code INVL and in configuration I've set the processing option in table T076S to 4 (tolerence corresponding to online processing).  When an invoice fails either the vendor specific tolerance check or the payment blocking checks the invoice gets parked with error status 3.  This is behaving as I would expect.  The issue I have is the price on the parked invoice is the price from the PO and not the price from the EDI segment.  Is there anyway to change this?  This makes it difficult to analyze the cause of the error without going back to the Idoc segments.  I've tried playing with the other processing options but they also enter the PO price in the parked invoice.  If it's not possible to change this are there any tricks that i'm missing that can help the users analyze the cause of the errors without going back into the idoc?
    thanks,

    If anyone has any expierence with this, I would appreciate any advice you may have.
    thanks,

  • EDI vendor invoices do not get posted before GRN is posted

    Hello All,
    The requirement is our vendor sends EDI invoices and they get parked in SAP as IDOCs. IDOC gets posted if GRN exist for a PO.
    In purchase order it is GR based IV. If vendor parks invoice and there is no GRN for purchase order then IDOC fails and it goes in status 51 (Error).
    Our requirement is, IDOC should get posted even if there is no GRN for a purchase order and client do not want to remove GR based IV tick from PO. After through verification of the parked invoice it gets posted in the system.
    We have done the config change in MM>>LIV>>EDI>Enter program parameters, we have maintained value "1" for field "Processing". Inspite of this change system does not process inbound ICOCs and they go in error (51) status.
    Please provide solution for this.
    Thanks & regards.
    Sanjay

    Hello Jurgen,
    The change in piece of code suggested in SAP note no. 501524 was already implemented in our syste, However still invoice IDOC fails and it goes in error "status 51" as there is no GRN for that purchase order. However if material GRN is made for 1 qty then the invoice gets parked with the full amount even if the GRN  is for 1 no.
    Please suggest a suitable solution.
    Thanks.
    Sanjay

Maybe you are looking for

  • Save as Stationery unavailable in Mail

    I customized a stationery template that I had imported into Mail. Now I want to save it as a template, but "Save as Stationery" is greyed out in the File menu. Is there something I'm missing here? I've saved it as a draft, but want to use it multiple

  • Why are files in Firefox 33 cache directory different size than saved files on desktop

    In previous versions of Firefox I used the cache directory to extract videos, flash files and hidden images, that were not saved in folder and a HTML Document file on desktop. For Example the opening image of a YouTube Video can not be extracted and

  • 2 questions about connection to hyper-v in windows 8

    hi, I can connect to my virtual machine from hyper-v manager  ,but when I try the other option --- connect with hyper-v virtual machine(option)  I see  on the log on wizard telling me that I don't have  the right to run this job.  take contact with t

  • Integrated weblogic server Issue with Host name mapped to multiple IPs

    I am running very simple ADF application from Jdev 11g (11.1.1.3.0). Compilation was successful but weblogic server facing problem while starting. It is showing HostAName is mapped with Multiple IP Addresses. Please provide solution to fix the issue.

  • Package Visability in Sub-Packages

    Is there any way to make a class or interface visible to all the other classes in a package (package A) and any classes within a package that is within package A (package A.B, A.C, etc) but not visible outside of Package A? Kind of a package hierarch