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?

Similar Messages

  • Workflow Issue- Value not coming in BUS2032

    Hi
    I am creating a Workflow for Sales order. In USer Exit , i am calling FM "SAP_WAPI_CREATE_EVENT" to trigger the custom workflow with event TRIGGER created in BO ZBUS2032 which is delegated to BUS2032.
    In Workflow Trigerring Event , I am binding._EVT_OBJECT with BO- BUS2032 and created BUS2032 a workflow container.
    When i am triggering the workflow , Workflow is getting trigerred, But nothing is getting passed to BUS2032 due to which Workflow is not coming in Workflow Overview of Sales Order but workflow gets trigerred via SWIA and if i check workflow container values at runtime - BUS2032 is blank.
    Can you please advise.

    Hi Silky,
    Did you debug and see.Check this documentation on this from sap-img.Check this and post.
    http://help.sap.com/saphelp_40b/helpdata/fr/fb/135de9457311d189440000e829fbbd/content.htm
    Regards,
    Madhu.

  • PR/ Sales order value not coming in condition value routine

    As per the requirement while creating a PO I need to add a new condition type and need to calculate condition price for this newly added condition based on some matrix.
    For this requirement PO will always be created with reference to PR and with account assignment category as 'E' .
    (Hence sales order number /item will be copied from PR to PO in account assignment tab  )
    Now I have created a new pricing requirement routine ( To add the condition type ) and new condition routine to calculate and update the price.
    These routines are working fine if i check them with hard coded price values.
    But the problem is that I need the PR number(which we put in item overview ) / Sales order item number (from account assignment ). these values are not coming in pricing tables in the routine...structure EKPO come blank, KOMP-AUBEL is also blank).
    Please give your suggestions how i can i get PR/ SO in the condition values routine .
    Please reply

    resolved my self

  • CRIO DMA FIFO transfer Issue-Voltage not coming to correct channels

    Hi All,
    Using crio 9073 and NI 9205, I am transferring Data (Channel data type = FXP, Word length 37 bits, 16 bits and FIFO also same data type) from FPGA DMA (Requested No of elements configured in FPGA is 16383) To RT DMA (Requested number of elements in 32744)
    FPGA notes:
    Total channels =16 (Differential mode)
    Loop time of FPGA =20 ms (Per read 20 samples from each channel, so 320 samples per iteration)
    RT notes:
    SCTL=running at 10 ms where DMA transfer happening do that check remaining elements and then do DMA as well.
    Issue:
    When I run the code in above scenario, whatever different voltages given to 4 channels (loop backed 9263 to 9205, fpga interactive mode and only giving 4 channels voltages now just for testing) and i do DMA in RT side, decimate the 320 data and i found Channel 0 voltage given in FPGA is not coming in 0 index of the decimated array in RT DMA read data, instead Channel 0 voltage is coming in Index 7 of the RT DMA read data.  Channel 1 coming at index 8...vice versa… Seems, some data shifting happening.
    But in FPGA i could see correct differential voltage coming to correct channels (Ch 0 is 1.4 V ,FPGA indicator shows me correct voltage at index 0 a 1.4 and vice versa)..
    Please suggest me why this is happening and what is best way i can get correct channel voltage data in RT based on my above conditions.

    This is how I do where I need to only measure continuos analog values through FIFO. I don't use calibrated analog channel. I use raw analog channel and do calibration in host VI. I have attached screenshot of my code. I put 123456789 check sequence in build array function in FPGA VI.
    If I want to read 2000 samples then I keep FIFO 4000 at host side.
    I keep sample count in multiple of no. of channel. In my code build array has 3 element so I read 3*X. where X number of sample required per channel.
    If you don't understand from code let me know.
    PBP (CLAD)
    Labview 6.1 - 2014
    KUDOS ARE WELCOMED.
    If your problem get solved then mark as solution.
    Attachments:
    FPGA VI.jpg ‏205 KB
    FPGA 2.png ‏92 KB
    Host VI.jpg ‏168 KB

  • Condition type is not coming automatically

    Hi,
    There is a condition type JECS (A/R Education Cess) and access sequence is MWST, in normal order it is coming automatically but in other order type (Subsequence delivery free of charge - SD) I have to put it manually that means it is not coming automatically.  
    Please guide me how I can resolve this issue
    Regards
    Yogesh

    I dont know what exactly you want.  You want the condition type JECS to flow automatically or manually for Subsequent Delivery Free of Charge ??
    If you want to flow automatically, then, assuming that you have a different pricing procedure for Free of Charge Delivery, check in your pricing procedure for this where against the condition type JECS, the box "Manual" would have been ticked.  You have to change it to Mandatory
    thanks
    G. Lakshmipathi

  • Values not coming on export invoice

    Dear all,
    While creating Excise invoice for exports i am not getting excise values in document because i have not maintained condition types in Export pricing procedure.
    Now i have maintained Condition types in Export Pricing procedure both percentage and quantity condition types of excise and i kept all as statistical, even though the values were not coming to J1IIN and my client require excise values on print at the same time values has to come on ARE-1 document also
    can anybody guide me how values has to come on both these documents 1. Export Excise invoice 2.ARE-1 document.
    regards
    venkata

    Refer SAP Note No. 822226 for code correction.
    Regards,
    Dilip Shende

  • Excise invice -values not coming

    i have create billing & accounting doc is generated -bed /cess are posted.
    but when i'm creating excise invoice with ref to billing bed /cess values are not coming in excise invoice
    J1IIN
    pl SUGGEST

    Hi
      Please check in your billing document against all your excise condition types you have duty values.
    If billing document does not contain duty values then obviously system will not bring the duty values in your excise invoice (J1IIN).
      If you have duty values in your billing document then still excise invoice is not copied to your excise invoice then please check the below customization setting:
    MG>Logistics General>Tax on goods movements>India>Basic settings>Determination of excise duty>Maintain Excise defaults:
      Here ensure that all your excise condition types are properly maintained for your TAX PROCEDURE.
    Example if you are using JEXP-BED, JECS-ECS, JA1X-SeCess condition type in your pricing procedure.
    Then check you have maintained as follows:
    BED COND (A/R BED)..........JEXP
    A/R BED Perc (BED Perc)......JEXP
    A/R ECS Cond..........JECS
    A/R ECS Perc ..........JECS
    A/R AT1 Cond...........JA1X
    A/R AT1 Perc............JA1X.
    The above setting is required only if you are using percentage condition type. If you are using both percentage and Total condition type. Then it has to be classified as below. JEXT-BED JECP-ECS and JA1Y-SeCess.. These are total condition types.
    BED COND (A/R BED)..........JEXT
    A/R BED Perc (BED Perc)......JEXP
    A/R ECS Cond..........JECP
    A/R ECS Perc ..........JECS
    A/R AT1 Cond...........JA1Y
    A/R AT1 Perc............JA1X.
    Regards
    MBS

  • Feature Table values Not coming in order in MDM

    Hi
    We have a problem with one of our extracts.
    There is a qualified table called "Feature". And in syndication map we are extracting some models which have associated "Feature" values.(30 values).
    In data manager i can see the  features associated with a model.  And associated "Sequence numbers" of all these Features.
    But while syndication extract the Features are not coming in XML  according to the sequence number.
    The order of features is not same as the Sequence numbers displayed in data manager.
    Can anyone help me to find the cause of this . Do i need to make change anywhere else to make the extract according to the Sequence number?
    Your quick response is greatly appreciated.
    Thanks
    Dhanish Joseph

    Hi Dhanish,
    Syndicator always tries to send the records in the same order as you see in the Records pane of the syndicator.
    In data manager,when you were trying to search based on the qualified table, you must have sorted them in sequence (by clicking on the field on the records pane) and the same thing might not be sorted in syndicator.
    Please check if this is the case and sort the records in syndicator based on your qualified field and you will get the syndication files in the desired sequence.
    Regards,
    Sravan

  • Copa report values not coming in report

    hi Gurus
    In copa Values are not coming in report.
    where is the problem
    can anybody suggest
    bye
    Ramesh Reddy

    Hi Ramesh,
    First u check with whether the COPA is integrated with other modules or not? that means with fi/mm and co and SD...

  • Condition type value not update in sales order

    Hello Guru's
    As per the  sales order in VA01 the condition type value i.e surcharge value is not updating in sales order.
    But I have maintain the condition record(Surcharge)also and in Condition technique I have checked every thing is correct .
    please find below I have attached the Screen short .
    Please give me solution Asap.

    Hi Sukdev,
    Have you checked the respective pricing procedure for From and To reference step maintained against the condition type ZSUR?
    Regards,
    T.R.S.Praveen

  • VOFM Condition base value not updating(Urgent)

    Hi All,
    I have created a Condition Base Value 901 for Sales Order in Transaction VOFM.
    Following is the code when I enter the Sorce text.
    FORM FRM_KOND_BASIS_901.
    *{   INSERT         DEVK901384                                        1
    DATA: XXKOMV TYPE KOMV,
          XAKOMV TYPE KOMV,
          VKAWRT LIKE KOMV-KAWRT.
    IF KOMP-VKAUS = 'YAB'.
    XXKOMV = XKOMV.
    CLEAR VKAWRT.
    LOOP AT XKOMV INTO XAKOMV WHERE KSCHL = 'YIPR'.
    IF XAKOMV-KAWRT > 0.
    VKAWRT = XAKOMV-KWERT.
    ENDIF.
    ENDLOOP.
    XKAWRT = VKAWRT.
    CLEAR XKOMV.
    XKOMV = XXKOMV.
    ENDIF.
    *}   INSERT
    ENDFORM.
    But this code is not updating the Condition screen for items condition value.
    Regards
    Vijai

    no, the code contains the logic to determine the base value, then the value has to be passed to xkwert.
    take some other base formula as template.
    pls. rewad if helpful
    Roberto

  • Condition Base Value not maching between R/3 screen and Database

    Hi All,
    We have been using the Condition Base Value KAWRT field in the datasource 2LIS_13_VDKOM (Billing Document Condition).
    While reconciling the data in the underlying R/3 table KONV and the R/3 screen (VF03 transaction) and DS extracted data, we are seeing that sometimes the data in KONV is different by factors 10, 100 or 1000 etc from the value in the R/3 screen. We could not find any definite logic as to what should be the factor based on which situation.
    We understand SAP does this shifting of decimals to increase the precision. But we need to determine the logic of using "which factor at what situation".
    Has anyone faced this situation before, if yes...was a solution found?

    We are infact looking at the decimals against currencies (TCURX), but sometimes the KMEIN field is blank against the transaction, usually the case when KRECH (Calculation type for condition) is B - Fixed Amount. Then we are failing to understand the logic used to determine the factor.
    Any idea on that?

  • Float value not coming for xml where in xsd datatype is double

    Dear Nandy, Previously i faced same error. Then I Chaned the data type "Double into String i changed in the xsd". Or  "Double into Integer also it will work"  Please changed the data type then run it.  Please let me know. Thanks & RegardsKasireddy+966545281845

    We are using xml as source and xml parser is used. In xsd datatype is double but where in xml value is like-100.0 but after xml parser value is coming 100 though datattype is double. I can see scale is 0. Can anybode tell me how to increase  scale in xml parser or any other way to solve this. Thanks.

  • Header condition type value not displayed in sales order output

    Hi gurus,
    I have observed a strange issue regarding a header condition in a sales order.
    we have a set up like following:
    1. If the Header condition XXXX is used in sales Order then this value should be printed on sales order output.
    2. If the Header condition mentioned in above point is not maintained in sales order it should print the total price of all line items.
    Though i have maintained the header condition value in Sales Order Header its not displayed in SO output.
    That is , I have a sales order and it has one HEADER condition type entered with 3500 USD.
    In fact this value is used for some business purpose and is being printed on the sales order output for a specific output type.
    But where as in a sales order this header condition value is not getting printed on the output though I am using same data as of the sales order which is having the header condition value printed on its output.
    According to business,we must have the header condition value printed on  sales Order output.
    Please suggest how to proceed.
    Thanks in advance.

    Not sure if you are using costom smartform to print invoice, if yes then ask developer to debug and find the root cause and fix it.
    You might need to give him condition when it shuld be printed and when not.
    You can take reference of another output type for which it is printing

  • Sales order item contion value not coming correcctly

    Hi Friends,
    I created new condition type-YES7, taken sale basis as D
    Cond. class           A Discount or surcharge                 
    Calculat.type          B   Fixed amount                                                
    Cond.category       5 Customer reserve 5                                          
    Plus/minus              A Positi
    Scale basis            D Gross weight scale
    Manual entries       C Manual entry has priority
    Selected below indicators as well
    group conditon
    item conditon
    delete
    I have created condition scales as below
    scale qty                                 Rate
    0,001     KG     5,00    EUROS
    10,000          10,00
    20,000          20,00
    30,000          30,00
    40,000          40,00
    50,000          50,00
    as per my requirement, based on gross weight of each line item, condition record should pick from scales .
    But here,It is cumulating the total gross weight of all line items and showing total gross weight scale value(conditon record value) for each line item of sales order.
    so please let me know how to rectify this issues.
    Thanks in advane.
    Regards,
    Ramkrishna

    Just remove the Group condition and then try .Please refer the  logic behind the Group condition
    Group condition
    Indicates whether the system calculates the basis for the scale value from more than one item in the document.
    Use
    For a group condition to be effective, the items must belong to a group. You can freely define the group to meet the needs of your own organization. The items can, for example, all belong to the same material group.
    Example
    A sales order contains two items. Both items belong to the material group 01.
    Material     Quantity     Material group
    A     150     01
    B     100     01
    The group condition indicator is set in the definition of the condition type for material group discounts. The condition record for material group 01 includes the following pricing scale:
    Scale quantity     Discount
    from      1 pc     -1%
    from      200 pc     -2%
    Neither item alone qualifies for the 2% discount but sytem will apply the 2% as 100 + 150 > 200 .
    However, when the items are combined as part of a group condition, the combined quantity creates a basis of 250 pieces.
    This basis then exceeds the scale value of 200 pieces, which is necessary to qualify for the higher discount.
    Hope it should work after that ...
    Br
    Gaurav

Maybe you are looking for