Access to Profitability seg data in contract through user exit

Dear All ,
I have a critical issue in my current project.
I have to post/create a contract in R/3 using custom Idoc type which is enhanced version of the standard Idoc type with two new fields for profitability segment data(TS product and Offering) for contract item.
The Idoc is calling BAPI_CONTRACT_CREATEFROMDATA and which in turn calls SD_SALESDOCUMENT_CREATE and I checked it is passing through MV45AFZZ,MV45AFZA,MV45ZB INCLUDES also.
Can anybody suggest me which user exit to be used to pass the idoc fields for profitability segment to the required work area(I dont know where,which table it gets saved) so that it gets saved in the line item.I tried COBL work area but those fields are not there.
Your help is appreciated.
Thanks
Soujash

I have used some user exits to replace fields on the profitability segment during order entry.  The same process might work for your scenario.
You will have to add restrictions so it is only called during your IDOC processing and not for every SD transaction.
I used USEREXIT_CHECK_VBKD in MV45AFZB.
The current PA segment was read with function module RKE_GET_CHARS_FOR_PAOBJNR.
If it was different than what I needed, I replaced fields on VBAP and re-triggered PA processing with
PERFORM VBAP_PRUEFEN_ENDE(SAPFV45P).

Similar Messages

  • Change Moveing average price in MIGO Goods Reciept through user exit

    Hi,
    i need to change the moving average price in the MIGO transaction  (Goods Issue) through user exit can any one help me with user exit.

    Hi,
    Check these Enhancemnts...
    Exit Name           Description
    V02V0001            Sales area determination for stock transport order
    V02V0002            User exit for storage location determination
    V02V0003            User exit for gate + matl staging area determination (headr)
    V02V0004            User Exit for Staging Area Determination (Item)
    V50PSTAT            Delivery: Item Status Calculation
    V50Q0001            Delivery Monitor: User Exits for Filling Display Fields
    V50R0001            Collective processing for delivery creation
    V50R0002            Collective processing for delivery creation
    V50R0004            Calculation of Stock for POs for Shipping Due Date List
    V50S0001            User Exits for Delivery Processing
    V53C0001            Rough workload calculation in time per item
    V53C0002            W&S: RWE enhancement - shipping material type/time slot
    V53W0001            User exits for creating picking waves
    VMDE0001            Shipping Interface: Error Handling - Inbound IDoc
    VMDE0002            Shipping Interface: Message PICKSD (Picking, Outbound)
    VMDE0003            Shipping Interface: Message SDPICK (Picking, Inbound)
    VMDE0004            Shipping Interface: Message SDPACK (Packing, Inbound)
    Badi Name            Description
    DELIVERY_ADDR_SAP    Determine Time-Dependent Delivery Address in Delivery
    DELIVERY_PUBLISH     Returns BAdI Implementation: Automatic GR Posting T 2
    DELIVERY_PUBLISH     Updating of Delivery in Purchase Order
    DELIVERY_PUBLISH     AIP: Delivery Confirmation for Sales Order
    Regards
    Raghu

  • Purchase requisition release procedure through User-Exit

    Hi Workflow Guru,
    I have a requirement to configure purchase requisition workflow . the workflow should trigger through release strategy.
    The approver should determine through user-exit and the approver should determine based on value and quantity and that can be define in user-exit. as per my knowledge the value should mantain in SPRO-Release procedure. Please clarify me is it possible through user-exit. I am worked on user-exit for release procedure based on purchasing group.
    Thanks in advance.
    Regards,
    Ranjan Tiwari

    Hi,
    There is BADI ME_REQ_POSTED 
    in method POSTED  you can write your code to trigger the workflow and get the information related to release strategy and
    Purchase requisation  .
    for more than one PR use below logic .
    LOOP at im_eban into gwa_im_eban .
        concatenate gwa_im_eban-banfn gwa_im_eban-bnfpo into gwa_objkey .
      add data into container -----------------
          gwa_event_container-element = 'PurchaseRequisition'.
        gwa_event_container-value = gwa_im_eban-banfn.
        append gwa_event_container to gi_event_container.
        clear: gwa_event_container.
        gwa_event_container-element = 'ItemOfRequisition'.
        gwa_event_container-value = gwa_im_eban-bnfpo.
        append gwa_event_container to gi_event_container.
    get the other details and create event to start workflow .
    select single * from eban into lwa_eban where banfn = gwa_im_eban-banfn
                                                  and bnfpo = gwa_im_eban-bnfpo .
            if sy-subrc <> 0 .
          call function 'SWE_EVENT_CREATE'
            exporting
              objtype           = 'BUS2009'
              objkey            = gwa_objkey
              event             = 'zcreated'
            tables
              event_container   = gi_event_container
            exceptions
              objtype_not_found = 1
              others            = 2.
    ENDLOOP .
    Hope this will resolve your issue.
    Thanks and Regards,
    Deepanker Dwivedi

  • Pop up screen for stock overview in ME51n through user-exit/BADI

    Hi,
    User wants that at time of  Purchase Requisition creation for any material system should give a pop up window of stock details to provide the status on inventory. 
    For stock summary the t code u201CMMBEu201D for combination of plant and material should run in background and produce output in pop up window. Basically MMBE report output is required for each item line in a pop up window.
    Can this be done through user-exit. I have implemented many user-exits but not sure about the report output in a pop up screen through a user-exit.
    The material stock ia already available under menu enviornment - Material stock(MMBE) but user wants the stock as soon as the material is enetered.
    any inputs.

    Have a look at below link which gives the details abt the user exits related to VA01/VA02.
    http://help.sap.com/saphelp_46c/helpdata/en/1c/f62c7dd435d1118b3f0060b03ca329/content.htm
    Best Regards,
    Vibha
    *Please mark all the helpful answers

  • If PO is released I have to send a mail through User Exit

    Hi,
    Please let me know the relevant user exits for below requirements.
    a.  When the PO is released,  the system will check for that PO Parked invoice exists or not,  if yes I have to send a mail to creator of the Invoice through user exit.
    b.  PO Exist but NO GR  (for goods only not services) ,  each time an invoice is parked for Goods PO.  send mail to PO Creator and storekeeeper  through user exit.
    Please give me relevant/suitable user exits for above both requirements.
    Regards,
    Ganesh

    Hi Ganesh,
    Please move this to [Enhancement and Modifications|ABAP Switching, Enhancing, and Adapting Standard Programs; forum
    Cheers
    Suresh

  • Bex Query: make data pass through user exit calculation at navigation time

    Hi all!
    I have a new requirement and I don't know how to solve it...
    Now, when I execute a web model containing a query, the system "reads" a date and calculate the query based on that date in a user exit defined in CMOD, for example, filtering data with an interval between january and the date read.
    Besides, I have in the web model a dropdown item where user can choose other months. The dropdown item only shows single values but now if I choose a month, the query only shows data for that month.
    I need the system filters the query with the new interval. For example, between january and the new month the user has just chosen.
    Does anyone know a way to make a query pass through the user exit calculation after executing the query for the first time? Any other ideas? I need the query to "reexecute" and filter the data (create a new interval) based on the value a user chose.
    (sorry about any inconvenience, because I posted the problem in another sdn specific forum but as I received no answer I've decide to explain it in here...)
    Thank you! Points will be assigned.

    Any ideas please?

  • Line item creation through user exit

    Hi
       I am creating a line item for a sales order when saving the sales order in transaction VA01 and VA02, using the userexit USEREXIT_SAVE_DOCUMENT_PREPARE. I am able to append the line item to the internal table XVBAP through my code in the user exit.
    But after appending to the internal table the line item is not getting created.I am not getting any error message also.
    Can anyone help me out in this regard.What could be the reason for this.

    Hi,
    It is not a straight forward thing. Adding data to table XVBAP won't work. It will create inconsistency. There are so many other tables involve here too, like, VBPA, VBUP, VBKD, KONV. There can be other tables too based on how your sales order is configured.
    Also, modifying these tables (XTAB, YTAB ) in this user-exit may cause database inconsistency.
    Regards,
    RS

  • How to pass data from smartform to user exits in appl form print workbench

    Dear All,
    I am using print workbench + smartforms to develop a form.
    But facing problem with passing data from the smartform back to
    the user exits includes in the application form of the print workbench.
    For eg:- Supppose the case , passing the total number of pages 'sfsy-formapages'  to the application form .
    I tried with the export interface of the smartform, still it doesn't works!
    Any suggestions/solutions
    Thanks
    santhv

    Hi Prashanti,
    Thank you very much...
    Using EXPORT/IMPORT , I am able to pass the data.
    But I would like to know whether it is  the final solution.
    As there is export interface is available for smartform....
    why it is not possible to get back the data in Application form.
    Please confirm, so that I can close the post.
    Anyway thank you once again....
    Regards,
    santhv

  • Download sales order data in Text format -User exit

    Hi Experts
    I am very new to user exits, my requirement is if i go to sales order change mode and then press save, some of the details about the sales order needs to be downloaded in text format. Please give me the steps and procedures.
    How to do this, please help me on this.
    Regards
    Rajaram

    Hi,
    Go to include MV45AFZZ,u will find USEREXIT_DOCUMENT_SAVE.In this exit
    u can get all the data from strcutures availabel thre..declare an internal table and fill the internal table with the data u want..andthen try for FM "GUI_DOWNLOAD" and pass the internal table data.I hope it might work..
    Regards,
    Nagaraj

  • Mark a user status in production order automatically through user exit.

    Hi all,
    I have a requirement....I have a user profile which has got 4 status one of them is MFAR.
    I need to check this status through an exit automatically so that it appears in the status line
    and does not allow for goods receipt at the time of order creation through CO01 .
    I have earlier tried with EXIT_SAPLBSVA_001 but this is only for formatting the text line whether I want to display that status.So it is not working for my case.
    I could not find any exit for checking the checkbox for user status MFAR.
    Thanks and Regards
    Sweta

    Hi Anup,
    Have you used this exit for the purpose I mentioned as this is not just a simple header field it is status.
    How do I mark any user status as active through this exit. Can you give any idea?
    Thanks and Regards
    Sweta

  • Change Schedule Line category through user exit - Issue with transfer of requirements

    Dear All,
    There is a user exit in Sales Order program MV45AZZ - PREPARE_TO_SAVE . It is currently being used to implement code to change schedule line category based on the status of the sales order.
    When Blocked , category is set to ZP, and when Released then it is set to CP.
    Now, when we change ZP to CP manually through VA02, I am able to see the requirements transferred in tcode MD50.
    The problem is, when user changes status of sales order from blocked to released, the userexit changes categories from ZP to CP, but the requirements are not transferred ( cannot see it in MD50 ).
    I tried searching the SCN, tried googling it, its been a week now and I havent found any clear solution.
    So, far what I understood is Availability Check needs to be carried out again. But I am not clear how to trigger it again.
    Are there any indicators that need to be set or any internal tables to be updated or any FM to call or any other user exit to place the code in.

    ?? Any suggestion friends ?

  • Triggering PO pricing through user-exit / Badi

    Hi Guys,
    I have a requirement in which I need to re-trigger the PO pricing when a PO change takes place. The kind of change happening in the PO via Bapi_PO_change (VAS data on AFS system) in my requirement does not re-trigger the PO pricing automatically. So though changed happen in the PO, the PO item level conditions are still showing older values, unless someone do a manual update by clicking the Update Pricing Button.
    All I need to do is, once the Bapi_PO_change is changing the data in the PO, the pricing should be updated automatically.
    I want to do this programmatically.
    Is this possible?
    Regards,
    Anid

    Hi
    Try to do a SUBMIT for the report RMEBEIN1 (tcode MEI1) or call it with a job. Run report RMEBEIN1 and check its documentation (info icon).
    I hope this helps you
    Regards
    Eduardo

  • Passing a parameter through user exit

    Hi all,
    I am adding a screen to the user exit ZXHIV01 and want the user to fill the organizational detail area on this screen.
    However, I cannot get the value of the organizational code (OBJID) from the previous screen (1000 create).
    I have tried GET/SET parameters but it did not work.
    Should I do something different while editing a user exit?
    Thanks in advance,
    Dilek Ersö

    Hi Dilek,
    try using field-symbols.....it will work....
    If the hint is useful… Say thanks by reward….
    Regards,
    Prabhu Rajesh

  • Is it possible to through user exit??

    Hi Gurus,
    i am supplying a material with returnable packaging material to our customer.
    10.  material
    20.  returnable packaging materl
    in a sales order we creating like above line items.
    we are charging rentals for returnable packaging material.
    i would like to know.. line item wise i want a option like yes/no(its relevant for rent or not), because some customer is not applicable for rentals. If the option is "No" it will not link with any other process, if the optiong is "Yes' ,, it will hit some other programme(calculation of rent)..here we need to enter basic details of rents.
    Is it possible ....Please advise...
    Thanks in Advance

    Hi,
    Why don't you try with item category itself. Maintain 2 item categories for this returnable package item, one is relevant for pricing and another not relevant for pricing. Depending on your requirement you can maintain one as default and another as manual.
    Depending on scenario you can change the item category to charge the customer. If it does not require any calculation you will not in need of writing any code. Simply you can create a condition type and maintain condition records for it.
    Hope this will help you.
    Reward if it helps you.
    Thanks
    Venkat Cheedalla.

  • Restricting storage location through user exit.

    Dear Friends,
    My Scenario is " while doing goods movement in confirmation screen (cor6), the header material is assigned to 3 storage location , Now is there any USER EXIT so that it has to be restricted to 1 storage location ,we dont want authorization control"
    Regards
    tushar

    Dear,
    Please check User exit for storage location determination -EXIT_SAPLV02V_002 and Include ZXLOFU01
    or Program MV45AFZB
    USEREXIT_SOURCE_DETERMINATION
    Regards,
    R.Brahmankar

Maybe you are looking for

  • How to create a Tab Link in the existing view

    Hello Experts, My requirement is to make one view as Tab Link. You must have seen in many existing IC Web screens, there are multiple tabs in the view area and you can toggle between the views by clicking the tab links. As per my requirement, in the

  • Where to begin? slideshow? album? homepage?

    I'm just learning how to use .mac, and I have about 10 pictures that I would like to share with friends - and rather than just e-mailing them, i'd like to put something together. I thought about doing a slideshow, which would be my first choice, but

  • Calibrating a macbook prp battery

    Should I calibrate my macbook Pro battery once a month or every two months and how many cycles of charge does this battery have before I would have to buy a new one?

  • Connection Manager & JDBC

    I wrote an applet who connects to a database on a network where WebServer and Oracle Server were in the same host. Now I have to migrate the applet to a network where the Webserver and the database server are in diferent hosts. Because of security is

  • ITunes and MobileMe IDs when moving to iCloud

    I obtained an iTunes account many years ago and have purchased a lot of music and video content since then.  More recently I began using the mobileme service, so I now have an [email protected] e-mail address.  iTunes will not let me change my iTunes