Date Profile -- custom date field should be populated.

Hi All,
I am creating a sales order from CRM Web UI. I am having Configurable Product. to create a sales order.
If i click on configure product button, I can maintain the parameter values (Months) while creating a sales order.
Now my question is i need the "Sales Order End date" automatically populated with "Sales order start date" + above menctioned Parameter value by months.
Please let me know if you need any more details.
What i have done is i created a date rule to configure this and added the parameter in the generated ABAP code for date rule.
But i am not having any luck to populated the value.
Please show some light to move further.
Thanks in Advance.
Regards,
Siva

Hi Sushma,
Create 2 Date instances for 'FromDate' & 'ToDate' with required values & set them.
Example:
java.sql.Date fromDate = new java.sql.Date(109, 1, 1); // This is 1st Feb, 2009
wdContext.currentTimelogElement().setFromDate(fromDate);
Similarly, java.sql.Date toDate = new java.sql.Date(109, 1, 6); // This is 6th Feb, 2009
wdContext.currentTimelogElement().setToDate(toDate);
For details, refer http://java.sun.com/j2se/1.4.2/docs/api/java/sql/Date.html
Hope this answers your query.
Kind Regards,
Nitin
Edited by: Nitin Jain on Feb 6, 2009 6:41 AM

Similar Messages

  • Date Profile - save date of document's changing

    Hi,
    I want to define date profle for my document type. Date type should store date of document's last change.
    Example when user changes doc's status that Date type should store this date.
    I configured date type in date profile: Determine date only once - unchecked, date rule - Todays, Calculating position - 4 (last on doc), Default values ... - Current Time checked. Only Display Field - checked.
    It does not work.
    Can you show where is the error?
    Regards
    Radek

    If you say 'Determine only once' it determines the value exactly once and then no more, regardless whether it is filled or not. If not set, it tries to determine the date until it finds a value. Once the value is found, no update of the value happens anymore.
    So if you want to write down a value, you need to fill a BAPI like ORDER_SAVE, get the order details there with fm CRM_ORDER_READ, change the values with CRM_ORDER_MAINTAIN, perform a CRM_ORDER_SAVE and then a BAPI_COMMIT_DATA. Not an easy task, but imho the only way.
    Kai

  • Different date profile and date rule in one transaction type

    Hi CRM Experts,
    We have requirement that quotation should have validity date based on the contry.We have only one quotation type which will be used in all county.
    Now i need to know how can we use different date profile and date rule in one quotation.
    Ex -
    When the quotation created for russia - expiry date = today + 10 days
    when quote created in china = expiry date = today + 25 days
    Can it be possible in standared configuration? if not then give me some insight how to achive this?
    Regards
    Rajesh

    Hi, Rajesh.
    You can create a Date Rule based on functional module.
    Look at example in SAP standard: Date Rule "WTY004 Purchase Date Object":
    <?xml version="1.0"?>
    <SAPTimeRule>
      <ABAPTimeRule function="CRM_WTY_IL_TIMERULE_03"/>
    </SAPTimeRule>
    Hope this helpful!

  • ODI Data Profiling and Data Quality

    Hi experts,
    Searching about ODI features for data profiling and data quality I found (I think) many ... extensions? for the product, that confuse me. Cause I think there are at least three diferents ways to do data profiling and data quality:
    In first place, I found that ODI has out of the box features for data profiling and data quality, but, acording to the paper, this features are too limited.
    The second way I found was the product Oracle Data Profiling and Oracle Data Quality for Oracle Data Integrator 11gR1 (11.1.1.3.0) that is in the download page of ODI. Acording to the page, this product extends the existing inline Data Quality and Data profiling features of ODI.
    Finally, the third way is Oracle Enterprise Data Quality that is another product that can be integrated to ODI.
    I dont know if I understood good my alternatives. But, in fact, I need a general explanation of what ODI offer to do Data Quality and Data profiling. Can you help me to understand this?
    Very thanks in advance.

    Hi after 11.1.1.3 version of ODI release, oracle no longer supports ODP/ODQ which is a trillium software product and this not owned by oracle. Oracle is recommending the usage OEDQ for quality purposes. It's better if you could spend time on OEDQ rather than trying to learn and implement ODP/ODQ in ODI

  • Oracle Data Profiling and Data Quality

    Hi,
    How to create metabase for Oracle Data Profiling and Data Quality.Is metabase and repository are same.

    Hi,
    You can create a metabase in the Metabase Manager:
    - Expand Control Admin
    - Click on Metabases
    - in the Metabases window, right-click on the white area and select Add...
    - go through the wizard to create your metabase
    This is documented in the ODQ/ODP tutorial (http://www.oracle.com/technology/products/oracle-data-quality/pdf/oracledq_tutorial.pdf) and in the Documentation (in Metabase Manager or Oracle Data Quality go to Help and then Manuals).
    Thanks,
    Julien

  • For uploading master data(ex:customer data) into sap,

    hi
    for uploading master data(ex:customer data) into sap,
    which methods you prefer? call
    transaction/session/lsmw/bapi? why?
    Thanks
    Rama

    Hello,
    Check this:
    COde:
    REPORT zprataptable2
           NO STANDARD PAGE HEADING LINE-SIZE 255.
    DATA : BEGIN OF itab OCCURS 0,
            i1 TYPE i,
            lifnr LIKE   rf02k-lifnr,
            bukrs LIKE   rf02k-bukrs,
            ekorg LIKE   rf02k-ekorg,
            ktokk LIKE   rf02k-ktokk,
            anred LIKE lfa1-anred,
            name1 LIKE lfa1-name1,
            sortl LIKE lfa1-sortl,
            land1 LIKE lfa1-land1,
            akont LIKE lfb1-akont,
            fdgrv LIKE lfb1-fdgrv,
             waers LIKE lfm1-waers,
            END OF itab.
    DATA : BEGIN OF jtab OCCURS 0,
            j1 TYPE i,
            banks LIKE lfbk-banks,
            bankl LIKE lfbk-bankl,
            bankn LIKE lfbk-bankn,
             END OF jtab.
    DATA : cnt(4) TYPE n.
    DATA : fdt(20) TYPE c.
    DATA : c TYPE i.
    INCLUDE bdcrecx1.
    START-OF-SELECTION.
      CALL FUNCTION 'WS_UPLOAD'
        EXPORTING
          filename = 'C:\first1.txt'
          filetype = 'DAT'
        TABLES
          data_tab = itab.
      CALL FUNCTION 'WS_UPLOAD'
       EXPORTING
         filename                      = 'C:\second.txt'
         filetype                      = 'DAT'
        TABLES
          data_tab                      = jtab.
      LOOP AT itab.
        PERFORM bdc_dynpro      USING 'SAPMF02K' '0100'.
        PERFORM bdc_field       USING 'BDC_CURSOR'
                                      'RF02K-KTOKK'.
        PERFORM bdc_field       USING 'BDC_OKCODE'
                                      '/00'.
        PERFORM bdc_field       USING 'RF02K-LIFNR'
                                      itab-lifnr.
        PERFORM bdc_field       USING 'RF02K-BUKRS'
                                      itab-bukrs.
        PERFORM bdc_field       USING 'RF02K-EKORG'
                                       itab-ekorg.
        PERFORM bdc_field       USING 'RF02K-KTOKK'
                                       itab-ktokk.
        PERFORM bdc_dynpro      USING 'SAPMF02K' '0110'.
        PERFORM bdc_field       USING 'BDC_CURSOR'
                                      'LFA1-LAND1'.
        PERFORM bdc_field       USING 'BDC_OKCODE'
                                      '/00'.
        PERFORM bdc_field       USING 'LFA1-ANRED'
                                      itab-anred.
        PERFORM bdc_field       USING 'LFA1-NAME1'
                                      itab-name1.
        PERFORM bdc_field       USING 'LFA1-SORTL'
                                      itab-sortl.
        PERFORM bdc_field       USING 'LFA1-LAND1'
                                      itab-land1.
        PERFORM bdc_dynpro      USING 'SAPMF02K' '0120'.
        PERFORM bdc_field       USING 'BDC_CURSOR'
                                      'LFA1-KUNNR'.
        PERFORM bdc_field       USING 'BDC_OKCODE'
                                      '/00'.
        PERFORM bdc_dynpro      USING 'SAPMF02K' '0130'.
        PERFORM bdc_field       USING 'BDC_CURSOR'
                                      'LFBK-BANKN(01)'.
        PERFORM bdc_field       USING 'BDC_OKCODE'
                                      '=ENTR'.
        cnt = 0.
        LOOP AT jtab WHERE j1 = itab-i1.
          cnt = cnt + 1.
          CONCATENATE 'LFBK-BANKS(' cnt ')' INTO fdt.
          PERFORM bdc_field  USING fdt jtab-banks.
          CONCATENATE 'LFBK-BANKL(' cnt ')' INTO fdt.
          PERFORM bdc_field USING fdt jtab-bankl.
          CONCATENATE 'LFBK-BANKN(' cnt ')' INTO fdt.
          PERFORM bdc_field   USING fdt jtab-bankn.
          IF cnt = 5.
            cnt = 0.
            PERFORM bdc_dynpro      USING 'SAPMF02K' '0130'.
            PERFORM bdc_field       USING 'BDC_CURSOR'
                                          'LFBK-BANKS(01)'.
            PERFORM bdc_field       USING 'BDC_OKCODE'
                                          '=P+'.
            PERFORM bdc_dynpro      USING 'SAPMF02K' '0130'.
            PERFORM bdc_field       USING 'BDC_CURSOR'
                                          'LFBK-BANKN(02)'.
            PERFORM bdc_field       USING 'BDC_OKCODE'
                                          '=ENTR'.
          ENDIF.
        ENDLOOP.
        PERFORM bdc_dynpro      USING 'SAPMF02K' '0130'.
        PERFORM bdc_field       USING 'BDC_CURSOR'
                                      'LFBK-BANKS(01)'.
        PERFORM bdc_field       USING 'BDC_OKCODE'
                                      '=ENTR'.
        PERFORM bdc_dynpro      USING 'SAPMF02K' '0210'.
        PERFORM bdc_field       USING 'BDC_CURSOR'
                                      'LFB1-FDGRV'.
        PERFORM bdc_field       USING 'BDC_OKCODE'
                                      '/00'.
        PERFORM bdc_field       USING 'LFB1-AKONT'
                                      itab-akont.
        PERFORM bdc_field       USING 'LFB1-FDGRV'
                                      itab-fdgrv.
        PERFORM bdc_dynpro      USING 'SAPMF02K' '0215'.
        PERFORM bdc_field       USING 'BDC_CURSOR'
                                      'LFB1-ZTERM'.
        PERFORM bdc_field       USING 'BDC_OKCODE'
                                      '/00'.
        PERFORM bdc_dynpro      USING 'SAPMF02K' '0220'.
        PERFORM bdc_field       USING 'BDC_CURSOR'
                                      'LFB5-MAHNA'.
        PERFORM bdc_field       USING 'BDC_OKCODE'
                                      '/00'.
        PERFORM bdc_dynpro      USING 'SAPMF02K' '0310'.
        PERFORM bdc_field       USING 'BDC_CURSOR'
                                      'LFM1-WAERS'.
        PERFORM bdc_field       USING 'BDC_OKCODE'
                                      '/00'.
        PERFORM bdc_field       USING 'LFM1-WAERS'
                                      itab-waers.
        PERFORM bdc_dynpro      USING 'SAPMF02K' '0320'.
        PERFORM bdc_field       USING 'BDC_CURSOR'
                                      'RF02K-LIFNR'.
        PERFORM bdc_field       USING 'BDC_OKCODE'
                                      '=ENTR'.
        PERFORM bdc_dynpro      USING 'SAPLSPO1' '0300'.
        PERFORM bdc_field       USING 'BDC_OKCODE'
                                      '=YES'.
        PERFORM bdc_transaction USING 'XK01'.
      ENDLOOP.
      PERFORM close_group.
    Header file:
    1     63190      0001     0001     0001     mr     bal188     b     in     31000     a1     inr
    2     63191      0001     0001     0001     mr     bal189     b     in     31000     a1     inr
    TC file:
    1 in sb 11000
    1 in sb 12000
    1 in sb 13000
    1 in sb 14000
    1 in sb 15000
    1 in sb 16000
    1 in sb 17000
    1 in sb 18000
    1 in sb 19000
    1 in sb 20000
    1 in sb 21000
    1 in sb 22000
    2 in sb 21000
    2 in sb 22000
    Regards,
    Vasanth

  • Data in Customer Group Field according to the sales area

    I have two sales area, i.e. 1000,10,10 (area1) and 1000,20,10. (area2) configured in the sap.
    i want that when user creates a customer for area1, then he get different data in list in "customer group field" in sales area in sales tab i.e. group1, group2. and while creating customer for area2 field, user get different data in list of the same field (now group3, group4).
    is that possible without ABAP??

    Hi
    The field customer group flows from imgsd-master data-business partners-customers-sales-define customer groups
    Whatever you define here will flow as options in F4 while creating CMR
    But there is no restriction of limiting certain groups according to sales areas as reqd by you in standards
    It needs a development only
    Regards
    Raja

  • Using MEREQ001 u2013 Checking error for data in customer data tab.

    Hi Guys,
    I have implemented MEREQ001 enhancement to add custom field in CUSTOMER DATA tab at item level. I want to validate the custom fields for error and display RED dot in front of the line item number when user press SAVE button.
    I am using EXIT_SAPLMEREQ_005 for validating the custom field when user press SAVE button.
    Is this the correct exit for this requirement.
    Can somebody share to code to display the RED dot in front of the line item which has error in custom fields?
    Thanks in advance.

    I think it's right
    U need to tranfer the message to exporting parameter or raise an error message

  • How to debug a Diagnostic Data Adapter (custom data collector) for Microsoft Test Manager

    Hello,
    I have created a custom Diagnostic Data Adapter aka. custom data collector for Microsoft Test Manager (MTM) and installed it, all according to the guidelines under  Creating
    a Diagnostic Data Adapter to Collect Custom Data or Affect a Test Machine.
    I would like to debug my data collector. On which machine should I perform the debugging and to which process should I attach from Visual Studio? Are there any restrictions regarding the user who is running the debug session?
    How can I do that?
    Thank you ,
    Ana

    It seems that I found the solution, but I would like someone still to verify if it is the right one.
    Steps:
    Turn on "Microsoft Symbol Server" under In Tools-->Options-->Debugging
    Restart manually "Visual Studio Lab Agent Service" on the machine where the collector is installed (this actionautomatically restarts the  Visual Studio Test Agent ("C:\Program Files (x86)\Microsoft Visual Studio 11.0\Common7\IDE\QTAgentService.exe")) 
    Load code for your collector in Visual Studio 
    Attach the Visual Studio debugger to the processes QTAgentService.exe and QTDCAgent32.exe
    Start test in MTM on client machine using test setting which trigger the data collector (diagnostic data adapter)
    and finally hit a brake point in your code...
    Thank you,
    Ana

  • Whats the difference between data in customer data management dashbord and customers under sales?

    Hi,
       In the navigator>sales i have a menu customers, there i can see accounts (customers) and contacts, however in the navigator>Customer data management under menu Customer data management dashboard i have organizations and persons. Whats the difference between the information shown in one place and in the other? Why is the information shown with different names in different menus?
    thanks

    Hi, The present project has the requirement to Delete the data from Sales Force objects.Have following set up: 1. Parent Objects2. Child Objects3. Cloud Data Synchronization tasks to delete these objects Parent and Child have LOOKUP relationships between them.Deleing data from Child objects did not give any error. Tried 2 scenarios to delete data from Parent object: Scenario 1: Tried to delete to data from PARENT first before deleting CHILD.                  Result: Failed Scenario 2: Tried to delete to data from PARENT after deleting CHILD.                  Result: Failed Error mesge received in both cases: "Error loading into target [SF_Object] : Error received from salesforce.com. Fields []. Status code [DUPLICATE_COMM_NICKNAME]. Message [Too many records to cascade delete or set null]." Kindly help to resolve this error and suggest a method to delete data from PARENT salesforce objects. Please feel free to ask for more inputs, if required.

  • During PO creation vendor material no field should be populated using BADI

    Hi,
    I have created on PR and using PR I am trying to create PO. But one field vendor material no  remains blank when giving vendor at the top vendor field.
    So my requirement is the vendor material no field in item overview should be populated regardless filling vendor field at the top.
    So this functionality can be achieved by BADI or User exit.
    So any one give the proper suggestion to get the value in the vendor material no field while creating PO.
    Waiting for quick response.
    Best Regards,
    Bansi

    Hi,
    use the badi ME_PROCESS_PO_CUST in that method PROCESS_ITEM....
    use GET_DATA method like im_item->get_data.
    and modify the value anduse set_data ...
    Thanks,
    Shailaja Ainala.

  • Blocked stock field should get populated in ME21N

    Hi ,
    When i check the Returns check box,the stock type should be changed from Unrestricted use to blocked stock in ME21N transaction.
    Could you please tell me how to do this?
    Any possibility with Badi or user exit?
    Thanks
    Srini

    BADI ME_PROCESS_PO_CUST .
    here you can add the Logic .

  • MDM 5.5 SP02 Error during import of Customer Data

    Hello,
    I am a beginner in MDM 5.5.
    I tried to import the customer data via the import manager. I got the error message:
    <b>" E1KNA1M wasn't found in the source "</b>
    What's wrong with this repository ? I used the DEBMDM06 for extraction out of an R/3 4.7. The XML-file includes this segment !
    Can someone help me ?
    Thanks in advance.
    Michael

    Ronen,
    Thanks for quick response.
    Let me fill you in with the my environment info. I am using MDM SP 02 with SQL Server on Windows XP.
    I am following the SAP NetWeaver MDM 5.5 SP02
    Scenario Configuration Guide to import customer Data from R/3 to MDM repository via XI, idoc.
    According to guide I was able to extract the Customer data from R/3, and using XI (and FTP) I was able to get the data file customer.dat (which is in XML format).
    In console I tried to setup the client system as a you specified, but here is what I see in my MDM console
    Name: MDC (R/3 4.6 DEBMDM05)
    Code: MDC (R/3 4.6 DEBMDM05)
    Client System:  Import [ for this field it shows me Import, Export, Import/Export options only and not the inbound/outbound as you specified]. If I select option Import then only it will show this Client System while defining the Port.
    For port definition it shows following fields
    [Port]
    Name : R3Import
    Code : R3Import
    Type : Inbound
    Data Definition:  [ dropdown options are Access, Excel, XML, Flat Text, XML Schema. Were you referring this field as the 'Format' field.]
    XML Schema: I selected DEBMDM05 from dropdown.
    Client System : MDC (R/3 4.6 DEBMDM05)
    Map:  [ dropdown does not have any values to select and I can not type in that field]
    If you are still with me, what are the correct settings for Client system and port?
    How those settings are being used in Import Manager?
    On Connect to Source dialogue screen what should I select/enter for following fields?
    Type :  [options are Access, Excel, ODBC, Oracle, Port, SQL Server, XML, XML Schema]
    Should I be using Client System and Port or  XML/XML Schema????
    Client System: MDC (R/3 4.6 DEBMDM05)
    Port :  [ Why this value 'R3Import' is grayed out??? ]
    Please help.
    Abhay

  • Date Profile with Tasks

    Is it  possible to implement the Date Profile functionality for the Tasks in SAP CRM so that the completion date and time are set automatically by the system, when 'completed' status is set on the Task.
    We want to achieve this, can someone guide how to do this.

    Hi
    Venkat,
    If you have changed a date or duration, the system recalculates all dependent dates. To do this, the system uses the calculation sequence assigned to the date type in Customizing.
    Check the date profiles and date rules for the transactions
    You need to select the date profile and go to date types and select the date type and click on the screen area -dates and you need to enter the number for the display position to view your date type in the transaction otherwise the display of date types will be visible in the transaction type
    The path for date profile is SPRO- Basic functions --Date management --Define date profile
    Just a suggestion,if  you have assigned it to transaction types and item category, so may be after entering the item in the transaction, you might be able to see the dates at header.
    Please read below which is source from SAP Help.
    For every transaction at the header and/ or item level, you can define which date type you need for the transaction, that is, which item type you need. By doing this, you avoid saving unnecessary date types on the database. The same applies for durations (for example, contract run time).
    To assign dates and durations to an item category, you group the desired date types and durations together in a date profile and assign this to a transaction type or an item type.
    Link as http://help.sap.com/saphelpcrm50/helpdata/en/d4/fce93a29768802e10000000a11402f/frameset.htm_
    Best Regards
    Do keep me posted on this
    Naveen.
    Reward points if helpful

  • Query on Date profile

    Hi
    I have a Date profile with Date types as
    ToDo By
    Billing Date
    Billing Doc. Creation Date
    Duedate alert level 1
    Duedate alert level 2
    Duedate alert level 3
    Duration Until First Reaction
    At transaction level, I am able to edit only 2nd and 3rd. However the other date types are greyed out. I have checked the date types and found for 2nd and 3rd, under date rules, "DETERMINE ONLY ONCE" check box is not activated. While for others, it is activated.
    I then unchecked for other date type the same check box. still not able to see them in edit mode at transaction level. Please help me.
    Regards,
    Rajesh

    Hi Rajesh,
    If u want to make all u r date types editable then just assign Screen Areas: Dates to all u r date type, under same u'll see the fiels only display field just uncheck it for all u r datetypes, u'll see all u r date type becomes editable.
    Regards,
    DD's

Maybe you are looking for

  • How do I transfer iPod touch and iPad to a new computer?

    I have both an iPod touch 3G 64GB (iPhone OS 3.1.1) and an iPad 32GB WiFi (iOS 3.2). I need to transfer them to a new computer (Windows 7 unfortunately, because I can't afford to replace all my software and the computer yet) I can I do that and not l

  • Why do my files not appear in Finder despite being otherwise accessible?

    Last night I downloaded a bunch of html files via ftp so I could work on a site locally using MAMP. The site appears in my web browser at localhost:8888/sitename/ and I can navigate round it without any problem but when I went to open the individual

  • Motion Guide + AS3

    I'm designing a game in which a player rides a bike around a track. The game needs to show a "lap indicator" that displays the player's progress along an irregularly-shaped course. I'm guessing the best way to do this will be to copy the layer that h

  • Iphone 3GS Screen Has A Yellow Tinge Help

    Hi I looked at my iphone today and it looked a bit yellowish and i compared it to my friends one and it was clear and my one has a yellow tinge to it and im wondering how it could of got their or how do i get rid of it Hopefully someone will manage t

  • I cant watch videos - help please...... can hear the music video but not c

    i was hoping someone can help me. im new to ipods and itunes. and i downloaded itunes and quicktime and i downloaded a music video in itunes and when i play it in itunes i get a green box and can hear what is going on but not see anything. Any ideas?