Conditional Mapping to 835 schema

I am interrogating a value in the incoming flat file schema and if the value is greater than '0' I am supposed to set some values in the CLP segment. However, if the value in the incoming schema is '0', I should not create the CLP segment. I'm not quite
sure how to accomplish this. I am using inline c# in the scripting functoid to evaluate the incoming value and then set the value for the CLP01, CLP02, etc. The best I know how to do is....if the incoming value is '0', just return an empty string, but that
creates a CLP segment with blank values in the CLP segment fields which is not allowed. How do I tell the map to not create the segment at all if the incoming value is '0'?
Thanks.

Prabhdeep,
Your suggestion worked well. I actually mis-spoke as it is the AMT segment I'm working with. Anyway, your suggestion helped eliminate empty sub-elements in the AMT segment. However, since I am looping through three different fields in the incoming schema,
I am still getting one empty top level AMT node, like this:
<ns0:AMT_ClaimSupplementalInformation/>
Whereas before your help I was getting this:
<ns0:AMT_ClaimSupplementalInformation>
<AMT01_AmountQualifierCode/>
<AMT02_ClaimSupplementalInformationAmount>
</ns0:AMT_ClaimSupplementalInformation>
The other two fields I'm looping through have good data and the AMT segments for them get created correctly.
Is there any way to tell the looping functoid NOT to loop for the field if the field contains certain data?
Below is my map. You can see where I fixed the input for the CINELIGIBLE field based on your input. I still have to fix the CALLOWED and CBALANCE fields. You can see where I have to use a looping functoid because I have multiple fields to check on the left
 which are mapped to a single node tree(the AMT) on the right, that can repeat per the schema rules for the 835 schema.
Thanks for your help!

Similar Messages

  • Conditional Mapping issue - Need help Urgently

    Hi Experts,
    We have a requirement for conditional mapping for HFM. When the value of certain account is positive, it is mapped to one account, else, to a different account. We are able to achieve this in the conditional mapping.
    Once the mapping is done, we need the amount to be positive one. How do we attain this?
    Thanks
    Kannan.

    Hi,
    Lets say your two target accounts are called X & Y.
    I assume in your account mapping you have something like
    Source account xxxx1 ==> Target account X
    Source account yyyy1 ==> Target account Y
    Here is what you can do.
    In the import script of Account you can check the amount value < 0 and assign to account X else to account Y and assign to the out variable.
    In the import script of Amount you can check if the source account is xxxx1 or yyyy1 then always assign abs(amount value) and assign to the out variable.
    In the account mapping,
    If you wish you can retain the below (with the account script change as I suggested, you will never get xxxx1 or yyyy1 in the out variable anymore)
    Source account xxxx1 ==> Target account X
    Source account yyyy1 ==> Target account Y
    And add the two additional entries (since out variable for the two conditions will be X & Y)
    Source account X ==> Target account X
    Source account Y ==> Target account Y
    Hope this helps, we have plenty of these kinds of situtations.
    Regards
    Ajay

  • Conditional mapping in Graphical mapping

    Hi All,
    I have a conditional mapping requirement i.e.I have 2 nodes ( collections/collection/object and  extensions/collection/@name) in the source structres. Both nodes are identical and have unbound occurences. Based on certain condtions I need to map second node in the  source node to target node ( Items ). Below is the condition.
    If first node '/MT_FCI_CONTRACT_EXPORT/fcidataexport/objects/object/collections/collection/object/@classname' (Occurs Unbounded ) value is not  'contracts.LineItem'  and second node '/MT_FCI_CONTRACT_EXPORT/fcidataexport/objects/object/extensions/collection/@name' ( Occurs Unbounded ) value is 'MATGRP_COLLN' then only map source field '/MT_FCI_CONTRACT_EXPORT/fcidataexport/objects/object/extensions/collection/row' ( occurs unbounded ) to target node 'Items' ( Occurs unbounded ).
    I have done this mapping using If condtions and did some context changes. My second condition is working fine but my first condition is not working as expected. Its only taking value in the first occurences and based on that passing first condition. But I need to check in all occurences whether value 'contracts.LineItem' is not exist  then only I need to pass that condition. Please let me know how to achieve this.
    Please help me to achieve my requirement.Thanks.
    Regards,
    Rajesh

    Hi Rajesh,
    To reply your query first we have to understand the exact requirement . So I am writing my understanding below and solution for it .Kindly reply if your requirement is different.
    you have three source field which is involved in mapping .@classname, @name, and row and target side you have node item .
    Now you have to check for all classname and name that if classname is not equal to contracts.LineItem and @name is equal to MATGRP_COLLN ( both the values I have considered as constant) then map row to target node item. i.e if classname and lineitem is occuring 4 time and two time both are satisfying both the codition then generate two target Item node .
    Solution.
    classname -> (CollapseContext)->equals to ContractLineitem --not -->
                                                                                    AND -
    IIF WITHOUT ELSE
    Name -
    >(CollapseContext)-->equals to MATGRP_COLLN--
    >
    the condition of if without else function will be output of AND and in then map row----.(collpasecontext) finally the output of if without else will be mapped to item
    note :all ittalic is Graphical mapping functions .
    Regards,
    Saurabh

  • Conditional Mapping with script using BlOCKPROC to access the HFM API

    Hello,
    following problem. During the mapping/validation I need to map certain custom1 members to None if the Top Member is None and let it be if not None. This allocation depends on the account. Reading through the documentation I stumbled across conditional mapping.
    So in the Custom1 map type Like I defined following:
    Rule Name: C1_Script
    Rule Definition: CXXX*
    TargetCustom1: #Script
    In the script I try to achieve to get the Custom1 Top member for the account! The HFM API offers this function(fGetCustomTopMember) and with varValue(14) I get my TargetAccount. So everything I need seems to be there.
    Only problem is I need to use the BlOCKPROC to access the HFM API provided through the adapter, but either way won't work.
    Trying "Set API.IntBlockMgr.IntegrationMgr.PobjIntegrate = BlOCKPROC.ActConnect("LookUP")" throws an object required error.
    Trying
    Dim BLOCKPROC
    Set BLOCKPROC = CreateObject("upsWBlockProcessorDM.clsBlockProcessor")
    BLOCKPROC.Initialize API, SCRIPTENG
    throws me a type mismatch for "BLOCKPROC.Initialize".
    I am kinda at my wits end. Any help/clue is much appreciated.
    Ahh, yes the different writing BlOCKPROC and BLOCKPROC is correct!
    Thanks!

    Hello Tony,
    Many thanks for your answer. Just one last question. The event AftProcMap(strLoc, strDim) gives me the Dimension? Just how do I get the account?
    Can you point me to the right direction and I'll figure out the rest!
    Thanks a lot!

  • Using conditional Maps

    Hi all, Im using FDM 11.1.2.1
    I want to use a conditional Mapping for Custom 2 (UD2)
    I tried to use the example on the manual, but on the field Rule Definition, which is empty on the example, FDM is forcing me to include some value, so basically the grid is as follows
    Rule Name Rule Desc Rule Definition Targe Custom2 Script
    NIT All All #Script ----
    And the script goes like this
    If Len (varValues(21)) > 9 Then
         Result = Left(varValues(21),9)
    Else
         Result = varValues(21)
    End If
    Once I execute the import the follow error comes up
    ERROR:
    Code............................................. 4026
    Description...................................... Invalid Between Clause: (All) For Dimension Map (UD2) and Rule (NIT)
    Procedure........................................ clsCalcEngine.fFlagWildcard
    Component........................................ upsWObjectsDM
    Version.......................................... 1112
    Thread........................................... 11124
    I can´t understand what's wrong with the rule, if it's on the script, or the grid.
    Please any help will be highly apprecited

    If you want the map to apply to all Custom2s, then I think it is more appropriate to use Like mapping instead of Between mapping. In the Like mapping entry, the Rule Def ashould be set to * (asterisk) and the Target should be set to #SCRIPT.
    Edited by: Larry R on Nov 23, 2011 12:30 PM

  • Provision account key missing for condition type FRA1 in schema ZIMPOR

    Hi,
    While maintaining the condition value in PO, the below message displayed.
    "Provision account key missing for condition type FRA1 in schema ZIMPOR"
    Thanks and regards
    Murugesan

    Go to
    Spro>MM>Pur>Conditions>Define Price Determination Process>Define Calculation Schema
    here select ZIMP and click control data
    in that maintain "Account key" for FRA1 cond type in the Account key Column..
    (Second column from right side)

  • FDM 11.1.2.1 Mapping Issue Conditional Mapping Error

    I am configuring the newly installed FDM 11.1.2.1 and have and issue with the conditional account mapping where I have "varValues(9)" and it comes with this error. I have taken the script from our current FDM 9.3 versionm where it did worked, but in FDM 11.1.2.1 it will no go through.
    Is the script not correct ? Or is this new version different somewhere ?
    Thanks,
    Henri
    Error message
    ** Begin FDM Runtime Error Log Entry [2011-10-05 16:25:41] **
    ERROR:
    Code............................................. 13
    Description...................................... Conditional Map Script Error: Type mismatch at line(1)
    Script:
    If varValues(9) = 0 Then Result = "5821.11.060" Else Result = "5821.11.060" End If
    Rule=w98x
    Procedure........................................ clsImpProcessMgr.fLoadAndProcessFile
    Component........................................ upsWObjectsDM
    Version.......................................... 1112
    Thread........................................... 5000
    IDENTIFICATION:
    User............................................. <withheld>
    Computer Name.................................... <withheld>
    App Name......................................... <withheld>
    Client App....................................... WebClient
    CONNECTION:
    Provider......................................... SQLOLEDB
    Data Server...................................... <withheld>
    Database Name.................................... <withheld>
    Trusted Connect.................................. False
    Connect Status.. Connection Open
    GLOBALS:
    Location......................................... <withheld>
    Location ID...................................... 750
    Location Seg..................................... 4
    Category......................................... Actuals - PP
    Category ID...................................... 13
    Period........................................... Sep - 2011
    Period ID........................................ 9/30/2011
    POV Local........................................ False
    Language......................................... 1033
    User Level....................................... 1
    All Partitions................................... True
    Is Auditor....................................... False

    Cast the value of varValues(9) as a Double and do the same for the 0 i.e. CDbl(varValues(9)) = CDbl(0). Also verify that the value passed in varValues(9) is actually a number and does not contain non-numeric characters or is blank

  • FDM Conditional Map Script Error

    Hi all,
    we trying importing data from EBS to HFM though ERPI by using FDM.
    We used conditional based scripts to importing data from ebs to FDM.
    this scripts used in FDM for ICP dimension between conditional mapping script.script logic is some particular account are related to Intercomapny transaction accounts we have to map to ICP member
    can anyone help me on this:
    this is error :
    ** Begin FDM Runtime Error Log Entry [2011-12-12 15:10:18] **
    ERROR:
    Code............................................. 1014
    Description...................................... Conditional Map Script Error: Expected 'End' at line(2)
    Script:
    If varValues(14)="113401" Then Result="21_ADNIP"
    Else Result="[ICP NONE]"
    End if
    Rule=I1
    Procedure........................................ clsImpProcessMgr.fLoadAndProcessFile
    Component........................................ upsWObjectsDM
    Version.......................................... 1112
    Thread........................................... 13888
    IDENTIFICATION:
    User............................................. admin
    Computer Name.................................... ADNIPHYPUAT01
    App Name......................................... FDMHFM
    Client App....................................... WebClient
    CONNECTION:
    Provider......................................... ORAOLEDB.ORACLE
    Data Server......................................
    Database Name.................................... HYPUAT
    Trusted Connect.................................. False
    Connect Status.. Connection Open
    GLOBALS:
    Location......................................... HFMGLLOAD
    Location ID...................................... 750
    Location Seg..................................... 4
    Category......................................... WLCAT
    Category ID...................................... 12
    Period........................................... May - 2011
    Period ID........................................ 5/31/2011
    POV Local........................................ False
    Language......................................... 1033
    User Level....................................... 1
    All Partitions................................... True
    Is Auditor....................................... False
    Thanks.
    Srini

    Hi, please try the mapping script again having the "Result=" statement on a separate line, like:
    If varValues(14)="113401" Then
    Result="21_ADNIP"
    Else
    Result="[ICP NONE]"
    End if
    Kind regards,
    Jeroen

  • Provision account key missing for condition type ZPFV in schema ZUELOC

    Hi
    We have defined the condition type ZPFV for freight value & mentioning the same while creating po and in past we had prepared so many po by using this.
    we hv not change any thing & today we are getting message " Provision account key missing for condition type ZPFV in schema ZUELOC"
    What to do???????
    Thanks
    Ketan Vala

    hi..
    If the accrual is ticked in condition type in M/06, it should have an account key assigned to the condition type in the pricing procedure in M/08.
    Go to your contion type ZPFV and check whether you have checked Accrual or not..
    then go to ur pricing procedure ZUELOC and check the last two colums for your condito type i.e. Account Key and Accrual Key.
    Maintain these..
    try this if it works.
    Thanks...

  • Condition Type of Pricing Schema

    Can anyone plz explain the checks and other options functionality in Condition Types in detail.
    Regards,
    RM

    >
    Rashid Masood wrote:
    > What is the functionality of group condition check in condition type of Pricing schema.
    >
    > Regards,
    > MR
    Group condition check groups the condition maintained in header and sub divides the amount between
    the line items. Suppose, Rs.1000 is mentioned in condition type and the PO has 10 line items. Because
    of this check Rs.1000 will be divided by 10 = Rs.100 will be allocated to the condition of the line item.
    This way all 10 lines will have Rs.100 mentioned in condition type of the line item

  • AFS Condition Types and Pricing Schema

    Dear All
    I am working in AFS 6.00 in that i am not able to find AFS Condition Type and Pricing schema like    
    J3AP, J3AX, J3AD and J3A00.
    But in SAP AFS Library they have mentioned  all the condition type and Procedure will Come default.
    AFS Condition Types
    Choose one of the following condition types to determine prices at SKU level:
    J3AP
    gross price at SKU level J3AX
    manual entry of the gross price at SKU level J3AD
          discount in percent at SKU level
    "The calculation schema J3A00 and the schema group J1 are predefined in the AFS standard system. In order to be able to specify prices at SKU level, the schema group J1 must be entered in the Vendor Master Record."
    Kindly confirm me whether it is available default or any Note has to apply to get this option.
    Kindly guide me.
    Shobana

    Dear Shobhana,
    All the default conditions will be available in client "000". Please
    copy these condition from client "000" to any other client.
    If you wish to copy Customizing from client 000 to other clients.
    then you need to have all the customizing that you wish to copy
    collected in one place (a transport request). Further, to do the actual
    synchronization/copying of the data, you can use the transaction SADJ
    (Customizing Transfer Assistant). This tool is a part of the Cross
    System Viewer application itself.
    Please try this first on your test client first. If you have any doubts
    please get back to us.
    If you need more assistance on this please raise a message under
    "BC-CUS-TOL-CST". My colleagues will be able to help you regarding this.
    Regards,
    Rakesh Ojha,

  • Provision account key missing for condition type FRB1 in schema

    Provision account key missing for condition type FRB1 in schema is the error coming while i enter freight value at PO
    how to set this
    krishna

    Hi Krishna,
       Go to Pricing procedure using M/08 , here against the Freight condition type ( FB1), enter the accrual key ( ex. FRE)and account key ( ex. FR1 or FR2).
    After saving to the customizing request, again create the PO.
    Thanks & Regards,
    Amjad

  • Using custom backing map for distributed scheme

    Hallo,
    We are evaluating usage of distributed scheme for storing large amount of data. We have analyzed memory usage for distributed-scheme backed by local-scheme (with binary unit calculator) and received interesting results.
    On single JVM
    110M - byte arrays - our data in binary form
    20M - com.tangosol.util.Binary objects - overhead of binary objects to wrap byte arrays
    27M - com.tangosol.net.cache.LocalCache$Entry objects - local cache entry overhead
    When we have tried our own implementation of java.util.Map as backing map (using some clever tricks to get smaller size at the cost of CPU processing)
    On single JVM
    36M - byte arrays - out application data
    So it is look like we are going to stick with our implementation.
    My question
    Are there any known drawbacks of using implementation of java.util.Map as backing map for distribute-scheme?
    Our implementation is thread safe of cause (we have already tested it thread-count option of distributed-scheme)

    Hi Alexey,
    alexey.ragozin wrote:
    But I already have this table in first map (String -> Binary), in former project we have used handmade Map implementation with method internKey() to avoid duplication of data.
    I'm looking for a way to reuse our old and proven techniques with coherence caches.
    Thank you,
    AlexeyUnfortunately there is no way the extractor could get hold of the already existing key reference in the reverse index. I agree that the extracted value reference in the reverse index entry (the key from that entry) should be reused by Coherence as the forward index value if the reverse index entry for the same extracted value exists, but apparently it is not.
    Try to submit an enhancement request for this (and please share the ticket number for it so we can also look for it in the release notes).
    Best regards,
    Robert

  • Condition type and calculation schema

    Hi,
    I would need to set up a condition type and set this into a calculation schema.
    The condition type is a kind of tax. (It must be percentage.)
    The tax amount increases the cost, asset value or stock value so the NET amount must be summed up with this tax amount and posted in the GR.
    Please let me know how to set up this condition type and how to set up the calculation scheme so that NET amount and tax amount could be posted in the MIGO.
    When creating a PO line itme with w material I would like to be able to set the NET amount there.
    When lookint at the Condition tab of the line item in the po I would like to see the
    NET amount
    The tax percentage calculated
    The total of these.
    In the MIGO I need to post the total.
    Thanks in advance,
    Agnes

    Hi,
       The option is available with Transportation Management in standard using Multi-dimensional calculation type. As of my knowledge, the full functionality is not available without TM, as there is no option to assign the scale type in MM.
        If you want to map the same scenario in MM without TM, then you may go for development. You may create a new Z table and maintain the kilometers and rate per km for each vendor and ship to party (customer number for the receiving plant). Create custom routine to pull the price (distance * rate per km) from the z table and calculate the total price based on the calculation.
       If the kilometers / route is changeable for each PO, then you may add the distance field in PO.
    Regards,
    AKPT

  • Error in conditional map using User Defined Function

    All,
    In my mapping I basically have a user defined function that returns the filename of my inbound file from the adapter-specific message attributes (file adapter).  I know this is coded properly because if I simply assign this function to my destination field I can see the filename in the payload XML.
    However if I conditionally check that returned value using if,then,else I get an error message stating:
    "During the application mapping com/sap/xi/tf/_MaterialData2ZcustProdMastMulti_ a com.sap.aii.utilxi.misc.api.BaseRuntimeException was thrown: RuntimeException in Message-Mapping transformation"
    Essentially in my if I'm checking if the value returned by my user defined function is equal to the constant "SOMECONSTANT" then I'm setting my destination field to some other constant value.  Otherwise it's equal to a different constant value.
    Any thoughts?

    Claus,
    Thanks for the help.  I actually had figured the problem out on my own.  Sorry for not updating the thread sooner.  What happened was this (as I suspected it wasn't related to my user defined function).  For the newbies out there (of which I'm one) the problem was I was comparing strings in the graphical mapping tool using the Boolean "EQUALS" rather than the Text "EQUALSS".
    Can you give yourself points for solving

Maybe you are looking for

  • How to access a Portal User Info from a J2EE application?

    Hi, I have deployed a j2ee application in portal and its running fine. from that application i need to assign some roles to some users.i have the user id. so my doubt is can i access the portal user info from this j2ee application?i have some servlet

  • 3G NOT Activating - SSL 3.0 or TLS in Internet Explorer (iTunes for PC)

    I guess their SSL servers are crashing too. SAD Months to test. 1 year's worth of experince and NO Load Testing.

  • Problem with ora:output and xmlns attribute

    Using lastest XDK. I am using the built in extension ora:output in a stylesheet running via XSQL called from a small java prg. I am using this to generate several html fragments that will get processed later on not by xsql or xml/xsl but by another j

  • Installed 23" HD Display with AirPort difficulties

    recently installed a 23" HD Display - all well and good... but on wake from Sleep and/or re-Logging On, the AirPort connection is lost! while still on the network... this is focing me to do a full system reboot or as recently discovered; (that someti

  • Multiple child tables and repeating frames

    I have three tables(A,B,and C) where A is the parent of both B, and C. There is no relation between B and C.In the data model, There are three queries, one to each table and I have set up the parent/child relationship in the data diagram. In the layo