Date mapping 2 dates to 0calquarter

Hello BI experts,
BI 7.0, I mapped  Date1 & Date 2 to 0calquarter based on a condition at field level.
Code:
IF DATE1< 01jan2010
      RESULT = DATE1.
    ElSEIF  DATE2>= '20100101'.
      RESULT = DATE2.
    ENDIF.
But when i give DATE1 = 13.03.2010
                          DATE2 = 13.09.2008
0CALQUARTER =0.2010 which is wrong.For all the values i am getting 0calquarter = 0.YYYY(resp year)
What might be the solution ?any ideas?
Edited by: Lucky sdn on Jan 13, 2010 8:32 AM

Hi,
You can't map date format local object directly to calquarter field. You have to write some ABAP code to manually convert the date format to quarter format as below.
Date: YYYY(4), date(8),     
constants: q1 value '01',         q2 value '04',         q3 value '07',         q4 value '10'.
YYYY = date+0(4).
case date+4(2).
when Q1.
CONCATENATE YYYY  '1'  INTO result.
when Q2.
CONCATENATE YYYY '2' INTO result.
when Q3.
CONCATENATE YYYY '3' INTO result.
when Q4.
CONCATENATE YYYY '4' INTO result.
endcase.
Do reply with comments.

Similar Messages

  • List View Bound to XML Map Data

    HI Have a list view that is bound to xml mapped data.  It seems that on connection refresh that new data is not being updated into the SWF.  My Binding is directly onto the cell ranges that are mapped into excel, so on updates the size of the maped table changes/rewrites over the old data.
    When I refresh I am not picking up the newest data in the list view.  Any thoughts on this on how I can fix.
    Regards,
    Mark

    Thank you Ganesh, but I am not on Enterprise edition.  I am successfully bringing in live xml data, however mapping more than one Query result from one xml file is giving my project some problems.  Refreshing a list View I think is causing this issue.  From within my project in design view I can Refresh the data.
    When I publish the file to html/SWF when I refresh other components are refreshing but the list view and one other is not refreshing.....

  • Data source cannot be created : MAPVIEWER-00011: Error creating a map data

    Hi everyone,
    i am getting an error meaasge while creating datasource
    " Data source cannot be created : MAPVIEWER-00011: Error creating a map data source."
    pls help

    You should assign only one value to jdbc_sid. Try with this
    <map_data_source name="mvdemo"
    jdbc_host="localhost"
    jdbc_sid="orcl"
    jdbc_port="1521"
    jdbc_user="mvdemo"
    jdbc_password="!mvdemo"
    jdbc_mode="thin"
    number_of_mappers="3"
    allow_jdbc_theme_based_foi="false"
    />
    Make sure that oracle sid is 'ORCL'
    Sujnan

  • Strange Data Mapping Errors after SEM 6 Upgrade. Please assist.

    Hi All, I encountered these sudden Mapping errors after I tried to do Testing in Post Upgrade Sand Box. Here I am trying to to perform Collected Reported Financial Data under Data Collection Method for a particular Company Code 3040. Kindly help me with some quick responses as this is kind of high priority. The errors and the Diagnosis Notes I am unable to follow as I do not where I shall write those Mapping Rules they are referring to. I do not even know if that need to apply any SAP Notes as such. Once again Highly appreciate your quick response and Many Thanks in Advance.
    Regards, BIP
    Input conversion for field Period Value LC has invalid format Message no. UCT8210 Diagnosis The mapping rule for target field Period Value LC contains a move with a selected Input Conversion indicator. Therefore, the system performs an input conversion prior to creating the target data. However, an error in the input conversion occurred while moving the source key figure to the target key figure Period Value LC. This means that the format used for the input conversion is incompatible with the target data. System Response The system will not perform the move. Procedure Examine the mapping rule for field Period Value LC. Either select the Conversion Exit indicator or deselect the Input Conversion indicator. Execute the method again. -
    3040 is incompatible with input format for field /1FB/COMPANY Message no. UCT8258 Diagnosis During execution, the method derives the source selection for source field /1FB/COMPANY from the mapping rule for the target field. 3040 is one of the values that were derived for the source selection. The system requires that this value is in the correct SAP-internal format because the Conversion Exit indicator has been selected in the move operator for field /1FB/COMPANY. However, the value 3040 is incompatible with the SAP-internal format. System Response The system attempts to interpret value 3040 as an external format and convert it to the internal format. If this fails, the system is unable to restrict the source selection using source field /1FB/COMPANY. In this case, the system may read more source data than was originally intended, which can affect performance. Procedure In the log, choose the Source button to display the source selections that are used to read the source data. When this appears, examine values selected for field /1FB/COMPANY. If the correct values were selected, you can ignore this message. To prevent this message from being issued, you can select the indicator in the mapping rule used by source field /1FB/COMPANY. If incorrect values were selected, make sure that the mapping rule used by source field /1FB/COMPANY has been defined correctly. If the mapping rule is correct and value (3040) derived for the source selection does not affect the overall result, you can ignore this message. If the source selection does not contain the value 3040 for field /1FB/COMPANY and, because of this, source data that is supposed to be read is not being read, make sure that the mapping rule has been defined correctly. If the source selection does not contain any value for field /1FB/COMPANY, make an estimation as to how much excess source data is being read and whether this might affect system performance. If you do not expect any performance problems, you can ignore this message. In any event, you have the following alternatives if the mapping rule is defined correctly, but the source selection on field /1FB/COMPANY is unsatisfactory: You can define a source selection for field /1FB/COMPANY in the Customizing settings for the method on the Selection tab page. Then the method uses this source selection instead of the source selection derived from inverse interpretation of the mapping rule. You can implement the Business Add-In (BAdI) UC_DATATRANSFER and use the method INVERT to determine the source selection on field /1FB/COMPANY. Then the method uses the result of the INVERT method for the source selection instead of the source selection derived from inverse interpretation of the mapping rule. -
    Cannot derive the source selection from target field Version Message no. UCT8252 Diagnosis Field Version has one of the following roles: Consolidation unit Group currency key Fiscal year Posting period Version To delimit the volume of the source data to be read, the system usually derives the source selection from the target selection of such a field. However, the system cannot derive a source selection from field Version. System Response It is possible that a greater volume of source data is being read than is necessary. This can lead to performance issues. Procedure Check whether a mapping rule is defined for field Version. If a mapping rule is defined, you can disregard this warning message. However, if you discover after method execution that the system did not process a large amount of data, and that system performance was not satisfactory, you may want to examine the source selection by choosing the Source button in the log. If the reason for the disregarded data is that too much source data was read because of the unrestricted selection on the source field (which is linked with target field Versionthrough mapping), choose one of the alternatives below: Change the mapping rule for field Version so that the system can derive a delimiting source selection. Implement the Business Add-In (BAdI) UC_DATATRANSFER with the method INVERT to delimit the selection for the source field that is linked via mapping to the target field Version. -
    Cannot derive the source selection from target field Group Currency Message no. UCT8252 Diagnosis Field Group Currency has one of the following roles: Consolidation unit Group currency key Fiscal year Posting period Version To delimit the volume of the source data to be read, the system usually derives the source selection from the target selection of such a field. However, the system cannot derive a source selection from field Group Currency. System Response It is possible that a greater volume of source data is being read than is necessary. This can lead to performance issues. Procedure Check whether a mapping rule is defined for field Group Currency. If a mapping rule is defined, you can disregard this warning message. However, if you discover after method execution that the system did not process a large amount of data, and that system performance was not satisfactory, you may want to examine the source selection by choosing the Source button in the log. If the reason for the disregarded data is that too much source data was read because of the unrestricted selection on the source field (which is linked with target field Group Currency through mapping), choose one of the alternatives below: Change the mapping rule for field Group Currency so that the system can derive a delimiting source selection. Implement the Business Add-In (BAdI) UC_DATATRANSFER with the method INVERT to delimit the selection for the source field that is linked via mapping to the target field Group Currency
    1 is incompatible with input format for field FISCPERIOD Message no. UCT8258 Diagnosis During execution, the method derives the source selection for source field FISCPERIOD from the mapping rule for the target field. 1 is one of the values that were derived for the source selection. The system requires that this value is in the correct SAP-internal format because the Conversion Exit indicator has been selected in the move operator for field FISCPERIOD. However, the value 1 is incompatible with the SAP-internal format. System Response The system attempts to interpret value 1 as an external format and convert it to the internal format. If this fails, the system is unable to restrict the source selection using source field FISCPERIOD. In this case, the system may read more source data than was originally intended, which can affect performance. Procedure In the log, choose the Source button to display the source selections that are used to read the source data. When this appears, examine values selected for field FISCPERIOD. If the correct values were selected, you can ignore this message. To prevent this message from being issued, you can select the indicator in the mapping rule used by source field FISCPERIOD. If incorrect values were selected, make sure that the mapping rule used by source field FISCPERIOD has been defined correctly. If the mapping rule is correct and value (1) derived for the source selection does not affect the overall result, you can ignore this message. If the source selection does not contain the value 1 for field FISCPERIOD and, because of this, source data that is supposed to be read is not being read, make sure that the mapping rule has been defined correctly. If the source selection does not contain any value for field FISCPERIOD, make an estimation as to how much excess source data is being read and whether this might affect system performance. If you do not expect any performance problems, you can ignore this message. In any event, you have the following alternatives if the mapping rule is defined correctly, but the source selection on field FISCPERIOD is unsatisfactory: You can define a source selection for field FISCPERIOD in the Customizing settings for the method on the Selection tab page. Then the method uses this source selection instead of the source selection derived from inverse interpretation of the mapping rule. You can implement the Business Add-In (BAdI) UC_DATATRANSFER and use the method INVERT to determine the source selection on field FISCPERIOD. Then the method uses the result of the INVERT method for the source selection instead of the source selection derived from inverse interpretation of the mapping rule
    Input must be in the format ___,___,__~ Message no. 00088 Diagnosis Your entry does not match the specified input format. System Response The entry in this field was rejected. Procedure The entry must comply with the edit format. The following edit format characters have a special meaning: "_" (underscore) There should be an input character at this point; this should be a number for numeric fields. "." (decimal point) (applies to numeric fields) The decimal point occurs here (setting in the user master record). "," (thousands separator) (applies to numeric fields) This separator occurs (optionally) for more than three figures. Depending on the setting in the user master record, it can be a period or a comma. "V" (applies to numeric fields) The operational sign appears here. If used, it must by at the right margin of the field. The sign is either "-" or " "(space). "~" (tilde) (applies to numeric fields) As of and including this character, leading zeros must also be entered. Otherwise, this character has the same meaning as an underscore. Leading zeros need not be entered on the left of the tilde. They are not output at this position. All other characters have their normal meanings and must be entered in the same position as in the edit format.

    Hi Dan,
    Could you Kiindly advise me where we need to write the Mapping Rules in Consolidation Monitor? All he time the errors refering to Mapping Rules. The only Tab I seen "Mapping" is in Data Basis But as per my Understanding Iwe do not have much to do there as it is system generated Mapping Tab.
    Where we actually go and select/deselct those Input Conversion Indicator/ Conversion exit Indicator.
    Highly appreciate your advise.
    Thanks and Regards,
    BIP

  • RE: Dynamically mapping data to widgets

    One quick and dirty solution would be something like this (though not
    terribly efficient):
    newPanel : Panel;
    newPanel = <panelCreatedFromWindowWorkshop>.Clone(deep = TRUE);for childWidget in newPanel.children do
    -- check if the childWidget field name matches field name to be
    set
    if childWidget.name.isEqual(source=<..FieldNameToSet..>,
    ignoreCase=TRUE) then
    dataWidget : dataField = dataField(childWidget);
    if dataWidget.textvalue = NIL then
    dataWidget.textvalue = new;
    end if;
    -- set the textvalue of the childWidget to required
    value
    dataWidget.textvalue.setvalue('WORKS !');
    end if;
    end for;
    Your problem would have been directly solved if the Forte library class
    CompoundField provided a SetDataObject( ) method corresponding to the
    GetDataObject( ) method.
    According to Forte Help - "The GetDataObject method returns the object
    that the compound field is mapped to. If the compound field is not
    mapped to an object, this method returns NIL."
    Maybe Forte could consider providing this in a future release.
    Another option would have been to use the GetFieldByName( ) method on
    the newly created panel to get at the child widgets directly.
    According to Forte help - "GetFieldByName is designed for use in dynamic
    applications. For example, you can use GetFieldByName to retrieve the
    names of dynamically created fields for immediate use in dynamic
    applications."
    This works fine for compile-time named widgets, but I couldn't get it to
    work for the newPanel child widgets using the code below, or maybe I am
    missing something here.
    newPanel : Panel;
    newPanel = <panelCreatedFromWindowWorkshop>.Clone(deep = TRUE);newPanel.name.setvalue('newPanel');
    newPanel.parent = <aGridField>;
    dataWidget : dataField = dataField(newPanel.getFieldByName('age'));
    (OR)
    dataWidget : dataField =
    dataField(<aGridField>.getFieldByName('newPanel.age'));
    (OR)
    dataWidget : dataField =
    dataField(self.window.getFieldByName('newPanel.age'));
    In all cases the return value was NIL.
    Maybe someone from Forte could shed more light on this.
    Hope this helps.
    Prashant.
    From: Richard Finegan[SMTP:[email protected]]
    Reply To: Richard Finegan
    Sent: Thursday, August 13, 1998 2:27 PM
    To: 'Forte Users Mailing List'
    Subject: Dynamically mapping data to widgets
    Here's what I'm trying to do:
    I have a panel with a bunch of data fields that I've mapped to an
    object.
    I want to replicate the panel several times to programmatically
    populate a
    TabFolder (although the TabFolder bit isn't really relevant here, I
    think).
    But I can't figure out how to get at the mapped data in the replicas
    of my
    object...
    newPanel : Panel;
    newPanel = <panelCreatedFromWindowWorkshop>.Clone(deep = TRUE);
    panelCreatedFromWindowWorkshop.anAttributeOfObjMappedToPanel =
    something;
    // tada! "something" appears in a data field of the original panel
    newPanel.? = something; // how to do the same thing with the new
    panel?
    How do I map an object to the replicated panel? I've experimented
    with
    assigning "Widget.AppData" to a new object, but I can't seem to get it
    to
    do anything...
    Thanks in advance for your help.
    Richard Finegan
    To unsubscribe, email '[email protected]' with
    'unsubscribe forte-users' as the body of the message.
    Searchable thread archive
    <URL:http://pinehurst.sageit.com/listarchive/>
    To unsubscribe, email '[email protected]' with
    'unsubscribe forte-users' as the body of the message.
    Searchable thread archive <URL:http://pinehurst.sageit.com/listarchive/>

    Hi Michael,
    did you find any solution?
    I've the same problem.

  • Error in Accessing User Mapping Data

    Hi,
    When i tried User Mapping by going to
    "UserAdministration -> UserMapping" , or
    "Personalize" -> "User Mapping"
    it gives the error msg ,
    Problem in accessing user mapping data for selected system.
    Due to this i am not able to create appointments or see the availability status of a user.
    Also, for your information i have Strong Encryption files installed.
    Pls help.
    Thanks in advance..

    Hi venkat,
    You need to change the default value in UME configuration
    System admin -> System Config -> UM Configuration -> Direct Editing
    ume.usermapping.unsecure=TRUE
    Regards
    PS: Please consider rewarding point

  • Nokia Maps not loading any new maps data on the fl...

    Hi,
    Just posted a thread on City lens not working properly with Maps, but now I notice that Maps seems to have problems of its own: without Wifi, I can't use satellite maps or indoors maps. As a matter of fact, even the plain vanilla street maps mode seems to work only because I've downloaded offline maps for my country. If try to zoom in on a neighbouring country without wifi, no detailed maps load.
    Nokia Drive doesn't seem to have this limitation, it will happily load detailed maps data over the air too. Using Lumia 920, original firmware, and Maps version 3.1.177.8.
    This can't be by design, or can it?

    Some more interesting symptoms from this issue:
    After restarting the phone, if I immediately launch Maps or City Lens, I can enjoy a short moment (maybe a minute or two) of having the features work over cellular data connection.
    The non-functionality of these features seems to correlate with how the Dialer tile on the start screen identifies my network (only medium-size or large tile will show the name). If the tile reads "Saunalahti" (the name of my operator), everything will work as it should. Some minutes after booting the id changes to "Oma verkko" (="Own network"), at which point cellular connection seems to stop working, but only for these very specific use cases. I can happily use IE10 or other apps which require data connection even with WiFi off.
    If I go to Settings / Network and choose my network manually from the list (i.e. I choose "Saunalahti"), the Dialer tile will for a short while again revert to showing "Saunalahti", and I get another 2 minutes of functionality.
    So yes, I guess it does look like a network issue, or perhaps an issue with how the device deals with roaming networks. My network provider told me it's probably something with the phone or its settings and suggested I contact Nokia. Nokia will probably tell me it's obviously something with the operator and direct me to them .

  • Adaptor meta data &mapping templtes

    hi
    1. explain about adaptor meta data &mapping templtes what does use with them?
    2.what is exchange fault data and exchange log data under data types
    3.what are web as apart from 6.2 and 6.4?
    4.describe about sap xi 3.0 like SP's what are types
    5.about content
    pls give details mentioned above .
    thanks & regards

    >>1. explain about adaptor meta data &mapping templtes what does use with them?
    Adapter Metadata is the foundation configuration for the Adapters used in XI for message transfer. The functions provided allow either the creation of new Adapters or the modifications of existing ones.
    Just like you can reuse data types in different message types, you can also save parts of message mappings as Mapping Templates and reuse them elsewhere. Once you have saved a mapping template it serves as a copy template that you can then load into other message mappings and modify to fit your requirements.
    >>2.what is exchange fault data and exchange log data under data types
    Fault message types contain data types defining application errors. Application errors are errors that occur on the inbound side of a message transfer when the application could not process successfully.
    >>3.what are web as apart from 6.2 and 6.4?
    The Web Application Server is a platform for efficient development and allows you to implement Web applications. It builds upon proven and stable application server
    technology and Internet-based infrastructure from SAP.
    >>4.describe about sap xi 3.0 like SP's what are types
    check http://service.sap.com
    >>5.about content
    The contents of the Integration Repository are collectively known as XI Content (Process Integration Content); XI content is the integration knowledge that is required for describing collaborative processes (collaboration knowledge).
    For an overview of the XI Content currently provided by SAP, see SAP Service Marketplace at http://service.sap.com/solutions  -> SAP NetWeaver  ->  SAP NetWeaver in Detail  ->  Process Integration  ->  SAP Exchange Infrastructure  ->  SAP XI in Detail  -> XI Content Catalog.

  • Data mapping between sybase and xml

    I want to make a data mapping between sybase relational data result set and xml.
    I am using the function ForXmlTree for this purpose, I have the entire documentation about the synatx and usage of it, but i need to know what support does JAVA have for it.
    What files need to be installed .
    This is an example of using the function
    java jcs.xmlutil.ForXmlTree �i forxmltree-spec [-o output-script-file] \
    [-x output-document-file  -S server-name]
    does anyone know where can i find the jcs.xmlutil package. If so let me know.
    Thanks in advance
    Sandeep

    PRPS-PSPNR = AFVU-PROJN.
    also you can use this fm.
    BAPI_PROJECT_GETINFO

  • Data mapping

    Hi guys,
                what is data mapping? I don't think this is XI mappings.is this something related to EDI
    Thanks
    Sud

    Sud,
    It all depends on the context where u are using these terms. As per the XI Mappings there is nothing like data mapping.
    In my client place they will call the Transformation document as Data Mapping sheet. It's nothing but the data mapping between the source and the target structure. I mean how the source structure need's to be transformed to the target will be defined in the data mapping sheet.
    raj.

  • Inbound Idoc Data mapping sheet

    Hi experts,
    I need a data mapping sheet of Inbound Idoc that will help me for mapping the segments (header, Item) both for creating material, vendor, customer etc.
    That sheet will help for mapping tables and fields that are mandatory for that segments.
    Thanks & Regards.
    Ankur Garg.

    The process code you assigned to the inbound IDoc, has to be assigned to a function module which processes this IDoc, right? Now, if you use a function module of your own (CUSTOM FM!), you can do all the 'printing' you want.
    So there is no option for printing by default (standard), but you will have to do it your self.
    Another option would be to use a User exit. It seems there is a standard User exit (SIDOC001), or even a  BAdI which you can use. I haven't used it myself, so can't help you there.
    Edited by: Micky Oestreich on Mar 9, 2009 8:43 AM

  • Invoice IDOC data mapping

    plz help in mapping of these two fields in INVOIC02 IDOC
    BSCHL     Posting Key
    GJAHR     Fiscal year
    thanks ..
    plz send me if you have any info about data mapping and processing a idoc...
    pts ll be given to all helpful answers
    Message was edited by: sharadha sharma

    INVOIC02 is for billing document. If you are looking for accounting document then i think you should be looking at ACC_DOCUMENT02.

  • Data Mapping Document

    Hi,
    I am part of a Data Migration project involves source system (SAP). And target Systems (peopleSoft And JDEdwards). now we want to do Data Mapping for these Source And Target Systems. Any Body Provide me with some Data Mapping Documents How to map the Fields Between these systems. Thanks in advance.
    Thanks
    kiran.B

    Hi Kiran,
    We are also converting from Peoplesoft to SAP, for HR. Can you please share your mapping document, if any, to following email address.
    shettyvk(at the rate)gmail(dot)com
    Thanks...
    Vinay

  • Data Mapping Templates for NON-RTA Systems

    Hi all,
    I'm designing n extractor for my NON-SAP System.
    I've been reading the Appendix B: Data Mapping Templates for Non-RTA Systems from Configuration Guide - SAP GRC AC 5.3.
    I have a couple of questions regarding the size of two fields in table ACTION PERMISSION OBJECTS TEMPLATE
    Is correct the size that the documents says about fields:
    ACTION (document says it's 20 but in other tables is 50)
    PERMISSION (document says it's 10 but in other tables is 100
    ACTVT (document says it's 10but in other tables is 50)
    Thank you in advanced.

    Hi Luis,
    Yeah i will follow the recomendations but i'm updating some files to RAR and i've seen another kind of inconsistency such as in the table User File Template. Recomendation says that both FNAME field and LNAME field are 50 size each one but in my case i can update a FNAME 51 size and a LNAME 49, i mean between FNAME and LNAME it's 100 size.
    Cheers.

  • Data mapping from xRPM 4.0 to BI 7.0

    Hi,
    Is there a place where I can get the data mapping rules from xRPM 4.0 to BI 7.0.
    help.sap.com doesn't seem to have the data mapping rules.
    I checked the BI content for xRPM 3.30 which has some rules.
    Any help or suggestions will be appreciated.
    Thanks,
    Vish

    Hi
    As per my understand if u want to assign data source to any target(Mapping each field to each info object).
    1.Some times when u create a tranformation u will not find a single rule.In this case u have to map manually
    sol : 1. SE11  2.Give the table name : RSTRFIELDSH
    3.Go to contents
    4. In the transfer structure : give u r data source and excute it
    4.U can able to see which fild is related which info object.
    Thanks & Regards
    Ramkanth

Maybe you are looking for

  • How to Add barcodes at the end of a 3 page form to capture data

    I am working on a multiple pages form that contain a paper form barcode I decide to put all paper form barcodes in the last page. How do I get the data fields to be assigned to different barcodes at the end of the page. How do I remove the red x on t

  • Do I have a MBP lemon?

    I bought a brand new 17" MBP at the end on January 2011. (Mac user for 20 years) I've never experienced the amount of crashing that I've had on this particular Mac. I know some of this is a result of the ongoing Flash war. Many crashes do seem to inv

  • Change value in a field and reflect value of another field

    Hi all, I have a situation here where in the Single Customer View, under the Completed Task. When I changed the value of a field name called Status to "Completed" in the Edit screen and I save it, another field that is in the same screen called "Comp

  • Access to local DataSource tries to connect to remote server after ejb call to remote server

    I've run into a problem with code that worked fine under WebLogic 6.1 SP4, but I'm having difficulty migrating it to WebLogic 8.1 SP2.           I have two weblogic instances running in separate domains (InstanceA and InstanceB). The two domains have

  • Restrictions for the use of MapKit in a paid iOS6 app that caches map tiles.

    Can anybody advise what restrictions exist for the use of MapKit for a paid app that caches map tiles for off-line use.  The app is targetted at iOS6 and above.  I haven't found any clear answers on this, Is there a cost associated with using map til