VA42 user exit to update contract start and end dates at Item level

Hi  Experts,
                  I need to update contract start and end dates at Item level in 'VA42' transaction, for this i am using user-exit 'USEREXIT_FIELD_MODIFICATION' in the include 'MV45AFZZ'. i am able  to display the data into item level through my coding but the data is not getting updated into 'VEDA'
Note: No need to change contract start date and end date in header level. Only at item level i want to change dates.
Thanks,
Sateesh.

Thanks For your reply Vikram,
      i tried with 'USEREXIT_MOVE_FIELD_TO_VBAP' user-exit earlier it self its not working. Can you suggest me any another way how we can achieve this functionality. modification of Contract start date and end date in only item level. 
'USEREXIT_MOVE_FIELD_TO_VBAP':
FORM USEREXIT_MOVE_FIELD_TO_VBAP.
"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""$"$\SE:(3) Form USEREXIT_MOVE_FIELD_TO_VBAP, Start                                                                                                           A
*$*$-Start: (3)---------------------------------------------------------------------------------$*$*
ENHANCEMENT 1  ZSD_CONT_DATE.    "active version
DATA : lv_var TYPE CHAR10.
  lv_var = '0040000219'.
  if sy-tcode = 'VA42'.
IF VBAK-VBELN EQ lv_var.
VEDA-VBEGDAT = '20140502'.
  XVEDA-UPDKZ = 'X'.
VEDA-VENDDAT = '20140602'.
  XVEDA-UPDKZ = 'X'.
ENDIF.
ENDIF.
ENDENHANCEMENT.

Similar Messages

  • VA42 user exit to update contract start and end dates at header

    Hi.
    My requirement : In VA42, if a user changes a contract end date at item level, I want the change to be reflected at header level automatically.
    I have looked in MV45AFZZ, USEREXIT_SAVE_DOCUMENT and USEREXIT_SAVE_DOCUMENT_PREPARE. I am unable to affect the contract end date in those user exits, whatever I put in VEDA-VENDDAT or XVEDA-VENDDAT or whateverVEDA-VENDDAT, does not have any effect on the actual contract dates.
    Can anyone help?
    Please note that we are running 46C.
    Thank you.

    Thanks For your reply Vikram,
          i tried with 'USEREXIT_MOVE_FIELD_TO_VBAP' user-exit earlier it self its not working. Can you suggest me any another way how we can achieve this functionality. modification of Contract start date and end date in only item level. 
    'USEREXIT_MOVE_FIELD_TO_VBAP':
    FORM USEREXIT_MOVE_FIELD_TO_VBAP.
    """""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""$"$\SE:(3) Form USEREXIT_MOVE_FIELD_TO_VBAP, Start                                                                                                           A
    *$*$-Start: (3)---------------------------------------------------------------------------------$*$*
    ENHANCEMENT 1  ZSD_CONT_DATE.    "active version
    DATA : lv_var TYPE CHAR10.
      lv_var = '0040000219'.
      if sy-tcode = 'VA42'.
    IF VBAK-VBELN EQ lv_var.
    VEDA-VBEGDAT = '20140502'.
      XVEDA-UPDKZ = 'X'.
    VEDA-VENDDAT = '20140602'.
      XVEDA-UPDKZ = 'X'.
    ENDIF.
    ENDIF.
    ENDENHANCEMENT.

  • Update Contract Start and End dates via BAPI_SALESORDER_CREATEFROMDAT2

    Hi Experts.
    We are successfully using BAPI_SALESORDER_CREATEFROMDAT2 to create sales order.
    Only problem is that the contract start and end date do not get updated.
    We are passing that in ORDER_HEADER_in-CT_VALID_F and ORDER_HEADER_IN-CT_VALID_T.
    After debugging, I found that there is one more table SALES_CONTRACT_IN in SD_SALESDOCUMENT_CREATE. Updating the values in that table works.
    But the problem is this table is not available in BAPI_SALESORDER_CREATEFROMDAT2. How to update Contract start and end dates from this FM ?
    I could not find anything in the search of this forums. So I guess this is not an issue and I am doing something wrong. Can someone suggest to me please?
    Thanks in adv.
    Aishi

    Are you creating a contract or a sales order?

  • Contract Start and End Dates in Sales Order

    Hi
    I have a situation where a service item is bundled with a deliverable item. The order is as follows
    Line Item    Mat                                                                 Qty            Higher Level Item               
    10              Item No.1 (Physical Item)                                  1             
    20              Item No.2 (Service Item)                                    1               10
    For the deliverable item 10 , Revenue is recognized immediately. For the Service item no.20 , revenue needs to be recognized over a period of 1 Year (It is a 1 year service contract).
    The whole order is created via BAPI from an external 3rd party order capture system.
    In order to do revenue recognition properly for service items , SAP I believe has 2 options
    1. Based on Billing plan dates
    2. Based on contract start dates
    Since order with both the line items need to produce 1 invoice, I cannot use billing plan . The only other option is to use contract start and end dates. I have enabled contract data at the sales order level. So when I enter the contract start and end dates manually at the line item level and set the item category to recognize revenue based on contract start and end dates based on time-based revenue recognition it is working fine.
    But I need a way to automate the population of contract start and end dates at the line item level. My ABAP guy is not able to find a user exit that can change the XVEDA or any VEDA structure in any of the user exits.
    I guess the SAP SD gurus out there would have definitely dealt with a situation of product bundling (Service and non-service items in the same sales order with one billing document , but seperate revenue recognition for service and non-service items)
    Please help.
    Thnx
    Siva

    Hi Siva,
    Kindly let me know what criteria you want to give for automatic population of start date of contract...
    Standard SAP comes with a few baseline dates for contract start date and we can control this from customization itself. 
    01     Today's date
    02     Contract start date
    04     Acceptance date
    05     Installation date
    06     Date contract signed
    07     Billing date/Invoice date
    08     CntrctStDate+contract duration
    09     Contract end date
    If you have some criteria which is not covered here, then let me know and i will try to provide some help then.
    Thanks
    Kapil Sharma

  • SAP CRM Tables and Fields for Contract start and End dates

    Hi Experts,
    Please Provide me SAP CRM Tables and Field names for the below.
    SAP CRM Contracts start date and End date
    SAP CRM Conditions(PROO, K007 etc....) records start and End Date.
    Thanks and Regards,
    Teja

    correction
    10 Replies Latest reply: 24 May, 2013 8:38 AM by nishant Vasudev  
    Tweet
    SAP CRM Tables and Fields for Contract start and End dates
    This question has been Answered.
    Teja Dhar 12 Oct, 2009 8:03 PM  
    Currently Being Moderated
    Hi Experts,
    Please Provide me SAP CRM Tables and Field names for the below.
    SAP CRM Contracts start date and End date
    SAP CRM Conditions(PROO, K007 etc....) records start and End Date.
    Thanks and Regards,
    Teja
    Correct Answer by Sreekantha Gorla  on Oct 22, 2009 8:22 PM
    Hi,
    dates will be stores in the table 'SCAPPTSEG'.
    I double checked it. This table stores all the date types of one order transactions...
    The relationship is as follows..
    CRMD_ORDERADM_H- guid = crmd_link-guid_hi
    crmd_link-guid_set = SCAPPTSEG-APPL_GUID.
    Thanks and regards,
    Sreekanth
    <:footer>See the answer in context
    6281 Views
    Topics: Customer Relationship Management
    Reply
    Average User Rating
    0
    (0 ratings)
    My Rating:
      Rating Saved!
    Comment on your rating
      Re: SAP CRM Tables and Fields for Contract start and End dates
    Robert Jesionowski 14 Oct, 2009 2:23 PM (in response to Teja Dhar)  
    Currently Being Moderated
        Hi, 
    you should try with FM: CRM_DATES_READ_SINGLE_OB or CRM_DATES_READ_DB.
    There is something in table SCAPPT and SCGENAPPT.
    Regards, R
    Report Abuse
    Like (0)
    Reply
      Re: SAP CRM Tables and Fields for Contract start and End dates
    Teja Dhar 22 Oct, 2009 5:30 PM (in response to Robert Jesionowski)  
    Currently Being Moderated
        Hi Robert, 
    I am not able to find contract start date and End dates in the tables SCAPPT and SCGENAPPT.
    Can you suggest some relevant tables.
    Best Regards,
    Teja
    Report Abuse
    Like (0)
    Reply
      Re: SAP CRM Tables and Fields for Contract start and End dates
    Sreekantha Gorla 22 Oct, 2009 2:35 PM (in response to Teja Dhar)  
    Currently Being Moderated
        Hi, 
    Table SCAPPTSEG stores the contract start and end dates.
    Thanks,
    Sreekanth
    Report Abuse
    Like (0)
    Reply
      Re: SAP CRM Tables and Fields for Contract start and End dates
    Teja Dhar 22 Oct, 2009 5:32 PM (in response to Sreekantha Gorla)  
    Currently Being Moderated
        Hi Sreekanth, 
    I am not able to find contract start date and End dates in the table SCAPPTSEG.This is for appointments.
    Can you suggest some relevant tables.
    Best Regards,
    Teja
    Report Abuse
    Like (0)
    Reply
    Correct AnswerRe: SAP CRM Tables and Fields for Contract start and End dates
    Sreekantha Gorla 22 Oct, 2009 8:22 PM (in response to Teja Dhar)  
    Currently Being Moderated
        Hi, 
    dates will be stores in the table 'SCAPPTSEG'.
    I double checked it. This table stores all the date types of one order transactions...
    The relationship is as follows..
    CRMD_ORDERADM_H- guid = crmd_link-guid_hi
    crmd_link-guid_set = SCAPPTSEG-APPL_GUID.
    Thanks and regards,
    Sreekanth
    Report Abuse
    Like (0)
    Reply
      Re: SAP CRM Tables and Fields for Contract start and End dates
    Wim Olieman 23 Oct, 2009 9:12 AM (in response to Sreekantha Gorla)  
    Currently Being Moderated
        Hi, 
    I can tell you where the pricing records are saved, replicated from ECC.
    The data from ECC table Axxx (e.g. A304) is replicated to CRM table
    CNCCRMPRSAPxxx (e.g. CNCCRMPRSAP304).
    Here you can find fields TIMESTAMP_TO and TIMESTAMP_FROM.
    About the dates: what Sreekantha Gorla stated, about table 'SCAPPTSEG' is correct.
    What might help is to execute program "CRM_ORDER_READ". Here you can find
    the relevant entries also.
    regards,
    Wim
    Report Abuse
    Like (0)
    Reply
      Re: SAP CRM Tables and Fields for Contract start and End dates
    Teja Dhar 23 Oct, 2009 4:59 PM (in response to Teja Dhar)  
    Currently Being Moderated
        Hi Experts, 
    Thanks a lot for your support.My problem got resolved.
    Best Regards,
    Teja
    Report Abuse
    Like (0)
    Reply
      Re: SAP CRM Tables and Fields for Contract start and End dates
    rajesh gadamsetty 27 Nov, 2009 12:29 PM (in response to Teja Dhar)  
    Currently Being Moderated
        Hi Teja 
    Please let me know how you got the dates. i got the same requirement
    Report Abuse
    Like (0)
    Reply
    Correction on above mail.
    Hi Sanjay,
    Can you please help me to find the contract st art date and end date fetching from the table as below
    ITEM DATES:
    Select guid_set from table CRMD_LINK where guid_hi              =  CRMD_ORDER_I-GUID AND
                                                                              OBJTYPE_HI     =  '06'
                                                                              OBJTYPE_SET  =  '30'.
    Select * from SCAPPTSEG where APPL_GUID = guid_set.
    as from the table scapptseg has some unusal fields which fields to select to get the start date and end date and on what condition and isuppose we need to convert als the same
    pls suggest further on same
    regards
    Arora

  • BT Broadband Contract Start and End Date

    Where can I find my contract start and end date online ?

    conrad wrote:
    You can, by starting a new order for BB and entering phone no + post code - no need for email address - you then go to choose a package page which shows your current package  details at the top of the page
    Obviously you don't need to go any further than that page
    Conrad, thank you for your suggestion. I gave your suggestion a try but initially got a technical error and then appeared to be getting closer and closer to completing an order without the required information coming up so I chickened out. This also was fraught with difficulty as the cancel button seemed ineffective.
    I think I may have to use imjolly suggestions.

  • Contract start and end date in BAPI_CONTRACT_CREATEFROMDATA

    HI,
    I am using BAPI_CONTRACT_CREATEFROMDATA to create a contract from within a custom ABAP program. However I cannot figure out how to get the contract start and end dates into the contract header. I know that you can enter them into the ONTRACT_DATA_IN table parameter but these dates only appear on the line items and not the header.
    Does anyone know which parameters on the function map to the contract header start and end dates.
    Thanks.

    Hi,
    there are also fields QT_VALID_F and QT_VALID_T for quotation or inquiry. So it looks like for different contract types you need to use different fields. This BAPI calls FM SD_SALESDOCUMENT_CREATE which has subroutine ms_move_header_in which maps from BAPI fields to internal fields. Here is a small part of this routine.
      MOVE order_header_in-qt_valid_f       TO e_vbakkom-angdt.
      MOVE order_header_in-qt_valid_t       TO e_vbakkom-bnddt.
      MOVE order_header_in-ct_valid_f       TO e_vbakkom-guebg.
      MOVE order_header_in-ct_valid_t       TO e_vbakkom-gueen.
    When I check technical fields for the screen  fields "Valid from" and "Valid to" in VA43 I get names GUEBG and GUEEN. So it still looks like you should use CT_VALID_F and CT_VALID_T.
    I forgot to mention you can still debug BAPI to figure out where the problem is.
    Good luck
    Edited by: Martin Voros on Sep 11, 2009 9:57 AM

  • Start and End dates for users in Enterprise portal

    Hi Expert,
    I have to maintain start and end dates for around 200 users in 4 different Java systems. When I export the file of users it does not capture the validity fields. Is there a way/script to automate this? Otherwise I will have to do it manually.

    Hello
    Please check below URL for User Import Format:
    http://help.sap.com/saphelp_nw70ehp1/helpdata/en/48/abdd83c3333205e10000000a42189c/content.htm?frameset=/en/48/a96f43db653206e10000000a42189c/frameset.htm&current_toc=/en/43/05e450d1cd6e95e10000000a11466f/plain.htm&node_id=2802&show_children=true#jump2822
    Regards,
    Tapan Goyal

  • Report for Validity Start and End Date in PO

    Dear All
    Is there any report where I can get PO validity start and end date which user input in addtional data header tab of PO?
    Regards
    Satish Kumar

    Hi,
    Yes, It is available standard report using T-code ME2N - Purchasing Document (PO) Per Document Number, enter the T-code and provide the following input data's are as follows.
    Scope of List                 :  ALV ( for Ms-Excel format report)
    Plant                               :   __________ to __________ (if required)
    Document Date              : ____________ to ___________ (if Required)
    Execute the report shown by default in excel format and if required PO validity start and end data, you have to select Change Layout button and open new window options screen right side field option as Validity Per.Start, Validity Period End, Commutative number field data's are selected and click <--- arrow button and then click bottom tick marked button. Now, the report shown your requirement.
    Hope, it is useful for you,
    Regards,
    K.Rajendran

  • Schedule type LineChart with clients and unavailable start and end dates

    I have been working on trying to get something in flex which will display a list of clients and their unavailability start and end dates.   I have attempted the line chart and the HLOC chart but have not seen success.  I do have the H or V grids working fine.  But getting the data to display in a line graph based upon start date and end date has been my challenge.  any suggestions
    Current Code:
        <s:Label x="0" y="5" text="Min Date" height="24" fontFamily="Times New Roman" verticalAlign="middle"/>
        <mx:DateField id="minDateField"
                      x="50" y="5"
                      formatString="MM-DD-YYYY"
                      selectedDate="{minDate}"
                      change="minDatefield_changeHandler(event)"/>
        <s:Label x="150"  y="5" text="Max Date" height="24" fontFamily="Times New Roman" verticalAlign="middle"/>
        <mx:DateField id="maxDateField"
                      x="200" y="5"
                      formatString="MM-DD-YYYY"
                      selectedDate="{maxDate}"
                      change="maxDatefield_changeHandler(event)"/>
        <mx:LineChart id="nonAvailsLC" x="0" y="40"
                      showDataTips="true"
                      dataProvider="{getNonAvailsResult.lastResult}"
                      creationComplete="nonAvailsLC_creationCompleteHandler(event)"
                      width="890" height="550">
            <mx:backgroundElements>
                <mx:GridLines gridDirection="both"/>
            </mx:backgroundElements>
            <mx:horizontalAxis>
                <mx:DateTimeAxis dataUnits="days" minimum="{minDate}" maximum="{maxDate}"
                                 labelUnits="days"/>
            </mx:horizontalAxis>       
            <mx:verticalAxis>
                <mx:CategoryAxis categoryField="user" labelFunction="getName"/>
            </mx:verticalAxis>       
            <mx:series>
                <mx:LineSeries xField="startDate" yField="user"
                               form="horizontal"/>
            </mx:series>
        </mx:LineChart>

    I guess I still have lots to learn about Flex and Renderers. I downloaded a Gantt chart with Code and they used the AdvancedDataGrid with renderers and such.  I modified the code to work for me. but if I had to create it myself right now, I would be in trouble.  Lots more to learn.

  • Hyperion Planning dynamic forms based on start and end date across years

    Hi All,
    I have a requirement where i need to be able to view a form showing periods across years that are dynamically built depending on the start and end dates. If i have a start date of 01/11/2009 and an end date of 31/7/2013 i want to be able to view a form that shows all of the periods (Jan,Feb etc) in a form that is driven by these dates, in addition it will need to show the actual scenario up to the current month and the forecast from the current month to the end date. So basically if a user inputs the start and end dates the form will display the relevant periods driven by these dates.
    Any tips very much appreciated!

    Hello,
    This is difficult to realize, but you can get quite far with a workaround. The first question is, where do you want to input your selection of time periods? Assuming you have a webform with the complete timeline in months and years and you type in the start period and end period.
    Webforms have the option to suppress rows and columns.
    This can be extended with option of empty cells or not empty cells.
    You will need to apply your creativity on this.
    Put every month-year combination in a column and add the suppression.
    Calculate the timeline between start period and end period with a dummy member, so data exists for these and columns will show.
    Maybe you will need to copy the required timeline into a separate version for this, to avoid having periods which were outside the selection and still have data.
    I hope these hints help a bit in this challenge.
    Regards,
    Philip Hulsebosch
    www.trexco.nl

  • How to change Validity Start and end dates on a lane ?

    Hi,
    I am trying to change Validity start and end dates on a lane for a product specific assignment.
    What I see is as follows
    1) Lane created by system /others I can delete and give the required start /end date ?
    I want to know if I can change the end date without deleting the lane as its tough to delete a lane in production.
    Thanks
    -Venky.

    Hi,
    we can change the start period and end period in the Transportation lane using the table /SAPAPO/TRPROD.
    And then using the update command you can change the start time and end time of the product.
    Regards,
    Hyma.

  • Effective start and end dates for a compensation workbench plan

    Hi all,
    We are having a requirement where we want to get the data respective to current plan for reporting purposes. What i have noticed is there is no such thing as effective_start_date and effective_end_date directly in all the cwb tables.
    The different dates we are looking at to capture the data are
    enrt_perd_start_dt and enrt_perd_end_dt
    upd_strt_dt and upd_end_dt
    within_yr_strt_dt and within_yr_end_dt
    But we have same plan with different enrollment period and start dates. We are planning to use max(data_freeze_date or lf_evt_occrd_dt) to get
    the records.
    select max(nvl(bcpdx.data_freeze_date, bcpdx.lf_evt_ocrd_dt))
    from ben_cwb_pl_dsgn bcpdx
    where bcpdx.pl_id = p_pl_id)
    Catch with this is, We have 62 business groups off which only 50 might run the plan next year and ohters might not. in that case it will also return data for all the BG's including the 12 BG's where plan has not been run for that year.
    Any suggestions or help will greatly be appreciated.
    Thanks
    Hari

    Hi Ankush,
    I am also of the same opinion. Start and end dates can probably be enforced by a policy condition in AM but would lead to proliferation of policies as we would end up creating policies per role entitlement duration for a user.
    Any thoughts on whether the sunrise/sunset concept of Identity Manager can be used for this requirement.
    Thanks,
    Srinivas

  • Effective start and end dates for roles/group assignment

    Hi,
    Does Access Manager (in legacy or realm) mode support effective start date/end date on a role/group assignment on a user?
    Thanks,
    Srinivas

    Hi Ankush,
    I am also of the same opinion. Start and end dates can probably be enforced by a policy condition in AM but would lead to proliferation of policies as we would end up creating policies per role entitlement duration for a user.
    Any thoughts on whether the sunrise/sunset concept of Identity Manager can be used for this requirement.
    Thanks,
    Srinivas

  • Define the start and end dates of an assigned academic period in fee calc.

    Define the start and end dates of an assigned academic period
    Message no. HRPIQ00ACCOUNTING132
    Diagnosis
    The academic calendar assigned to the top organizational unit does not contain a start or end date for the academic period (academic year and session) assigned to fee calculation period Z000.
    System Response
    The system will skip fee calculation period Z000 and continue processing with the next fee calculation period.
    Procedure
    1. Check which academic calendar is assigned to the top organizational unit.
    2. Check which academic period is assigned to fee calculation period Z000. You check this setting in Customizing for Campus Management in the IMG activity Assign Academic Years and Sessions to Fee Calculation Periods.
    3. In this academic calendar, create the start and end dates of the relevant academic period using standard time limit 0100 (standard duration of academic period) or a corresponding user-defined time limit.
    For more information, see
    Define Top Organizational Unit
    Define Mandatory Time Limits for Academic Calendar
    please give me the needful information to solve this problem.
    Regards
    Arun Rai

    Arun,
    Have you looked in the Student Accounting Cookbook  
    http://www.sdn.sap.com/irj/scn/advancedsearch?query=studentaccountingcookbook   on page 13? 
    Page 1-18 will help you setup the Oranizational unit, the academic calendar and the modules.
    Bev beck

Maybe you are looking for

  • Free good flow in return sales order

    Hi all I have a question that is how to make the free good item(TANN in order and RENN in returns) flow automatically in the return sales order along with the REN items. Does it involve item category proposal in copy control for billing document to s

  • Help! problem with Messengers/iChat 3 people

    Every Sunday morning, I iChat three-way with my sisters, all on iMacs. When I loaded OS10.8, iChat disappeared and Messenges replaced it.  My sisters have not up-graded to 10.8.  I can not sign them on from Messenges.  The can sign me on.  If there i

  • Miro multiple vendor

    Hi, If I have more than 1 vendor for the PO, example goods which to credit vendor and freight cost to freight company and custom duty to custom, may i know if possible to have more than 1 vendor in a single miro? thanks

  • Adding bitmap images to UDI custom page

    Hi All, I have a basic issue regarding bitmap images and UDI custom screens.  The issue is that I cannot get any images to display on my page; they appear as "Image not Found" in the preview window.  I am putting my images in the same folder that the

  • How to call Abap Program from Javascript or html ?

    Hi All,     I have developed a program using html, abap and javascript. I want to call an abap program while clicking on the button. How can I do it ?