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

Similar Messages

  • 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

  • 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

  • Deliver line item Creation thru Program

    Hi guys,
    please help me to create delivery creation for a ship-to party and line item creation thru any finction module when the ship-to party has different materials ordered.
    is there any standard Function module to just create a delivery line item when the delivery is not completely processed.
    Please help me in this issue.

    check
    BAPI_INB_DELIVERY_CHANGE       Change inbound delivery
    BAPI_INB_DELIVERY_CONFIRM_DEC  BAPI for inbound delivery verification from a decentralized system
    BAPI_INB_DELIVERY_SAVEREPLICA  BAPI Function Module for Replication of Inbound Deliveries
    BAPI_OUTB_DELIVERY_CHANGE      BAPI for Change to Outbound Delivery
    BAPI_OUTB_DELIVERY_CONFIRM_DEC BAPI for Outbound Delivery Verification from a Decentralized System
    BAPI_OUTB_DELIVERY_SAVEREPLICA BAPI Function Module for Replication of Outbound Deliveries
    BAPI_OUTB_DELIVERY_SPLIT_DEC   BAPI for Subsequent Outbound-Delivery Split from a Decentralized Syste
    u have to CHANGE Delivery i.e in change mode u can ADD.
    otherwise check user exits
    *        FORM-Routinen für Userexits
             include mv50afzz.
             include mv50afz1.
             include mv50afz2.
             include mv50afz3.          "Userexit neu zu Release 3.0A
             include mv50afzk.          "Userexit 4.6A (KOMKG/KOMPG)
             include mv50afzl.          "Userexit 4.6A Liefergruppen
                                                                   "n_693000
             include mv50afzp.          "Userexit for pricing screen input
    Regards
    Prabhu

  • 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

  • Purchase Order Line Item Creation DATE ?

    Hi All ,
    How can we fine the Line item creation date in PO ? I know EKPO-AEDAT but that is chaged date and its get updated if you chage the line Item after creating it . I need creation date for a perticular Line Item how can we get that ?. thanks in advance , I'll reward if useful.
    Thanks ,
    Lucky.

    Item creation is same as Order date of schedule line
    EKET-BEDAT
    Thanks
    Seshu

  • Disable PR line item based on user

    Hi Experts,
    I am developing a PR workflow.
    requirement is when Approver is taken to ME54n, he/she should only be able to approve the line for which he/she is responsible. other lines should be disabled for that user.
    Kindly Suggest how can i achive this.

    Hi Anurag,
    Thanks for your respond.
    No, it is refering to plan data.
    Users want to plan the yearly budget based on line items.
    Example:
    User select GL Code (Variable): 100010
    Planning layout should display:
    Material Group : 90001 Desc: Stationary
    Material No.----Quantity--Unit-----Amount
    A0001 Pen   
    A0011 2BPencil
    A3061 Eraser
    The user will only responsible to enter the budget for quantity, Unit and Amount.
    After finish budget for this gl code user will select
    another GL Code
    User select GL Code (Variable): 300010
    Asset No : 123456 Vehicle
    Asset Sub-No.----Quantity--Unit----Amount
    123-001 BMW
    123-023 BUS
    It is possible to be done?
    Regards,
    Jamie

  • 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

  • Transfer order creation Any User-Exit for item ?

    Hi all,
    I’m working with transfer order. What I’d like is to apply to the TO item my own fields.
    Is there a possibility to overwrite some of the fields of the ‘LTAP’ segment at transfer order item creation, using any enhancement (User-exit, …) ?
    Transaction used to create TO is LT43.
    I’ve try to use MWMTO001( but it doesn’t work, only for specific data (z table)).
    I’ve also try MWMTO008 ( doesn’t work for that )
    Fields I want to overwrite are VLTYP(Source storage type), VLPLA(Source Storage Bin), VPTYP, VLQNR.
    Hope someone can help me…Please ?

    Hi Erwan,
    give MWMTO004(EXIT_SAPLL03A_005) a try. It's a different event/time in document creation, but looks good comparing your fields you want to change.
    It's of course not only 'overwriting' VLTYP, VLPLA, ... but implementation of own / additional removal strategy. Might be more complicated, but sounds better for whole process.
    Regards,
    Christian

  • 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 ?

  • 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).

  • Line item creation in sales order

    Hi
    I am working on User Exit USER_EXIT_SAVE_DOCUMENT_PREPARE. On saving a sales order i need to do some validations and based on the validations i need to add a line item to the sales order in the user exit.
    What are the ways that i can create the line items through the user exit

    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

  • 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

  • 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?

  • Create dummy schedule line in SO using User-Exit

    Hi ,
    I have one requirement of adding one dummy schedule line before the normal schedule lines which gets added after ATP check in sales order.
    for eg: if for line item 10, system will determine 2 schedule 1 and 2. then i want to add a dummy schedule line before 1.
    so it will be like
    sch line
    1 - Dummy
    2 - system generated schedul eline 1.
    3 - system generated schedul eline 2.
    Please let me know if is there any user excit or any way i can achive this?
    Thanks,

    HI Soni,
    What is the meaning of dummy  schedule line.
    Regards,
    Madhu.
    Edited by: madhurao123 on Feb 25, 2011 5:26 AM

Maybe you are looking for

  • New Features for UPK with PeopleTools 8.53 and PeopleSoft 9.2

    Hello, does anyone know, where I can find information about the effect or new features PeopleTools 8.53 and PeopleSoft 9.2 have especially for UPK 11.0.0? I've searched a lot, but couldn't find any information of new features or changed integration o

  • How to know Active or open ports on a system

    How to know he open ports on a system. N e idea. regards, Rajesh Vincent.

  • Sending a JPanel to the printer...

    All, I wasn't sure if this was the appropriate forum for this, but I couldn't find one specific to printint to a printer. I'm trying to send a JPanel to a printer. I have the following routine which seems to more or less work, but exhibits a few prob

  • Oracle BI Publisher 11g - APEX compatiblity matrix

    Hi I'm looking for information regarding Oracle BI Publisher 11g's compatibility with APEX versions. Can the Oracle BI Publisher 11g product fully integrate with APEX 3.x or will it need a minimum APEX 4.x to work seamlessly? Thanks Kind Regards Greg

  • Moving itunes from one comuter to another after a crash

    Had a computer hard drive crash. Since I needed a new computer anyway, bought a new computer. Hooked up the old hard drive as an external, and copied it over to the new harddrive, so I have access to the old data. I re-installed itunes, hooked up the