Need to add a custom defined partner at the time of creation of sales order

Hi Experts,
I request you some solution for me in this urgent requirement.
Scenario 1:
I have to create a partner in the sales order based on some validations with repect to bill-to party and ship-to party. The validations if success, will return me the data from an 'Z' function module which i need to populate to the new partner that will be created in the sales order.
I am using the program MV45AFZZ and the userexit USEREXIT_SAVE_DOCUMENT_PREPARE.
Now after getting the data for the new partner to be added, i have done this code..
      LOOP AT ws_dealer.
        xvbpa-kunnr  = ws_dealer-kunwe.
        xvbpa-parvw  = 'ZD'.
        xvbadr-telx1 = ws_dealer-primaryid.
        xvbadr-name1 = ws_dealer-physname.
        xvbadr-stras = ws_dealer-physstreet.
        xvbadr-ort01 = ws_dealer-physcity..
        xvbadr-regio = ws_dealer-physstate.
        xvbadr-pstlz = ws_dealer-postalcode.
        xvbadr-land1 = ws_dealer-ctrycode.
        xvbadr-telf1 = ws_dealer-phone.
        xvbadr-telf2 = ws_dealer-fax.
       xvbadr- = ws_dealer-email.
        xvbadr-telbx = ws_dealer-distance.
        APPEND xvbadr.
        APPEND xvbpa.
      ENDLOOP.
Now i'm getting the new partner number in the partners tab in sales order, but the new address details are not getting updated and the ship-to party address is only appearing in the screen.
Also i'm finding difficulty in updating the telex, email information in the sales order.
Scenario 2:
There are cases where some sales orders are getting created through an idoc. In that case, i have to populate the values from idoc especially the address details of all the partners to the screen and update the sales order.
Apart from populating value to all the partners, the process of scenario 1 will have to be carried again to create the 'Z' partner (if validation is successful).
For this case, i do not know which userexit i need to use. and how to go about this..
This is having a very tight deadline and it is extremely urgent for me.
Please help with your valauble answers.
Your help would certainly be appreciated and rewarded.
Thanks,
Ananth

Hi Mahulenka,
Thanks for your reply. I do not want the data from the customer master.
The partner data will come in the idoc and i wish to put the data in the sales order based on some validation for the standard partners like WE/AG/RE/RG.
The client has developed some 'Z' function module which contains the functionality of SAP FM - IDOC_INPUT_ORDERS.
Now for the partner which i'm creating 'ZD' i believe i should update the indicator UPDKZ to 'I' for XVBADR table as it is a new record. Why should i update in XVBAP table and i'm adding only partner and his address details. Also i think all this change i should put in USEREXIT_SAVE_DOCUMENT at the point of saving.
Please advise.
Thanks,
Ananth

Similar Messages

  • [svn:fx-trunk] 5465: Now that padding set on a TextInput does not affect the inner textView, we need to add a custom TextInput skin for the TextInput a Spark NumericStepper contains .

    Revision: 5465
    Author: [email protected]
    Date: 2009-03-20 11:52:56 -0700 (Fri, 20 Mar 2009)
    Log Message:
    Now that padding set on a TextInput does not affect the inner textView, we need to add a custom TextInput skin for the TextInput a Spark NumericStepper contains. Jim ok'ed the addition of the new FxNumericStepperTextInputSkin.mxml class into the spark.skins and wireframe packaged.
    SDK-18275, SDK-19849
    Reviewer: Glenn
    Checkintests: Pass
    Ticket Links:
    http://bugs.adobe.com/jira/browse/SDK-18275
    http://bugs.adobe.com/jira/browse/SDK-19849
    Modified Paths:
    flex/sdk/trunk/frameworks/projects/flex4/src/mx/components/FxNumericStepper.as
    flex/sdk/trunk/frameworks/projects/flex4/src/mx/skins/spark/FxNumericStepperSkin.mxml
    flex/sdk/trunk/frameworks/projects/wireframe/src/wireframe/FxNumericStepperSkin.mxml
    Added Paths:
    flex/sdk/trunk/frameworks/projects/flex4/src/mx/skins/spark/FxNumericStepperTextInputSkin .mxml
    flex/sdk/trunk/frameworks/projects/wireframe/src/wireframe/FxNumericStepperTextInputSkin. mxml

    Revision: 5465
    Author: [email protected]
    Date: 2009-03-20 11:52:56 -0700 (Fri, 20 Mar 2009)
    Log Message:
    Now that padding set on a TextInput does not affect the inner textView, we need to add a custom TextInput skin for the TextInput a Spark NumericStepper contains. Jim ok'ed the addition of the new FxNumericStepperTextInputSkin.mxml class into the spark.skins and wireframe packaged.
    SDK-18275, SDK-19849
    Reviewer: Glenn
    Checkintests: Pass
    Ticket Links:
    http://bugs.adobe.com/jira/browse/SDK-18275
    http://bugs.adobe.com/jira/browse/SDK-19849
    Modified Paths:
    flex/sdk/trunk/frameworks/projects/flex4/src/mx/components/FxNumericStepper.as
    flex/sdk/trunk/frameworks/projects/flex4/src/mx/skins/spark/FxNumericStepperSkin.mxml
    flex/sdk/trunk/frameworks/projects/wireframe/src/wireframe/FxNumericStepperSkin.mxml
    Added Paths:
    flex/sdk/trunk/frameworks/projects/flex4/src/mx/skins/spark/FxNumericStepperTextInputSkin .mxml
    flex/sdk/trunk/frameworks/projects/wireframe/src/wireframe/FxNumericStepperTextInputSkin. mxml

  • Attaching custom defined document to the BEx-report

    Hai
    I created a query in the Bex-Query Designer and then publish in the web through portals without using WebTemplates.
    Now my client wants to attach a custom defined document(which requirment gathering document) to this query . How can i attach this custom define document to the query .
    When i publish the report in the web then i have following tabs.
    DataAnalysis
    Graphical Display
    Information
    Information Broadcasting .
    when i go to 'information' there i have "Query Documentation" tab . When i press this tab how can i get the my custom defined document
    pls let me know
    kumar

    Hi ,,
    Do this way....
    Go RSA1 --> Documents -> meta data
    then select object type ELEM and select object name <the query u want>
    and add a text there or u can download from the file.
    In BEX in query property check mark the document display then it will show a link in report and when u click that it will show the details..
    did u check this as sent in ur previous thread....
    Thanks,
    Debasish

  • I need to add a secondary hard drive to my time capsule. Can something that has been set up for a windows machine work without re-formatting?

    I need to add a secondary hard drive to my time capsule. Can something that has been set up for a windows machine work without re-formatting?

    In addition to Niel's comments, if you plan to use Time Machine to backup a Mac to the secondary drive.....that application needs a drive that has been specifically formattted for Mac.  That would be Mac OS Extended (Journaled).
    PCs can also read and write to the Mac formatted drive.

  • In SharePoint 2013 navigation, is it possible to add a custom link only to the left-hand menu without getting it in to the top menu dropdown?

    If I want to add a custom link to the left-hand navigation menu In a SharePoint 2013 sub-site, it can be done by visiting
    Site Settings à Navigation section and adding the link under
    Structural Navigation: Editing and Sorting section. However, this will automatically add a matching link to the top menu as a dropdown.
    (Note that Global Navigation is set to “Display the same navigation items as the parent site” where “Parent is using Structural Navigation.” and Current Navigation is set to “Structural Navigation:
    Display only the navigation items below the current site”)
    Is there a way to just add a custom link only to the left-hand menu without getting it in to the top menu dropdown?

    Hi Asanka,
     Please refer the below link which may help you to resolve your problem.
    http://blog.navantis.com/configuring-sharepoint-2013-navigation-to-span-site-collections/
    If its not helping you please let us know
    Sekar - Our life is short, so help others to grow
    Whenever you see a reply and if you think is helpful, click "Vote As Helpful"! And whenever
    you see a reply being an answer to the question of the thread, click "Mark As Answer

  • How can I add a custom attribute to a catalog area? (CRM Isa Sales)

    Gents,
    How can I add a custom attribute to a catalog area? (CRM Isa Sales)
    Actually I would like to use the Catalog Area Type (maintained in trx COMM_PCAT_ADM on Catalog Area Header level). This field doesn't seem to be available in J2EE webshop. (The field documentation says it is for documentation purposes only so I don't expect it to be transferred).
    As this field is not readily available, I would like to add is as an attribute to the Catalog Area. BADI's PCAT_IMS_FEED_ATT and PCAT_IMS_FEED_VAL seem to indicate that it should be possible to add additional fields not only on product level, but also on Area level:
    Example implementation code:
    method IF_EX_PCAT_IMS_FEED_ATT~READ_NEW_FIELDS.
    * Example, how to add new attributes to a indexcategory
    * Possible levels are 'C'ategory and 'P'roduct.
    * Field 'VALUE' carries the attributetype ('S'tring, 'I'ntegar or
    * 'F'loat)
    * Structure 'IS_OBJECTS' carries actuall identifiers
      data: ls_fields        type comt_pcat_ims_feed_ux.
      case iv_level.
        when 'C'.                        "Category Level
    *     no new field
        when 'P'.                        "Product Level
          ls_fields-field = 'CUSTOMER_EXIT_FIELD'.
          ls_Fields-value = 'S'.
          append ls_fields to ct_fields.
    *     exproduct fields
          ls_fields-field = 'REMAN_ABL'.
          APPEND ls_fields TO ct_fields.
          ls_fields-field = 'EXCH_BUS'.
          APPEND ls_fields TO ct_fields.
      endcase.
    endmethod.
    However, when I create an implementation and add some code in the when 'C' part, the attributes do not seem to get transferred. (I've checked in the debug mode of the developer studio).
    - My example code:
    METHOD if_ex_pcat_ims_feed_att~read_new_fields.
    * Possible levels are 'C'ategory and 'P'roduct.
    * Field 'VALUE' contains the attributetype
    * ('S'tring, 'I'ntegar or * 'F'loat)
      DATA:
      ls_fields LIKE LINE OF ct_fields.
      CASE iv_level.
        WHEN 'C'.                        "Category Level
          ls_fields-value = 'S'.
          ls_fields-field = 'ZTEST'.
           APPEND ls_fields TO ct_fields.
        WHEN 'P'.                        "Product Level
      ENDCASE.
    ENDMETHOD.
    and:
    METHOD if_ex_pcat_ims_feed_val~read_new_fields.
      CASE iv_level.
        WHEN 'C'.
         ls_fields-field = 'ZTEST'.
         ls_Fields-value = 'Value 1'.
         append ls_fields to ct_fields.
        WHEN 'P'.
      ENDCASE.
    ENDMETHOD.
    In the ABAP debugger, I can see that my code is touched during initial and delta replications, however, after replication, the fields do not show up in the Java debugger.
    Any ideas?
    regards,
    Wilco Menge

    Hi,
    How can I customize the /bin/wcmcommand or how can I make use of [2] to create a custom WCMCommand?
    I think the "formUrl" is to post those input value to the jcr repository?
    var createDialog = {
            "jcr:primaryType": "cq:Dialog",
            "id": CQ.Util.createId("cq-createdialog"),
            "title":CQ.I18n.getMessage("Create Page"),
            "formUrl": CQ.shared.HTTP.externalize("/bin/wcmcommand"),
            "params": {
                "cmd":"createPage",
                "_charset_":"utf-8"
    I have added a field called "starred"
    Moreover, when I using the firebug to trace the post command, I can see that the starred value is posted also.
    :status
    browser
    _charset_
    utf-8
    cmd
    createPage
    label
    b
    parentPath
    /content/keyword_elaboration
    starred
    c
    template
    /libs/collab/commons/templates/form
    title
    a
    Source
    cmd=createPage&_charset_=utf-8&%3Astatus=browser&parentPath=%2Fcontent%2Fkeyword_elaboration&title=a&label=b&starred=c&template=%2Flibs%2Fcollab%2Fcommons%2Ftemplates%2Fform
    However, when I go to the crxde to view the node's attribute, the properity starred is not created
    Are there anything I did wrong or missing?
    Thanks.
    Message was edited by: aslkit

  • I am currently using FormsCentral to distribute a form created in Acrobat. I need to add an option to one of the drop down fields but do not want to re-distribute the form due to reporting purposes. How can I do this?

       I am currently using FormsCentral to distribute a form created in Acrobat. I need to add an option to one of the drop down fields but do not want to re-distribute the form due to reporting purposes. How can I do this?

    You can open the form in Acrobat, select "File > Save a Copy", open the copy you just saved (it doesn't happen automatically), edit the dropdown to add the new item, save as a new file, and then Reader-enable the file by selecting: File > Save As Other > Reader Extended PDF > Enable More Tools. The resulting PDF should work with FormsCentral just like the original.

  • Partner determination functions are not determine in sales order

    Dear Sap Gurus,
    I have made a new partner function (P2) and have been configure it in partner determination procedure, although i hv made new customer master for the same account group. All th partner function are showing in the customer master data but these are not determine in sales order, one error is coming...this partner procedure is not defined.......kindly give me advide how to resolve this problem.
    Regards
    Parul Deshwal

    Hi
    Have you assigned the Partner determination procedure to your sales document type?
    Also have you assigned the Partner function to your Partner determination procedure.
    Also do the same to the sales order item partner determination
    regards
    Prashanth

  • Restrict creation of sales order for specific customer

    Hello All,
    I want to restrict creation of sales order (of particular sales order type) for specific customer, please let me know how can I do it.
    Your early reply will be highly appreciated.
    Thanks & Regards,
    Mahavir

    HI
    As per My knowledge it is not possible in Standard SAP , you need to go with Enhancement
    Go to SE38 : MV45AFZB, User Exit: USEREXIT_CHECK_VBAK
    Regards,
    Prasanna

  • Need of User-Exit  in the creation of Sales Order(VA01)

    Hi,
    In the creation of Sales Order, I need to Compare the Ordered Quantity and Confirmed Quantity. If the CQ is less than OQ I need to create one more line item with the same material for the rest of the quantity and send the request to Production order for the remaining quantity. For this I am unable to get the exact exit. Please help me in this regard ASAP.
    Thank you.

    the following program are the user exit for billing.
    we often use RV60AFZC and RV60AFZZ.
    RV60AFZA
    RV60AFZB
    RV60AFZC
    RV60AFZD
    RV60AFZZ
    RV60BFZA
    For Sales order
    Pricing, item addtion deletion
    MV45AFZZ
    First, I did not find documentation for the BADI either. But at the first glance the process of implementing it looks quite straightforward. I assume you run R/3 Enterprise (4.7). So, you should implement BADI 'BADI_SD_SALES' - this must be done in transaction SE19. In particular for the purpose of adding some additional items into sales document I would implement method SAVE_DOCUMENT_PREPARE. This method has changing table parameter FXVBAP of type VA_VBAPVB_T - it holds all the sales document items. Just add items of yours to it. Certainly, you have to fill all the appropriate fields carefully.
    Hope this helps somehow.
    In that case you should use USEREXIT_DOCUMENT_SAVE_PREPARE subroutine (form). As far as I remember it has no parameters. To add items to the sales document you should modify internal table XVBAP.
    regards
    vinod

  • Alert message is needed at the time of creation ,if it reaches ,the maximu

    DEAR SA EXPERTS,
    Can you please me that alert message is needed at the time of creation ,if it reaches ,the maximum stock level (Stock+level)
    Thanks
    Mohit

    Hi,
    Please refer the below links.
    Alert Message
    Re: Alert Message
    Hope it helps you.
    Thanks.

  • Need logic for calculate the balance quantity in open sales order

    hi all
    i need logic to calcuclate the balance quantity in open sales order ,
    where i am using VBAK header and VBAP item , and VBFA for document flow tables
    i need to have the balance quantity , for the open sales order
    especially taking with respect to  VBFA-VBTYP_N = M for invoice creation and N for canellation
    any one please help me

    thank you but i am clear abt it
    will you please anyother way to calucaluate the logic ,
    and i need to populate in bukets also for the terms of 5 years
    Edited by: sridhar loganathan on Nov 25, 2008 6:43 AM

  • Want the Customer specific validations at the time of asset posting

    Dear all,
    I want to implement Customer specific validations at the time of asset posting(ABZON , F-90 , F-91).Please tell which user-exit should I use??
    AINT0004 is working only for ABZON.
    AINT0001 is not as per my requirements!!
    Regards,
    Amiya

    Hi Amiya ,
    u can achieve thru Validations / Substitutions OB28. But u have limitations  in the implementations of Logic .
    regards
    Prabhu

  • How to define the detail "Condition" item for  sales order?

    Hi, I checked the condition information of a sales order, the following contents were displayed:
    PR00     Price     230.00
         Gross Value     230.00
         Discount Amount     0.00
         Net Value for Item     230.00
         Net Value 2     230.00
         Net Price     230.00
    I can understand that the price 230.00 can be maintained via tcode: vk11, what I want to know is:
    How to define/control the following items such as:
    Gross Value     230.00
    Discount Amount     0.00
    Net Value for Item     230.00
    Net Value 2     230.00
    Net Price     230.00
    and how to control their currency?
    Thanks.

    Hi, Dear Ferry Lianto,
    Thank you very much.
    Commonly I know the total pricing procedures.
    But, would you please tell me how to control the CURRENCY for the subitem of a condition type as follows?
    For example, I can see the following kind of
    contents in the Tab:condition of a sales order:
    PR00     Price     130.00000      TEST     100
         Gross Value     20.12      USD     100 <-how to
         Discount Amount     0.00      USD     100
         Rebate Basis     20.12      USD     100
         Net Value for Item     20.12      USD     100
         Net Value 2     20.12      USD     100
         Net Value 3     20.12      USD     100
    VPRS     Cost     27.22      HKD
         Profit Margin     16.61      USD
    The currency of PR00:price can be controlled via tcode VK12; but how to control the currency of its subitem such as gross value, discount amountm, net value for item, net value 2, & net calue 3...
    Thanks and regards.

  • Need to add a custom field in ME23N  item detail

    Hi Experts,
    I am new to SAP.
    Got an issue to add custom field in ME23N transaction.
    In item detail part , there is a tab called Retail
    inside that tab i need to add  new field..
    is it possible to do?? if so kindly let me know..
    Thanks in advance
    Regards,
    Annamalai.

    Hi Brother,
    [http://wiki.sdn.sap.com/wiki/display/ABAP/DetailedexplanationaboutBADIandthewaystofindtheBADIwithanexample%28ME23n+transaction%29]
    As Rob told there are good threads available in SCN. Please check those. Check this link.
    Given by Kiran.
    Regards,
    Madhu.
    Edited by: madhurao123 on Jul 8, 2011 9:56 AM

Maybe you are looking for

  • Itunes 7.7 wont run

    I bought a new iPod and had to download 7.7 for the new iPod. after doing that following instructions etc I can't get iTunes to open from the desktop short cut/all programs short cut. I've tried to repair I've removed and re-installed I got iTunes to

  • Errors while upgrading from 9i to 11gR1 during catuprd.sql

    Hi, I am very new into the world of databases and am learning it the hard way. Testing all sorts of work on my home PC. I am in the process of upgrading my Win 32 9.2.0.8 to 11gR1 and am at the stage of running catupgrd.sql. The SQL ran for hours and

  • I cant buy gems on coc

    I Cant buy gems on clash of clans. It said "your purchase could not be completed,please contact your itunes support." i'm still waiting response from apple. can you guys tell me what should i do and whats wrong with my account? I have the balance but

  • Search help - from a list of user  secific valu

    hi how to create a serach help for a select-options or parameters which contains only a list of user specified values not entirely of the DDIC values Thx for any replies

  • Concurrent transactions

    Hi, please consider a plain old Java (not EJBs) application for a book store. The application offer 3 operations: 1. Add new book (Store the book info in the DB). 2. Remove book (remove the book info from the DB). 3. Modify book (update the book info