Question regarding the If-then-else function

Hi folks ,
I have been constantly putting threads on this subject for the past day,  hope it doesn't annoy any one here.
My scenario is really simple, and i am  almost close to the solution, but there is just 1 thing missing and i know that is a very small thing, could be the context too. Hope some one can help by pointing it out>
Mapping:
In my source i have a header(0-unbounded) & detail(0-unbounded). At a given instant either header / detail will occur in source, depending on that the target node "response" will occur(0-n times)
i have achieved this in the mapping.
the problem is this:
Both the Header/Detail have a field in it called Sequence# which is mandatory and can occur only once in the Header/Detail node.
Now depending on what occurs: ie Header/Detail i need to map that particular seq# into my Target Respone's SEQ_#.
I have done the mapping for this and have done a standalone testing.
Mapping: Check if HEADER EXISTS, if yes? then map the HEADER.Seq# to TARGET.Seq#
Here are my findings:
Scenario1: 3 header nodes(No Detaili) each with a seq # in it. Out put 3 Target node each with 3 seq # in it.
Scenario2: 2 Detail Nodes(No header) each with a seq # in it. Output fails to produce the 2nd Target Structure's Seq# and Fails
When i look into the Display Queue in the mapping , i examine the iF-Then-Else function:
Since HEADER doesn't exist i c 1 Suppress in my If-Condition hence the if condition becomes FALSE., now since its false its supposed to map the seq# from my detail. (This case i have 2 ).
But in the output of the IF-Then Else, i get out only 1 seq # which is the 1st one,
What i am thinking is that the exists condition is giving out only 1 FALSE instead of 2, If there were 2 false from the exists then i would have had both the seq # in my output,
I hope my question is clear, Would appreciate anysort of help . And i apologize if I seem to be brigning up the same question over again experts.
I don't wnt to create a UDF for this matter because i know there is something i am not doing right,
Hank

Sorry I could not give my udf in my last post.
Udf1:
Create a context udf and name it as RemoveSuppress. Take two input arguments a and b. Imports: java.*;
Add this code:
   //write your code here
boolean found = false;
for (int i=0;i<a.length;i++) {
     if (a<i>.equals(b[0])) {
     found = true;
     break;
if (found == true)
     result.addValue("true");
else
     result.addValue("false");
Then it should work.
Regards,
---Satish

Similar Messages

  • Hello, I have a question regarding the sharing/exporting on imovie. Whenever I click the share button all the normal options pop up, but when I actually click where I want to share it to nothing happens.  If you know what's wrong please let me know.

    Hello,  I have a question regarding the sharing on iMovie.  I have just recently purchased an Elgato Gaming Capture HD and I then finished my recording with that and put it into imovie.  I worked long and hard on the project and when I go click the share feature on iMovie all the noral options pop up and when I actually click where I want to share it to nothing at all happens.  If you know what is wrong/ what I am doing wrong please let me know.
    Thank you.
    PS:  I am using iMovie 10.0.6.

    /*line 957 error */
         public void select()
              for (count = 0; count <= p; count ++ )
                   if(P[count] != null){ /* validation */
                   m = (int)(P[count].getX());
                   n = (int)(P[count].getY());
                   if (Math.pow(-1, m + n) == 1)
                        piece[m][n].setBackground(wselect);
                   else
                        piece[m][n].setBackground(bselect);
              step = 2;
         }

  • I have read all the questions regarding the "Can't send photo using iMessage".

    I have read all the questions regarding the "Can't send photo using iMessage". I followed everything and check everything that was in it. It's still the same. I am still not able to send a photo. It started happening last week. It was fine before that. There is no error message.
    It will try to send but it will get stuck just before it sends
    and the red ! will appear with the "Not Delivered" status.
    When i tap on the !, it just says "This iMessage was not delived".
    No other message or photo is sending as the same time as the photo.
    I did reset it, I checked the email address, removed it as well. Turned it off then back on. Signed out and signed back in. Wi-Fi strength is very good. iOS is 6.0.1. I checked for updates, it is up-to-date I also checked a link http://support.apple.com/kb/TS2755. It did not help at all.
    What's wrong?!?!?!?!

    It is not a matter of reconsidering the decision. There are unsolveable technical problems with trying to run a program such as Firefox on Blackberry OS. We would need Blackberry to distribute a tool similar to Android's NDK to run on Blackberries.

  • Question regarding the "mcxquery" and "dscl -mcxread" commands:

    Question regarding the mcxquery and dscl -mcxread commands:
    Does anyone know why the mcxquery and the dscl . -mcxread commands don't show any info about MCX managed login items & printers? The System Profiler's "Managed Client" section does. Id like to see info regarding managed printers and managed login items using the mcx tools. I have Mac users running 10.5.2 with both login items and printers that are pushed out to them via MCX. The System Profiler app shows all of their policies, but the dscl . -mcxread and mcxquery tools dont. Why not?
    -D
    Message was edited by: Daniel Stranathan
    null

    How do you "call procedures/functions" without sql code? You need at least the call statement like
    {call myProc(?,?,?)}that you wrap into a CallableStatement.
    Other than that: when you switch off autocommit, you need to call commit/rollback at the end. Usually, if you don't commit/rollback a non-autocommitted connection, the transaction get's committed/rollbacked when you close the connection - that depends on the JDBC driver. But it's never a good idea to ommit the commit/rollback calls on a non-autocommit connection. Usually you enclose your code in a try/catch block like this:
    con.setAutocommit(false);
    try {
       con.commit();
    } catch (Exception e) {
       con.rollback();
    } finally {
        con.setAutocommit(true); //or:
        con.close();
    }

  • Question regarding the Transformation activity in BPEL

    Hi,
    I have a question regarding the Transformation activity in BPEL.
    I have a database adapter that uses a PL/SQL API. The API returns two tables of nested objects and it automatically generates a schema for me based on the outputs structure. I need to use the Transformation activity to map both these out parameters to root element in the destination.
    The element in the destination is "unbounded". Please take a look at the following screen shot -
    http://www-apps.us.oracle.com:1100/~rvishnuv/transform1.gif
    From the screen shot, you can notice that I have two XML segments X_TEST_TBL and X_TEST_TBL1 in the source and I have one GLOGXMLElement ("unbounded") in the destination. I need to map each of the source elements to the same destination. Then internally, I will be mapping the elements of X_TEST_TBL to "Location" segment/element and the elements of "X_TEST_TBL1" to "ItemMaster" segment/element. If I try to use "foreach" and map second
    element "X_TEST_TBL1" also GLOGXMLElement using the foreach, I get the following error -
    http://www-apps.us.oracle.com:1100/~rvishnuv/transform1_error.gif
    Let us say my X_TEST_TBL contians two records and X_TEST_TBL1 contains one record. Is there any way that I can use these two out parameters to map to the same destination (GLOGXMLElement) so that my final document contains multiple "GLOGXMLElement"s that represents data from both the output parameters? i.e. there should be in total of three occurances of GLOGXMLelement in the output document such that two occurances correspond to data obtained from X_TEST_TBL and one corresponds to data from X_TEST_TBL1.
    Please let me know if there is any way to achieve this.
    Thanks
    Ravi

    Is the listed $200 credit towards a trade-in on top of the original trade in value of a phone, or the maximum amount?

  • Question regarding the pen tool (w/ picture inside)

    Hello everyone! I have a question regarding the pen tool. I think this picture is very helpful for my question:
    So in this pic is an orange rectangle and within that rectangle is a blue stripe. I would like the blue stripe to be perfectly flush (not over, and not under) the edge of the rectangle. For example, on the bottom end of the blue stripe, you can clearly see that the stripe does not extend far enough to the edge of the orange rectangle. At the top of the stripe, it goes a little bit over (a bit hard to see). I work with some complex shapes when using the pen tool and it is really slowing me down to compensate for over/under shapes. If it could just snap to the borders of other shapes it would make my life a lot easier. Thanks for reading and please help!

    A couple of thoughts come to mind:
    1.  You could create the shape "face on", using guides, and the points will snap to guides with snap enabled.  Then you could transform the whole thing together by selecting all the shape layers.
    2.  Holding down the shift key while dragging a point seems to cause it to snap to some things under some conditions. However, on having just tried to recreate what you're showing I didn't see the proper snap happening sometimes.
    3.  There's the full manual approach, of course where you zoom into thousands of percent and move the points by hand manually.  I assume this is what you're trying to avoid.
    -Noel

  • Question regarding the installation of a J2EE 6.40 Add-in

    Hi all,
    I would like to install a J2EE engine on a test instance of ECC 5.0 and have a few questions regarding the installation...
    Do I have to use the MASTER CD to first install the J2EE engine (Support Package 0) and then apply the latest support packages found on the SAP Marketplace?
    Or should be able to directly install the J2EE Add-In by using the latest support packages found on the SAP Marketplace?
    Best regards,
    Xavier Vermaut

    Thanks Bhavik for your reply,
    That's what I actually thought but I get the following problem... Here's what I wrote into my customer message... I am still waiting for an answer and would like to get this solved ASAP
    Dear SAP,
    We would like to install the J2EE 6.40 Add-In on our ECC 5.0 instance
    (TST) but get the following error message at the very beginning of the
    installation
    > Cannot find an installed ABAP system, which is a prerequisite for a
    > J2EE Add-In installation. The installation cannot continue.
    We checked the installation logs (sapinst_dev.log) and found the
    following :
    > Found these instances:
    > sid: MGR, number: 00, name: DVEBMGS00, host: erpqs1a
    > sid: TST, number: 10, name: DVEBMGS10, host: erpqs1a
    Why does the installation say that it can not find any ABAP systems when
    having previously found the 2 different instances running on this
    server?
    Would this problem be related to the fact that we have two instances on
    this server?
    Please find hereunder the way we performed this installation :
    01) Download of the 4 different parts of SAP J2EE Engine 6.40 SP 10
         (Solaris 10 - Oracle)
         Part I   : SAPINST10_0-20000121.SAR         (Solaris 64)
         Part II  : CTRLORA10_0-20000121.SAR         (Solaris 64)
         Part III : J2EERTOS10_0-20000121.SAR        (Solaris 64)
         Part IV  : J2EERT10_0-10001982.SAR          (OS Independant)
    02) Extract these 4 archives into /install/J2EE_640
    03) Check Java Version and Environment Variables
    04) Check Solaris Pre-Requisites
    05) Adapt "product.xml" as specified in OSS Note 697535 (IGS)
    06) Log in as 'root'
    07) Set DISPLAY environment Variable
    08) Move to the Installation directory
          ( /install/J2EE_640/SAPINST-CD/SAPINST/UNIX/SUNOS_64 )
    09) ./sapinst
    10) In the 'Welcome to Netweaver Installation' screen, select
          => Dialog Instance Finalization
    Any idea how to get this solved?
    Best regards,
    Xavier Vermaut
    Message was edited by: Xavier Vermaut

  • I have just got my iPad2 and very pleased with it. I have a question regarding the monthly (recommended) battery full charge.  Should I let the battery completely die down to nothing at all or would this be bad for my iPad?

    I have just got my iPad2 and am very pleased with it. I have a question regarding the monthly (recommended) battery full charge.  Should I let the battery completely die down to nothing at all before I plug in to recharge or would this complete drain be bad for my iPad?

    It's not bad for it - on this page www.apple.com/batteries/ipad.html it says :
    For proper reporting of the battery’s state of charge, be sure to go through at least one charge cycle per month (charging the battery to 100% and then completely running it down).

  • Questions regarding the APEX sample shopping cart

    I am fairly new to APEX development, but had a few questions regarding the sample APEX shopping cart:
    1) is there a way to integrate Google check out payments with the sample APEX shopping cart
    2) is there any way to list a service, that involves monthly recurring payments
    3) is there any other shopping cart that is APEX based that is available
    Thank you,
    Ashok

    Hi Sam,
    i am haveing a deadline monitoring for my shopping cart where remainders are going to generate for first day and the second day, after both the remainders generated and the approver changing the cost center or asset or order at that time, the workflow flow should retrigger and send the approval mail to the new approver, but it is not going to the new approver, so the workflow is not triggering in my case. so i need to restart my workflow again if any changes occurs.
    in the second point my functional guy says that, when the approver changes any text or any date like that it should come for the accept changes, and when he sees the approval preview, only the approval person should be there but not the creator person in the preview and when the creator of the sc accepts the changes it is showing that it is approved by the creator name but he says that it should the approver name not the creator name.
    so can you please help me in this to get the solution.
    thanks in advance

  • I have 2 questions regarding the iphone 5. 1 How do i get my yahoo mail set up. I tried the setting it up as both a yahoo mail and other mail. 2. I seem to have lost my notes on my iphone 5 but I have them on my ipad. How can I use cloud to sync my notes?

    I have 2 questions regarding the iphone 5. 1 How do i get my yahoo mail set up. I tried the setting it up as both a yahoo mail and other mail. 2. I seem to have lost my notes on my iphone 5 but I have them on my ipad. How can I use cloud to sync my notes?

    I will address your second question.
    First, make sure your iPhone and iPad have absolutely identical Apple IDs.  If they do, use that Apple ID in Settings > iCloud on your iPhone to select the "Notes" option.  Lo and behold, all your iCloud notes should appear on your iPhone.

  • Some simple questions regarding the Xcode.

    I have some preliminary questions regarding the Xcode (objective C):
    What is the difference between the programming files followed by .h and .m?
    What does an asterisk * followed by a text mean (i.e. *window;)?
    Is there any source that briefly explains the most common codes with examples (nsstring, nsarray, iboutlet, inaction.....etc)?
    Any other tips will be highly appreciated.
    Many thanks.

    Xcode is the IDE.
    Objective-C is the most common language used within Xcode.
    UIWindow *window .....  the * means return the address of the instance variable 'window'.
    An * is called a pointer to a variable.
    Everything you need is explained here:  https://developer.apple.com

  • Few questions regarding the "Update CMS" button

    Hello,
    Few questions regarding the "Update CMS" button:
    1. When I create new product at the SLD I see it at the add SC table even if I don't click the "Update CMS" button first. If so, when will I use this option?
    2. When I do click the "Update CMS" button it takes it between 30-40 minutes to finish the update. During this time frame the whole development portal (it is sitting on the same WAS as the NWDI) becomes extremely slow. Is this normal response time or do I have a certain performance problem with my server?
    Thank you in advance,
    Roy

    Hello Roy,
    I think that <a href="http://help.sap.com/saphelp_nw2004s/helpdata/en/46/6fe3ec58f0477a816b80f182b389e0/frameset.htm">this</a> topic should answer all your questions :).
    Hope that helps!
    Jordan

  • Comprehensible question regarding the usage of a ccBPM in SAP PI 7.31

    Hello experts,
    I have got basic question about the useage of ccBPM in PI 7.31 double Stack. I haven't  created any ccBPM before so the whole set up process is new for me. We are currently using several ccBPM already which where created by our colleagues.
    I just have a question about the basic of work of a ccBPM and if the designed process can be realised at all.
    The current process should be implemented, starting from the erp system with a trigger report (left side). All the offered function are provided by the called system (right side)
    So can this whole process can be realised using ccBPM, so that after the trigger report is called the rest of the process is handled within the pi? The process checkStatus needs to be called within a loop and at the end the generated File should be stored on the file system.
    Thanks in advance for clearing my thoughts on this problem guys!
    regards
    Christian

    Hello Christian,
    is this a 1-1 correlation? So you have just one sender system and one target system? It might be better then to implement the flow in your sender system and only call single interfaces on PI. While it is technically possible to do everything in PI there is no real added value to do so. BPM is most benefitial when you need to aggregate information from different sources and when the process contains decisions that lead to alternative process steps.
    Regards,
    Jörg

  • A few questions regarding the configuration of Adobe Document Services

    <u><i>For Your Information: the main questions are repeated at the end of this post.</i></u>
    The Adobe Document Services seems to work fine. The test I did on http://<server>:<port>/AdobeDocumentServices/Config gives the error
    ' "Required stream: "PDFDocument" not found.” ' so that's fine.
    But when I do this: http://server:50000/webdynpro/dispatcher/local/TutWD_OnlineInteractiveForm/OnlineInteractiveFormApp
    The result: the PDF is shown and I can enter text in the textboxes and also use the radioboxes.
    But I can't use the dropdownboxes, neither can I use the "submit" and "check" buttons..
    Is this normal? Or is it because of the ReaderRights credential?
    Or is it necessary to install the ACF?
    Here is some info I got from a blog:
    "<b>Client Side Requirements</b>
    Follow the steps mentioned below. Please make sure the following prerequisites are met before working with Adobe Interactive Forms.
    NWDS 7.0 / 6.0
    Adobe Live cycle designer 7.1 / 7.0
    Adobe Reader 7.0.8 [ Minimum : 7.0.1]
    <b>End User Requirements</b>
    Adobe Reader 7.0.8 [ Minimum : 7.0.1]
    Active Component Framework (ACF) - SPS 9, SPS 10"
    Two more questions;
    1)This info is in the config guide:
    "If you have installed the ADS and the WD runtime environment on different J2EE engines and if the communication between these engines uses the SLD, you need to publish the ADS to the SLD."
    Does this mean that I don't need to do this when I haven't used SLD? Or is it necessary to install SLD?
    Some more info:
    Prerequisites:
    A System Landscape Dir must already have been configured.
    If you have not yet done so, perform the necessary activities according to the documentation SAP System Landscape Directory, Administrative Activities section, chapters:
    Start and stop the SLD Service
    Configure the SLD Server
    Configure data persistence
    Make settings for the SLD bridge
    You can find this documentation by calling the following URL in your web
    browser: http://<host>:<port>/sld
    When I check this URL, I don't see anything concerning an (already configured) SLD.
    2) Do I need the license below too to develop in AIF?
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/oss_notes/sdn_oss_bc_srv/~form/handler%7b5f4150503d3030323030363832353030303030303031393732265f4556454e543d444953504c4159265f4e4e554d3d373530373834%7d
    Main questions----
    I need to create a form with a few fields (of which some fields are mandatory); then I have to use a few BAPI's to check these fields and to save the content in a CRM system.
    I've installed Netweaver Sneak Preview, and configured Adobe Document Services (made ADSUser & ADSCaller, set IIOP etc to Autostart, Installed the credentials). The tests seem to work fine, but I haven't developed anything yet.
    My questions:
    1)Is it necessary to install the ACF?
    2)Is it necessary to install Adobe LifeCycle Designer?
    3)Also SLD?
    4)Also the license described above?
    Grz
    Allan
    Message was edited by:
            Allan Duinslaeger

    No one?
    Some questions are answered by someone else.
    -The SLD is okay, it doesn't need to be configured
    -The Adobe Lifecycle Designer is automatically installed when installing the Netweaver Studio Sneak Preview SP16
    Just two more questions:
    1)when I open http://server:port/webdynpro/dispatcher/local/TutWD_OnlineInteractiveForm/OnlineInteractiveFormApp
    The PDF is shown but I can't use the buttons or the dropdown boxes.
    I tried to install ACF but I have NW04s SP16, and the ACF is only SP11.
    So when I install that, it only shows a blue screen with "I am the placeholder control"
    When I install ACF SP19 for NW04, the PDF shows again, but I still can't use the buttons or dropdowns. Is this normal?
    2) Do I need the license described below?
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/oss_notes/sdn_oss_bc_srv/~form/handler%7b5f4150503d3030323030363832353030303030303031393732265f4556454e543d444953504c4159265f4e4e554d3d373530373834%7d
    Main questions----
    I need to create a form with a few fields (of which some fields are mandatory); then I have to use a few BAPI's to check these fields and to save the content in a CRM system.
    I've installed Netweaver Sneak Preview, and configured Adobe Document Services (made ADSUser & ADSCaller, set IIOP etc to Autostart, Installed the credentials). The tests seem to work fine, but I haven't developed anything yet.
    My questions:
    1) What about the ACF?
    2) Also the license described above?
    Grz
    Allan

  • Question regarding the powershell creation of service applications in SharePoint 2010/2013

    Hi
    I create all my service applications in SharePoint 2010/2013 using Powershell.
    Is there a "best practice" when to start the service Instance for a service application? Is it better to start the service instance prior to creating a service application or after the service application has been create?
    I'm curious.
    best regards
    Bjorn

    Not that i'm aware of. If it works then go for it.
    I would tend to build the service application and only then activate the instances on servers, however that is going to depend heavily on the application in question. The real heavyweights like Search are a special case in any event.

Maybe you are looking for