Mapping of inbound INVOIC02 iDoc Segment to MIRO/MIR7 Header Text? Help!

Hi Experts,
I need to map a field from the inbound INVOIC02 idoc to the header text field. This field is TABLE:INVFO;(Struct)Field:SGTXT as shown in MIR7. I thought that segments E1EDPT1 & E1EDPT2 would map to this field but it is not showing up in the processed invoice. Is there a segment/field in INVOIC02 that maps to this field?
Thanks,
Doug

Hi,
Try like this
Ledger                        Ledger     
       EqualS------------OR            EqualS------------OR  EqualS------------OR   EqualS------------OR----Not---
Constant(460050)       Constant(471000)          Constant(420600)       Constant(472150)
and   Brand-------
                EqualS--CreateIF-----Target Brand
Constant(75999)
Thanks!

Similar Messages

  • Inbound Invoice idoc segment feilds mapping to SAP feilds

    Hi,
    Could you please help me to find out the tables and feilds in SAP for the inbound invoice idoc type INVOIC01. I need to map the idoc segment fields with SAP fields and respective tables.
    Thanks in Advance
    Satish

    Hi Satish,
    That's quite a big case to get such mapping - why would you need it really? You can process Idoc with std process codes and you will see the std mapping then happening.
    You can also go through logic of processing modules:
    Function Module Name          Short text for function module
    IDOC_INPUT_INVOIC_FI           EDI: Invoice Receipt (INVOICE)
    IDOC_INPUT_INVOIC_MM           EDI: Invoice Receipt (INVOICE)
    IDOC_INPUT_INVOIC_MRM
    For sure you will get RBKP for header, RSEG for items, RBTX for taxes and some more, depending on what you get in the invoice and what are your booking and matching processes.
    Best Regards,
    Tomek

  • Inbound side idoc segment defination is showing instead of segment type

    Dear all,
                 i created z idoc ZMIGO961 and  z segment ZJ1IW in both source and destination, when i send the idoc from the source to destination, in destination it is showing the segment defination i.e ZJ1IW000 in idoc instead of segment type ZJ1IW in  my idoc.
    plz help .
    regards,
    Edited by: manoj kv on Apr 4, 2010 9:18 PM

    Hi manoj kv 
    segment defination :  ZJ1IW000  indicates segment is ZJ1IW & version is 000
    Go to T code we31  in Destination System
    Enter the Segment Name and Check Defination Screen.....then you will see the segment defination :  ZJ1IW000
    Hope above info helps... you..
    Thanks
    Ramesh

  • Idoc problem: I canu00B4t modify Header text before sales order is created

    We are generating Sales order with Idoc :ORDERS01 (Inbound), and we´d like modify some  text in E1EDKT1 AND E1EDKT2 segments, at header level.
    We are using EXIT_SAPLVEDA_011 with this coding:
    data: v_e1edkt1 like e1edkt1,
          v_e1edkt2 like e1edkt2,
          v_index like sy-tabix.
    segment E1EDKT1----
        read table dedidd with key segnam = 'E1EDKT1'.
        if sy-subrc eq 0.
          v_index = sy-tabix.
          v_e1edkt1 = dedidd-sdata.
          v_e1edkt1-tdid = '001'.
          v_e1edkt1-tsspras = 'EN'.
          v_e1edkt1-tsspras_iso = 'E'.
          v_e1edkt1-tdobject = 'VBBK'.
          dedidd-sdata = v_e1edkt1.
          modify dedidd index v_index.
    segment:E1EDKT2----
              read table dedidd with key segnam = 'E1EDKT2'.
              if sy-subrc eq 0.
                v_index = sy-tabix.
                v_e1edkt2 = dedidd-sdata.
                v_e1edkt2-tdline = 'FIXED TEXT BLA BLA BLA '.
                v_e1edkt2-tdformat = '*'.
                dedidd-sdata = v_e1edkt2.
                modify dedidd index v_index.
             endif.
        endif.
    but Nothing .. I'm not able to modify the text when the Sales ordes is created.
    Are we modifying the right structure ?? or  do we need to flagear some variable ??
    any suggestion ???

    Ok!. I moved the coding to EXIT_SAPLVEDA_001:
    if segment-segnam = 'E1EDKT1'.
          V_puntero   = sy-tabix.
          V_E1EDKT1 = segment-sdata.
          V_E1EDKT1-TDID        ='003'.
          V_E1EDKT1-TSSPRAS     ='EN'.
          V_E1EDKT1-TSSPRAS_ISO ='E'.
          V_E1EDKT1-TDOBJECT    ='VBBK'.
          segment-sdata = V_E1EDKT1.
    endif.
    if segment-segnam = 'E1EDKT2'.
          V_puntero   = sy-tabix.
          V_E1EDKT2   = segment-sdata.
          V_E1EDKT2-TDLINE     ='FIXED TEXT BLA BLA BLA..'.
          V_E1EDKT2-TDFORMAT   ='*'.
          segment-sdata = V_E1EDKT2.
    endif.
    It´s not working .! .
    I have a suspect with TDID   ='003', if I check the Sap table: STXH-TDID , that ID is char 4.

  • INVOIC02 Idoc

    Hi,
    I am trying to create an invoice linked to a PO using inbound INVOIC02 IDocs.
    I am getting an error message "Formatting error in the field BKPF-BLART; see next message". This is puzzling me as BLART does not exist in any segment and there are no further error messages. I have populated the header segment with BSART = "INVO".
    In vain, I have tried using output determination to automatically output an INVOIC02 IDoc when I create one manually in MIRO, in the hope I can just change the ports to post it back in with a new ID. I have set up the condition records OK, such that a message entry automatically appears when I create the invoice with the vendor in the condition record. I have set it to process immediately. When I save the invoice, no IDoc gets created (I have done something similar for POs and that works OK). I have even tried using program RSNAST00 to kick it off, but that doesn't do anything either.
    Useful answers to either problem will be rewarded. Many thanks in advance,
    Peter

    The error message is caused by missing EDI configuration. In order to post invoices successfully using inbound INVOIC02 IDocs, it is necessary to maintain configuration using transactions OBCA, OBCB, OBCC, OBCD and OBCE (these can also be accessed through SPRO under Financial Accounting - Accounts Receivable and Accounts Payable - Business Transactions - Incoming Invoices/Credit Memos - EDI).
    1) In OBCA, maintain an external company code for each of the SAP company codes used in table T001. Although the field called "Company code name in the invoice" is a free text field, it must be identical (it is case sensitive too!!) to the value in the Idoc segment E1EDKA1 with qualifier ‘RE’.
    2) In OBCB, set up a relationship between each SAP company code and the vendor reconciliation account. Specify a goods/services number of *
    3) In OBCC, you can maintain additional account assignment details
    4) In OBCD, maintain the name of the tax code from the external system and the SAP tax codes - even if you don't need to actually change the values between the systems. Maintain a tax type and rate for each country's tax codes you intend to use. These match up with the values in the Idoc segment E1EDP04.
    5) In OBCE, maintain the posting keys and document types for each company code. This is where the invoice document type is taken from. There are some other interesting flags here, such as park document and create a BDC session - I've played around with the parking flag but the invoice was always posted!
    Finally, make sure that your partner profile for the external system in WE20 has a process code INVL and calls function module IDOC_INPUT_INVOIC_MRM (as I was initially using INVF!)
    Hopes this helps everyone as it took me 3 weeks to work out!!
    Peter

  • Inbound Invoice IDoc - Problem, Please clarify.................

    Hi All,
    I am implementing an Inbound INVOIC02 IDoc for posting Credit Memo that references purchase order. But there is some unique thing. This IDoc is used to post only the SAC (D240 - Freight Allowance).
    Freight Allowance will come at Header level on the X12. This amount should be posted to a G/L account.
    I want this SACD240 amount to be mapped onto IDoc.
    I have extended the IDoc with a Z-segment @ line item level and is mapping into this z-segment.
    The mapping team came up with a question. If SACD40 is mapped onto Z-segment. And no other line item information is present on the X12/IDoc (such as matnr). Will SAP process this IDoc??
    Plz clarify??
    Thanks,
    Creasy

    data in extended Z segment would not get processed automatically.
    If std Function module IDOC_OUTPUT_INVOIC is used as inbound process code then
    you need to add custom code in  exit   CALL CUSTOMER-FUNCTION '001'   include ZXEDFU01 to pass to correct fields. or you may have to call another FM or BDC to pass data to required transaction/fields.

  • Inbound Invoice IDOC mapping Required fields

    Hi All,
    Please let me know what need to be mapped for the @begin , @segment , TABNAM , SNDPOR, SNDPRT etc like this elements in the IDOC structure.
    In my scenarion i get Invoices in  XML file so that i can pick that and process it into SAP R/3 by doing correct mapping with the inbound IDOC and post the same into R/3 . Please provide the sample mapping for processing Invoice IDOC.
    Regards,
    Reddy

    Nanda,
    @ Control records
    >>>
    You have two option. One is to fill the control records inside the mapping or else let XI fill it automatically.
    In case you are filling the control records in the mapping, then you will have to enable the option to take those values in the IDOC receiver adapter.
    See option (Apply Control Record Values from Payload) - http://help.sap.com/saphelp_nw04/helpdata/en/96/791c42375d5033e10000000a155106/content.htm
    Control values - http://help.sap.com/saphelp_nw04/helpdata/en/13/95244269625633e10000000a155106/content.htm
    @ Begin, Segment etc
    >>
    you can map any constant value to the same.

  • Inbound idocs segment fields

    Hi,
    Iam new to idocs and a functional consultant. I need to know whenever we receive the inbound idocs and if i see the segments of the inbound idoc, do the fields which i see in the segments are the sap fields.????/ for instance if the inbound idoc needs to create a sales order, then the fields of the segments of such an inbound idoc are the normal sap sales order fields ??
    do i need to give functional specs to the abapers that whenever the inbound idocs is received the segments fields need to be mapped to sales order fields if such an idoc needs to create a sales order ??
    regards
    sachin

    Hi Sachin,
    Most of the IDoc segment fields are simmilar to SAP transaction fields e.g. most of the ORDERS IDoc segment fields will be simmilar to what you can see in VA01/VA02 screen fields.
    Some fields may have different names.
    In the case of few segments which may repeate in IDoc with different qualifiers (such as partner details, date segments), fields will be same but different qualifier value decides where these field values will be populated in the Order.
    If you are using standard function module to create Order, it will take care of mapping IDoc segment fields to VA01/VA02 screen fields. But if it is a Z function module, then you need to specify the mapping.
    Hope this information will help you.
    Regards,
    Mahesh Pakhale

  • How to map idoc segments to multiple output structures

    Dear experts,
    On Pi I need to map segments from an Idoc to 2 different outputstructures. My scenario is as follows:
    incoming Idoc on PI -> if segment eq 'X' then map to outputstructure '1'; if segment eq 'Y' then map to outputstructure '2'
    Idoc structure is as follows:
    - 1 header segment
    - 1..n detail segments (which I need to map to outputstructure 1)
    - 1 summarisation segment (which I need to map to outputstructure 2)
    Output needs to be a .txt file.
    I would like to use the graphical message mapping on PI, how can I map the Idoc to multiple output structures?
    Thanks in advance,
    William

    Hi
    You can do 1:n multimapping
    in message mapping in messages tab ..add both the structures in target tab and do the mapping
    and in operation mapping add both the message interface on the target side
    PLease go through this blog
    /people/jin.shin/blog/2006/02/07/multi-mapping-without-bpm--yes-it146s-possible

  • Flat File to IDOC Mapping requirement to generate Multiple Segments

    Hi Experts,
    I got a requirement were i have 2 records in a file and i need to generate 2 IDOCs  with  multiple segments in it.
    FILE :
    10/01/2010     101  KRNA     ic_quantity          30-0257     3526     1     1     ea     110000     10
    10/01/2010     101     KRNA     ic_quantity          90-0005     3526     1     2     ea     110000     10
    Idoc should generate 2 IDOCs with multiple segments as shown below
    I have imported the IDOC and changed the occurrence to " unbounded "
    The Basic  IDOC Type :  WMMBID02
    I need to generate Multiple segments of  E1MBXY1
    i.e..,  First IDOC should contain two  E1MBXY1 segments
             Second IDOC should contain Four  E1MBXY1 segments
    IDOC1 :   WMMBID02
    Segment :   E1MBXY1( 2 segments)                                                       
    10/01/2010     101     KRNA     ic_quantity          30-0257     3526     1     1     ea     110000     10
    10/01/2010     101     KRNA     ic_quantity          90-0005     3526     1     2     ea     110000     10
    IDOC2 : WMMBID02
    Segment :  E1MBXY1 ( 4 segments)                                                  
    10/01/2010     101     KRNA     ic_quantity          30-0257     3526     1     1     ea     110000     10
    10/01/2010     101     KRNA     ic_quantity          30-0257     3521     1     1     ea     110000     10
    10/01/2010     101     KRNA     ic_quantity          90-0005     3526     1     2     ea     110000     10
    10/01/2010     101     KRNA      ic_quantity          90-0005     3521     1     2     ea     110000     10
    Can anyone suggest me how to generate IDOCs with multiple segments
    what are multiple ways of generating it
    Whether it can be achieved using Multi-mapping or I need go for UDF
    If any one has done has done this type of requirement ,please share the points.
    Thanks
    Sai

    Basically you need to generate idoc per record in the flat file. During fcc conversion you convert flat file to xml structure at the sender side. In the mapping use xml file structure source and idoc as receiver structure. You just export idoc and update the idoc segment 1 to unbounded.  Please follow the michael blog for file to idoc multimapping without bpm. Yes without bpm it is possible.
    see this link... This will answer your requirement.
    https://wiki.sdn.sap.com/wiki/display/XI/File%20to%20Multiple%20IDOC%20Splitting%20without%20BPM
    >Whether it can be achieved using Multi-mapping or I need go for UDF
    you dont need udf for this.

  • How to map idoc segment field E1IDB02-FIIKONTO with BSEG-ESRNR.

    Hi,
    I have searched for lot of threads in the forum , and also i tried myself but i am not able to map this fields segment with my logic, so please anyone kindly contribute in mapping idoc segment field  with the logic given below:
    idoc type :PAYEXT  outbound idoc.
    message type: PEXR2002
    This is my logic: i need to populate the ISR number(BSEG-ESRNR  ) in idoc segment field( E1IDB02-FIIKONTO)
    DATA : str1 TYPE string,
          len1  TYPE i,
          len2  TYPE i,
          str2  TYPE string,
          str3  TYPE string.
    str1 = '01-1234-4'. ---> BSEG-ESRNR  "ISR Subscriber Number
    REPLACE FIRST OCCURRENCE OF '-' IN str1 WITH '_'.
    REPLACE ALL OCCURRENCES OF  '-' IN str1 WITH space.
    CONDENSE str1.
    len1 = STRLEN( str1 ).
    IF len1 LT '9'.
    len2 = '9' - len1.
    CASE len2.
       WHEN '1'.
         REPLACE ALL OCCURRENCES OF '_' IN str1 WITH '00'.
       WHEN '2'.
         REPLACE ALL OCCURRENCES OF '_' IN str1 WITH '000'.
       WHEN '3'.
         REPLACE ALL OCCURRENCES OF '_' IN str1 WITH '0000'.
       WHEN '4'.
         REPLACE ALL OCCURRENCES OF '_' IN str1 WITH '000000'.
       WHEN OTHERS.
    ENDCASE.
    ELSEIF len1 EQ '9'.
    REPLACE ALL OCCURRENCES OF '_' IN str1 WITH '0'.
    ELSEIF len1 GT '9'.
    REPLACE ALL OCCURRENCES OF '_' IN str1 WITH space.
    CONDENSE str1.
    ENDIF.
    Thanks in Advance.

    Resolved.

  • IDOC Segment mapping change

    Hi,
    How can i change the field attached to a IDOC segment.
    Actually we have this Invoice IDOC,in which the E1EDK03 012(Qualifier) is passing the IDOC creation date instead of Billing date.
    So i need to change this mapping to Billing date.
    Please help.

    Hi Salz,
    I just checked my version of SAP (4.7) and you should get an invoice date.  Check out the subroutine FILL_E1EDK03 in function module IDOC_OUTPUT_INVOIC.  The first section of this code creates an E1EDK03 segment with the invoice date (if there is an invoice date), with qualifyer 026.
    Is there a possibility that in fact you are getting an E1EDK03 segment with the invoice date, but you are also getting other E1EDK03 segments (such as the one you mention with qualifyer 012) and they are obscuring the one you are looking for?
    If there are definitely none being created then can I suggest that you debug the subroutine FILL_E1EDK03 in function module IDOC_OUTPUT_INVOIC to check what is happening.  You may need to change the timing of your output record to 1 and run the program RSNAST00 online to get the breakpoint to be hit correctly. 
    If, in your version, the code doesn't include this date, then you have an exit function module EXIT_SAPLVEDF_002 (called via the subroutine CUSTOMER_FUNCTION in function module IDOC_OUTPUT_INVOIC) where you can actually add your own segment data.  For example you an change the contents of an existing segment (as per your original request), or append your own E1EDK03 segment with your own data.  I would recommend adding your own segment rather than changing whats there.
    It is possible to extend idocs to add your own custom segments (eg Z1EDK03), but I wouldn't recommend it in your case, because in later versions of SAP the date is provided and by not creating a new segment (Z1EDK03) you will have no mapping changes to do when you upgrade.  You can just delete your userexit code.
    Hope that all makes sense and helps you with your problem.
    Cheers,
    Brad

  • Segment/Field name for Unplanned delivery costs in Inbound Invoic Idoc?

    Hi Folks,
    Will you please let me know the name of the segment/field (IDoc type INVOIC) for unplanned delivery costs on Inbound Invoic Idoc??
    Thanks,
    Matt

    Hi,
    Am facing the same issue and did tried the E1EDS01 segment. SUMID = 20 and passing the value to field BEZNK, but its not updating the value.
    Could you please give me some more info. how to achieve it.
    Thanks,
    Aniket Korde

  • XI Mapping to Idoc - Multiple Identical Idoc Segments

    I am debuuging XI mapping. I see the same idoc segments in the mapping multiple times. However, the way the fields are mapped in each one is different.
    Why? Is this to handle different scenarios?
    Thanks.

    in IDOCs each segment could occur multiple times. Lets say if its a address segment, u could see it multiple times for billing, shipping etc etc. so, depending on business logic the mapping will change. Some fields you'll map to one segment and some fields to some other segment.
    --Archana

  • Mapping Items in XML string to multiple IDOC segments

    I would like to map an XML tag  <Text>Line1Line2Line3Line4</Text>
    to an IDOC segment E1ED1TEXT . Defined as occurring 0 to 999999.
    I would like to map each item separated by a tilde into a separate occurence of the IDOC text segment. Is ther anyway to repeat the mapping without duplicating the subtree.
    E1ED1TEXT
    Text_Id - "ZTXT"
    Text_Line = Line1
    E1ED1TEXT
    Text_Id - "ZTXT"
    Text_Line = Line2
    E1ED1TEXT
    Text_Id - "ZTXT"
    Text_Line = Line3

    Hello,
    This is only possible using UDF
    mapping is like this:
    Text -> UDF -> splitByValue:eachValue -> Text_Id
    UDF is of context type
    argument is input
    String temp[] = input[0].split("~");
    for(int a=0;a<temp.length;a++){
    result.addValue(temp[a]);
    Hope this helps,
    Mark

Maybe you are looking for

  • How Do I Add 2nd Monitor using AppleTV?

    I use a mid - 2012 Mac Pro; run Mavericks MacOS X 10.9.5.  1. I would like to know how to connect my SONY TV as a second monitor wirelessly using AppleTV. 2. Once 2nd monitor is connected: 3. What do I do to use the cursor and keyboard on the 2nd mon

  • My Nokia C3 is not supporting softwares

    I have tried so many ways to download softwares, but to my efforts are all fruitless. When i go to other sites to download and install softwares, the place to download the software will not even be active and when i download from ovi store it is not

  • Connecting to an external blackberry mobile, to use its internet?

    Hi, I'm really really thinking about getting a 32gb iPod touch (4th gen),.... but one pet peeve of mine from the one I currently have (ipod touch 3rd gen, 8gb) is that it doesn't let you connect to any other phone, to "hijack" the internet capabiliti

  • Drivers won't install on powerbook g4

    My dad gave me his old officejet J5780 all-in-one. My powerpook recognized the printer, but then said I needed to choose a driver, and out of the huge list this one wasn't there. I went on HP site and downloaded the universal printer drivers for mac.

  • Recreate controlfile.

    Hi, I am working on a test database (Oracle 10.2.0) . I found out that the disk on which the control files were present got corrupted. I am trying to recreate the controlfile, to startup the database. I am trying to run the following steps, but still