How to use user exit macros in demand planning?

Hi all,
I am have created an user exit macros? but then can anyone guide me how to use the abp code there in the User exit macros in demand planning.
Thanks
Pooja

Hi Pooja,
The ABAP code can be written inside the functional module assigned to user exit macro.
Start Transaction SMOD.Enter APODM005 in the 'Enhancement' field. Select 'Display'.
Then choose 'Components' or Shift+F11 and double-click the name of the function module.
Double-click the include contained in the function module to enter the source code.
For step by step details you can refer to SAP note 418801.
Let me know if it helps.
Regards
Gaurav

Similar Messages

  • How to use User exit for MM_MATBEL

    Hi
    I want to exclude some material documents while archiving a range of material document through archive Object MM_MATBEL.
    Can you please suggest how to use user exit for this to exclude the material document while archiving.
    Please brief me details.
    Thanks,
    Debadatta

    Hi Debadatta,
    Welcome to SDN.
    Have you looked report program <b>RM07MAAU</b> (Report for Material Document Archiving)?
    Hope this will help.
    Regards,
    Ferry Lianto

  • How to use User Exit for SD...

    Hi there,
    My client's requirement is to block the overall status of the Sales Order header under status tab to be blocked when user r-enters a new scheduled date in the "First Date" column in the SO.
    When they goto VA02, & put a new date it must automatically put a delivery block in the header as well as make the order header status to be blocked.
    I see the “First date” field in the SO is in a Structure “RV45A”, the field name is ETDAT.
    Can you let me know how to use User exit MV45AFZZ?
    When doing it, it must put the Delivery block in table VBAK – LIFSK.
    Rgds,
    Pri

    Hi Debadatta,
    Welcome to SDN.
    Have you looked report program <b>RM07MAAU</b> (Report for Material Document Archiving)?
    Hope this will help.
    Regards,
    Ferry Lianto

  • How to use user exit to complete the PR item valuation price?

    Hi Experts,
    I am working on a user exit about Purchase requisition and the description is as following:
    In standard SAP, the Purchase Requisition (PR) is an internal document to translate a pur-chasing requirement. Standard, at the moment of a PR, no supplier is known and therefore no purchase price is known.
    In standard SAP, the purchase price and price conditions are introduced in the Purchase Or-der (PO); these fields are not available in the PR. Instead, the PR contains an estimated valuation price per item, this is the historic purchasing price (standard price or moving aver-age price).   
    For the GFP project, the purchase price needs to be introduced in the PR. This is due to the fact that budget reservations are made for PRu2019s. Therefore, each PR needs to have a correct purchasing value. As budget forecasting also takes into account the tax (VAT), the PR value needs to be VAT inclusive.
    The goal of this development is to ensure that the user does not need to complete the PR item valuation price manually. Instead, this field should be filled with the item contract or info record price.
    The purpose of this development is to extract the correct purchasing price from the agree-ment / info record when applicable. Thus:
    u2022If the user does not assign a source to an item, do not overwrite the item valuation price
    u2022If the user assigns a source to an item based on an agreement, use the agreement number and item to extract the purchasing item price
    u2022If the user assigns a source to an item based on an info record, use the info record number and purchasing organisation to extract the purchasing item price
    The enhancement trigger is the assignment of a source of supply by selecting a certain pur-chasing agreement (contract) or a certain info record.
    can anyone help me on this? do you know how to know the time when the trigger of the source of supply by selecting a certain pur-chasing agreement (contract) or a certain info record happens? thanks in advance!
    Kind regards
    Dawson
    Edited by: Julius Bussche on Jul 25, 2009 7:06 AM
    "Hi" removed from subject title...

    Hi Debadatta,
    Welcome to SDN.
    Have you looked report program <b>RM07MAAU</b> (Report for Material Document Archiving)?
    Hope this will help.
    Regards,
    Ferry Lianto

  • How to Use User Exit M06E0004 for RElease Strategy

    Hi All,
    MY client is currently having release strategy based on Net order value. Now they want that release order should be based on Net order value plus other charges (Frieght).
    I have to write logic that this will be done through User exit M06E0004.
    BUt I have no idea that how to carry out user Exit.
    Please let me know that what logic shoul I mention in the functional design to change this Release strategy.
    Thanks

    create a prohect.
    assign component
    activate project

  • Can anyone explain how to use user exit IPRM0002 ?

    pay attention please: my question is not for what it is and I have read all the available documentation.
    if you have an exmple of written code, that would help me a lot.
    thanks

    no answer

  • DP User Exit Macro

    Hi,
    We are using User Exit Macro to carry out complex calculation in DP planning book. My observation is that, the Macro do not store the calculated values in Planning book. Based on events, User exit macro gets executed and the Value are displayed in the planning book.
    Is there a way where in I can execute the User Exit Macro once (background job) and store the value in Planning Book. This will save the execution of Macro each time when book is loaded, and loading will be much faster. Also, being a complex calculation I need to use User Exit calculation.
    Any ideas........on how to store the calculated values in Planning books.
    Thanks & Regards,
    SP

    Hi,
    Thanks for reply.
    Basically I am looking for "Saving the Calculated Values in planning book through User Exit Macro".
    I am using a User Exit Macro to carry out complex calculation. Each time it calculate "on fly" i.e. based on event (Start event). To avoid calculation and time taken for loading book, I want to save the result of an User Exit Macro in Planning Book Key Figure.
    Thanks & Regards,
    SP

  • Change gl account in MIGO by using user exit

    Dear all,
    Could you tell me how to use user exit to change the gl account in MIGO?
    I have searched in SDN and found some code.
    In user exit: MBCF0002 ( EXIT_SAPMM07M_001 ).
    FIELD-SYMBOLS <F2> TYPE ANY."Field Symbol for the GL ACCOUNT
    DATA : W_KONTO_NAME(50) VALUE '(SAPMM07M)DM07M-KONTO'.
    ASSIGN (W_KONTO_NAME) TO <F2>.
    MOVE "GLACCOUNT" TO <F2>.
    "GLACCOUNT" is the new GL account you want to change.
    but thecode doesn't work, it can not change the BSEG-HKONT.
    Could you help me solve this problem?
    Many thanks
    Message was edited by:
            Chen Zhonghua

    USER EXIT
    http://www.sap-img.com/abap/a-short-tutorial-on-user-exits.htm
    http://www.sapgenie.com/abap/code/abap26.htm
    http://www.sap-img.com/abap/what-is-user-exits.htm
    http://wiki.ittoolbox.com/index.php/HOWTO:Implement_a_screen_exit_to_a_standard_SAP_transaction
    http://www.easymarketplace.de/userexit.php
    http://www.sap-img.com/abap/a-short-tutorial-on-user-exits.htm
    http://www.sappoint.com/abap/userexit.pdfUser-Exit
    http://www.sap-img.com/ab038.htm
    http://help.sap.com/saphelp_46c/helpdata/en/64/72369adc56d11195100060b03c6b76/frameset.htm
    http://www.sap-img.com/abap/a-short-tutorial-on-user-exits.htm
    http://www.sap-img.com/abap/what-is-user-exits.htm
    http://expertanswercenter.techtarget.com/eac/knowledgebaseAnswer/0,295199,sid63_gci982756,00.html
    Transaction Code - MIGO                     Goods Movement
    Exit Name           Description
    MBCF0002            Customer function exit: Segment text in material doc. item
    MBCF0005            Material document item for goods receipt/issue slip
    MBCF0006            Customer function for WBS element
    MBCF0007            Customer function exit: Updating a reservation
    MBCF0009            Filling the storage location field
    MBCF0010            Customer exit: Create reservation BAPI_RESERVATION_CREATE1
    MBCF0011            Read from RESB and RKPF for print list in  MB26
    MB_CF001            Customer Function Exit in the Case of Updating a Mat. Doc.
    No of Exits:          8
    Rewards if useful.........
    Minal

  • How to implement User Exit in APO?

    Hello All,
    I am not sure how to use user exits. I was wondering if anyone can help me understand how to implement any user exit? Is there any T.Code where you do that? or ABAP coding is required? Also how different is BAdi from User exits?
    Any advice is welcome.
    Thanks,
    Sanju

    Hi Sanju,
        Check this link.
    http://www.sap-img.com/abap/difference-between-badi-and-user-exits.htm
    BADI or user exit, I don't think it is a choice between the two. Both serve the same purpose, add some custom logic to the standard logic. It depends on your requirement, the point when the user exit or BADI is called, information that is available to you in that user exit/BADI and information that you can change in that user exit/BADI. There is no difference in implementing the User Exit in APO or R/3.
    Regards,
    Siva.

  • How to update old records of LIPS used user exit MV50AFZ1

    To All Experts,
    I have used User Exit MV50AFZ1 and in this user exit i updated the fields
    USEREXIT_MOVE_FIELD_TO_LIPS.
    LIPS-ETENR = VBEP-ETENR.
    Its working fine for new VL0N1 t-code, but what about old recods of LIPS table ?
    How to update old records ? Pl. guide me.
    Yusuf

    Hi Yusuf,
    See SAP Note 415716 - User exits in delivery processing, it explain how these userexits work and cautions that you must have.
    Regards
    Eduardo

  • How to handle  user exits while using BAPI

    HI experts can any one help me on how to handle user exits while using BAPI. Do we need to handle it explicitly or standard  BAPI will take care of it??.
    Regards,
    Hari Krishna

    If you have added some fields using append structures for screen enhancements, then you have to use appropriate user exits to fill these data while calling BAPI.  Some BAPIs have EXTENSION structures to fill the custom data which can be processed using user exists or enhancements.
    Regards
    Vinod

  • Use of BAPIs in user exit macros

    Is it ppssible to use BAPIs in user exit macros in the APO MacroBuilder?
    Thanks for any advice on this...

    Hi,
    Not sure what function you want to acheive, but basicly you can use any code in the user-exit macro's customizing code, but at last you must fill in the spcified return value to make the user-exit macro work.
    Best Regards,
    Ada

  • User exit macros in APO DP macrobuilder

    I am using APO DP V5.
    Can anyone give me an example of how 'user exit' macros are built - I cannot find any good documentation on this point.
    Thanks,
    Bob Austin, Atos Origin

    Mark,
    Thanks for your reply.
    In the APO DP macrobuilder, I specifically want to have a macro which runs some bespoke code.
    I'm not clear how to do this.
    Am I missing something in Note 380352?
    Regards,
    Bob.

  • Identify Orders created manually in the planning book (user exit macro?)

    Hello All,
    I am trying to capture the orders created manually in planning book using a user exit macro!!.
    Does anyone have any Idea of how to acheive this. Main aim is to identinfy orders created manually.
    Thanks in advance,
    Regards,
    -Srini

    Hi,
              There are no change pointers like R/3 in APO due to the live cache technology. You can how ever findout if an order is created by system or manually created. Check this [thread|Re: How to identify an order generated by heuristics run or entered manuall]
    Check if you can use the BAPIs to read orders and see if they have "output-firmed".

  • MIRO using user exit  EXIT_SAPLFYTX_USER_001

    We are using user exit EXIT_SAPLFYTX_USER_001 for both ME21N and
    MIRO.  ME21N works fine in that we added an item number field to I_INPUT_USER  and it populates with the current item number on the po so we are able to get the gl account from EKKN.  The problem is for tcode
    MIRO.  The data in the I_INPUT_USER is all header data.  There is no material number, qty, item number, etc.  So we cannot go back to the po/item to get the gl account number to pass to vertex.  I used note 302998 to try and add fields EVRPT and EVRTN to the  I_INPUT_USER but they are not populated and when I look at KOMP those fields are also blank there. 
    For MIRO the I_INPUT_USER-KPOSN always has a value of 999999 where for ME21N it has the actual item that it is processing on the po.  I have looked and tried multiple OSS notes and nothing seems to work.  It seems that the MIRO transaction will only pass header data to vertex.  Any help is greatly appreciated!!!! thanks  - deb

    Martha - I did have an OSS note out there but I found the solution for us.
    To get the line item info in I_INPUT_USER and I_TAX_ITEM_INPUT for MIRO we had to go to transaction OBCO and turn on line item processing for our external tax system.  As for your question  - the header information should be in I_TAX_ITEM_INPUT and in I_TAX_HEADER_INPUT.  the I_INPUT_USER is for users to add their own fields that are currently in KOMP.  Look at OSS note 302998 it explains how to extend the I_INPUT_USER  and how to export and import data that you might need.  If this note does not help - go to OSS and do a search on EXIT_SAPLFYTX_USER_001 and some of the other notes should help you. thanks - deb

Maybe you are looking for

  • Files and folders moved to NAS become read only.

    I just got an Iomega NAS. When I move files and folders to it from my Macbook, they become read only when they get there. Files from my girlfriend's PC stay read/write when they are moved to the NAS. I first noticed this with iTunes. I changed the lo

  • Mailbox move and dag members

    Hello, Exchange 2010 sp3 ru6 windows 2008R2 enterprise I have 2 servers in HQ and 1 servers in DR site - all members of DAG MailboxServer1 MB1 5 databases - Active node - HQ db1 950GB db2 200GB db3 100GB MailboxServer2 MB2 5 databases - passive node

  • How do i resolve an issue where i have run out of application memory?

    My imac says i have run out of application memory and that i should quit applications. How do i resolve this issue?

  • How to extract PDF files into the directory the PDF file is located in.

    I use Adobe Acrobat to extract all the pages within a single PDF file to single page PDF files.  However the steps are long, as the path to a directory where i wish to extract is thru the net work and the default location for Adobe is to my C:Drive..

  • Notify popup window size

    Hi, Is there a way to change the Notify popup window size (especially width)? Sometimes I got emails where the subject is quite long, and quite important information is at the end of the subject. The default width of the popup window is not enough to