I need date mapping Below based on condition?

Source sidefield:ZALDAT
Taget Structure mapping condition:
Format MMDDYY. If check is voided then it should be '000000'
Taget field:Issue date
I Need how to mapping source to target field based on conditioin explain me?give me saple mapping given condition?

Hi,
Try this udf
youir input for this udf is "date" (which is a string)
SimpleDateFormat sdf = new SimpleDateFormat("MMddyy");
Date testDate = null;
try
      testDate = sdf.parse(date);
catch (ParseException e)
     return '000000';
if (!sdf.format(testDate).equals(date))
    return '000000';
return testDate.toString();
code taken and modified from  http://www.dreamincode.net/forums/showtopic14886.htm
Regards
suraj
Edited by: S.R.Suraj on Sep 29, 2009 7:53 AM

Similar Messages

  • Run allocation based on condition matched

    Hi SAP friends,
    I need to run allocation based on condition matched, is it possible with IIF or another statement?
    the logical view is below (syntax is wrong):
    *RUNALLOCATION
    IIF(BAS(ACCOUNT_01)<>0,
    *FACTOR = USING/TOTAL
    *DIM ACCOUNT WHAT = ACCOUNT_52; WHERE=BAS(ACCOUNT_01); Using=BAS(ACCOUNT_01); TOTAL=BAS(ACCOUNT_01)
    *FACTOR = 1
    *DIM ACCOUNT WHAT = ACCOUNT_52; WHERE=ACCOUNT_10)
    *ENDALLOCATION
    thanks a lot.

    Hi Vadim,
    I am somehow getting doubled values, I have read some articles where when and REC can double values, but my case seems to be something different, do you have an idea?
    the code is below:
    *FOR %MONTH_PLUS% = 0,1,2,3,4,5,6,7,8,9,10,11,12
    *XDIM_MEMBERSET RPTCURRENCY     = LC
    *XDIM_MEMBERSET ENTRYTYPE          = INPUT
    *XDIM_MEMBERSET CLIENTSEG           = NA_CLS, GCIPZ
    *XDIM_MEMBERSET CUSTSEG              = C_INP, P_INP
    *XDIM_MEMBERSET ACCIDENTYEAR    = CAY
    *XDIM_MEMBERSET DISTCH                  = BAS(GI_TOTAL),ALL_OTHER
    *XDIM_MEMBERSET LOB                       = BAS(LOB_GI)
    *XDIM_MEMBERSET PARTNER_RU        = NA_PU
    *XDIM_MEMBERSET ZVIEW                   = MV_PROD,MV_REC
    *XDIM_MEMBERSET TIME                      = TMVL(%MONTH_PLUS%,%TIME_SET%)
    *XDIM_MEMBERSET VERSION               = %VERSION_SET%
    *XDIM_MEMBERSET RU                         = %RU_SET%
    *XDIM_MEMBERSET INSTYPE                = DIR_OWN
    *WHEN INSTYPE
    *IS DIR_OWN
    *REC(EXPRESSION=(([ACCOUNT].[IFRS_69011330_01],[VERSION].[A01],[TIME].[TMVL(%MONTH_PLUS%,$LAST_YEAR$)])==0) ? [ACCOUNT].[STAT_LOSS_52]:[ACCOUNT].[IFRS_69011330_10], ACCOUNT=IFRS_69011330_10)
    *ENDWHEN
    *NEXT
    many thanks, tomas.

  • Key Figure based on condition between characterisics

    Hello Guys
    I have a key figure which needs to be displayed based on condition between 2 characteristics.
    Scenario:
    I have 2 fiscal periods : FP1 and FP2. and a Key Figure KF.
    Condition:
    Show KF only when FP1 not equals FP2.
    EX: If FP1 = May and FP2 = May dont show KF.
          If FP1 = May and FP2 = June then show KF.
    How do i display a key figure based on a condition between 2 characteristics?
    Please advise.
    Thanks.

    Create two formula variables based on replacement path that get the FP1 and FP2 (numeric values).
    Let us say these are ckf1 and ckf2.
    Create another CKF3 which is = "ckf1==ckf2"
    Now, CKF3 will be 0 if these two are not equal, and 1 otherwise.
    Create a condition on CKF3 so as to show only the records with a 0 value.
    Finally hide CKF3.
    That should be it.

  • JDBC to IDOC Scenario - select data in jdbc based on multiple conditions

    Hello
         I have a JDBC to IDOC Scenario. I have to select the records in JDBC based on different conditions each time. For example I have to select based on company code '1000' and Employee claasification 'E1' and date range. After I post these records in SAP again I want to select other records for some other company code '2000' and different business area and different dates. Basically I want to extract data multiple times based on different conditions.
    Hiow do I achieve this?
    Another question is in the JDBC to IDOC scenario since the sender adapter is JDBC and the sender adapter polls depending on the duration of time ( say 60 secs ) in the adapter once after I extract the data based on a condition how do I control in such a way that the same data is not extracted again.
    Thanks
    Naga

    Hi Naga,
    I have to select the records in JDBC based on different conditions each time. For example I have to select based on company code '1000' and Employee claasification 'E1' and date range. After I post these records in SAP again I want to select other records for some other company code '2000' and different business area and different dates. Basically I want to extract data multiple times based on different conditions.
    -->
    Such requirements cant be handle through select query of the sender...but you can handle this in the message mapping area.....you can fire a select query in the database to pick up records in a batch of 10K (do not keep any condition on this except for sorting). After the records come into PI you can send the message to your target based on the unique combination of "Company code+ Employee clasification + date range" handling this in the message mapping.
    Another question is in the JDBC to IDOC scenario since the sender adapter is JDBC and the sender adapter polls depending on the duration of time ( say 60 secs ) in the adapter once after I extract the data based on a condition how do I control in such a way that the same data is not extracted again.
    You can use the N--> C logic
    The data records that you pick have a corresponding control table i assume. There should be a field STATUS where the initial status of record should be N.
    After you pick the records this status should be made C so that only those records present in the database with status = N are picked up.
    Mention the condition Status = N in the select query.
    Thanks
    Dhwani

  • Is CS6 capable of 'Data Mapping' from an excel based database?

    I have CS6 and want to know if it is capable of data mapping from an excel based database.
    Basically i am using inDesign to create new Organisational Charts for my company. i have 23 seperate documents created, all of which conatin; 1 image box and 2 text boxes per each employee in that particular department.
    I want each document from inDesign to point at the database and pull in the correct details to each box within that document.
    I am aware of the 'place' feature but all this does is allow to you to select a range of cells and dump that in the document randomly.
    i have tried ringing adobe and they ponted me to here.
    I am a man on the edge with this... someone please help. Even if its to say 'NO' inDesign does not support this feature.
    Thanks in advance, Danny.

    Danity7 wrote:
    My companies views, much like my own (something which seems to be frowned upon in this forum 'opinions/views') when we have spent a considerable amount of money on the software, we belived the answer to using certain features or at least the answer to 'know' if the software is capable of doing a particular commend wouldnt come at an extra cost.
    Well, without more information on your data, the layout in ID, and how you expect to connect them, as Mike has already said, it's pretty hard to tell you what out of the box capabilities ID has that will work, if any, or where to point you to other commercial add-on products if they exist, or even to suggest a scripted solution, though my current reaction is that you are looking at some sort of XML workflow, which is well outside my own comfort zone.
    ID is a very complex program that has many more capabilities than what are "built-in" in the standard release versions. One of it's greatest features is the ability to expand what you can do through scripts or plugins. This forum is full of free advice, but very few participants are willing to to spend more than an hour designing a custom solution that will not be useful to anyone else unless they are compensated. The people who respond here are professionals, like you, who need to make a living. If I were paid for the time I spend here handing out free solutions and advice I wouldn't need my regular design business anymore.
    If you feel a feature should be included in the general release at no additional cost, please ask Adobe to do so: Adobe - Feature Request/Bug Report Form
    You need to understand, though, that Adobe is a big corporation that budgets the time that developers can spend on new features, and most new things that are added are features that many users have asked for, and usually over the course of several versions (long document users are still waiting for improved footnotes, unchanged since they were introduced), so unless this is a "killer" new idea that will benefit thousands of users you are unlikely to see Adobe add it any time soon, if at all.

  • Need confirmation on the dynamical data mapping to the components..

    Hi All,
    I would like to map the data dynamically to the combo box componet.
    Explanation:
    I have created a webi report and imported that report to xcelsius, current the data is only for 50 rows and it may increase or decrease as per the selections.
    I would like to map the exact data which is written to the excel to my combo box source data property.could you please let me know whether the source data mapping can be done dynamically ( what ever the rows data are there only those row need to be mapped to the source data) ?
    Cheers,
    Venkat

    Venkat,
    The range is always fixed for any component but the display is dynamic(say for a combo box ). The component will behave as if it is increasing or decresing the range at run time by ignoring the blank cells.
    When u said the option to change the data mapping, is it related to changing the range or did u want xcelsius to consider new data from else where in excel dynamically ..depending on conditions  ?
    Thanks,
    Karthik

  • Need to send notification to a specific person based on condition

    Please help.
    I need to send notification to a specific person based on condition. When a specific hold is placed on an invoice, send a notification to the Buyer who is referenced on the Purchase Order that is associated with that invoice. It will be an FYI notification.
    I'm looking at APINVHDN AP Hold Maiin Process. I thought possibly adding a notification into the "No" condition after the GET_APPROVER function since there would not be an approver on the invoice since it's on hold.
    Any ideas would be very much appreciated.

    Try the LiveCycle Designer forum.

  • I m trying to write to a Mainframe file from informatica mapping. I have created the data map for tarrget file and have imported it in informatica designer.After completing the mapping when i try to run it gives me below error. Please help me out in resol

    This is not a PC/PWX problem, but a mainframe security problem. TIDSS01.POS.IBD.DR0100.DAT is not a GDG file name.It might be the base for a GDG. A GDG file name would look something like eitherTIDSS01.POS.IBD.DR0100.DAT(+1)orTIDSS01.POS.IBD.DR0100.DAT.G001V00 So I suspect that you have the wrong file name.Please talk with your mainframe team.

    HI Dan, I am very new to using power exchnage please help me through this issue, Below is the details : My data map name :postest.test1_POS
    Copy book name which is used to create the power exchange Datamap : TIDSS01.ACTRLP.TEST(POSCPY)
    Main frame GDG name : TIDSS01.POS.IBD.DR0100.DAT Below are the Session properties i have set in informatica workflow:Schema Name Override : postest
    Map Name Override : test1_POS
    PWX Partition Strategy : Overrides driven
    Space : CYLINDER
    File Name Override :TIDSS01.POS.IBD.DR0100.DAT(+1)
    I am getting below error: PWXPC_12190
    Message: [ERROR] Transformation [test1_POS]: A permanent error has been encountered in PowerExchange: [
    [Informatica][SCLI PWX Driver] PWX-00267 DBAPI Error. DB_INSERT failed for file postest.test1_POS.
    [Informatica][SCLI PWX Driver] PWX-01279 DBNTC INSERT failed for file postest.test1_POS. Rcs 1274/2019/268.
    [Informatica][SCLI PWX Driver] PWX-01274 DBNTC INSERT Failed for file postest.test1_POS, rcs 260/2019/268.
    [Informatica][SCLI PWX Driver] PWX-02019 SQL insert failure. SQLCODE = 268.
    [Informatica][SCLI PWX Driver] PWX-00268 DBAPI Error. DB_OPEN failed for file TIDSS01.POS.IBD.DR0100.DAT.
    [Informatica][SCLI PWX Driver] PWX-00220 DYNALLOC failed for file TIDSS01.POS.IBD.DR0100.DAT RCs = 9700/0.
    [Informatica][SCLI PWX Driver] PWX-00221 DATA SET: TIDSS01.POS.IBD.DR0100.DAT WITH RETURN CODE 08 REASON CODE 00   
    [Informatica][SCLI PWX Driver] PWX-00221 RACF FUNCTION: RACDEF FOR   
    [Informatica][SCLI PWX Driver] PWX-00221 IGD308I DATA SET ALLOCATION REQUEST FAILED -   
    [Informatica][SCLI PWX Driver] PWX-00221 IKJ56893I DATA SET TIDSS01.POS.IBD.DR0100.DAT NOT ALLOCATED+   
    [Informatica][SCLI PWX Driver] PWX-07404 Permanent error set by Open call on file "TIDSS01.POS.IBD.DR0100.DAT" because dynamic allocation failed. rc=4
    [Informatica][SCLI PWX Driver] PWX-07515 Insert call for table postest.test1_POS met a permanent error. Return codes 267 2019 268.
    ]

  • Spliting files based on condition using multi mapping with BPM

    Hi All,
    Can any one please let me know How to <b>Splite the outbound records based on condition using multi mapping with Integration Process in BPM</b>?
    Thanks
    Govindu.

    Hi All,
    Sorry for mistake this question for Exchange infrastructure guys.
    Thanks,
    Govindu

  • Need to download the data from BSEG based on company code and fiscal year

    Hi All,
              Please suggest me the solution to download the data from BSEG based on company code and fiscal year. As data in BSEG for the fiscal year2009  is 27 lakhs (= 2.7 million) for the specified company code.
    <removed>
    Thanks & Regards,
    Koti
    Edited by: Thomas Zloch on Mar 26, 2010 4:28 PM - please use English metrics only!

    May I ask what you mean by solution?  You can download from SE11, but where are you going to store 2.7 million rows and what tool are you going to use to store it?
    You probably need a (small) program that extracts what you want, then opens a dataset in an appropiate server-system folder, and transfers the data rows to the dataset as fixed-length or tab-delimited file.  It's been done many times, so suggest that you search.

  • Need to generate XML based on Data template

    Hi,
    I'm unable to submit (the second submit) my request using the demo links (XDO 5.6.3 or XDO 5.7) provided in http://bipublisher.us.oracle.com/?tab=samples&header=dataTemplate to generate the XML based on the data template.
    Heard that these links are available for Oracle EBS internal use. I work with EBS-CRM. I need to generate XML based on a data template and use the XML in the template. Data template has two queries for a template.
    Pls help.
    Thanks,
    Impha

    Impha
    Please use the internal mailing list for your questions the forum is meant for external customers. If you do not know the ML name - drop me a mail
    Tim

  • How to create additional Line in file based on condition available as part of ZINVOIC02 Idoc segment

    Scenario Details:
    Receiving Zinvoic02 Idoc in PI. Idoc to file translation creates comma separated file with .csv extn
    The logic was kept in such a way that how many E1EDP01 (items) are available in IDoc that many no of records will be created in csv file.
    The file logic for some the fields is as below:
    No of records
    InvNumber
    InvDate
    CusNumber
    LineitemDesc
    Tax1Type
    Tax1%
    for 1st E1EDP01
    E1EDK01-BELNR
    E1EDK03-DATUM
    E1EDK01-PARTN
    Populate when E1EDP04/MSKWZ=O2 or O4 with E1EDP19/KTEXT
    Hardcode when E1EDP04/MSKWZ=O2 or O4
    Sum all E1EDP04 /MSATZ when E1EDP04/MSKWZ=O2 or O4
    for 2nd E1EDP01
    E1EDK01-BELNR
    E1EDK01-DATUM
    E1EDK01-PARTN
    same as above
    same as above
    same as above
    for 3rd E1EDP01
    E1EDK01-BELNR
    E1EDK03-DATUM
    E1EDK01-PARTN
    same as above
    same as above
    same as above
    Additional Line to be created when one or more of E1EDP01 is having E1EDP04/MSKWZ = O3
    same as above
    same as above
    same as above
    Hardcode "REIM for USE TAX"
    Hardcode ""
    Hardcode ""
    Now we have got addition requirement to add a new lineitem when tax code is equal to O3 for any of the E1EDP01.
    Is it possible to create additional lineitem based on condition. If yes, please share what should be the approach.
    How we can create the additional lineitem?
    Currently we are using E1EDP01 to do context handling.
    The target structure is :
    MT_FILE
         INVOICE     0..unbounded
              InvNumber     0..1
              InvDate          0..1
              CusNumber     0..1
              LineitemDesc     0..1
              Tax1Type          0..1
              Tax1%               0..1

    Hello,
    Please add one extra field in the data structure of the target mapping and let its occurrence be 0..unbounded under the root node 'MT_ADP_Invoice'.
    Apply the condition, if tax code MSKWZ (with its context changed to E1EDP01) equalsS to '03', then map it to the newly created target field whose occurrence is 0..unbounded.
    This will then create an additional field which is your requirement.
    The above is one way.
    But if you want to have the same target field name as ADP_File appended for tax field being '03'.
    Then in that case you can you two message mapping for one common operational mapping / interface.
    In the first message mapping you need to have one target data structure created with the source data structure remaining the same as the one shown by you in scrn shot. Now this target data structure will be similar to the source, except that you need to add one more field at the end(name different from other fields) in target (whose occurrence should be 0..unbounded), and it needs to be mapped to E1EDP01 provided the tax code field MSKWZ(its context changed to E1EDP01) equalsS to constant '03'.
    In the second message mapping you need to map the target structure of previous message mapping to the actual required structure. The newly added field should be mapped to ADP_File of your final target structure.
    This will then create the same structure as required.
    Note : Please change the occurence of ADP_File to 0..unbounded.
    Regards,
    Souvik

  • File Split based on Condition

    Hello
    I have a scenario where I get a file and need to split it into two based on a condition. Is it possible to accomplish this scenario at the file adapter configuration or do I need a mapping for this.
    Sample File 
    ABC1234asdfasfasdfasdfsdfasdfsdfsdfsdfasfsdfasdfsfasdfNewafasfsdfasfasdfasfafsdas
    asfdasdfasfasdfasdf
    asdfasdfadfasdfasfsd asdfsadfa fs
    asdfasdfasfasdfasdfasdfadfsfafasfas
    ABC1234asfdjoawejasdlfasdfasdfjsdfljasfjsfjaslfjasldfjasdlfsdOldfsdfadsfadfsdfasdffasdfasdfads
    asdfasdfsdfa
    asfdasdfasdfasdf
    asdfsfasfsfsad
    fasfasfasdffas
    asdfasfsfa
    asdfasfasfasdfas
    ABC1234asfdjoawejasdlfasdfasdfjsdfljasfjsfjaslfjasldfjasdlfsdNewfsdfadsfsd23424324234234234
    asdfsfasdfasfasfasfasfa
    asdfasfasdfasfasfaasdfa
    in the above content record always start with ABC1234 and it can have multiple sub records and it has a value new or old at column 120-123 in the first line of each record, it can have many sub records but I need to consider ABC1234 as the new record. I need to split the file into two, like one as newdata.txt and other as olddata.txt with new and old records respectively.
    Files after the split should look like this
    newdata.txt
    ABC1234asdfasfasdfasdfsdfasdfsdfsdfsdfasfsdfasdfsfasdfNewafasfsdfasfasdfasfafsdas
    asfdasdfasfasdfasdf
    asdfasdfadfasdfasfsd asdfsadfa fs
    asdfasdfasfasdfasdfasdfadfsfafasfas
    ABC1234asfdjoawejasdlfasdfasdfjsdfljasfjsfjaslfjasldfjasdlfsdNewfsdfadsfsd23424324234234234
    asdfsfasdfasfasfasfasfa
    asdfasfasdfasfasfaasdfa
    olddata.txt
    ABC1234asfdjoawejasdlfasdfasdfjsdfljasfjsfjaslfjasldfjasdlfsdOldfsdfadsfadfsdfasdffasdfasdfads
    asdfasdfsdfa
    asfdasdfasdfasdf
    asdfsfasfsfsad
    fasfasfasdffas
    asdfasfsfa
    asdfasfasfasdfas
    I appreciate if any one can help me with this.
    Thanks in advance

    Hi,
    as stefan pointed already you can't do this using standard adapter functionality,
    you can do it in mapping easily,convert below code in to UDF it will work.
    String test = "ABCasdasasasABCadsfsddgfgABCggdgdgdgdgABC34343";
    myString =test.split("ABC");
    for(int i=0;i<=myString.length;i++)
    System.out.println("MY STRING " + myString<i>);
    Regards,
    Raj

  • How to blink TreeView Nodes based on condition c#

    suppose i am populating my tree view with data from database and i want to blink those nodes which has a specific data. now guide me with code how can i efficiently blink multiple tree view nodes  based on condition in winform application.

    Hi Mou_kolkata,
    >> anyone can give me small working code for tree node blinking
    Thank Armin for the details about blinking TreeView Nodes.
    For a simple demo to blink TreeView nodes, you could refer the link below:
    # Treeview control - How to make a node blink?
    https://social.msdn.microsoft.com/Forums/en-US/64e7a4d7-3098-4370-990f-390cb3a640a1/treeview-control-how-to-make-a-node-blink
    If you have issues when you blink Treeview nodes, please feel free to post a new thread in this forum, then you would get more help.
    Best Regards,
    Edward
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • How to stop workitem complete or how to keep work item in inbox based on conditions even if it completed

    Hi,
    my requirement is to call webdyn pro screen from workflow..
    i am calling webdynpro screen by using FM :CALL_BROWSER from workflow.
    when webdyn pro screen is called user will enter some values . if user closed webdyn pro screen with out entering any values we need show this workitem in his inbox. so that user can again open it and enter values in the webdyn pro screen.
    Please help how to stop work item complete based on conditions.
    Thanks,
    phani

    Hi,
    As per my understanding, this is not a proper approach toy call web dynpro using FM CALL_BROWSER. is the web dynpro screen being called when user clicks on the work item from portal UWL OR from SAP SBWP ?
    if you are calling web dynpro screen from portal UWL when user clicks on work item link, better you achieve it using SWFVISU tcode. in SWFVISU tcode you can maintain which web dynpro. application to call when particualr work item task come in user's inbox. in your web dynpro code, then you can write your buisiness logic when user clicks for example SUBMIT/SAVE button. on action submit/save button you can use FM SAP_WAPI_WORKITEM_COMPLETE to complete the worktiem once the user clicks on final submit/save button. in this way the workitem will get removed from user inbox only upon clicking on submit/save button.
    You can refer below link for web dynpro for workitem:
    http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/70648e99-4cc1-2c10-879d-9c61003c69d6?QuickLink=index&…

Maybe you are looking for

  • Unable to open Power BI Sites - Error: We were unable to load the Site. Refresh the page to try again

    Power BI Sites Error We were unable to load the Site. Refresh the page to try again When opening Power BI Sites with internet explorer, in certain security configurations you may run into the above error. While we are looking into resolving this, ple

  • Unbalanced Transaction with Cenvat Tax Code

    Hi All I  have a problem with A/R Down Payment Invoice.When i am trying to add the invoice with Cenvat related Tax code ( BED+VAT)the system is throwing an error which reads as follows: " Unbalanced Transaction Message 131-91"  But when i am changing

  • Opening Document Library Files in New Tab

    Hi, Is there any setting to enable so that all the files saved in the document library (PDF, WORD etc) gets opened in a new tab. Now its opening in the same tab. I need all other links to open in the same tab, only documents to a different tab. I am

  • Inactive ram

    i just got a new intel imac 27" with 4gb of ram. My problem is that i have anywhere from 1gb to 1.6gb of ram that is inactive. What can i do to correct this and make it free? I cant find the processes in activity monitor either to quit them.

  • Problem with nx9420 Monitor

    I have a Compaq nx9420 laptop and on the screen appeared 3 colums of pixels which are "stuck" in the same color. I don`t think they are dead pixels because sometimes they work . What should i do ?