Mapping Issue:Assign src field val to target when src field not exists

Hi
Pls guide though the following issue in Message Mapping
I do have a segment of 0...n. where the target element is manipulated based on the three fields in source segment.
<Source>
Parent Segment (1..1)
     Segment     (0...n)
          Field_1  =  23k     
          Field_2  =      01
          Field_3  =  (either 'X' or No field in IDOC segment)
<Target>
Segment (1...1)
     t_Field  =  ( if ( ( Field_1 = '23K') & (Field_2 = '01'))  then  assign Field_3  )
How can i check or handle this Field_3 issue when its not present in IDOC segment?
Note: I am using UDF, and getting errors while retrieving Field_3 data when the field itself is not present in segment inside loop statement.
Thanks,
Vinod V

Thanks Mickael for the reply,
I have tried the same, and its working fine with the Display Queue. But giving following error while performing the Transformation Test.
I found that in loop Field_3 returns value at first index only. It does not increment.
Field_3's context is set to Parent Context.
Please help with inputs.
regards,
Vinod V

Similar Messages

  • Error by compiling yacy: Target "build-jar" does not exist

    Hello
    I am trying to compile yacy by using this PKGBUILD (based in this one: http://aur.archlinux.org/packages.php?ID=14464):
    pkgname=yacy-svn
    pkgver=7387
    pkgrel=1
    pkgdesc="Peer to peer searchengine"
    arch=(i686 x86_64)
    url="http://yacy.net/"
    license="GPL"
    depends=('java-runtime' 'sudo')
    #depends=('jre' 'sudo')
    #makedepends=('jdk' 'apache-ant' 'subversion')
    makedepends=('apache-ant' 'java-environment')
    conflicts=(yacy)
    replaces=()
    provoids=(yacy)
    install=yacy.install
    source=()
    md5sum=()
    _svntrunk=svn://svn.berlios.de/yacy/trunk/
    _svnmod=yacy
    build() {
    cd $startdir/src/
    msg "Checking out svn-tree..."
    svn co -r $pkgver $_svntrunk $_svnmod || return 1
    cd $startdir/src/yacy/
    msg "Create working directory"
    cp -r $startdir/src/yacy $startdir/src/yacy-work
    rm -rf $(find "$startdir/src/yacy-work" -type d -name ".svn" -print)
    # svn-file, that buildscript can determine revision
    mkdir -p $startdir/src/yacy-work/.svn/
    cp $startdir/src/yacy/.svn/entries $startdir/src/yacy-work/.svn/entries
    cd $startdir/src/yacy-work/
    msg "compile and copy files..."
    ant build-jar installonlinux -DDESTDIR=$startdir/pkg || return 1
    mkdir -p $startdir/pkg/usr/share/java/yacy/
    cp lib/*.jar $startdir/pkg/usr/share/java/yacy/
    cp libx/*.jar $startdir/pkg/usr/share/java/yacy/
    mkdir -p $startdir/pkg/etc/rc.d
    m4 -DArchLinux $startdir/src/yacy/addon/yacyInit.m4 >yacy.init || return 1
    install -Dm755 yacy.init $startdir/pkg/etc/rc.d/yacy
    msg "Delete working directory"
    rm -rf $startdir/src/yacy-work
    But in the process I get this error:
    Buildfile: ~/yacy/src/yacy-work/build.xml
    BUILD FAILED
    Target "build-jar" does not exist in the project "YaCy".
    I have searched information related using google but I don't find one solution.
    I think it is a java related problem. I have installed Oracle's Java Runtime Environment jre-6u23-1
    I use Archlinux x86 2.6.36-2.
    Can anyone help me please?
    Thanks in advance

    OK
    Still I can't install yacy, but I was reading the file readme.txt included in the program's tarball.
    There, says to start yacy run:
    ./startYACY.sh
    I get this terminal output:
    ****************** YaCy Web Crawler/Indexer & Search Engine *******************
    **** (C) by Michael Peter Christen, usage granted under the GPL Version 2 ****
    **** USE AT YOUR OWN RISK! Project home and releases: http://yacy.net/ ****
    ** LOG of YaCy: DATA/LOG/yacy00.log (and yacy<xx>.log) **
    ** STOP YaCy: execute stopYACY.sh and wait some seconds **
    ** GET HELP for YaCy: see http://wiki.yacy.net and http://forum.yacy.de **
    >> YaCy started as daemon process. Administration at http://localhost:8080 <<
    When I have tried to access to localhost, I get the following message:
    Error connecting to localhost. Connection refused.
    But from terminal I can ping to localhost
    Can anybody help me with any of this troubles please?
    Last edited by zuargo (2011-01-08 15:55:48)

  • Default Target Main Build does not exist in this project

    I am learning ant with eclipse and wanted to use ant build.xml to compile and run my class. I was getting the following error when i just tried to use ant.
    Default Target Main Build does not exist in this project
    package src;
    public class Ch05_02 {
        public static void main(String[] args) {
            System.out.println("This code was built using Ant.");
    <?xml version="1.0" encoding = "UTF-8"?>
    <project name="Ch05_02" default="Main Build" basedir=".">
    </project>Ref: http://www.javabeginner.com/Ch05_02.zip
    Edited by: hemanthjava on Oct 28, 2007 5:43 AM

    You gave a default target in the build.xml, and then didn't define the target.
    This is an Ant question. You're better off asking Ant questions on an Ant forum.

  • Error target 'sda.icssb2b' does not exist in this project

    Hello sir,
    I want to build ear(Application Archive) by buildtool and ant-current-bin for Modified
    SAP Internet Sales Web Applications but i have war file and sda file ,i build form ISA_BuildTool_10 guidline document , build failed because Target 'sda.icssb2b' does not exist in this project.
    I think 'sda.icssb2b' was generated by earbuilder.xml
    please help me
    thanks you
    Soothiluck Y.

    You gave a default target in the build.xml, and then didn't define the target.
    This is an Ant question. You're better off asking Ant questions on an Ant forum.

  • Field ZZBUDAT is delta-relevant, but does not exist in the field list

    Hi All,
    I have created a Generic DataSource on a View.Now there is a situation ,i need to add a Date field form some other table.
    So i have enhanced the datasource now that date is coming in my datasource.
    But when i tried to make delta on that date field its showing error-
    Field ZZBUDAT is delta-relevant, but does not exist in the field list
    Message no. R8279
    Diagnosis
    The DataSource uses field ZZBUDAT for specifying the delta. In the DataSource field list, however, the field does not occur
    Now how i can make this field dalta relevant?
    Thanks,
    Piyush

    Piyush,
    I think the message in SAP is quite clear....
    If the field ZZBUDAT does not exist in the view ... how do you expect the datasource to know which records have changed...?
    The delta relevant field SHOULD be in the view - else there is no way the extractor can identify the changed records ...
    Please remember that the Generic extractor is a simple select statement with a where clause on the delta relevant field and nothing else ... if you want the changed on field to come from another table - then you need to write a function module extractor to do this...
    The order of processing is that - the view fields are processed first - then the enhanced fields are processed followed by the user exits...

  • ORA-12545:connect failed because target host or object not exist

    Dear DBA's
    I am getting this error message when i want to connect oracle by using internet explorer browser.
    ORA-12545:connect failed because target host or object not exist
    I already started services: oracleservicesSID,OracleOraDb10g_home1TSNListener,
    and OracleOraDb10g_home1HTTPServer

    you should try to startup the Enterprise manager console.
    emctl start dbconsole
    regards

  • Target Currency 0MEANTODAY does not exist

    Dear Experts,
    I got this error while execting a report.
    Error Msg: Target Currency 0MEANTODAY does not exist.
    Kindly suggest.
    Regards,
    KV

    Hi,
    If your query uses currency translation, first turn it OFF and run the query. I hope it will run fine.
    If yes, then you have to update your curreny exchange rate list from source systems or currency translation rule in RSCURR or check currency values available in your info provider.

  • Oracle8i ora-12545: connect failed because target or object does not exist

    I am trying to get a Oracle8i database working on a Windows 2000
    platform for use on a single computer. I created the database
    using the Database Configuration Assistant. But cannot access
    it. I try and connect through SQLPlus but receive the following
    error: ora-12545: connect failed because target or object does
    not exist. Any ideas?

    I think ur not configured or installed directory server..
    Do this then it will work fine.

  • In SharePoint Calendar lists, fields [Start Time] and [End Time] do not exist at the Site Column level.

    <header style="box-sizing:border-box;color:#777777;line-height:1;font-size:13px;padding-right:46px;margin-bottom:3px;font-family:'Helvetica Neue', arial, sans-serif;">
    </header>
    I'm doing SP app development and have the following problem.
    I need to check Start time and End Time in SharePoint Calendar using CAML query and then add a new event to Calendar list using the Start time and End Time that user has entered in 2 datapickers
    in the form.
    function AddCalendarListItems() {
    var SD = document.getElementById("datepicker1").value;
    var SThh = document.getElementById("St1").value;
    var STmm = document.getElementById("St2").value;
    var ED = document.getElementById("datepicker2").value;
    var EThh = document.getElementById("Et1").value;
    var ETmm = document.getElementById("Et2").value;
    var T = document.getElementById("Title").value;
    var S1 = SThh;
    SD = SD.slice(6, 10) + "-" + SD.slice(0, 2) + "-" + SD.slice(3, 5) + "T" + SThh + STmm + ":00Z";
    ED = ED.slice(6, 10) + "-" + ED.slice(0, 2) + "-" + ED.slice(3, 5) + "T" + EThh + ETmm + ":00Z";
    //alert("SD= " + SD + " , ED= " + ED);
    var siteUrl = SiteCollurl + "/SharePointApp11";
    var clientContext = new SP.ClientContext(siteUrl);
    var oList = clientContext.get_web().get_lists().getByTitle('Calendar');
    var ListItemCInfo = new SP.ListItemCreationInformation();
    var newEvent = oList.addItem(ListItemCInfo);
    newEvent.set_item("Title", T);
    newEvent.set_item("EventDate", SD);
    newEvent.set_item("EndDate", ED);
    newEvent.update();
    clientContext.executeQueryAsync(Function.createDelegate(this, this.onQueryAddCalendarSucceeded2), Function.createDelegate(this, this.onQueryAddCalendarFailed2));
    function onQueryAddCalendarSucceeded2(sender, args) {
    alert("Success");
    function onQueryAddCalendarFailed2(sender, args) {
    alert('Add new item to the calendar failed. ' + args.get_message() + '\n' + args.get_stackTrace());
    But I receive the following error:
    Add new item to the Calendar failed. Column 'Start time' does not exist. It may have been deleted by another user.
    I've checked and 'Start time' does exist. So it seems in SharePoint Calendar lists, field [Start Time] and [End Time]  exist but do not exist at the Site Column level.
    Please advise.

    Hi Khojasteh,
    Use “EventDate” for Start Time field, and “EndDate” for End Time field. They are the internal name of the two fields, you can check it in the column settings page url like “Field=EndDate”.
    If it isn’t the issue, please debug the code, in which line the error occurs.
    Thanks,
    Qiao
    Forum Support
    Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Subscriber Support, contact
    [email protected]
    Qiao Wei
    TechNet Community Support

  • Assign PO Smartform in NACE error-Processing routine does not exist

    I have created a Z-Smartform and Z-driverProgram and assigned both in NACE:
       Medium-           Program-                      Form-                                 PDF/Smartform-   Type
    Print output-     ZSFPOREPORT-                          -ZSFPOREPORT- SmartForm
    but a error message : Processing routine in program ZSFPOREPORT does not exist  ..
    Do we need to code in driver prog under a Subroutine and call the same (or) Do we need to create a Form with Special Interface parameters similar to Entry_NEU ..
    I am not sure as ENTRY_NEU is for a Script but we need to assign a SMARTFORM here...
    So Gurus suggest.....

    Hi
    DATA:   fm_name  TYPE rs38l_fnam.
    *-- Call the Smartform for Label Printing.
            CALL FUNCTION 'SSF_FUNCTION_MODULE_NAME'
              EXPORTING
                formname           = 'ZLS_XXXXX'
              IMPORTING
                fm_name            = fm_name
              EXCEPTIONS
                no_form            = 1
                no_function_module = 2
                OTHERS             = 3.
            IF sy-subrc <> 0.
              MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
                      WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
            ENDIF.
            CALL FUNCTION fm_name
              EXPORTING
                v_XXXX         = v_YYYYY
                v_matnr          = mara-matnr
              EXCEPTIONS
                formatting_error = 1
                internal_error   = 2
                send_error       = 3
                user_canceled    = 4
                OTHERS           = 5.
            IF sy-subrc <> 0.
              MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
                      WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
            ENDIF.
    But this pattern is not same for all driver program. So you can do the following:
    Step 1: Click on the area where you want to write function module.
    Step 2: Click on "Pattern" at the top of the SAP window. Enter the function name as  SSF_FUNCTION_MODULE_NAME  and
                 press ok.
    Step 3: Now fill up the reqd fields. Give the name of the smartform in
                 EXPORTING
                formname           = 'ZLS_XXXXX'
    Step 4: Now go to the SMARTFORMS program Environment->Function Module Name  and copy  the Module Name.
                Again click on "Pattern" and paste the module name. Again you will get a pattern(i.e. the second function)
    Step 5: Replace the Function module name with "fm_name" as shown in the code above.
    Then your code is ready.
    Thanks & Regards
    Rocky kr. Agarwal.

  • Require field be filled out when other field values change

    I tried to search on something I need to do but couldn't come up with a combination of words to find much.
    I have a situation where, when certain field values on a form are changed, I need a comment field filled in. So if one of the designated field values change and the comment field is NOT filled in, I would like some kind of message indicating that the comment field must be filled in when that field is changed. This would preferably happen when the 'Update' button is pushed on the form. And this would need to happen before the data is submitted.
    This seems to be somewhere between a validation and a Dynamic Action. I'm not sure how to go about creating what I need. Any help would be greatly appreciated! Hopefully I have described the scenario well enough.
    Thanks!
    John

    This did the trick! I created the hidden item, then created a dynamic action that would set the value of the hidden item to 1 if the field changed (action = 'change'). Then I created a validation on my 'comments' field to check if it was NOT NULL when the 'Apply Changes' button was pushed, with a condition of the hidden item = 1.
    One thing extra - I had to set the dynamic action so that it did NOT fire on page load. Otherwise it would set the hidden item to 1 when the page loaded after clicking the "Apply Changes' button.
    So, thanks!
    One other question - I have a lot fields on this form. All of them have this requirement except for a few buttons. Is there any way to list the fields NOT to look for a change. In other words, in the Dynamic Action section, in the WHEN section, is there a way to designate items NOT to look for a change?
    Thanks for the help!
    John

  • What is it called when a field box only generates when another field box has text entered?

    Hi:
    I am using LiveCycle Designer 8.0 and am in the process of creating a form.  I want to create a field that only will generate if a previous field has text in it.  Kinda like: if this is entered, then this will happen.  Any thoughts?

    Hi,
    There is a lot of potential for creating dynamic forms with LC. The help file in LC and the guides on the Adobe web site give a lot of direction.
    In your first field you can write javascript against an event, in this case the exit event is probably best:
    if (this.rawValue == "" || this.rawValue == null) // this is a test if the first field is empty
         textField2.presence = "invisible";
    else
         textField2.presence = "visible";
    When testing you use double "=="; when assigning values you use a single "=". TextField2 is there, just hidden from the user.
    Good luck,
    Niall

  • Adding new field to the page when the field source not available

    Hi,
    I have a requirement to add vendor_serial_number (manufacturer's serial number) to the page /oracle/apps/csi/instance/general/webui/InstanceDetailsPG. This column is available in mtl_serial_numbers_all_v table. I don't see any VO in that page has access to this. What is the best approach to add this field in the page.
    Create a new VO with the query to get the vendor_serail_number based on the item_number, serial_number.
    Attach the VO to the AM InstanceDetailsAM or create a new custom AM as we can't attach the new VO to the seeded AM.
    Add a item to the page that gets the column value from this new VO.
    Please suggest.
    Thanks,
    HC

    1. Create the textfield item using personalization.
    2. Create a View Object to get the field
    3. Extend the InstanceDetailsCO and attach the VO to AM programatically in the extended CO.
    Any suggestions.
    Thanks,
    HC

  • How do I "Save target as ..." when it does not exist on right clicking in Firefox?

    Some web sites allow files and free mp3 tracks to be downloaded by right clicking on an icon and selecting "save target as ...". But Firefox does not have this option. How do others handle this? I have had to go back to Internet Explorer to use this privilege.
    == This happened ==
    Every time Firefox opened
    == Always been so for me.

    no it isn't........this option saves as an HTML document link. it does not download the file.

  • Compare 2 fields and change color when they do not match

    I have a form where I am totaling up 2 columns.  When all is said and done both totals should match, but if they don't I want to change the color of one field to red and display a message. 
    Thanks,
    Diane

    You can use the following custom calculation script for a hidden text field. Just make sure that it is after the other two fields in the field calculation order:
    (function () {
        // Get references to the two fields
        var f1 = getField("column1_total");
        var f2 = getField("column2_total");
        // Get the field values, as numbers
        var v1 = +f1.value;
        var v2 = +f2.value;
        // If the values don't match, set f2 text color to red, otherwise black
        if (v1 !== v2) {
            f2.textColor = color.red;
            app.alert("Column values don't match.", 3);
        } else {
            f2.textColor = color.black;
    This will work if you're summing integers, but not if you're summing real numbers, which is usually the case. For example, this is what JavaScript calculates for the following two additions:
    0.4 + 0.5 = 0.9
    0.3 + 0.6 = 0.8999999999999999
    This is due to the way floating point calculations are performed in JavaScript. In such a case, the code above will consider the two values to be different, even though they may display as the same value (e.g., 0.90) in the field. To deal with this, you can round each field value to a certain number of significant digits before you compare them, like this:
        // Get the field values, as numbers rounded to two decimal places
        var v1 = util.printf("%.2f", +f1.value);
        var v2 = util.printf("%.2f", +f2.value);
    and that should take care of it.

Maybe you are looking for