Conditions on Mapping for IDOC

Hi,
I has the following structure of an IDOC
- <E1EDKA1 SEGMENT="1"> 1..........Unbounded
  <PARVW>XXXX</PARVW>
  <PARTN>YYYYY</PARTN>
where E1EDKA1 occurs 1......Unbounded at the sender side .
Based on the Values of PARVW
PARVW =RG,AG,WE
Receiver fields :
RECEIVER1
RECEIVER2
RECEIVER3
If PARVW = RG i need to map the value of PARVW to RECEIVER1
If PARVW = AG i need to map the value of PARVW to RECEIVER2
If PARVW = WE i need to map the value of PARVW to RECEIVER2
Request you to please give me the suggestions
Thanks & Regards,
Y.Raj

1. Check whether u hv changed the context of PARVW to IDOC in all the three mappings.
2. u hv to use equalsS function of text category.
PARVW----------->equalsS---->if------->receiver1
Constant[a]------>           then<---PARVW
Similarly change constants for receiver2 and receiver3.
Edited by: malini balasubramaniam on Oct 16, 2008 7:30 AM

Similar Messages

  • Mapping for IDoc to File

    Hi,
           I am doing mapping for IDoc to file scenario.
    Idoc is INVOIC02.
    Source field  is KRATE from segment E1EDP05
    Target field is Rate.
    Mapping rule is as follows.
    zero when Condiditon type (E1EDP05-KSCHL ) = YCSE  ( enter total 15 digits without any decimal in it. The last 2 digits will be treated as digits after decimal )
    Can someone explain the mapping?
    I have to map KRATE and Rate but where does KSCHL comes into this?
    Please explain

    TAKE HELP FROM THESE LINKS : These links can be helpful for you.
    http://help.sap.com/saphelp_nw04/helpdata/en/43/c4cdfc334824478090739c04c4a249/content.htm
    http://help.sap.com/saphelp_nw04/helpdata/en/5d/db0e83e8e74202a5bff527055ab7e5/content.htm
    Regards,
    Sandeep Kaushik

  • Questions to a Mapping for IDOC-to-File Scenario

    Hi all,
    I want do develop a Message-Mapping for an IDOC-to-File Scenario. A SAP System sends an IDOC to the XI-System and the XI-System should make a mapping an send a XML-File to a FTP-Server. The Strukture of the target message is very easy:
    <xdoc>
       <Invoice>
          @purno
          <HeaderInfo>
             <invno/>
             <shipdate/>
             <extvalue/>
          </HeaderInfo>
          <DetailInfo>
             <LineItem>
                @lineno
                <vpartno/>
                <descrip/>
                <qtyord/>
                <cost/>
                <vendmemo/>
             </LineItem>
          </DetailInfo>
       </Invoice>
    </xdoc>
    The source message is an IDOC. This IDOC can contain one or more positions (E1EDP01). Those different positions should be mapped into different LineItem's (see target structure) -> so in the target file one or more LineItems can appear.
    Is it possible to implement this process with a common message-mapping or have I to implement a business process?
    Thanks
    with best regards
    Christopher

    Hi Christopher,
    <i>Is it possible to implement this process with a common message-mapping or have I to implement a business process?</i> - This thing is possible with common message mapping......you dont need business proces for it.......in msg mapping after taking the source IDOC and target xml struc, map the E1EDP01 field to LineItem field.......just check the occurance of these nodes.....it should be 0..unbounded.........so as many E1EDP01 nodes will be there in idoc, that many LineItem nodes in target will be created.......
    Thanks,
    Rajeev Gupta

  • Fields to be mapped for Idoc/Xi interface

    For customer collaboration we need to map the Idoc/Xi interface for following things
    In FS what field should be mentioned for following
         u2022     Integration SNC with R/3:
    u2022     ORDERS (PI) (Order Creation)
    u2022     ORDERSP (PI) (Order Confirmation)
    u2022     DESADV (PI) (ASN)
    u2022     Integration with the customer
    o     PROACT = new integration with SNC (PI)
    o     Product Forecast Notification
    o     ( Order ID Notification ) - To be evaluated for PO nrs.
    o     ORDERSP = AS IS
    o     DESADV = AS IS
    o     Proof of Delivery

    I am closing this Thread
    Thanks

  • Route of the operator.... while creating mapping for idoc to file

    Hi,
    Scenario is IDOC to File but certain rules are there while creating a mapping in XI.
    This is the description for my scenario :
    Within XI this Idoc message needs to be translated into 2 text files:
    1 file for the route of the operator
         - Read the idoc data.
         - When reading a new order first get the customer. This will be a new line in the file.
            The customer number will be set into the filed u2018CustomerIDu2019.
         - Then read the items. For every item create a new line in the file. The machine number will be mapped to the field CustomerID
         - The field RouteOrder should get a sequential number. Starting at 001 and updated by 1 for every new line.
    Could you please guide me how can i implement this above scenario.
    Regards,
    Y.Raj

    Within XI this Idoc message needs to be translated into 2 text files:
    this can be done using multimapping i.e. defining your target messages at mapping tabs in your message mapping.
    When reading a new order first get the customer. This will be a new line in the file.
    The customer number will be set into the filed u2018CustomerIDu2019.
    If there is some condition for identifying new order then you should put condition based on input field.
    if customer no doesnot exists in order then RFC lookup can fetch customerno
    The field RouteOrder should get a sequential number. Starting at 001 and updated by 1 for every new line.
    for this declare varaible in global section and use the same or some builtin function can be used for the same.
    Rajesh

  • Error in Operation Mapping for Idoc to File Scenario

    Hi Experts,
    I am doing Idoc to File Scenario for Timesheet IDoc "HRSM_C" and following step are through,
    Sender agreement --> Receiver Determination --> Interface Determination
    got stuck in Operation mapping, it sahows error
    "Unable to find resource 193c0e01-bd37-11dd-850c-d879ac131b1f in the following software component versions: http://clarityPOCcom/sap/xi/tf/_MM_Timesheets_iDocToFile_.class-1"
    Also not all the fields of IDoc HRSM_C are transferred to the XI server as I am unable to see all the fields in xml file using transaction idx5, as I suppose the reason behind may be there are no values in those fields.
    Please suggest how to resove the issue and transfer all the fields from R3 to XI in Idoc eventhough it doesn't contain any value.

    Hi
    Refresh CPA cache using user PIDIRUSER.
    Look Note 951318 for Mapping Cache Refresh.

  • Graphical mapping for IDOC

    Hi All,
    Can i use the same IDOC  (from same SWsame Name Space) in source and target side ?
    Iam trying one scenario like that but iam unable to map them at root level or to be precise its the icon withthe description (MAP Selected fieldsand substructures if names are identical ). All other icons near it are also disabled
    Why is it so ?
    PLease advice

    Iam trying one scenario like that but iam unable to map them at root level or to be precise its the icon withthe description (MAP Selected fieldsand substructures if names are identical ). All other icons near it are also disabled
    -->
    This usually happens because of JDK version installed in your machine
    Refer
    XI mapping button disabled

  • Importmanager: if condition during mapping for second field

    HI,
    I have an xml file that has to be imported with the import manager to the repository.
    <Mime>
         <Type>image<Type>
         <File>abc.jpg<File>
    </Mime>
    <Mime>
         <Type>pdf<Type>
         <File>a12345.pdf<File>
    </Mime>
    In the repository we have a field for the name ot the image and another one for the name of the pdf. Because of the structure of the xml file I can not map these field one to one the the repository fields. In the mapping I have to analyse the value of the field <type> and depending on the value to import the field <File> to the corresponding repository field.
    Any idea how this can be done in the mapping with the importmanager ?
    Regards Bernd

    I don't think you can perform such operations on the Import Manager. I would suggest you to import all the data (given that at least one of the fields will end up as null because of the xml structure) and then place this validation rule as a calculated field on the MDM console, or even as a workflow that should be set up to execute after any import.
    Greetings
    Alejandro

  • Why control records disable in mapping for idoc communication?

    Hi, In the mapping we disable conrol records in file to idoc ...why is their any specific reason..>? plz respond me soon..accurate question reward more..thanq

    Hey,
    EDI_DC40 contains the data about control records.
    Before the message leaves the Integration Server, the message header contains values that are exported and used later to complete the IDoc control record.
    Adapter populates it runtime.
    Correct me if i am wrong
    <b>Cheers,
    *RAJ*
    *REWARD POINTS IF FOUND USEFULL*</b>

  • Multi Mapping - Receiver IDOC & Mail with BPM

    Hi,
    Is it possible to use BPM with Multi Mapping for IDOC & Mail receivers sent parallely..
    Appreciate your help ..
    Thanks,
    vasanth.

    Hi Michal,
    Thanks Michal,
    We are using PI 7.1, Our Scope to do File to IDOC & Mail scenario in between we have to do RFC Lookups..
    Could you pls guide me thru the steps fo BPM,
    1 SA -> OB to AA
    2 ID  -> OB to AA & AA to Recv
    3.RD -> OB to AA & AA to Recv
    4.RA -> AA to IB & AA to IB
    Correct me if i'm wrong..
    Clarification : Is there is any way out to implement this scenario with out BPM.
    We already implemented this scenario with 2 MM & 2 OM, Scenario works fine...but we have to use 1 Mapping..
    Appreciate your help in advance..
    Thanks,
    vasanth.

  • Message Mapping of IDOC "MATMAS.MATMAS05"

    Hi!
    I would like to execute the following message mapping for  IDoc
    MATMAS05 <--> MATMAS05.
    What are the recommended fields to map?
    Is the a button to automatically map the fields with the same names?
    Thank you very much!
    regards
    Thom

    Hi,
    you could use the button "Map Selected Fields and Substructures if Names Are Identical"
    it's explained here:
    http://help.sap.com/saphelp_nw04/helpdata/en/49/1ebc6111ea2f45a9946c702b685299/frameset.htm
    Or if you do it without a mapping:
    simple IDoc to IDoc scenario with SAP PI
    Regards
    Patrick

  • Mapping for Sales Order Idoc

    Hi Experts,
    I am facing problem with mapping for standard SalesOrder Idoc ORDERS.ORDER05.
    My Source Structure is: X12 EDI850
    <G_SPO1> (occrance 1..100000)
    <S_PO1> (occurance is 1..1)
                      <D_234/>
                      <D_234_2/>
                      <D_234_3/>
                      <D_234_4/>
                      <D_234_5/>
                      <D_234_6/>
                      <D_234_7/>
                      <D_234_8/>
                      <D_234_9/>
                      <D_234_10/>
    </S_PO1>
    </G_SPO1>
    Target Structure is:
    E1EDP01
        --->E1EDP19
                    --->IDTNR
    Functionality is passing material numbers of EDI customers to IDTNR field in E1EDP19 filed under segment E1EDP01.
    From source i will get set of material numbers, for one set 10 material numbers(In source you can find 10 fields for 10 material numbers)
    Requirement: I need to send those material numbers to IDTNR (One to one mapping ).
    For getting 10 material numbers i just duplicated segment E1EDP19 in target side and mapped one field of source to IDTNR target in each segment. Totally mapped 10 source fields in 10 segments.
    If 20 material numbers I will get two sets <G_SPO1> will repeat two times, each time 10 material numbers. So I mapped G_SPO1 to E1EDP01
    S_PO1 to E1EDP19.
    My out put is coming as 10 E1EDP19 segments under E1EDP01 if 10 materail numbers.
    But problem is ECC team asking to get one E1EDP19 line item value under E1EDP01 line item header. They are not accepting duplicate E1EDP19 segments under header E1EDP01.
    How to acheive this with my requirement.
    Appreciate your hellp on this.
    Thanks & Regards,
    A.Neelima.

    There is no relation between D_234 and D_356.
    I want to pass D_356 to KTEXT in all E1EDP01 segments which ever i will get based on the condition we implemented for E1EDP01.
    Present its coming only for E1EDP01 first segment (for which i used condition with D_234), its not coming for remaining 9 E1EDP01 segments (for which i used conditions with D_234_2 to D_234_10)
    If i pass sample input payload:
    <S_ST>
    <S_PID>
    <D_350>Description</D_350>
    </S_PID>
    <G_SPO1>
    <S_PO1>
    <D_234>1</D_234>
    <D_234_2/>2</D_234_2>
    <D_234_3/>
    <D_234_4/>
    <D_234_5/>
    <D_234_6/>
    <D_234_7/>
    <D_234_8/>
    <D_234_9/>
    <D_234_10/>
    </S_PO1>
    </G_SPO1>
    <G_SPO1>
    <S_PO1>
    <D_234>3</D_234>
    <D_234_2>4<D_234_2>
    <D_234_3/>
    <D_234_4/>
    <D_234_5/>
    <D_234_6/>
    <D_234_7/>
    <D_234_8/>
    <D_234_9/>
    <D_234_10/>
    </S_PO1>
    </G_SPO1>
    </S_ST>
    Coming Output Now: (KTEXT field is missing in last two segments)
    <E1EDP01>
    <E1EDP19>
    <IDTNR>1</IDTNR>
    <KTEXT>Decription</KTEXT>
    </E1EDP19>
    </E1EDP01>
    <E1EDP01>
    <E1EDP19>
    <IDTNR>3</IDTNR>
    <KTEXT>Decription</KTEXT>
    </E1EDP19>
    </E1EDP01>
    <E1EDP01>
    <E1EDP19>
    <IDTNR>2</IDTNR>
    </E1EDP19>
    </E1EDP01>
    <E1EDP01>
    <E1EDP19>
    <IDTNR>4</IDTNR>
    </E1EDP19>
    </E1EDP01>
    Expected Output:
    <E1EDP01>
    <E1EDP19>
    <IDTNR>1</IDTNR>
    <KTEXT>Decription</KTEXT>
    </E1EDP19>
    </E1EDP01>
    <E1EDP01>
    <E1EDP19>
    <IDTNR>3</IDTNR>
    <KTEXT>Decription</KTEXT>
    </E1EDP19>
    </E1EDP01>
    <E1EDP01>
    <E1EDP19>
    <IDTNR>2</IDTNR>
    <KTEXT>Decription</KTEXT>
    </E1EDP19>
    </E1EDP01>
    <E1EDP01>
    <E1EDP19>
    <IDTNR>4</IDTNR>
    <KTEXT>Decription</KTEXT>
    </E1EDP19>
    </E1EDP01>
    Thnaks & Regards,
    A.Neelima.

  • Mandatory Fields for IDOC ORDERS01 for Pricing Condition EDI1 to trigger

    Hi ,
    I'm Testing an Inbound ORDRSP using we 19  for Pricing Conditions EDI1. What are the Mandatory Fields for IDOC ORDERS01
    Thanks

    hello,
    I think it's better to execute VA01 to create a sales order; in that way you should have an idea of mandatory fields.
    Thanks.

  • Multi-mapping for ibound IDOC

    Hi! All
    It would be of great help if you provide your suggestions on:
    Mapping one XML source file to 6 IDOC receivers, 2 of them are of the same type and 4 are distinct idoc types.
    I tried multi-mapping and received the following error:
    "Messages in multi-message format can only be sent to one Adapter Engine"
    Looks like IDOC adapter does not support multi mapping...
    Can you please suggest any other option apart from using BPM(since it consumes lot of resources).
    Thanks a lot!!
    Regards,
    Patrick

    Hey
    its not possible to do Multimapping over IDOC's without BPM.
    other way around can be to do a single -single scenario,suppose u have 6 IDOC's to post then u need to design 6 different scenarios for them.
    without BPM you cant do multimapping for IDOC or HTTP
    Thanx
    Aamir
    Message was edited by:
            Aamir Suhail

  • Sending IDoc Batches to SAP: Issue with Header Mapping for SNDPRN

    We are sending batched IDocs from XI to SAP. We need the individual IDocs to reflect different SNDPRN values. Our mapping creates the different IDoc EDI_DC40 record correctly with different SNDPRN values. However, XI wipes out the SNDPRN values in the payload. When we define Header mapping to get the Sender Party as the XPath to the SNDPRN in the payload, then the header mapping errors out because the XPath returns multiple values.
    I wanted to know if anyone has successfully implemented sending IDoc batches to SAP from XI with different SNDPRN values.
    Your feedback is appreciated.
    Jay Malla
    Licensed To Code
    Genentech SAP XI Team

    Hello,
    I have the same problem. I want XI send an IDOC with the SNDPOR, SNDPRT and the SNDPRN that are in the EDIDC40.
    <u><b>I find this in sap.help : </b></u>
    <i>Mapping
    The IDoc adapter does not make any special demands on mapping. The IDoc adapter must simply be provided with an IDoc XML structure at the Integration Server outbound channel. This either already exists or must be generated by using a mapping.
    If the IDoc XML structure contains a control record, it is deleted and created again by the IDoc adapter. If you want to include additional values in the control record, you must select the Apply Control Record Values from Payload checkbox in the parameters in the communication channel and provide a corresponding mapping for the values.
    You can include the values from the following fields in your IDoc control record:
    MESCOD, MESFCT
    TEST
    EXPRESS
    STD, STDVRS, STDMES
    SNDSAD, SNDLAD
    RCVSAD, RCVLAD
    REFINT, REFGRP, REFMES</i>
    http://help.sap.com/saphelp_nw04/helpdata/en/b9/c5b13bbeb0cb37e10000000a11402f/frameset.htm
    Perhaps we must use party configuration but I don't know how do this !
    Regards,
    Chris<u></u>

Maybe you are looking for