Default Functional Area in Sales Order Line Items

Hi,
Is there any user exit that can be used to default Functional Area in Sales Order Line Items.
I tried mv45afzz but not working. Any idea and do let me know the field or structure effected.
Thanks.

Hi Sathish
You can update table XVBAP from program SAPMV45A in program mv45afzz like code below:
FIELD-SYMBOL: <mytab> LIKE STANDRD TABLE OF VBAP.
   ASSIGN (SAPMV45A)XVBAP TO <mytab>.
   LOOP AT <mytab>.
   ENDLOOP.
I hop it helps .
Kind regards
Carlos Machado

Similar Messages

  • Default profit center in sales order line item level

    Hi Experts,
    In creation of a sales order, I want to default the profit center for every line item in the order depending on some logic. How do I go about it.
    Warm Regards,
    Abdullah Ismail

    Hi,
    You would need to implement a user exit:
    try this user exit :
    USEREXIT_MOVE_FIELD_TO_VBAP
    Use this user exit to assign values to new fields at sales document item level. It is described in the section "Copy customer master fields into the sales document".
    regards,
    Advait

  • Sales order line item as cost object

    Hi all,
    I am looking for a document on configuring sales order line item as a cost object.
    Also by doing this, does this mean it is unnecessary to specify a cost center/profit center in the SO line item, since the costs/profits will be captured in the line item itself?
    Any links would be helpful,
    Thanks

    Hi,
    Please refer the below link..
    http://sap.ittoolbox.com/groups/technical-functional/sap-acct/sales-order-line-item-as-cost-object-1843181
    http://help.sap.com/saphelp_470/helpdata/en/90/ba7096446711d189420000e829fbbd/content.htm
    Kuber

  • Finding open sales order line items

    Hello,
    First time poster and new to SAP so here goes:
    I am trying to find a better method for finding our open sales order line items.
    So far I am joining VBAK-VBUP-VBAP in that order and my scan logic is for sales document type (vbak-auart) of ZOR and ZDEW with an overall status (vbup-gbsta) of A or B.
    This logic use to work but now all it does is timeout after 60 minutes.
    VBAK has 6,766,828 total records in it
    VBUP has 16,431,117 total records in it
    VBAP has 12.9 million total records
    Thanks,
    Randy

    Hi Randy,
    For your requirement VBAK&VBUPtables are enough.
    Firstly you can read the table VBAK where AUART = 'ZOR' or 'ZDEW'.
    After this you will get all the sales orders with the order types ZOR or ZDEW.
    For these sales orders you can read VBUP tables.
    In this table there is a field <i><b>delivery status</b></i>.
    If this filed value is <i><b>C</b></i> then that line item delivery is completed.
    if it is not equal to <i><b>C</b></i> then those line items are open sales order line
    items.
    Thanks,
    shyla

  • Sales Order line item Partner Function issue.

    Dear Guru's
    I want to assign the (Employee response) partner function ER more than 5 times in Sales Order line partner function tab, but system is not accepting for that.
    Please suggest me how to over come this issue with out assigning the u201CERu201D partner function more than 5 times in sales order line item Partner determination procedure.
    Regards,
    Hari Krishna

    sent this to SD module (Sales and Distribution) Forum
    this is PS module and we do not deal with this object

  • Sales Order Line item category not getting Re detemining Correctly

    Dear all,
                I need  help regarding the Sales order item category redetermination.
                we are having two item categories YNAE and YNAG and it contains schedule  line categories CP and CB ( i.e for item         category  YNAE schedule line category is CP and for item category YNAG schedule line category is CB),
    for YNAG Purchase Requisition is automatically created becz of functional setting on save and it is working fine.
    For every line item in sales order line item level item category YNAE will be determined by default as per functional settings.
             Now my requirement is that, if sales order line item doesn't contain 100% confirmed quantity, than i needs to change the default line item category YNAE to YNAG which i am trying to do it in USEREXIT_PRICING_PREPARE_TKOMP becz in this exit i am getting the values in XVBAP and XVBEP and  it is working fine .
             But schedule line category is not getting redetermined automatically what i mean is, if i change the item category to YNAG from YNAE in user exit corresponding schedule line category CB of YNAG is getting determined automatically at the schedule line level and if ichange the schedule line categories in XVBEP in exit USEREXIT_PRICING_PREPARE_TKOMP, changes are reflecting at the schedule line level but Purchase requisation is not getting created for schedule line on SAVE and its delivary dates are also not getting determined properly. If i press the option ATP check at the schedule line level than very things will getting corrected.
       I feel that i am not doing this in proper way, do u have any idea about how to redetermine item category. please let me know if u have any idea .
    Regards,
    Vaddepally Manoj

    USEREXIT_PRICING_PREPARE_TKOMP is the wrong location - that exit is for pricing communication preparation only.  Your primary location for item category determination is USEREXIT_SOURCE_DETERMINATION (MV45AFZB).  In your simple scenario, you could consider making an availability check at this point with some assumptions and then assign the item category accordingly.  Otherwise, you can re-assign item category and schedule line category in USEREXIT_MOVE_FIELD_TO_VBEP.  The exit is called once before ATP (for ATP-relevant schedule line categories) and once afterwards.  The call is recursive if you re-assign another ATP-relevant category.

  • Third Party GRN Posting Date to be Copied to Sales Order Line item Billing Date

    Hello Experts
    I have a client requirement where in they want to bill line items in the sales order ( third party process ) to the end customer in sync with the GRN posting dates happened in the PO
    For EG if GRN happened on 1st July 2014 then Billing Date should come in as 31st July 2014 so when they execute VF04 giving from and to dates as 1st july to 31st corresponding sales order can be invoiced
    Actual problem is for suppose if i create a sales order in the month of june say 26th basing on the factory calendar setting and invoicing list maintained in the customer master system defaults the billing date to 30th June 2014 , and the same when user runs VF04 from 1st June to 30th June this sales order shows as due and mistakenly end user invoices the customer ( whereas logical GR would have only received in July 1st )
    My requirement is similar to below threads but i am unable to find answer how to copy GR Posting date to Billing Date of the sales order line item
    use GR Doc date as billing date
    3rd party sales process (w/o ship notif) - Billing

    Hi Lakshmipathi ji,
    As my requirement is to update the billing date at the sales order line item level , As a process user goes in executes VF04
    For Ex
    Sales Order Created Date is 1st June 2014 then System Defaults Billing Date at line item to 30th June 2014
    Now when i do GRN suppose on 1st July 2014 for that line item , system should trigger a code where in check the posting date of the GRN and override the same in the Biiling Date field of the sales order line item
    So when VF04 is run for a month All the GRN which are recieved in the month of July are invoiced in July
    Please share me your thoughts do we need to check any userexits from MM side which reads the posting date of GRN and then copies in to my third party sales order
    Regards
    Hiba

  • Copying text from CMIR (KNMT) to the Sales Order Line Item

    We need to copy text from the CMIR (KNMT) to the Sales Order Line Item with two steps in the access sequence. First to look up by the Ship to Partner Function.  If doesn't exist, then look up by Sold to Partner Function.  Have setup a new text id (ZPRN), a new access seq (9011).  The access seq has one seq =5 for KNMT, ZPRN, all languages and that saves fine.  When I set the Partner Function to be SH.  I get the following error msg:
    "The Language does not come from the partner function AG for MVKE".
    Any ideas?  This access seq does not reference MVKE. It only references KNMT.
    Thanks!

    Hi Lisa,
    Just stumbled on this post, as I am searching for something similar.
    What you are attempting to do isn't possible in config.
    This is because as standard Customer Material Info Records are not even considered for ship-to party in the sales order.
    They work for sold-to only.
    Therefore, this funny error message is SAP's way of saying, "Why are you trying to enter a partner here, because the data is determined for sold to only?"
    You can change this with development for other fields (ie, to determine delivery plant, tolerances etc at ship-to) by using
    the exit MV45AFZB with the USEREXIT_CUST_MATERIAL_READ form.
    However, even if you do this, Text Determination is still sold-to only and still doesn't behave.
    I am currently looking myself for a solution for this problem and I will let you know what I find.
    Cheers
    Chris

  • Sales Order Line item characteristics (classes)

    I am not 100% sure what I am talking about but I need to get characteristics for materials on sales orders (line items).  I am told that these characteristics are stored in classes which get assigned to materials via the material master.  I am also told that these characteristics (classes) are created/maintained in transaction CT04.
    My ultimate goal is to create an iDoc similar to LOIPRO01 only include the characteristics for each material.  I imagine that I will be getting the characteristics from a BAPI or FM but I do not know which one.  Also, is there an existing iDoc that contains the fields of LOIPRO01 and also the characteristics?  Right now my plan is to copy LOIPRO01 into a Z iDoc and add the characteristics.
    I did search and I found that people were suggesting BAPI_OBJCL_GETDETAIL and FM CLAF_CLASSIFICATION_OF_OBJECTS.  However, I ran them using the test functionality and they didn't seem to return what I need.
    Regards,
    Davis

    Max,
    Thanks but those give me the details of the characteristics but I need the characteristics of the line items on an order.  I am looking for the way to link up the line item to the characteristics. 
    Davis

  • Tracking Number Information in B2B sales order line item

    Hello Experts
    Does anyone aware of the settings to be done to get tracking number (e.g tracking number given by DHL, Carrier Company) displayed on sales order line item.
    Following steps has been followed, but we can not see the tracking number at the line item level:
    Tracking the Shipping Status
    You can enable customers to track the shipping status of their Web shop orders using an external shipping provider. If the external shipping agency offers shipping information on the Internet, customers can access the shipping status directly via a hyperlink from the order. This enables customers to track their delivery during the shipping process.
    Prerequisites
    u2022     Your appointed haulage firm offers the shipping status tracking service.
    u2022     The haulage firm has assigned a bill of lading for each order and informed you of it.
    Activities
    1.     Call transaction VL03N in the ERP system.
    2.     Choose Display <-> Change.
    3.     Choose   Goto  Header  Partners  . Enter the data of the corresponding carrier.
    4.     Choose Shipment. In BillOfLad, enter the tracking number.
    Folks, any help will be highly appreciated
    Thanks
    DJ

    Hi DJ,
    Most of the settings that are required to display the tracking number in the web shop are ECC dependent. The function module that gets the tracking related information in the Run Time is CRM_ISA_BASKET_STATUS_ENH.
    In the above function module at line number 383 contains the relevant logic to get the tracking related information from the ECC system. At this line number the function module BAPI_XSI_GET_VTRK_G is called remotely in ECC.
    ABAP Stack in ECC:
    BAPI_XSI_GET_VTRK_G (FUNCTION MODULE)
                XSI_CREATE_TRACK_URLS (FUNCTION MODULE)
                                    TRK_GET_URLS (SUBROUTINE)
                                                    XSI_CREATE_TRACK_URL_MULTI (FUNCTION MODULE)
                                                                    XSI_CREATE_TRACK_URL (FUNCTION MODULE)
    Transaction Codes where the settings need to be done in ECC:
    1.     VTRC - Maintain Express Delivery Company
    2.     0VVT - Set Up : Express Delivery Company
    3.     VTRK - Parcel Tracking
    Database tables relevant for Tracking in ECC:
    1.     VXSITDU u2013 Express Delivery Company : URLs
    2.     VXSITDL u2013 Express Delivery Company Data Field
    3.     VTRKH u2013 Tracking Data Header
    4.     VTRKP u2013 Tracking Data Item
    5.     VLBL u2013 Express Delivery Company Data Field
    6.     TCAVAR u2013 Carrier URL Connection (Substitution of Variables)
    7.     TCAURL u2013 Carrier URL Connection
    8.     EKES u2013 Vendor Confirmations
    Best Regards,
    Chanakya Reddy

  • Sales order line items delivery cancelled but still appears in MD04.

    Hi PP Gurus,
    In the sales there are 6 line items are there out of which for 1 line item delivery and PGI happened. And for remaining line items delivery got cancelled, but these line items for which delivery cancelled appearing in the MD04, I have rejected the sales order line items but these line items still shows in MD04. Please advise how to remove these line items from MD04.
    Thanks and Regards,
    SHARAN.

    Hi
    Pl refer SAP Note : 1166713 for the Problem which says " You have posted goods issue and therefore the delivery requirements should no longer be existing. These inconsistencies can be seen using report SDRQCR21"
    Regards
    Brahmaji

  • This field cannot be updated as there are open sales order lines

    When trying to enable Item Attributes then I am getting a message "This field cannot be updated as there are open sales order lines". I cancelled the Sales Order ( which was having only 1 sales order line and that is also cancelled) but still I am getting the same message.
    How to overcome this problem.
    Khan

    Thanks Karthik & Sandeep........
    Issue got fixed. There was an open Sales order Line because of that line the issue was coming. After cancelling that SO Line, Users were able to update the Item field.
    Regards,
    Khan.
    http://moreapps4u.blogspot.com/

  • How to upload sales order line items?

    SAPGurus,
    For years my customer service department has been asking for a way to upload sales order line items into the VA01 sales order-entry screen.
    Many of our customers submit PO's with huge amount of line items, up to 1,000 lines. Our CS reps need to key in the data line by line (or copy/paste
    approx 17 lines at once from Excel into the VA01 screen), and we are looking for a way to make this process leaner. One idea we have is that user creates the order header, and then has a way to upload the material numbers and quantities in a separate (newly created Z-transaction) screen in one go.
    Obviously rules then need to be built that deal with the various pop-up messages related to e.g. ATP, material status, etc.
    Does anyone have any experience or thoughts on how we could achieve this? A way to make the sales order-entry process a bit less time-consuming? Any feedback would be greatly appreciated !
    Thank you,
    RVS

    Take the inputs from this Blog created by  SUNIL PILLAI                   
    Sales Documents upload  using Standard Direct Input Program in LSMW
    G. Lakshmipathi

  • Change the Profit Center in Sales Order line item's Account assignment tab

    Hi Gurus,
    I need to change the Profit Center at Sales order Line item in Account Assignment Tab. Currently  The Profit center is coming from Material Master for the Line Item's Material as default but I have to change / overwrite  that.
    Can any body provide me how can i achive that means
    Any User exits, substitution or any thing ?
    I tried MV45AFZZ but i am not able to find out the right place where I can change COBL-PRCTR.
    Sony

    Hi
    There is perform which moves the values to VBAP field.
    This PRCTR field is stored in VBAP (i.e., SO line item table)
    USEREXIT_MOVE_FIELD_TO_VBAP
    Hope it works.
    VVR

  • Restrict deletion of sales order line items

    Hi,
    I need to restrict deleting of sales order line item, I think we can use the user exit, MV45AFZB, USEREXIT_CHECK_XVBAP_FOR_DELE.
    But when i set the flag to 'X', even though it does not delete at tht instance when the sales order save is clicked again the line item gets deleted.
    ANy idea , to prevent that?
    Thanks
    Keshi

    Hi Keshi,
    That is the correct exit, we are using the same without any problem. Just set US_EXIT  = CHARX.
    Regards,
    John.

Maybe you are looking for

  • JSObject.eval() works in IE, not in Netscape 6

    I've heard of the string you pass to eval() being too long so it takes a few seconds, but it doesn't work at all for me. And no errors in plug-in console. I am trying to manipulate form values and then force a submit. That should be possible in Netsc

  • HD webcam for the Mac

    Does anybody have suggestions for a HD webcam for the latest Mac Mini that will actually perform HD video calling (720p) in all applications that support HD video calling (like Skype, Facetime HD, Bria, VidyoDesktop). Please don't post a recommendati

  • Can't export web based 'sent' mail out of Network Solutions server

    can't export web based 'sent' mail out of Network Solutions. Inbox and mozilla based sent mail ok. thanks!

  • Need to change my email

    I need to change the email in iCloud

  • Error when loading PDF

    Hello, Can anybody please mention the steps that are required while loading PDF to the repository? We are not able to load it resulting in error. "MDM Server Log error". Many thanks, Dharmi