User Exit: AFAR0002. How to change value in field: ANLC - NAFAP?

Hi,
At the moment I am working on custom Depreciation Key for which the depreciation for period (and subperiods) will be recounted and taken into account for depreciation posting.
I try to use exit AFAR0002 for this purpose.
I am able to count and change the value of depreciation for each subperiods. The problem is, that I cannot change the value of "Ordinary depreciation that is planned for the asset in the current fiscal year" for the pierod '000'. Due to this, in the last period of the current fiscal year system tries to reverse the sum of planned depreciation in previous subperiods. It simply tries to meet the "planned depreciation for fiscal year' with the sum of planned depreciation for subperiods.
example:
ANLC-NAFAP = 100.
Active Asset value = 1000
Depreciation for periods:
001     ->     -50
002     ->     -50
003     ->     -50
004     ->     -50
005     ->     -50
006     ->     -50
007     ->     -50
008     ->     -50
009     ->     -50
010     ->     -50
011     ->     -50
*012     ->     450
planned value -> -100
The questions are:
1. is it possible to change value in ANLC-NAFAP in this exit
2. How it sould be done.
Thanks in advance for help.
Regards,
Wojciech

Dear Paul,
I had run AFAR. The report changed to '0' the value of ANLC-NAFAP  field - sth changed - thanks.
But I still have a problem to set this value to the sum of planned depreciation for each month. At the moment, in the last period the system tries to reverse all planned "sub"depreciation to '0' in total.
Is it any additional condition that has to be fulfilled in order to change the value of "Ordinary depreciation that is planned for the asset in the current fiscal year" for the pierod '000'?
Regards,
Wojciech

Similar Messages

  • How to change value date field

    HI,
    After posting the transaction data into the document , is it possible to change the 'value date' . if it is possible pl.give me guidelines . As i know it is possible to change "Assignmentand Text filed"
    This is my user Requirement to change " Value date field".
    Regards,
    Prabhakar

    Hi,
    Check in document change FB02.
      It may allow you to change the value date. If it is not allow to change the filed then create value date in
      Document Change Rules, Document Header.
    Regards,
    Sankar

  • In user exit i wants to change EKPO-LOEKZ field

    Dear All,
    I want change the ekkpo-LOEKZ field at the time of saving.
    I'm using EXIT_SAPMM06E_012 Exit to do the changes but it s not geting update.
    Can any one Help me on this issues?.
    Thanks in Advance.
    Regards,

    Thanks for your quick reply Ravi.
    My requirement is I want block the line item(s) based on some conditions.
    Its possible to block the line item(s) at the time of saving
    Regards,

  • Can I use User Exit u2013 IWOC0004 u2013 Change Single-Level List for TCODE IW37N?

    Hi All,
    Can I use User Exit u2013 IWOC0004 u2013 Change Single-Level List for TCODE IW37N?
    In documentation of the User Exit I can see that I  can use this user Exit for IW37(Program - RIAFVC20) , but I want to use this for IW37N (RIH_ORDER_OPERATION_LIST).
    Please tell me is it possible.
    With best regards,
    Narendra

    Hi Pete Sir,
           I am on 4.7 , how to work with it. I am going to use screen exit IW0110018 and I want to add User fields in the IW37N.
    Thanks with best regards,
    Narendra

  • What are user exits & enhancements & how to use those .

    What are user exits & enhancements & how to use those .

    Hi,
    BADI , Customer Exit / User Exit , Enhancement all are same.
    Customer Exit & User Exit terms were earlier used in case of R/3. Now in ECC 6.0 they are known as
    BADI means Business Add-Ins.
    BADIs :
    Use:
    SAP provides multiple implementations of Business Add-Ins (BAdIs), which enhance the functions of the Configuration Control component.
    In addition, there are multiple empty BAdIs available for implementing a customer-specific logic for special functions.
    Pls. find listed below some important PP Enhancements / BADIs :
    Exit name   Short text
    PPAPO002 Publication of APO Data in Transfer from APO to R/3
    PPAPO003 Production Order R/3->APO: Check if Operation is APO-Re
    PPAPO004 Planned Order Conversion from APO: New BOM Explosion?
    PPAPO005 Enh. of Relationships in Proc. Order during Transfer to
    PPAPO006 Influencing Initial Supply of Manufacturing Orders
    PPAPO007 Overriding Checkbox Fields for Production Order APO ->
    PPAPO008 Override Order Type for Planned Order Conversion
    PPAPO009 Customer Exit for Addition of Components and Items
    PPAPO010 Filtering Components out of Quantity Propagation
    PPAPO011 Performance-Related Adjustment of Remaining Duration
    PPCO0001 Application development: PP orders
    PPCO0002 Check exit for setting delete mark / deletion indicator
    PPCO0003 Check exit for order changes from sales order
    PPCO0004 Sort and processing exit: Mass processing orders
    PPCO0005 Storage location/backflushing when order is created
    PPCO0006 Enhancement to specify defaults for fields in order hea
    PPCO0007 Exit when saving production order
    PPCO0008 Enhancement in the adding and changing of components
    PPCO0009 Enhancement in goods movements for prod. process order
    PPCO0010 Enhancement in make-to-order production - Unit of measu
    PPCO0012 Production Order: Display/Change Order Header Data
    PPCO0013 Change priorities of selection crit. for batch determin
    PPCO0014 Select process orders for external relationships
    PPCO0015 Additional check for document links from BOMs
    PPCO0016 Additional check for document links from master data
    PPCO0017 Additional check for online processing of document link
    PPCO0018 Check for changes to production order header
    PPCO0019 Checks for changes to order operations
    PPCO0020 Process order: Display/change order header data
    PPCO0021 Release Control for Automatic Batch Determination
    PPCO0022 Determination of Production Memo
    PPCO0023 Checks Changes to Order Components
    PPCP0001 P.Cost Planning: Additional Cost Elements for Person
    PPEACT01 Customer Fields at Mode D
    PPECMP01 Customer Fields for CMP Node
    PPECMP02 Customer Fields: CMP Variants
    PPEGEN01 General Engineering Node: Customer Fields
    PPEMPA01 MPA Customer Enhancement
    PPEMPO01 Customer Enhancement for Material Planning Object
    PPEMPO02 Customer Enhancement for Model
    PPERES01 Customer Fields at RES Node
    Alternately you can find User Exits / BADIs in TCode : SMOD ( SAP Enhancements)
    Hope this helps.
    Regards,
    Tejas

  • COR2 user exit for saving item changes

    Hi,
    i need to  change item contents with user exit while saving in COR2 transaction.I found several user exits with debugging.But could not accomplish to change fields.
    Please give me a user-exit name which can change the item contents while saving.
    Thanks.

    Hi burc,
    what about enhancement CONFPI05 Process Ord. Conf.: Cust.-Specific Enhancements when Saving, EXIT_SAPLCORF_405.
    Or tell in more detail what is it you want to change.
    Regards,
    Clemens

  • How to change value in BADI

    I want to change value of field afnam based on the following code below in BADI ME_PROCESS_REQ_CUST.
    But this code give me endless loop.  Is there anything missing in my coding?Please correct me, Thank you.
      data : obj_pr type MEREQ_ITEM,
             wa_eine type eine.
    CALL METHOD IM_ITEM->get_data
    RECEIVING
    re_data = obj_pr.
      if obj_pr-infnr <> space.
        select single * into wa_eine from eine
        where infnr = obj_pr-infnr.
        if sy-subrc = 0.
          obj_pr-afnam = wa_eine-effpr.
        endif.
      endif.
    CALL METHOD IM_ITEM->set_data
    EXPORTING
    im_data = obj_pr.

    Hi Jessie,
    As per my understanding, the thing is that, in BADI  "ME_PROCESS_REQ_CUST", there is a method called "CLOSE".
    you have to implement this method to close the processing....
    work on triggering the method first and if it triggers, then implement the coding and see how it is working....
    thanks,
    Vishnu.

  • How to change value of ${eol} from \n to \r\n, writing by File Adapter

    Hi All,
    How to change value of ${eol} from \n to \r\n, while writing file through File Adapter.
    As my file is being created in Linux environment, so for new line separater, \n is used. I mounted this file directory to windows System.
    As Windows requires \r\n for new line seperator. So I need to change value of ${eol} in the Schema created for file writing.
    Can any one provide help regarding this.
    Thanks in advance

    Hi,
    When an XML payload is written to a file \n would be used as the default line separator regardless of if its windows or linux, as per the XML specification http://www.w3.org/TR/REC-xml/#sec-line-ends.
    As such, one need not worry about the line separators because, the XML file would eventually be processed by a parser which usually would be able to understand both line endings (as they are whitespace characters as far as the parser is concerned).
    If you want to convert the line terminators (for readability etc), 10.1.3.4 has a new feature - in the XML schema definition for the file adapter payload, add these two top level directives to the schema element:
    xmlns:nxsd="http://xmlns.oracle.com/pcbpel/nxsd"
    nxsd:normalizeLineTerminators="false"
    Regards,
    Shanmu.

  • User Exit in APO to change Planning version defaults

    Hi,
    Is there any user exit/BADI I can use to User Exit in APO to change Planning version defaults.
    Regards,
    Tarun

    Hi Emmanuel,
    I am searching for this exit in APO-DP.I have a requirement where we CIF master data (location) from SAP R/3 to SAP APO.However the location are saved in default planning version/model ( ie 000) I need to save these locations in another planning version and I am looking for an appopriate user exit/BADI which can accomplish this.
    Regards,
    Tarun

  • How to change report region fields in read only mode?

    How to change report region fields in read only mode?
    skud.

    add the following javascript fuction to page header(or Javascript function and variables section)
    function disableItems(pRegionStaticId,pDisableFlag) {
      $('#'+pRegionStaticId).find('[name^=f]').each( function(){ /* matches fxx */
        if( $(this).attr('name').match(/f[0-9][0-9]/) ){
          return $(this);
      }).attr('disabled',pDisableFlag);
    pRegionStaticId is the region's static Id+
    Note that this code specifically disables only application arrays. Disabled items are not available after submission (and hence are different from readonly) . But any page javascript can modify disabled or readonly items(client side), so you must check at the server side to validate the data.
    You can disable items using
    disableItems('MY_REGION_ID' ,true);and enable them by passing false
    disableItems('MY_REGION_ID' ,false);

  • What's the meaning of thes user exit, and how to use it?

    Hi gurus,
    I found two exits, USEREXIT_PRICING_CHECK  and USEREXIT_XKOMV_ERGAENZEN_MANU , can somebody tell me how to use these.
    prmoise to reward helpful answers.
    thanks in advance.
    elly

    hi
    <b>
    USEREXIT_PRICING_CHECK</b> (module pool SAPMV61, program MV61AFZA)
    You can install additional checks to the standard checks of condition lines (e.g. maximum/minimum value).
    <b>USEREXIT_XKOMV_ERGAENZEN_MANU</b> (module pool SAPLV61A, program RV61AFZB)
    You can use this user exit to change the ready-for-input fields of the manually entered condition record in add mode in the condition screen.
    Just have look below link
    http://help.sap.com/saphelp_40b/helpdata/es/14/f62c7dd435d1118b3f0060b03ca329/content.htm
    http://help.sap.com/saphelp_46c/helpdata/en/14/f62c7dd435d1118b3f0060b03ca329/frameset.htm
    regards
    vinod

  • User Exit  for Inbound Process - Changing IDOC control record

    Hi,
    I want to utilize the identification field (under details tab) of the IDOC Control Record. What is the suitable user exit for inbound process that i can use to change the IDOC control record?

    It's been a long time since I have done any IDOC processing. 
    Go to SE37 and enter the function module IDOC_INPUT_ORDERS.  Display the source code.  Search for "CALL CUSTOMER".  You should see several "CALL CUSTOMER-FUNCTION" lines.  These are enhancements where you can manipulate the IDOC data.  If you locate the correct one (where the data is read from the IDOC but not yet validated), you should be able to map the partner function value.  Double-clicking on the number in quotes will bring you to an "EXIT_" function module.  A "ZX" INCLUDE program is referenced.  If you haven't used the exit yet, double-clicking on the ZX INCLUDE will create it.  The values passed into the function module are available in the INCLUDE.
    Ideally, you should create a project in transaction CMOD that references the chosen enhancement.  This way you can activate/deactivate without commenting/uncommenting the code in the INCLUDE.

  • User Exit that triggers for Change operation

    Hi All..
    I want a user exit which triggers when I enter into an infotype(2001) from tcode PA30.
    My actual requirement is to show the field REFNR in display mode.
    By using the exit PBAS0001 exit0001 I can make the field REFNR in displaymode for create operation.
    But in change operation of the infotype the exit is not getting triggered.
    Regards,
    Anji.

    chk these
    Transaction Code - PA30                     Maintain HR Master Data
    Enhancement/ Business Add-in            Description
    Enhancement
    PBASRP01                                PA: User exit distributed reporting
    PBAS0002                                PA: Enhancements for Personnel Administration - Menu
    PBAS0001                                PA: Pers.Admin./Recruitment: Default values and checks
    PARA0002                                Enhancement for Calculating Annual Salary; IT0008,14,15
    PARA0001                                Enhancement for Determining the Number of Periods
    HRRPAI01                                User exit for FB HR_ENTRY_DATE and HR_LEAVING_DATE
    HRPC0001                                HR: PC download authorization
    HRPBAS01                                User Exit for HR Master Data
      Business Add-in
    HRPAD00_PREM                            Definition of User Exit for Collective Search Help PREM
    HRPADUS_PBAS_0001                       Customer Exit for Message handling
    HRPAD_SUBTY_CHECK
    HR_F4_GET_SUBTYPE                       HR: Entry help for subtypes
    HR_FAST_ACTION_CHECK                    Check fields on the fast entry screen
    HR_INDVAL                               HR: Indirect wage type valuation
    HR_SET_PKGAB
    HRPAD00_RECOG_SCREEN                    Employee - Recognition Screen
    HRPAYXX_DELETE_PERNR                    BAdI for Reports Deleting Personnel Numbers
    HRPAD00_PAPM                            Definition of User Exit for Collective Search Help PAPM
    HRPAD00_GET_AF_0008                     Additional Fields for Basic Pay Infotype (0008)
    HRPAD00_ENTRY_LEAVE                     HR_ENTRY_DATE and HR_LEAVING_DATE
    HRPAD00_ADRS                            HR: Address formatting
    HRPAD00MGEACTIVATION                    Activation Action BAdI for Global Employees
    HRPAD00INFTY                            Update / Infotype maintenance
    HRPAD00AUTH_TIME                        Time Logic in the PA Authorization Check
    HRPAD00AUTH_RECORD                      Spanish Data Privacy Law: Exit for Recording
    HRPAD00AUTH_CHECK                       HR: Authorization Check
    HRIV_REDUCE_AMOUNT                      Reduction within Indirect Valuation

  • How to change value of element and update XML file

    Hi
    I have an xml file called test.xml like below
    <?xml version="1.0" encoding="UTF-8"?>
    <printing>
         <userName/>
         <viewName/>
    </printing>I want to change value of user name and view name and update test.xml file in my folder
    Anyone has sample code to do so
    Ashish

    Thanx
    i was able to do so, but what i want now is to remove element
    for example
    i have following xml
    <?xml version="1.0" encoding="UTF-8"?>
    <printing>
    <firstLineTexts>
              <firstLineText />
              <firstLineText>|line11</firstLineText>
              <firstLineText>|line12</firstLineText>
    </firstLineTexts>
    </printing>how do i remove all elements fireLineText
    my final output should be
    <?xml version="1.0" encoding="UTF-8"?>
    <printing>
    <firstLineTexts>
    </firstLineTexts>
    </printing>How do i do it using DOM,
    I can create instance of DOM and write it using TransformerFactory
    Ashish

  • How to change value of Delivery Priority field (VBAP-LPRIO) after Delivery

    HI,
    I want to modify the value of Delivery Priority(VBAP-LPRIO) based on the delivery quantity modified (LIPSD-G_LFIMG)as per availability of credit limit.
    Is there any user exit available for this ?
    Thanks in Advance,
    Nitin

    Hi Christian,
    Thanks for the reply.
    Actually i have modified quiantity as per Credit Limit Available after modifying it as per Stock in Exit "RV03VFZZ" In Routine 'USEREXIT_AVAILABILITY_OUT USING VALUE(US_ATPPR).'
    Now i need to set the priority to (VBAP-LPRIO) to '99' based on the quantity modified if it is less than the Stock available.
    My requirement is if as per Stock QTY 20 is available but if as per credit if 10 are available then delivery should be done for 1o QTY instead of blocking the delivery completely.
    I checked also reagarding updation of sales order field if any but its not there.
    Can you please through some light on this .
    Thanks & regards,
    Nitin

Maybe you are looking for