Regarding Mapping conditions

Hi Frnds,
I have a scenario were in,If the Order no field in IDoc is 01 it should call one mapping .and if the order no is 02 it should call another mapping.
like this i have upto seven order no's.
I am thinking of creating 7 different mapping and 7 receiver determinations with the appropriate conditions? But i think the scenriao would be lenghty..
Is this is the only way or any other approach can we have to acheive this?

I am thinking of creating 7 different mapping and 7 receiver determinations
My Receiver is only One business system.not multiple receivers?
If your sender is one system and receiver is also one system then why have 7 Receiver Determinations? Importantly when your Sender and Sender Interface is same...XI/ PI will not allow you to create multiple Receiver Determinations.
You create different mappings and then include them in the Interface Determination and accordingly specify the condition there itself....is your target structure different for the different Order Numbers?
Regards,
Abhishek.

Similar Messages

  • Mapping condition in multi mapping

    Hi Experts,
    I have a 1:n multimapping where I have a mapping condition such that
    If the field is empty ith should throw an error.
    At the same time the n-1 records should be processed...
    The UDF i have used is
    if (a == "")
    throw new RuntimeException();
    else
    return a;
    As of now the entire interface fails ...
    Any idea on what I should do???

    Hi Ravi,
    What i understood your requirement is suppose if you have 100 records in one file you are sending as a individual BAPIs messages ,if there is no value for certain filed you need to stop the process and with alert email.
    my solution for this read one record at a time from CSV,set record set per message value in sender file adapter is 1,it reads one record at a time,then check the condition in mapping,use enhanced receiver determination to check the condition.
    Create one service for sending an email,use mail adapter,one bussines system for RFC.
    if your condition fails(no value)then cal service to send an email,if condition succes then sal bussiness system in and develope interface mapping for the same.
    You need to check the every record ,i think you can use my approach,any clarifications needed let me know.
    Regards,
    raj

  • Mapping conditions in creation of contract

    Hello,
    We need to map condition types for the creation of a Backend contract on the basis of a accepted bid.
    We use SRM 5.0 but our products do not have prices in their product master!
    We use the catalog funcion to indicate the prices of the materials. for service-items we manually add the prices in the Shopping cart.
    We dont know what conditions types we use in these circumstances in SRM 5.0?
    What condition type are we using in the case of materials?
    What condition type are we using in the case of  service-items?
    Thanks for any reply.
    Aart

    ok

  • Regarding Workflow condition

    Hello,
    i need help regarding workflow condition..
    When the Owner of the record gets changed to a specific user i want to create a set of tasks automatically created,.. is it possible using workflows, if possible what is the trigger event i have to use and what is the workflow condition.. please help me out its very urgent

    Hi again,
    i have used the following:
    Trigger Event : when modified record saved
    Condition : FieldValue('<Owner>') = "Jenny Adams"
    and created list of actions for creating tasks.. but i think there is problem with condition.. please help me with condition.. i also tried
    [<Owner>]='Jenny Adams'
    [<Owner>]="Jenny Adams"
    FieldValue('<Owner>') = 'Jenny Adams'

  • How to cause a "Completed with errors" map condition?

    Our application testers asked me how to replicate a "Completed with errors" map condition, so they can verify that our application reports and handles this correctly. I've been able to generate "Completed with warnings" (create records with duplicate keys) and "Failed" conditions (drop a source table), but not "Completed with errors". Anyone know of a way to produce this condition?
    Thanks!
    Steve Locke

    Hi Steve
    It depends on your 'Maximum Number of Errors' configuration property. By default this value is 50, so its highly likely you are running set based and you have used the default number of errors (50) and the error count after the run is 1 so you have the status completed with warnings. If you change the maximum number of errors to 0, you will complete with errors if there are any errors at all.
    Cheers
    David

  • Node mapping condition

    Hello experts
    There is a mapping requiremnt and i don't quite know how to achieve it. Hope to get some hints on how to do it.
    I have a source file
    <line>     unbounded
        <field1>
        <filed2>
        <field3>
    </Line>
    My taget is Idoc
    <e1xmbh>
        <e1mbxy1>
                 <Zitem>
                        <field1>
                          <field2>
                          </Zitem>
                   </e1mbxy1>
                  <e1mbh>
    now i need to creat<Zitem> node based on a condition : if field1 (concat) field 2 combination is same( from the root context)   then the Zitem must be in the same <e1mbxy1>
    if field1 (concat) field2 combination is different from the previous one from the queue then the Zitem should belong to next existence of node <e1mbxy1>
    It is quiet hard to explain but hopefully someone has an answer for it .
    Thank you

    Hi,
    You need to create 2 UDFs to achieve what You want.
    1st: to create <e1mbxy1> nodes
    field1 (concat) field 2 >>>>UDF1>>>>>>e1mbxy1
    2nd: to put the individual values <field1>,<field2>... in the correct target node.
    field1 >>>>UDF2>>>>>>field1
    Regards
    Ivan

  • Regarding mapping error in RWB

    Hi Every one
    I am doing idoc to file scenario. In the message mapping
    i tested the mapping it shows executed successfully.
    but when i tested the RWB the receiver communication channel
    it shows following error.
    can anyone please help me how to solve this error
    Message processing failed. Cause: com.sap.aii.af.ra.ms.api.RecoverableException: Exception in XML Parser (format problem?):'java.lang.Exception: Message processing failed in XML parser: 'Conversion configuration error: Unknown structure 'ns0:MT_VendorMaster' found in document', probably configuration error in file adapter (XML parser error)': java.lang.Exception: Exception in XML Parser (format problem?):'java.lang.Exception: Message processing failed in XML parser: 'Conversion configuration error: Unknown structure 'ns0:MT_VendorMaster' found in document', probably configuration error in file adapter (XML parser error)'

    HI,
    As with prakasu and latika..
    it is not an mapping problem.. it may be due to wrong configuration in the adapter communication channel configuration .. during receiver configuration the record set structure will be defaultely present, try to remove that and provide ur message type which u created in the IR..
    and try to check with the test tab..
    regards,
    Kishore

  • Regarding Mapping Types in XI

    Hiii Everyone,
    When I checked the Mapping Runtime Entries in the Table SMPPMAP3 I found the following Maping Type
    R3_ABAP -> ABAP Mapping
    JAVA -> JAVA Mapping
    XI_TRAFO -> Generated Mapping (Graphical Mapping Tool)
    XSLT-> XSLT Mapping (Java)
    R3_XSLT-> XSLT Mapping (R/3)
    My doubt is What ever Mapping we do using Graphical Mapping Tool in IR, It shows Mapping Type as JAVA, why it wont show XI_TRAFO -> Generated Mapping. So In what cases or When does it show Mapping Type as XI_TRAFO
    I have also observed in some of the Entries it shows Mapping Type as IDENTITY. What does this Indicate ?
    Regards,
    Varun

    hi varun
    whatever the mapping are being used in XI , finaly its converted to JAVA bytecode and then its executing  on Java Stack.
    Regards
    Sandeep

  • Mapping Condition issue, Value not coming in multiple segments.

    Hi All,
    File to Idoc scenario.
    My file looks like below.
    HD 89650 28/01/11 "Presciber tan"
    AF "disc-rsn"
    RK "007287001" A
    KE disc-code "007287"
    KE addr-num "001"
    DF w-phone "03 98483299"
    AF "drs"
    RK "007287" A
    KE dr-num "007287"
    DF affil "OPSM"
    DF country "0"
    AF "disc-rsn"
    RK "dr-addraddress-1 17287|1EN" A
    KE disc-code "008287"
    KE field-name "address-1"
    KE element " 1"
    T         16
    Condition:
    I have a condition where I need to create an Idoc segment Z1disc when row - "AF "disc-rsn"" exists.
    For the filed "Z1disc-CODE", I need to pass the value when row "KE disc-code" exists,
    Result:
    From my file, AF "disc-rsn" exists twice, so I created 2 Z1disc segments.
    Coming to the field "Z1disc-CODE", the value "KE disc-code" exists twice in the file. After mapping, the value is coming only once in the first segment. The field "CODE" is not coming in the second segment like below.
    Idoc
    -- Zdisc
    --- Lang -- E    
    --- Code --  "007287"
    ---Zdisc
    Lang -- E
    When the check the display queue, it is showing like below
    SUPPRESS
    007287
    007287 -- (Context)
    008287
    008287-- (Context)
    It showing correctly from display queue, but the value are not populating except in first segement.
    For your information, After content conversion, my source xml will look like below.
    <?xml version="1.0" encoding="utf-8" ?>
    - <ns:MT_Optum xmlns:ns="http://luxottica.com/SAP_CRM/DirectSales/OptomDiscount">
    - <RecordSet>
      <Row>HD 89650 28/01/11 "Presciber tan"</Row>
      </RecordSet>
    - <RecordSet>
      <Row>AF "disc-rsn"</Row>
      </RecordSet>
    - <RecordSet>
      <Row>RK "007287001" A</Row>
      </RecordSet>
    - <RecordSet>
      <Row>KE disc-code "007287"</Row>
    Kindly help me, I'm trying all the options and it is not working.
    Is there anything I need to change in Source structure?
    Thanks
    Deepthi.

    Hi Aravind,
    Here is my Source message.
      <?xml version="1.0" encoding="UTF-8" ?>
    - <MT_XIOptum>
    - <Header>
      <HRow>HD 89650 28/01/11 "Presciber tan"</HRow>
      </Header>
    - <Detail>
      <Row>AF "disc-rsn"</Row>
      <Row>RK "007287001" A</Row>
      <Row>KE disc-code "007287"</Row>
      <Row>KE addr-num "001"</Row>
      <Row>DF fax-num ""</Row>
      <Row>DF in-out "I"</Row>
      <Row>DF phone-2 ""</Row>
      <Row>DF post-code "3108"</Row>
      <Row>DF provider-num "4349201J"</Row>
      <Row>DF rec-stat "A"</Row>
      <Row>DF w-phone "03 98483299"</Row>
      <Row>AF "drs"</Row>
      <Row>RK "007287" A</Row>
      <Row>KE dr-num "007287"</Row>
      <Row>DF affil "OPSM"</Row>
      <Row>DF country "0"</Row>
      <Row>DF descript "KK"</Row>
      <Row>DF rec-stat "A"</Row>
      <Row>AF "disc-rsn"</Row>
      <Row>RK "dr-addraddress-1 17287|1EN" A</Row>
      <Row>KE disc-code "008287"</Row>
      <Row>KE field-name "address-1"</Row>
      <Row>KE element " 1"</Row>
      </Detail>
    - <Trailer>
      <TRow>T 25</TRow>
      </Trailer>
      </MT_XIOptum>
    Row> -> [removeContext] ->[ equalsS "disc-rsn" ] -> [createIf] -> <Zdisc>
    This Part is working.
    <Row>> startWith2>IF
    KE disc-code-->THEN > removeContexts>SplitbyValue>SUBSTRING>Code.
    When I check the display queue at Code. I'm getting the below values.
    SUPPRESS
    007287
    007287 -- Context change
    008287
    008287-- Context Change
    Only 007287 is displaying in FIrst segment "Z1Disc" and second value "008287" not coming in second segment "Z1Disc".
    Anything is wrong?

  • Regarding po condition

    hi ,,
    how do u find purchase order header condition not (item condition),,,,in which table they are stored if konv how do find header taxes for PO .....THNX IN ADVANCE

    HI,
    From PO header Table EKKO take the value of the Field KNUMV and pass this value to KONV table  with application 'M'.
    From Table T685 find the correct condition type for the Header taxes and pass the same value to KONV-KSCHL field. You will get the Valuesof taxes from KBETR and KWERT fields.
    Don't forget to reward.
    Regards,
    Anji

  • Regarding shipping  condition

    where does shipping condition comes from ?

    Hello all !!
    As so many answers have been given there , But in one answer ,,person has given that Shipping Condition comes from CMIR  is totally Wrong. please go to TCode VD51 & check the fields over there.
    If Shipping Condition is maintained in Sales Document Type then It has got Priority over Customer Master of Ship-to-Party {{ Shipping Tab}}.
    Thanks & Regards
    MAYANK

  • Regarding mapping

    Hi Buddies,
       How do u transport mapping from development to quality server. How many types of mapping r there.
    Thanks in advance
    Regards,
    Nagaraju Tankala

    Hi Nagaraju,
    use CMS to transport mappings.
    mapping types:
    1.ABAP mapping
    2.JAVA mapping
    3.Graphical Message Mapping
    4.XSLT mapping.
    also see the below links:
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/8a57d190-0201-0010-9e87-d8f327e1dba7
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/190eb190-0201-0010-0ab3-e69f70b6c257
    Regards,
    Nagarjuna.

  • Query regarding mapping

    Hi,
    I am XI beginner.
    I have created Data type,Message type,message interface.
    Now,I want to do mapping between sender and receiver message interface.I don't know how to map it in the graphical editor?
    Do I need to drag and drop the source and target message type in the graphical editor?
    Could you please let me know on this urgently.
    Thanks and Regards,
    XI Developer

    Hi,
    I think you are not dropping in the correct area. Just Drag the message type and take it to the graphical editor. Don't drop it! Move little bit left to the hand symbol shown. Now you can see rectangular selection box sort of thing, once you see that then drop it.
    Your graphical mapping editor is not disappering!! Since you drop in the wrong place Message type opens up in another window. In the bottom of your screen you can see both Message type window as well as Mapping window, isn't it?
    If you feel uncomfortable doing drag and drop, then best would be as Doss suggested you can click on the help icon and do insert.
    raj.

  • Query regarding mapping (aggregated)

    Hi,
    I need some help in mapping.
    SOURCEis as below:
    <E1EDP01>
    <E1EDP05>
    <KSCHL>ZRTP</KSCHL>
    <KRATE>100</KRATE>
    </E1EDP05>
    <E1EDP05>
    <KSCHL>ZIPP</KSCHL>
    <KRATE>200</KRATE>
    </E1EDP05>
    </E1EDP01>
    TARGET
    <E1EDP01>
    <E1EDP05>
    <KSCHL>ZRTP</KSCHL>
    <KRATE>300</KRATE>
    </E1EDP05>
    </E1EDP01>
    target KRATE shuld be the summation of KRATE for ZRTP and ZIPP.
    Please help.
    regards,
    Piyush

    Hi Rahul,
    I have tried doing this but it returns the summation only for the first row. Rest are blank.
    I have used the below UDF at KRATE level:
    int i, sum=0, ret=0;
    for(i=0;i<KSCHL.length;i++)
    if((KSCHL<i>.equals("ZRTP")) || (KSCHL<i>.equals("ZIPP")))
         sum = sum + Integer.parseInt(KRATE<i>.trim());
    result.addValue(""+sum);
    Let me provide you with the complete Source and target:
    SOURCE:
    <?xml version="1.0" encoding="UTF-8"?>
    <INVOIC02>
         <IDOC BEGIN="1">
              <E1EDP01 SEGMENT="1">
                   <POSEX>000010</POSEX>
                   <MENGE>12.000</MENGE>
                   <MENEE>LTR</MENEE>
                   <E1EDP05 SEGMENT="1">
                        <ALCKZ>+</ALCKZ>
                        <KSCHL>ZRTP</KSCHL>
                        <KOTXT>RTP at Port</KOTXT>
                        <BETRG>        100</BETRG>
                        <KRATE>      100</KRATE>
                        <MEAUN>K15</MEAUN>
                   </E1EDP05>
                   <E1EDP05 SEGMENT="1">
                        <ALCKZ>+</ALCKZ>
                        <KSCHL>ZIPP</KSCHL>
                        <KOTXT>RTP at Port</KOTXT>
                        <BETRG>        300</BETRG>
                        <KRATE>      300</KRATE>
                        <MEAUN>K15</MEAUN>
                   </E1EDP05>
                   <E1EDP05 SEGMENT="1">
                        <ALCKZ>+</ALCKZ>
                        <KSCHL>ZIPPTP</KSCHL>
                        <KOTXT>RTP at Port</KOTXT>
                        <BETRG>        300</BETRG>
                        <KRATE>500</KRATE>
                        <MEAUN>K15</MEAUN>
                   </E1EDP05>
              </E1EDP01>
         </IDOC>
    </INVOIC02>
    TARGET:
    <?xml version="1.0" encoding="UTF-8"?>
    <INVOIC02>
         <IDOC BEGIN="1">
              <E1EDP01 SEGMENT="1">
                   <POSEX>000010</POSEX>
                   <MENGE>12.000</MENGE>
                   <MENEE>LTR</MENEE>
                   <E1EDP05 SEGMENT="1">
                        <ALCKZ>+</ALCKZ>
                        <KSCHL>SUMRTP</KSCHL>
                        <KOTXT>RTP at Port</KOTXT>
                        <BETRG>        100</BETRG>
                        <KRATE>      800</KRATE>
                        <MEAUN>K15</MEAUN>
                   </E1EDP05>
                   <E1EDP05 SEGMENT="1">
                        <ALCKZ>+</ALCKZ>
                        <KSCHL>ZIPPTP</KSCHL>
                        <KOTXT>RTP at Port</KOTXT>
                        <BETRG>        300</BETRG>
                        <KRATE>500</KRATE>
                        <MEAUN>K15</MEAUN>
                   </E1EDP05>
              </E1EDP01>
         </IDOC>
    </INVOIC02>
    Please help.
    regards,
    Piyush

  • Regarding Exception condition "CONFIG_NOT_FOUND" raised - while logging

    Hi,
    Could you please any one help me out.
    When ever I login into the CRM Web UI with any of the Sales Manager Roles(SALESPRO or any ZRole that has been copied from SALESPRO) I get below error / exception:
    The URL http://testinstsin1.sapcrmondemand.com:/sap/bc/bsp/sap/crm_ui_frame/BSPWDApplication.do was not called due to an error.
    The following error text was processed in the system TRG : Exception condition "CONFIG_NOT_FOUND" raised.
    The error occurred on the application server SGPSAROU01_TRG_00 and in the work process 1 .
    The termination type was: RABAX_STATE
    The ABAP call stack was:
    Method: IF_BSP_DLC_CONFIGURATION~GET_CONFIG_DATA of program CL_BSP_DLC_CONFIGURATION2=====CP
    Method: LOAD_CRITERIA_ADVANCED_SEARCH of program CL_CRM_CENTRAL_SEARCH=========CP
    Method: LOAD of program CL_CRM_CENTRAL_SEARCH=========CP
    Method: CONSTRUCTOR of program CL_CRM_CENTRAL_SEARCH=========CP
    Method: GET_SEARCH_OBJECTS_AS_TABLE of program CL_CRM_CENTRAL_SEARCH=========CP
    Method: DO_INIT of program CL_CRM_CNTR_LAUNCHER_IMPL=====CP
    Method: DO_INIT of program CL_BSP_CTRL_ADAPTER===========CP
    Method: CREATE_PAGE of program CL_BSP_PAGE_BASE==============CP
    I am able to successfully login into the CRM WebUI with other roles. The problem is only with SALESPRO and ZRoles copied from SALESPRO.
    Regards,
    Rajanand

    Oh... Sorry my last message was posted wrongly.
    Please have a look at the class where this error happens and set a breakpoint to enter on debug mode and try to find the Role cofig Key, the Component usage, the object type and the object subtype for which the system is looking for a screen configuration.
    You must have deleted some screen configuration  for your initial page on this roles, that is leadig to this problem.
    Regards.

Maybe you are looking for

  • Doubts in Accounting scenario of Custom Duty in SAP

    hi, can anybody give me the journal entries for material and capital goods being imported and duty paid and Cenvat taken in sap and its relavance with MM.(considering CIN) also i want to clarify my doubts regarding the custom duty(10%+Custom cess) wh

  • Approval requirement for Z1 and F-04 Journal types

    Hi There, T.Code:  FB01/FB02 1) Currently we have a custom workflow for SA journals. Everytime the workflow gets triggered for each SA document type. But now we would like to add Z1 as another document type to which the workflow needs to be trigggere

  • HT1343 What is the command to turn my screen from a positive white background to a negative black background

    What is the command to change my screen from a positive (white background) to a negative (black background)  Is the command the same for mac book as it is for the imac?

  • Mail 1.3 for 10.3.9 version : application refuse to function correctly

    My problem is the following : when I open Mail 1.3, on my 10.3.9 version, the application refuse to function correctly : the first window wich must open at the beginning doesn't want to open, and when I want to quit this, I can't quit it normaly, it'

  • Buttons not

    I have a new out of the box Zen Micro that when the battery is charged I have NO back-lit on my buttons or the blue glow around the face of the micro. It is the older version and is in silver. I can not return it from were I bought it because I have