How to achieve the mapping logic - to validate incoming empty string

Dear all, 
I have the following structure
i have written a udf to validate the field externalid.

Hi,
If at sender side you are connecting to webservice/PROXY then you can limit by creating data type as below.
ID  occurrence(1..1) min length(1)
Other than those you can check as below
ID --> mapwithdefault-->equals()-->Not-->map ID value to target field
            constant(empty)/
Regards
Venkat

Similar Messages

  • How to achieve the following logic

    I have a target and a source table.
    CREATE TABLE scd_tgt(
    col1 VARCHAR2(10) not null,
    col2 VARCHAR2(10) not null,
    start_date DATE not null,
    end_date DATEnot null
    INSERT INTO scd_tgt VALUES('100','AKS','1-JAN-2010','9-SEP-9999');
    INSERT INTO scd_tgt VALUES('101','Singh','1-JAN-2010','9-SEP-9999');
    CREATE TABLE scd_src(
    col1 VARCHAR2(10) not null,
    col2 VARCHAR2(10) not null
    INSERT INTO scd_src VALUES('99','Kumar');
    INSERT INTO scd_src VALUES('100','Abhijit');
    INSERT INTO scd_src VALUES('101','Singh');
    Now, I have to perform update/insert data in scd_tgt using source data in scd_src based on the following rules:
    1) INSERT any records from the SOURCE that aren't already in the TARGET, based on a col1.
    2) If the TARGET has a record present in SOURCE (based on col1) and col2 of TARGET does not match with col2 of SOURCE then UPDATE the end_date to SYSDATE - 1. Proceed to Step 3.
    3) INSERT the record from #2 into TARGET. Set start_Date as SYSDATE and end_date as '9-sep-9999'
    Can this be achieved using MERGE? I am using 10.2g
    After executing the steps scd_tgt should have the following data
    99     Kumar     18-JUN-10     09-SEP-99
    100     AKS     01-JAN-10     17-JUN-10
    100     Abhijit     18-JUN-10     09-SEP-99
    101 Singh 01-JAN-10     09-SEP-99

    Hi,
    With a merge it's not possible if you want to to update and insert (or insert/update) at the same time within the same condition (when matched or when not matched parts of the stement), what's authorizzed with a merge is:
    an update + a delete in the "when matched" clause
    an insert in the "when not matched" clause
    So one solution could be that you use two differents DML op:
    UPDATE scd_tgt
       SET end_date =   TRUNC(SYSDATE)
                      - 1
    WHERE col1 IN(SELECT col1
                   FROM   scd_src)
    INSERT INTO scd_tgt
       SELECT col1,
              col2,
              TRUNC(SYSDATE),
              TO_DATE('09-sep-9999', 'dd-mon-yyyy')
       FROM   scd_srcIf the number of rows generally updated by the 1st statement is low (comparing to the volume of the scd_tgt table) an index on col1 in(scd_tgt table) would probably be benifical...
    If you never delete from scd_tgt and if the performance goal is qiete important, then consider an /*+ APPEND */ hint with the insert ..
    (depends on how many rows are inserted each time this code is ran).
    As often this is not the only one solution but this the most simple one
    -> In development always remind this addage: the most is simple the code is the better is (for everyone!) ..

  • How to get the current logical system?

    Dear Abapers:
    I can't find the logical system value from the table SYST, pls tell me how to get the current logical system name, Thanks!

    Hi,
    Check with the table T000, the Logical system field name is LOGSYS.
    Regards
    Thiru

  • After the new project by importing PPT release, how to achieve the release of the demo mode SWF, but not now only Click to continue?

    After the new project by importing PPT release, how to achieve the release of the demo mode SWF, but not now only Click to continue?
    Note:Captivate 5.5
    Thks

    通过导入PPT新建的项目发布后,如何实现发布演示模式的SWF(自动播放),而不是交互模式的SWF(只能点击才能继续)?

  • How to write the map expression for a const string

    hi all,
    i am trying to map from source table A to target table B. Table B has a column that A doesn't have and the column type is string.
    what should i do if i want to keep this column a const string like "abc"? How to write the map expression?
    Setting a default value like "abc" of this column in database is not available .
    please try to help, thanks a lot.
    jun

    Hi jun,
    You mean, u want to give some hard coded value to a specific column in mapping?
    If so , give 'abc' in the target column and execute it on Target.
    Thanks,
    Guru

  • How to schedle the mapping in OWB?

    Can any please provide me link to see the steps to schedule the OWB mapping. My version is 11.1.0.7.0. The mapping is developed
    by some one. Now i need to take responsibility on this. I need to know how to schedule the mapping.I want to run this every day mighnight.
    In project explorer, I went into schedules. Then i created the schedule. After that, i am not sure, how to link the mapping on this scheduler.
    any help is highly appreciated.
    thanks.

    Hi ,
    Do you have metalink or my oracle support access ?
    If yes then check Note 444877.1 for OWB mapping or process flow scheduling .
    1. Verify the mapping or process flow completes successfully.
    2. Navigate to the Schedules node in the Design Center Console and create a new Schedules module
    called MY_SCHEDULES. For the location, select your TARGET_LOCATION, as the schedule will be deployed to the database.
    3. Create a new schedule, TEST_SCH, with time greater than current database machine time (server where the job executes).
    4. Associate your schedule with the mapping or process flow. Right click the mapping or process flow and select the option "Configure" and "set Referred Calendar" to TEST_SCH.
    5. In the Control Center Manager, navigate to your TARGET_LOCATION and note the Scheduled Job TEST_SCH_JOB under the Scheduled Jobs node. Deploy the job with action "Create".
    Using SQLPlus logged into the database as the TARGET user, verify the user has a job TEST_SCH_JOB, in state DISABLED:
    select job_name, state from user_scheduler_jobs;
    6. Use the Schedule tab on the Control Center Jobs panel in the Control Center Manager to schedule
    the job. Highlight, right click the job and from the pop-up menu select "start". Use the same query to check the current status:
    select job_name, state from user_scheduler_jobs;
    The above query will show whether the scheduled job is SCHEDULED, RUNNING or SUCCEEDED.
    http://download.oracle.com/docs/cd/E11882_01/owb.112/e10935/scheduling_etl.htm#CHDGEGJF
    Thanks,
    Sutirtha

  • I'm trying to load a student version of Acrobat XI Pro but not sure how to get the serial number to validate I'm a student

    I'm trying to load a student version of Acrobat XI Pro but not sure how to get the serial number to validate I'm a student

    Hi ,
    Could you please tell me form where did you purchase the Student version of Acrobat ?Is it through Adobe or some outside vendor ?
    Is it the first time you are trying to access it ?
    If yes ,then you must have received your serial number along with your product .
    If not ,then how how did you manage to get your serial number and access Acrobat before ?
    Regards
    Sukrit Dhingra

  • How to achieve the results by Query ??

    Hello Guys,
    I have couple tables which I need to join to get the result....This is what is in the tables...
    CList Table
    CID, Name
    A, ABC
    B,CDE
    C,JFK
    JList Table
    JID, Name
    1, Something
    2, Another
    3, Else
    4, Should be something
    JOb_2_Courses
    JobID, CourseID
    1,A
    1,B
    2,C
    Employee Table
    EID, Job_ID
    1A, 1
    2A,1
    3B,1
    2C,2
    23D,3
    CStatus Table
    StatusID, Desc
    1,Completed
    2,Pending Approval
    3,Declined
    4,Scheduled
    5,Register
    Now user can only register the course which are related with their job....NO course else.....
    When they register it is moved to temp_course_registration and then once completed to COURSE_HISTORY
    For Example : So Employee : 1A will see two courses to register A and B...
    Say he registers A....it makes an entry in temp_course_registration table with the course id, employeeid and date....
    With further steps once that status is updated to '1'.....the course is deleted from temp_course_registration and is moved to course_history........
    Now to show to the user...I need to include all my tables in the query and on the basis of status, show necessary things to the user....
    Output :
    Course_ID, Status.............
    Say if they completed the course will come from course_history, if in the process will come from temp_course_registration.....if nothing is in the tables for the specific employee...this means status is '5' and they need to register everything...
    Can someone let me know, how to achieve the results....
    Thanks,
    Harsimrat

    Hello
    I'm off home now so I can't look at the query, but for future reference, if you want to improve your chances of getting help, you need to provide simple create table statements, and test data to go with it. I've done that with what you provided and hopefully someone else will be able to help. Also, you were asked if you could provide this in your other thread...
    CREATE TABLE CList(CID varchar2(1), Name varchar2(3))
    insert into clist values('A', 'ABC');
    insert into clist values('B','CDE');
    insert into clist values('C','JFK');
    CREATE TABLE JList(JID number, Name varchar2(30))
    insert into jlist values(1, 'Something');
    insert into jlist values(2, 'Another');
    insert into jlist values(3, 'Else');
    insert into jlist values(4, 'Should be something');
    CREATE TABLE JOb_2_Courses(JobID number, CourseID varchar2(1))
    insert into job_2_courses VALUES(1,'A');
    insert into job_2_courses VALUES(1,'B');
    insert into job_2_courses VALUES(2,'C');
    CREATE TABLE Employee (EID varchar2(3), Job_ID number)
    INSERT INTO employee VALUES('1A', 1);
    INSERT INTO employee VALUES('2A',1);
    INSERT INTO employee VALUES('3B',1);
    INSERT INTO employee VALUES('2C',2);
    INSERT INTO employee VALUES('23D',3);
    CREATE TABLE CStatus(StatusID number, Descr varchar2(30))
    insert into cstatus values(1,'Completed');
    insert into cstatus values(2,'Pending Approval');
    insert into cstatus values(3,'Declined');
    insert into cstatus values(4,'Scheduled');
    insert into cstatus values(5,'Register');HTH
    David

  • How AAE call the mapping program?

    Hi Experts,
    i almost have no experience on using AAE. after reading some documents i still have the below questions,
    1. mapping program is happened in integration engine, while AAE is used for integrated scenarios without going into integration engine, then how to execute the mapping program?
    2. till now all the work i have done is using the common scenario, then for which scenarios i can suggest my client that "we should use integrated scenario , and there is no 'side-effect' of using is instead."
    3. in some documents "persistence" is discussed, can someone help me into more details?
    thanks in advance. hope these could be explained.

    > 1. mapping program is happened in integration engine, while AAE is used for integrated scenarios without going into integration engine, then how to execute the mapping program?
    When you implement AAE,Adapter engine will execute your mapping program,that means AE has the capailities , they have copied moved routing ,mapping  features in AE,so no need to interact with IE.
    > 2. till now all the work i have done is using the common scenario, then for which scenarios i can suggest my client that "we should use integrated scenario , and there is no 'side-effect' of using is instead."
    There is no side effects at all,but there are some limitations like in PI7.1 monitoring not possible,ABAP PRoxy,look ups will not supported and only supports AE adapters communication.
    PI7.1 EHP1 some enhacements happend on the same
    search in sdn.
    > 3. in some documents "persistence" is discussed, can someone help me into more details?
    can you explain bit more..
    Regards,
    Raj

  • How to create the maps externally and import in to PI

    Hello Gurus,
    Please let me know how to create the maps externally and import into PI
    Regards
    shankar

    Hi,
    Hope these links could help you understand XSLT, JAVA nad ABAP mappings.
    [http://www.riyaz.net/blog/beginners-guide-to-xslt-mapping-in-sap-pi/technology/sap/769/]
    [http://www.dataxstream.com/2009/09/allow-additional-mapping-types/]
    [http://www.riyaz.net/blog/sap-pi-abap-mapping-simplified/technology/sap/837/?utm_source=feedburner&utm_medium=feed&utm_campaign=Feed%3ARiyaznetBlog(riyaz.net)]
    [http://www.riyaz.net/blog/xipi-java-mapping-demystified/technology/sap/415/]
    Regards,
    Prasanna.

  • How to achieve the project is obligatory entry when creating transport requ

    Hello
    How to achieve the project is obligatory entry when creating transport request

    In T-code SE03, under Administration -> Display/Change Request Attributes
    Select "SAP_CTS_PROJECT" and hit the change button and then change the value of "Default for All Clients" to Mandatory
    Hope this helps.
    Thanks,
    Naveed

  • How to achieve the best quality when doing a narration?

    Hello,
    I'm trying to figure out how to achieve the best possible narration in a documentary I'm doing using the FCP voice over tool, a USB mic, and Final Cut Studio's audio filters. Am I on the right track? How do I clean up an average voice over narration? Do I need additional equipment? Any advice would be appreciated.
    Thanks,
    Jordan

    The best thing you can do is to record it properly in the first place - if you want it to sound good. The environment you record in is VERY important as is the choice of mic you use ... most of the consumer USB mics aren't all that great in terms of quality.
    Record in an acoustically flat room with good sound dampening. Even a clothes closet will do in a pinch. Record through a mixer so you can monitor the VO artist as they record. I've found it better to record to tape (camera or VTR) with a pro mic than to use FCP's voice over tool.
    -DH

  • How to achieve the fatest Digital IO write speed?

    How fast can I write to a digital IO port?How to achieve the fatest write speed? For test purpose, after config port, using DIO Port write.vi in a whileLoop by 6024E board,repeatly write1-2(01 and 10bin), i can only get a speed about 10kHz,i.e. every 106 us write a byte, can that be faster? how? software solution and hardware solution? Thanks!

    Hey Yfayne,
    It is very hard to say how fast you can write the digital lines on an E-Series device, because it is completely software and computer dependent. The exact same DAQ device with the exact same code will execute completely different on a 233MHz machine when compared to a 2.4GHz machine, because it depends on how fast the computer can execute the loop. If your program slows down to perform another task like opening another program or surfing the web it will slow the rate the computer can execute the loop and mess up the timing.
    In addition, the digital lines on the E-Series use the DAQ-STC chip that was never designed for high speed. If you need a high speed hardware time device I would suggest using the PCI-6533 or PCI-6534. The devices were desig
    ned for high speed digital applications and can easily exceed the 10 kHz rate consistently.
    Here are a few links that you will find useful.
    http://zone.ni.com/devzone/conceptd.nsf/webmain/467ed254f3a30b1286256a6f00720951
    http://sine.ni.com/apps/we/nioc.vp?cid=1104〈=US
    I hope this helps out.
    Joshua P.
    Application Engineering
    National Instruments

  • How to achieve the from and to date range in report builder 3.

    I AM TRYING TO CREATE ONE REPORT FROM REPORT BUILDER 3.
    WHERE I AM UNABLE TO DEFINE THE DATE RANGE.
    HOW TO ACHIEVE THE DATE RANGE IN REPORT BUILDER.
    NEED FROM DATE AND TO DATE FILTER IN REPORT BUILDER FOR PK DATE.

    Hi Ganesh,
    According to your description, you create a report in Report Builder 3.0, and create two parameters FromDate and EndDate, now you want to use the parameters in your MDX query, right?
    If in this case, here is a sample query for your reference.
    select
    {[Measures].[Internet Sales Amount]
    } on columns,
    {[Date].[Date].members} on rows
    from(
    select
    STRTOMEMBER("[Date].[Date].&["+@StartDate+"]"):STRTOMEMBER("[Date].[Date].&["+@EndDate+"]")
    ) on columns
    from [Adventure Works]
    Reference:STRTOMEMBER
    Regards,
    Charlie Liao
    TechNet Community Support

  • How to replace the char values into numeric in my string?

    Hi Friends,
    I would like to Replace the Charecter values with numeric value in my string.
    Exp : first in my string I am having the value like this : 'ABCD1234' ( may be any char and num values ), and I want too get it by '99991234'.
    I mean How to replace the char values into numeric in my string?
    Thanks,
    Sridhar

    Hi Sridhar,
    I would like to Replace the Charecter values with numeric value in my string.
    Exp : first in my string I am having the value like this : 'ABCD1234' ( may be any char and num values ), and I want too get it by '99991234'.
    So, if i understand you correctly, you want to replace all characters in a string with 9 as in the above example, irrespective of position of the character, if so try with the below code.
    DATA: l_str TYPE string.
    l_str = 'ASKHSIUDNSBDKJSDH124312431243124saasdfsf'.
    REPLACE ALL OCCURRENCES OF REGEX '\D' IN l_str WITH '9'.
    IF sy-subrc EQ 0.
      WRITE: l_str. "Result will be 9999999999999999912431243124312499999999
    ENDIF.
    Regards,
    Chen
    Edited by: Chen K V on Jun 13, 2011 12:36 PM

Maybe you are looking for

  • Camera Raw update download lightroom 4

    How do I download the update for Camera Raw for Lightroom 4? I cannot seem to find a "download" button. I seem to get sent in circles. Thank you.

  • Cannot Open Numbers Spreadsheet (Numbers on iPhone)

    I have a spreadsheet that I created and regularly update on my iPhone using Numbers. I recently upgraded to version 1.5 of the Numbers app. Since then, one of my spreadsheets won't open - tapping on the file displays the progress wheel for a second a

  • Web Form

    Hi, While building a Web Form if i select a member in row dimension as Descendants(inc) or Children(inc) i can see the parent member only at bottom of the hierarchy, Is there any chance i can see the parent member at the top. I did tried selecting th

  • Premiere Pro CC is not in the Creative Cloud

    I wantet to try Premiere Pro and I have Creative Cloud but I can't found Premiere Pro in the CC. What can I do?

  • Rear channels coming out of the front speak

    Doing the speaker test in the Creative Console Launcher has the audio noise for the rear speakers coming out of the front speakers. The sub is being played from the left and right speakers. I use a X-FI Xtreme Gamer via optical out to a receiver. Tho