How to add a partner in sales order item by enhancement?

Hi expert,
Sales order item's bill-to and payer will be same with header if you do not change it manually. now I want to modify some item's bill-to and payer which different from the header automatically. Is there any enhancement for this function?
Thanks and best regards
Lance

Hi Lance,
You can populate the XVBPA structure with function module "VIEW_XVBPA_FILL".
You have to pass the following values to the FM:
COMWA-KUNNR <- the changed partner code
COMWA-PARVW <- parter role
COMWA-VBELN, COMWA-POSNR <- Salesorder and item: just fill it with VBAK-VBELN,VBAP-POSNR
You'll get the result in parameter XVBPA, which can be used for append the internal
table XVBPA in the userexit.
BR,
Barna

Similar Messages

  • Add a partner at sales order item level?

    According to SAP note 380507 there is no partner determination on sales order item level.
    I've the following requirement: When an item with a certain item category is created a partner role/function should be added at the sales order item level.
    I've identified this userexit MV45AFZB / USEREXIT_CHECK_VBAP where I can add a line to iternal tabel XVBPA. Is use the fields:
    MANDT
    VBELN
    POSNR
    PARVW
    UPDKZ = 'I' (Insert)
    NRART = 'PE'
    FEHGR = '09'
    This works fine, the entry is correct displayed and stored in VBPA table in the sales order document.
    My challenge is that the incomplete log doesn't show that the partner role/function is still incomplete.
    When I enter the partner role/function manually (personal number = BLANK) then the incomplete log shows correctly.
    But not when I add it in the userexit.
    The behaviour should be that I add the partner role/function and the incomplete log should warn the user that he/she still has to enter a personal number for this partner.
    What to do?
    Thanks for your input, kind regards.
    Georg.

    Found the solution myself.
    Internal table XVBUV can be filled to generate incomplete log entries.
    Thx.

  • How to add three fields in Sales order item level and supress/hide many

    Hi Gurus,
    My client requirement is :
    1. Three fields to be added at Sales order Item level and they should flow till billing.
    2. Supress/hide most of the fields in Sales order, so that end user will be happy( thru SHDO how to do)
    Please share your experiences and help me.
    BEST REGARDS
    Srikanth

    Hi Subba Rao
    in VA01 screen - Material /qty/ after entering this client wants to enter three more details say X/Y/Z
    and after that he dont want to see maximum fields displayed in VA01 Screen.
    I think it makes sense.
    Regards
    Srikanth

  • How to default Delivery Priority on Sales Order Items from Ship To?

    Is there a way to pull the Delivery Priority from the Ship To partner when creating sales order items rather than pulling from the Sold To partner?  I've checked all of my documentation -- including OSS notes; searches on SDN, IT Toolbox, and internet.  This doesn't appear to be configurable.  Can someone confirm that or tell me how to configure?  If not configurable, what is the recommended user exit? 
    Thanks!

    Thanks for responding - you are the first person to do so.  Unfortunately, I think you missed the point of my question.  We do not want to create and maintain customer materials - the delivery priority is in generally not material dependent.  We simply want to be able to have the Sales order item use the Ship To partner's delivery priority rather than the Sold To partner's delivery priority as the default delivery priority on the sales order items.  Ideas on how to do that?

  • How to change material discription at sales order item level ?

    Dear Gurus,
            We have some requirement need to change material description at sales order item level , but in system it is in disable mode how to change that  into change mode in sales order item level?
    Thanks in advance
    Regards
    Venkat

    Not possible in SAP Standard.
    Instead why not create a Customer Material Info Record in T-Code - VD51?
    Alternatively it the requirement to change the Description is only for few Sales Order then create a Text ID & Enter the Description in Text Feild. Then in Smartform program wrie a code which will check for Material Description in the Text first & if not found then take from normal material Description in Sales Order.
    But Customer Material info Record seems to be the best solution.
    Hope this helps,
    Thanks,
    Jignesh Mehta

  • Partner Function- Sales Order item level

    Hi Gurus,
    I want to assigne Partner function -Employee responsible at sales order item level.
    i did the configuration settings and i am able to assigne the employee numner at sales order item level but i am not able to assigne partner function-employee resp more than 1. i want to assigne N number partner function- Emp Resp.
    kindly tell me the p

    Hi sumith
    As you want to assign N number of employees at item level . first of all go to IMG->sales and distribution ->basic functions->partner determination procedure->partner determination procedure at item level
    While doing partner determination procedure at item level don't check the boxes when you assign to your partner determination procedure. and just assign the sales  Employee partner function apart from the standard partner functions.(SP,SH,BP,PY).
    Now when you create the sales order and manually you can assign the sales employee number for all items.
    Regards
    Srinath

  • To Add Two ZFields to sales order Item (Column) of VA01

    Hi friends,
    My requirement is to Add Two Zfields at column level of Sales order Item of VA01.
    i found 8459 Screen Exit , but it will display in Additional Tab B .
    And aslo I need to get the zfield values for every line item .
    Example:
    ITEM  | MATERIAL    | SERVICIABLE MATERIAL | Service type(zfield)|
    10      |10000            | 10001                               | Cleaning
    15      |20000            |200001                              | Repair
    i hope u understand my query . so for each line item it will vary , i have to do the validation for all the line item fields.
    Please help me Very urgent.
    Thanks,
    Veera...

    Transaction Code - VA01                     Create Sales Order
    Exit Name           Description
    SDTRM001            Reschedule schedule lines without a new ATP check
    V45A0001            Determine alternative materials for product selection
    V45A0002            Predefine sold-to party in sales document
    V45A0003            Collector for customer function modulpool MV45A
    V45A0004            Copy packing proposal
    V45E0001            Update the purchase order from the sales order
    V45E0002            Data transfer in procurement elements (PRreq., assembly)
    V45L0001            SD component supplier processing (customer enhancements)
    V45P0001            SD customer function for cross-company code sales
    V45S0001            Update sales document from configuration
    V45S0003            MRP-relevance for incomplete configuration
    V45S0004            Effectivity type in sales order
    V45W0001            SD Service Management: Forward Contract Data to Item
    V46H0001            SD Customer functions for resource-related billing
    V60F0001            SD Billing plan (customer enhancement) diff. to billing plan
    Rewards if useful.
    Minal

  • How to put some tabs in sales order item level  invisible mode

    Hello Gurus ,
    Good evening everybody ,
    We have some specific requirement from the client - Client does n't want few  end users to see the price details in sales so they want  the condition tab to be  invisible mode in sales order item lvel only for few users  i.e the condition tab  should not be displayed  for that user  is this possible  ?
    Note : I only have idea setting few fields in  sales order  but not tabs in sales order through screen variant -SHD0
    Looking for your inputs
    Thanks and regards
    Venkat

    Hi,
    There are a couple of options you can go with.
    1) You can use Transaction and Screen variants to create your own ZVariant and then put that to user profile.  Allow the user to run only with the variant you setup for the user via authorizations.
    2) Get GUIXT software by Synactive, to perform the above task for you. 
    3) If you happen to have latest version of SAP ECC i.e. 6.0 with EHP3 or above, you can go with NWBC (Netweaver Business Client).
    Thanks
    Kapil Sharma

  • B2CBasket- Sales Order  How to add Vendor partner and new line item of SO

    Hi,
    I want to add the following BEFORE the sales order creation process starts:
    Add a VENDOR partner
    Add a new line item to ORDERADM_I
    I suspect in BADI CRM_ISA_BASKET_ITEMS and CRM_ISA_BASKET_HEAD. I have user 'HEAD' to add extension fields but cant figure the creation of NEW partners and NEW line item.
    regards,
    Dave

    Thank you for feedback Shantoor,
    The CRM_ORDER_MAINTAIN need not be called as this FM is called immediately following almost all of the CRM_ISA_* BADI's.
    For clarification I just want to expand on the solution..
    In all of these BADI's SAP uses the CT_INPUT_FIELDS parameter. This is where you should enter WHICH fields you have made changes to in the exit. CRM_ORDER_MAINTAIN uses the same parameter.
    However the challenge is .. WHAT do you enter in the CT_INPUT_FIELDS. This is where you have to follow a strategy. I yused the following:
    1. Looked where the structure was used in programs/class to see how SAP used it
    2. Set breakpoints at the call of the BADI. Check what CT_INPUT_FIELDS content is (SAP uses same technique)and try and replicate for your new entries.
    I hope this helps those that, like me, battled a bit with the use of these BADI's.

  • How to create a job card and how to add waranty card in sales order

    I have one scenario for CS.the scenario is realted to automotive industry. Basically its a trading industry of HCV,MCV,LCV apart from that they will do servicing also. First the customer comes for a service.he is having free services. he will have waranty for spare parts of the vehicle. once he comes for servicing first the executive will take complains from the customer after that a Job card will be issued to the customer. there his chasis no ,engine no and registration no will be there. once enter the chasis no entire customer details has to come. how many free services he is having for how many kilo meters.then job card will go to the spare parts dept.that dept will issue the spare parts.then they will invoice the customer. he will pay the payment.and finally the gate pass will be given to the customer to deliver the vehicle.
    painful area is how to create a job card and how to add waranty in sales order.
    Regards,
    Venkat

    Hi,
    Have u resolved it then Please let me know !!! It is a very interesting problem and owuld like to know the solution...
    Regards
    Krishna

  • How to add a button in Sales Order screen?

    Hi,
    Basically I want to add a new button "Show My lookup" in sales order screen and when clicking the button I want to show a form.
    Please anyone tell me how to do this?.
    thanks in advance
    Mina

    Here is a sample ItemEvent that adds a custom button to Sales Order Entry, and loads a form from XML when it is clicked.  Make sure you give the forms unique identifiers when you create them - the sample just uses a hardcoded value.
    Hope it helps,
    John
    Private Sub sboApp_ItemEvent(ByVal FormUID As String, pVal As SAPbouiCOM.IItemEvent, BubbleEvent As Boolean)
        On Error GoTo ErrorHandler
        Dim sboForm                 As SAPbouiCOM.Form
        Dim sboItem                 As SAPbouiCOM.Item
        Dim sboBtn                  As SAPbouiCOM.Button
        Dim objXMLDoc               As MSXML2.DOMDocument
        Dim objXMLErr               As IXMLDOMParseError
        Dim objXMLElem              As MSXML2.IXMLDOMElement
        Dim strIdentifier           As String
        If pVal.EventType = et_FORM_LOAD And pVal.Before_Action = False And pVal.FormType = 139 Then
            'Add Custom Button
            Set sboForm = sboApp.Forms(FormUID)
            Set sboItem = sboForm.Items.Add("AZU_BTN", it_BUTTON)
            sboItem.Top = sboForm.Items("1").Top
            sboItem.Width = "80"
            sboItem.Left = sboForm.Width - 105
            Set sboBtn = sboItem.Specific
            sboBtn.Caption = "Custom Button"
        End If
        If pVal.EventType = et_ITEM_PRESSED And pVal.Before_Action = False And pVal.ItemUID = "AZU_BTN" And pVal.FormType = 139 Then
            strIdentifier = "AZU_XXX" 'You should set this to a unique value each time
            Set objXMLDoc = New MSXML2.DOMDocument
            objXMLDoc.async = False
            objXMLDoc.validateOnParse = True
            objXMLDoc.Load (App.Path & "\Config\AZU_CUSTOM.srf")
            Set objXMLErr = objXMLDoc.parseError
            If (objXMLErr <> 0) Then
                MsgBox "Failed to load XML screen definition."
                Exit Sub
            Else
                For Each objXMLElem In objXMLDoc.getElementsByTagName("form")
                    objXMLElem.setAttribute "uid", strIdentifier
                Next
                sboApp.LoadBatchActions objXMLDoc.xml
            End If
        End If
        Exit Sub
    ErrorHandler:
        MsgBox Err.Number & " " & Err.Description
    End Sub

  • How to add a field in sales order header

    Hi all,
    I need to add a custom field say a check box in sales order header in additional data B tab.
    let me know step by step.
    Points will be rewarded.
    Thanks.
    Ramya

    additional data B in sales order
    sales order - Additional data B
    Add new fields to Additional Data B tab in sales order
    Reward Points..

  • How to add material characteristics in sales order via BAPI?

    Hi all!
    I'm trying to use BAPI_SALESORDER_CREATEFROMDAT1 to create a sales order with one item that has some characteristics, but i can't seem to get it work. It creates the salesorder with the item but without characteristics data. Can somebody tell me what could be wrong?
    Here's the code:
    header-doc_type   = 'TA'.
    header-sales_org  = '3000'.
    header-distr_chan = '10'.
    header-division   = '00'.
    items-itm_number = '000010'.
    items-material   = 'CP-12'.
    items-req_qty    = '1000'.
    APPEND items.
    partners-partn_role = 'AG'.
    partners-partn_numb = '0000050000'.
    APPEND partners.
    c_ref-posex     = '000010'.
    c_ref-config_id = '000001'.
    c_ref-root_id   = '00000001'.
    APPEND c_ref.
    c_ins-config_id = '000001'.
    c_ins-inst_id   = '00000001'.
    c_ins-obj_type  = 'MARA'.
    c_ins-obj_key   = 'CP-12'.
    c_ins-complete  = 'T'.
    c_ins-consistent = 'T'.
    c_ins-quantity  = '0'.
    c_ins-quantity_unit  = 'ST'.
    c_ins-class_type = '300'.
    APPEND c_ins.
    c_val-config_id = '000001'.
    c_val-inst_id   = '00000001'.
    c_val-charc     = 'CP_12_ADD_ON'.
    c_val-value     = 'F'.
    c_val-valcode   = '1'.
    APPEND c_val.
    c_val-charc     = 'CP_12_COLOUR'.
    c_val-value     = 'M'.
    APPEND c_val.
    c_val-charc     = 'CP_12_MODEL'.
    c_val-value     = 'M'.
    APPEND c_val.
    CALL FUNCTION 'BAPI_SALESORDER_CREATEFROMDAT1'
      EXPORTING
        order_header_in           = header
        convert_parvw_auart       = 'X'
      IMPORTING
       salesdocument             = salesdoc
       return                    = return
      TABLES
        order_items_in            = items
        order_partners            = partners
       order_cfgs_ref            = c_ref
       order_cfgs_inst           = c_ins
       order_cfgs_part_of        = c_prt
       order_cfgs_value          = c_val

    BAPI_SALESORDER_CREATEFROMDAT1
    "(obsolete from 4.6 version)
    BAPI_SALESORDER_CREATEFROMDAT2
    please see the version  and change the BAPI
    reward  points if it is usefull ....
    Girish

  • How to add a field in sales order

    Dear All,
    First I created a ZTable in which there are 15 fields exist then I append structure in ZVBAP which contain only one field from this ZTable. Now I place this field in the Subscreen 8459 of Sales Order under "Additional Data B" by using access key. Also i have Access to edit the module MV45AFZZ.
    Then I wote the code in the
    FORM userexit_save_document_prepare.
    IF XVBAP-ZZSPENR = ''.
    MESSAGE 'SPECIFICATION NO. IS NOT SPECIFIED' TYPE 'E'.
    ELSE.
    VBAP-ZZSPENR = ZSPEC-ZSPENR.
    ENDIF.
    ENDFORM.    
    so that while saving it Checks that field in screen and then if it has value then save it to in the VBAP Table.
    I think I have to write the code into the module
    FORM userexit_move_field_to_vbap.
    VBAP-zzfield = xxxx-zzfield2.
    *{   INSERT         ID3K908846                                        1
      DATA: zlgort LIKE vbap-lgort.
      IF vbap-pstyv EQ 'ZWP'.
        CHECK vbap-lgort IS INITIAL.
        GET PARAMETER ID 'LAG' FIELD zlgort.
        vbap-lgort = zlgort.
      ENDIF.
    *}   INSERT
    WA_XVBAP-ZZSPENR = xvbap-zzspenr.  "but this line gives * me error cause I have to move the screen fields into  * the VBAP Table. So that after this it checks in internal table XVBAP that the field ZZSPENR has value or not ?
    ENDFORM.
    But when I checks XVBAP TAble it shows all entries that I fill in Sales Order except ZZSPENR (My  Field)
    Thanks in advance.
    Regards.
    Adams.
    Helpful answer will be appretiated.

    hi Amams
    check this link
    Adding Fields to Sales order
    i think it may give u some idea
    Regards,
    Naveen

  • How to make field mandatory in Sales Order Item level?

    Hi SDN's,
    I need to make Shipping type field(Item level) mandatory in Sales order.
    Can any one tell me what is the user-exit to achieve this?
    Thanks in advance..
    Regards,
    Rahul

    Rahul,
    U can check the BADI     'BADI_SD_SALES_ITEM'
    othewise u can check
    Exit Program MV45AFZZ.
    Check the program SAPMV45A
    V45W0001
    V46H0001

Maybe you are looking for

  • From 6i to 10g "How to run a 10g report from OEM scheduler"

    We recently converted all of our 6i form and reports to 10g. We had forms and reports running as batch processes. Now that we are using 10g it is understood that we cannot run the forms as we did in 6i using OEM scheduler, so they were converted to s

  • Script to collect all fonts throw an assert in CS5 Debug. Have someone an idea to find the solution?

    Hello forum members, Sorry for my english, this is not my native language. I use a Script from http://www.typomedia.org/adobe/indesign/fontcatalog/ to get all fonts from %Systemroot%/Fonts and the font folder of InDesign and write a simple text with

  • RUNTIME EXCEPTION-Cannot cast null to boolean'.

    Hi Friends, I have the below mapping.The if condition is satisfied,even though 'then' value is going to the target field. When i try to check the queue of the 'IF' function it is throwing error RUNTIME EXCEPTION-Cannot cast null to boolean           

  • COPA report (material name)

    Dear Friends, We have maintained in MM master material name as "ABCDEF" under FG. but when i pull out report for this material using KE30 report - the material name only refelcts - "ABCD" why does not the complete name reflect in KE30 as well. i even

  • ESS~ WebDynpro ~ZERO object reference not possible

    Hello, this is about ESS (Mexican) -> IT 021 I ESS Prtaol I am getting the follwing error. Root Cause The initial exception that caused the request to fail, was:    com.sap.tc.webdynpro.modelimpl.dynamicrfc.WDDynamicRFCExecuteException: Access with Z