Add 1 factory week to result

Hi,
I need to add one factory calendar week to the date. Below isn't working.
DATA: DATE type scal-date.
DATA: WEEK type scal-week.
CALL FUNCTION 'DATE_CONVERT_TO_FACTORYDATE'
EXPORTING
CORRECT_OPTION = '+'
DATE = COMM_STRUCTURE-REQ_DATE
FACTORY_CALENDAR_ID = 'PL'
IMPORTING
DATE = DATE .
RESULT = date + WEEK .
Br,
Sonni

Hi Sonni,
Have a look at the documentation of the FM and use the where-used button to see how that FM is called elsewhere, this will show you how to do it.
DATE_CONVERT_TO_FACTORYDATE with CORRECT_OPTION = '+' delivers the next working day after the data you supply it with.
You mention you want to add a week. Are you sure that is the right definition, or would you rather add 5 working days?
In that case you could call this FM in a DO ENDO construct 5 times. Or maybe you find another FM that gives you the option to add 5 working days, which would be smarter.
You could also add 7 days to your date before calling the FM once, this should give you the following working days in a weeks time. Lots of options to do this, really
Sorry I haven't got a system at hand to supply you with other FM names.
Looking at your code without a system at hand, I would guess the line with RESULT = DATE + WEEK. is not working anyhow.
Best,
Ralf

Similar Messages

  • Add column to my tag result list

    Hi experts,
    In our new service desk tool (crm_ui), we want to add a column to a result list, but I haven't a clue how to add it.
    What we do is: we tag certain incidents with a term, and then we follow them up by adding the 'tag' widget on our start page.
    When we click on a certain tag that we used multiple times, we see a result list.
    But we only see two collums in this list: "operation number" and "description".
    How to add a third column: "status"?? I cannot find it anywhere in our viewconfiguration. There are no available fields with this label for the ZSOLMANPRO role.
    thx

    Hello Kenny,
    It is quite complex and you might not be able to archieve it by your own. It is not an ABAP-view. The steps wouold be like that:
    1. Open you view (screen) in WebUI (CRMUI).
    2. Click on an editable field or hyperlink in the view and press F2 until you get a popup.
    3. Read which component and view this is.
    4. Go to transaction BSP_WD_CMPWB and enter your component from step 3 and select the right view.
    5. Check in the configuration (the right one as shown in the popup of step 2) if you can add a field. I thought you already did that but eventually you did not.
    6. If the right field is not available you might try to add the attribute to the context node but this is more complex.
    Eventually steps 1-5 are already enough. All of this is WebUI configuration and if you looked your your view in SM34 it might indicate that you are not really familiar with it. So be careful.
    Best regards,
    Thomas Wagner

  • How to add a Field to the Result List in Activity

    Hello Experts !
    We are on CRM 7.0. I want to add a field to the Result List of Activity (Component: BT126S_APPT / View: ApptSR). This field is the address of the "Employee Responsible".
    So, how can I add a field to the Result List? AET is not a relevant tool for us because we don't want to create an attribute it already exist in the BOL. We just have to enhance the result list with BOL existing attributes.
    Also, after I add the field, I will need to populate my field with Data via some method.
    Thanks in Advance to all !
    Mariano.-
    SAP.

    Hi Mariano,
    The component was missing some technical data. Implement sap notes 1226612, 1363752, and then follow the manual procedure shown below.
    u2022     Execute transaction SE11.
    u2022     Choose the Radio button "Data Type" and enter value
                  "CRMST_QUERY_R_ACT_BTIL" in the Data Type field.
    u2022     Click on "Change" button.
    u2022     Position the cursor before the Includes added to this structure. Click
                 On the "+" button to add a new attribute.
    u2022     Enter the following details in the newly added blank row.
         Component: PERSON_RESP_LIST
         Component Type: CRMT_PERSON_RESP_LIST.
    u2022     Save the changes and activate the structure.
    u2022     Add the "Employee Responsible" field to the View configuration.
    u2022     Open the BSP application BT126S_APPT.
    u2022     Double-click on the view BT126S_APPT/ApptSR in the left side panel.
    u2022     Choose tab "Configuration" in right side panel.
    u2022     Choose the right configuration by using the "Choose Configuration" button.
    u2022     Click on the Edit button.
    u2022     Add the "Employee Responsible" attribute from the "Available fields" list to "Displayed fields" list.
    u2022     Save the changes
    Regards
    Krishna

  • Does Spotlight on Mac allow us to add a website to search results for Spotlight?

    Does Spotlight on Mac allow us to add a website to search results for Spotlight?

    In System Preferences>Spotlight you can check the box that includes Bing Web searches in the Spotlight search results.
    Also see:
    http://appleinsider.com/articles/14/10/24/getting-the-most-out-of-the-revamped-o s-x-spotlight-search-in-yosemite

  • Add "Save" button to search results

    Hi,
    a customer would like to add a "Save" button to search results to enable users to download documents in KD instead of opening them.
    Results can be for instance from a crawled file system.
    How can I do it?
    Thanks.
    Jacopo

    As long as your list is bring crawled, which it must be, your custom columns should get mapped to managed properties. You can now update your Search Results Web Part's Item Display Template to retrieve this additional particular managed property,
    and then display it if there is a value.
    Eric Overfield - PixelMill -
    ericoverfield.com -
    @EricOverfield
    The library is being crawled and I added the column to "Managed Properties" on the search settings on O365 and mapped it to the actual column. Now I don't know how to add it on the "Search Result" Webpart to include the Column Property before
    displaying the name of the document
    AJ MCTS: SP 2010 Configuration MCSA: Windows 7 If you find this post useful kindly please mark it as an answer :) TY

  • How can add Hours in datetime and result is also in datetime?

    Hi Friends,
    How can add Hours in datetime and result is also in datetime?
    I want such as 22-11-2006 10:30=22-11-2006 08:30+2 from dual
    Select (22-11-2006 08:30+2) from dual;
    And Result should be in this form 22-11-2006 10:30
    Best regards,
    Shahzad

    sql>
    select col1, col1 + interval '1' hour
    from t;
    COL1 COL1+INTERVAL'1'HOUR
    04-DEC-06 12.21.55.000000 PM  04-DEC-06 01.21.55.000000000 PM                                                                                                                                                                                                                                                                                                                               

  • [svn:osmf:] 16975: Fix bug FM-964, add media factory item for RTMFP multicast and remove the item from OSMFPlayer

    Revision: 16975
    Revision: 16975
    Author:   [email protected]
    Date:     2010-07-19 15:20:00 -0700 (Mon, 19 Jul 2010)
    Log Message:
    Fix bug FM-964, add media factory item for RTMFP multicast and remove the item from OSMFPlayer
    Ticket Links:
        http://bugs.adobe.com/jira/browse/FM-964
    Modified Paths:
        osmf/trunk/apps/samples/framework/OSMFPlayer/src/OSMFPlayer.as
        osmf/trunk/framework/OSMF/org/osmf/media/DefaultMediaFactory.as

    Welcome guy -
    Unless you are using Spry menus as a learning experience, you should move forward to a menus system that will display properly on the millions of portable devices that won't work with Spry which was deprecated 2 years ago.
    Many are using JQuery menus or pure HTML/CSS menus.
    If you wish to continue your Spry for learning experience, we'll be glad to assist; please let us know.
    By the way, your submenus are not showing because you need to add the red value to this rule in your vertical CSS
    ul.MenuBarVertical ul.MenuBarSubmenuVisible{
        width: 220px;
        left: 180px;

  • Add number of week ...

    .. to the small calendar that can be opened in every date field would be just a small change.
    Business worlds - at least ours - is always talking in week numbers.
    Thanks
    Franz

    And please add it also in the marketing documents on row level.
    Our current solution is with a query with is running every minute update the weeknumbers on rowlevel which causes error messages.
    Regards,
    Marc

  • OIM 11g: Add process tasks as a result of a Request?

    Is it possible in OIM 11g to have the result of a Request be that 1 or more process tasks are added to an an account's process?
    The out-of-the-box Request framework seems to be very attribute driven (Modify Provisioned Resource, Self Modify Provisioned Resource), and I suppose we could add an attribute to trigger process tasks to be added, however, without going into detail, we'd really just like to be able to add the process task with no process form updates.
    Has anyone attempted anything like this?

    Sure you can.  Create a plugin on the request status:
    <plugin pluginclass="com.custom.eventhandlers.request.RequestCompleted" version="1.0" name="RequestCompleted">
    <metadata name="status">
    <value>Request Completed</value>
    </metadata>
    </plugin>
    In your code, using benEntity.getEntityKey() you can get the "Users-Object Instance For User.Key" value for the instance the request is for.  Then search the user's existing instances of that resource object type (findObjects) and match it to the "Users-Object Instance For User.Key" value from the result set.  Then get the process instance key.  From there you can use this code to get the task details:
    Map taskMap = new HashMap();
    String taskName = map.get(resourceName);
    taskMap.put("Process Definition.Tasks.Task Name",taskName);
    tcResultSet rs =  taskOper.getTaskDetail(processInstanceKey,taskMap);
    long taskKey = rs.getLongValue("Process Definition.Tasks.Key");
    And finally this code to insert the task:
    provIntf.addProcessTaskInstance(taskKey, processInstanceKey);
    And done!
    -Kevin

  • IC WebClient: Add new field case management result view.

    Hello Experts,
    I need to add a new field in the view CaseAResult.htm, this field is EXT_REF and It is in the structure of CmgCaseStandard (I see in the GENIL_MODEL_BROWSER) I append the field in the view CaseASearch.htm with the transaction BSP_WD_WORKBENCH and change the layout, change the table, but when I try to see the data I see only NULL and the rest of the data is right, I try to add another field with the obect CmgCase and it`s the same.
    Also what is the object for search a BP in the view Inbox.
    Please help me!!!!
    Regards
    Rick

    Search for AET (Application Enhancement Tool) on SDN to add search/Result Attributes.
    Regards,
    Harshit

  • Can we add logo to sapscript Form Result while coverting to PDF?

    Hi Expert,
                    My requirement is, I have to covert Form Result to PDF.but while converting  Form result to OTF , Can we Add logo to the OTF data? Can logo be saved in text format? only then we can add logo to OTF data probably.
    Please Help.
      Thanks in Advance

    As you have probably searched the forum, you saw that you can get the sapscript result as OTF.
    Graphics are automatically handled by SAP which stores them in the OTF (RD and BM lines).
    And then you convert OTF to PDF as usually.
    So, where is the question?

  • How do I add a column to the Result for BT111S_OPPT

    Hi,
    I have a requirement to include a header level partner in the Results view of BT111S_OPPT.  It is already possible to search by this partner function but the partner column is not available on the view 'BT111S_OPPT/Result'.  My research has pointed me toward using the "ITERATOR" but a related blog was not available and I must admit that I am rather confused as to how to use the "ITERATOR".  I am assuming that I can use it to GET->CURRENT but then I don't know what to do after that.
    Any help is appreciated as we are under time pressure.  Thanks.
    Cheers,
    Paul

    Hi,
    iterators are normally used to convert data in lists which are already evaluated.
    In your case you better add a new column to the result list node and implement the getter with your own
    code. This would look quite similar like (just an example)
    METHOD get_po_number_ship.
      DATA:
            lv_po_number_ship TYPE crmt_po_number_ship,
            lr_current TYPE REF TO if_bol_bo_property_access,
            lr_entity  TYPE REF TO cl_crm_bol_entity.
      IF iterator IS BOUND.
        lr_current = iterator->get_current( ).
      ELSE.
        lr_current = collection_wrapper->get_current( ).
      ENDIF.
      TRY.
          lr_entity ?= lr_current.
          lr_entity ?= lr_entity->get_related_entity( iv_relation_name = 'BTItemSalesSet' ).
          IF lr_entity IS BOUND.
            lr_entity->get_property_as_value( EXPORTING iv_attr_name = 'PO_NUMBER_SHIP'
                                              IMPORTING ev_result    = lv_po_number_ship ).
          ENDIF.
        CATCH cx_sy_ref_is_initial.
          RETURN.
      ENDTRY.
      value = lv_po_number_ship.
    ENDMETHOD.
    Regards,
    Wolfhard

  • Need to add Menu Item to Search Result Template page

    Hi Guys,
    I am using UCM 11g and I am customizing serach result page.
    When we do search on UCM, we get a search result page. This search result page has a two drop downs (on the top right) "Change View" and "Search Action" in the blue strip.
    I have to add one customized dropdown option in "Publish Selected", it worked well with 10g by overriding searchapi_result_menus_setup include but not working in 11G.
    Appreciate your help on this, Thank you
    Thanks,
    Ashok

    Reunion1980 wrote:
    ..I need to add item "About" to frame's system menu.
    Is there any way to solve this problem?Try this link - [http://pscode.org/jh/bin/helpsetter-apidocs.jnlp]. It is sand-boxed, like an applet. It should prompt if you want to create shortcuts, click OK/Yes.
    After you run it, open the 'All Programs'/system menu. There should be an item under the 'JavaHelp System' menu for the 'JavaHelp System JavaDocs'. That link is to launch the application again. [Java Web Start|http://www.java.com/en/download/faq/java_webstart.xml] *(<- link)* is what installs the menus. JWS can also install menus specifically for application help.
    Older applications declared the required menu items and desktop shortcut in the JNLP launch file, but JRE 1.6.0_18+ offers the IntegrationService *(<- link)* to applications, and provides feedback on success/failure. Note that some systems will ignore requests for desktop integration. Ubuntu Linux will allow for the creation of desktop shortcuts, but silently ignore requests for menu items.

  • I have been using apple iphone five s from du and it has some problem i have given it to the service center but they said your phone is locked by apple and i have given one week for result its one week already no response from apple which make me disgusti

    i am here to share my feeling about apple and its co partner
    i have been using apple iphone five s since five month i am happy with it but recently my iphone have some problem with its ear pices then i went to apple service center in abu dhabi
    they took my phone for one day and tell me come for next day all will be okey
    when i went to next day they say that your iclould account has been locked by apple so you need to wait for one week time
    i have already a week and now when i went to meet them today they said just wait till apple reply to them and they are still waiting for that
    what the disgusting situation can any one wait to have their phone for fifteen days in this world
    such a well known company might not be given such a poor service
    where can i contact for that please advice me

    If there is a problem with your AppleID, you - and not the provider - must
    straighten out the matter.
    AppleID disabled:
    http://support.apple.com/kb/TS2446
    http://www.apple.com/support/itunes/contact/
    https://getsupport.apple.com/Issues.action

  • How to modify horizontal​.xsl to add few columns in the Result table?

    I would like to add few input parameters from my parameter variables in my report table using horizontal.xsl. It is like add columns to the table. Can someone advise?
    thanks
    rgds,
    toko

    toko,
    maybe you want to take a look here.
    hope this helps,
    Norbert B.
    CEO: What exactly is stopping us from doing this?
    Expert: Geometry
    Marketing Manager: Just ignore it.

Maybe you are looking for

  • Combobox performance is very slow

    Hello, Can anyone please provide some suggestions on my issue. I have implemented a combobox item using the plugin below and it was a very helpful plugin. http://www.apex-plugin.com/oracle-apex-plugins/odtug-competition/combobox_208.html My issue is

  • My iTunes is not working

    Hai Everybody , I have problem with my  iTunes ever since i updated My OS to Yosemite.Could anybody Just help me out

  • Always oats.ear deployement failed in weblogic server

    Hi, Iam new to OATS. I am getting the below error in weblogic server when I am trying to open the OTM through browser. Can any one help me? [HTTP:101216]Servlet: "struts-action" failed to preload on startup in Web application: "olt". javax.ejb.EJBExc

  • Slim DVD case template

    Anyone have access to a slim dvd insert template? All I'm finding is templates for the normal dvd cases. Thanks!

  • Arboshop authentication  request

    Hi at apparently  random points when i am browsing using safari  on my fully up to date iPad air i get a popup requesting authentication to www.arboshp.de to my knowledge i have never been on this site i've tried clearing all browser data and have re