How to synchonize the field of Sales group in VN01  from R/3

Dear  Sir,
I would like to synchonize the field of Sales group in T-code VN01 in SAP  R/3 to CRM. I can't see the field of Sales group in R/3 , what should I do ??
Please kindly advise.
Thank you and best regards,
Vimol

Hi,
To do it in JS you need to use oData, as wrote above:
to make this requests easer, i use a XrmSvcToolkit library (https://xrmsvctoolkit.codeplex.com/)
Your code will be about this:
/// <reference path="rtb_XrmSvcToolkit.js" />
XrmSvcToolkit.retrieve({
entityName: "Entity1",
id: Xrm.Page.getAttribute("quantity").getValue()[0].id,
select: ["my_FieldNeedToUpdate"], //Here are the name of your fields, which you want to select.
expand: [""],
async: false,
successCallback: function (result) {
FieldNeedToUpdate= result.my_FieldNeedToUpdate;
errorCallback: function (error) {
Error = error;
FieldNeedToUpdate = FieldNeedToUpdate + 1; //Doing some work here
var InputEntity =
my_FieldNeedToUpdate: FieldNeedToUpdate //here are fields, witch you want to update
XrmSvcToolkit.updateRecord({
entityName: "Entity1",
id: Xrm.Page.getAttribute("quantity").getValue()[0].id,
entity: InputEntity ,
async: false
Here are more samples:
https://xrmsvctoolkit.codeplex.com/SourceControl/latest#Samples/XrvSvcToolkit.Samples.updateRecord.js

Similar Messages

  • How to Check the Profit Center - Sales Group - Sales District for a BP

    Hi,
    How to Check the Profit Center - Sales Group - Sales District for a Business Partner?
    I am not able to identify which Profit center - Sales Group- Sales District was assigned to a Business Partner. Please provide me some inputs to check this.
    thanks
    Yadayya

    Hi
    Pls check these tables for data or prepare a z report with abapers.
    GLPCA u2013 PCA line items
    VBKD u2013 sales district
    TVKGR u2013 Sales group
    BUT000 u2013 Business Partner
    Regards
    Sridhara Rao D

  • How can the field 'Volume Rebate Group (Bonus)' be updated in sales doc.

    Hi
    I have changed the field 'volume rebate group' (BONUS) in the material master,
    Old value 99 - new value 01
    But when I bill an order which was entered before the change in material master
    the old value 99 is used - and consequently the rebate agreement is wrong.
    I am using the old update.
    I really appreciate your kind help.
    Best Regards
    Carina Grand

    Hi Carina,
    Unfortunatelly the Rebate volume group (BONUS) is stored already in VBAP table (field VBPA-BONUS) and is not availalbe on any of the screens for user modification. So you have following option:
    1. update the field directly in VBAP table on DB creating custom program - this will work only if the billing doc has not been created for a sales order, otherwise you need to update the VBRP-BONUS field as well.
    2. reject the sales order items with incorrect Rebate volume group field and create new items with the same material, qty and pricing conditions - requires more effort, but in line with standard. This will not work for already billed items.
    Regards,
    Marcin

  • 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 populate the field Discount Percent (DIS) in the outbound S1ORDEXC?

    Hello all,
    I am working with the Spec2000 to send out the IDOC S1ORDEXC.
    Does anyone know how to populate the field Discount Percent (DIS)?
    This field length of Discount Percent is 2 characters, but our customer discount in the Princing Conditions (Sales Order) is longer than 2 characters (ex:  7.500-%)
    Thank you

    Hello Thuan
    I guess you are working with IS- ADEC and SPEC 2000. I am not an expert on this but leave you some hints from OSS notes I came across.
    It appears like Discount Percent - DIS and Procurement Discount Percent -PDP are complementary and mutually exclusive. If one exists, the other need not.
    Looks like DIS is computed as (100-PDP)/100 and it is just a 2- integer data (as in 20 Percent). It is a kind of multiplier (Factor), example if  PDP discount is 10 percent, then DIS (Factor) is 0.9 and so  final (net) price after discount = Price*0.9.
    " If the discount comes in the S1BOOKED inbound into SD in the field DIS, then the discount has to be sent back in the DIS field .. if it came in the PDP field then it has to be sent back in the PDP field. If there was no discount in the incoming IDoc, then the discount has to be filled in the PDP if there was a change in the discount".
    KDATE in SPEC 2000 file maps to DIS and KPERC to PDP.
    PDP has 4 characters and per OSS note 440380, the point is ignored meaning you can work with 1225 instead of 12.25.
    So may be you can work with PDP?
    OSS notes: Apply to older releases but may still be applicable conceptually speaking.
    456153 - S1ORDEXC does not send out Discount
    440380 - PDP has only 4 characters in the SPEC IDoc instead of 5
    596042 - Discount percent DIS not considered e processing S1ORDEXC
    698668 - Incorrect calculation of unit price for PO item by S1ORDEXC
    Let me know you final findings.

  • How to Change the Fields from Input mode to display mode

    Hi experts,
    Here is my business requirement. I need to show certain fields in the PRICING TAB OF SALES ORDER  in display mode. Now for this i am using the BADI definition CRM_PRICING_BADI.
       Now, can anybody tell me how to change the field type from input mode to change mode?

    Hi Karan,
      In your BADI has a parameter CT_INPUT_FIELD_NAMES with one field called CHANGEABLE with values:
         Field Can Be Changed
    A     Field Cannot Be Changed
       Assing this values to your fields according with your requirements.
    Regards.
    Manuel

  • How to addthe field 'external material group' in MM60 from material master

    Hi
    In MM60, I need to include the field 'external material group' from material master
    How can I do this?
    Is there any other report that gives me this information with material code?
    please help
    Regards,
    shetty

    >
    shetty123s wrote:
    > Hi
    >
    > In MM60, I need to include the field 'external material group' from material master
    >
    > How can I do this?
    >
    > Is there any other report that gives me this information with material code?
    >
    > please help
    >
    > Regards,
    > shetty
    Not possible in MM60.
    Develop a report using table MARA with field EXTWG

  • The authorization about Sales group

    now how to carry out authorization by sales group when create a sales order.
    Please explain me all the steps to be required.
    Thanks in advance

    now create a sales order(T-Code: VA01), need to manage the authorization according to the sales group.
    Please explain me all the steps to be required.
    Thanks in advance

  • How to update the field ZLSPR of table BSEG

    HI Friends,
    Can anyone tell me how to update the field ZLSPR of table BSEG? I've a 700 line abap program and I should include some logic in this program to make an entry into BSEG-ZLSPR. Is there any FM/BAPI available? Is BDC a healthy approach?. My team lead do not want me to use UPDATE statement....please help.
    Thanks in advans,
    Varsha.

    Hi,
    Hi ,
    You will need to group that radiobuttons so that SAP knows they are linked together. To do this using the grahical layout editor simply select all the radiobuttons and then right click on them, Now choose define group. Once you have done this you should not need any of the "clear" or "='X'" statements SAP should control it all for you.
    hope this helps
    Reward if found helpfull...
    Venkoji Babu.

  • How to refernce the field in the cross-tab report

    Hello,
    I'm trying to refer to the field in the cross-tab report using GridRowColumnValue function.
    The field name in formulas is DevelopmentTracking_SELECT.Completed, so I'm trying to refer like this:
    GridRowColumnValue("DevelopmentTracking_SELECT.Completed")
    I'm getting:
    "This is not the name of a grid group for the field being formatted."
    I've tried different way - gave the name of the field, for instance, or used the name form the Cross-tab expert - Max of DevelopmentTracking_SELECT.Completed, or simply use "Completed" - nothing worked.
    I see the possible cause for it. DevelopmentTracking_SELECT.Completed is not a row or column name, in the Cross-tab expert this is a Summarized field. How to reference the field like this correctly?
    Thank you,
    Peter
    Edited by: Peter Afonin on Feb 17, 2009 9:52 AM

    Oh I thought it is
    ROW: Product Name
    COLUMN:  Anticipated Date, Completed
    SUMMARIZED FIELDS: Product Stage
    Anyhow try to move the Completed field above the Anticipated Date in SUMMARIZED FIELDS by clicking up arrow.
    Now right click on the field Completed go to format field-->write the suppress condition like this
    WhilePrintingRecords;
    boolenavar i;
    i:=CurrentFieldValue;
    false
    Now right click on the Anticipated Date field and go to font and write the condition for color like this
    WhilePrintingRecords;
    boolenavar i;
    If CurrentFieldValue &gt;= CurrentDate Then
    crGreen
    Else If CurrentFieldValue &lt; CurrentDate And i=False Then
    crRed
    Else
    crBlack
    I hope this helps!
    Raghavendra

  • How to display the fields in ALV Output without using Field catalog?

    How to display the fields in ALV Output without using Field catalog?
    Could you pls tell me the coding?
    Akshitha.

    Hi,
    u mean without building field catalog. is it? I that case, we can use the FM REUSE_ALV_FIELDCATALOG_MERGE.
    data: itab type table of mara.
    CALL FUNCTION 'REUSE_ALV_FIELDCATALOG_MERGE'
    EXPORTING
    i_program_name = sy-repid
    i_structure_name = itab
    CHANGING
    ct_fieldcat = lt_fieldcat[]
    EXCEPTIONS
    inconsistent_interface = 1
    program_error = 2
    OTHERS = 3.
    *Pass that field catalog into the fillowing FM
    call function 'REUSE_ALV_GRID_DISPLAY'
           exporting
                i_callback_program      = gd_repid
                i_grid_title            = 'REPORTING'
                is_layout              = gt_layout
                it_fieldcat             = lt_fieldcat[]
           tables
                t_outtab                = itab.

  • How to hide the field from the view in the webdynpro application?

    Hi Gurus,
    I got a requirement where in which ,default layout has the field name Time.......To......... which is (2 input box ) and one lable assigned to the container.........
    Now my requirement is to hide this field from the layout for all cases of leave......(all types of leave)....
    I got a few inputs from forum that we can achieve this by implementing the following steps..........
    Create In context => Value attribute => Say Visibility
    Go to its properties
    Select com.sap.ide.webdynpro.uielementdefinitions.Visibility
    In View Layout
    Select UI Element Set Visible property to this context variable Visibility.
    In wdDoModifyView() You can set this property to false
    wdContext.currentContextElement().setVisibility(false);
    Can you people tell me where to create the value attribute........
    In the view context or in the component context...........
    and field that am talking about is assign to the container you want me to assign this context variable property to all ......Like to input box ,label and the container..........
    Please calrify this ASAP...........
    Thanks in Advance,
    Dharani

    Hi Manoj......
    Hi Murutuza,
    As per your guidelines I have created the value attribute in View context (which has the field..... which needs to be hide)inside the value node say FieldVisibility.......and attribute name OldTimeDuration......and I set this value with uidefeneitions Visibility .......
    and I bind this vaule with the field property visible(Time.......To..........)which I need to hide...........
    Now in the view implementation tab ..........I have coded in the doinit method(since my requirement to hide the field from the layout in all cases).........
    wdContext.currentFieldVisibilityElement().setOldTimeDuration(WDVisibility.NONE);
    But if I deploy the application and see still am getting the same field dispalying in the screen.........
    I even tried putting this code in wdmodifyview method.........same results........
    Kindly tell me how to hide the field permenantly from the screen............(without any conditions.)
    Thanks in Advance,
    Dharani

  • How to run the Invoices in different groups within the batch in AP

    Need to know that how to run the Invoices in different groups within the batch. This will be of very helpful when we deal with lot of lines under one batch. (e.g) like somewhere we issued a Corporate Card to all the employees Via Bank Of America. Every Month they will send the complete details of all the employees who ever swiped the corporate provided BOA. Accordding to Natco all those lines should be loaded as One Invoice so that a Single Payment can be provided to BOA and it will also makes their life easier. This standard program sometimes it works normal sometimes it will run like a TORTOISE. So thats why in the manual they suggested to use GROUP ID to split the Invoice Load.
    So plz tell me how we can run it
    plz give me the solution
    thanks

    can you give me some material or document on that so that i can read actuaaly i need to make doc on it..

  • How to determine the field size

    I am going to make a multiplatform application that hopefully
    will run on linux and windows 2000.If the os is 2000, then I will use
    vb.net/aspx else I'll use java servlets. I make the connection
    to the web server ( through HTTP) not directly to database server.
    So, the resultset will be stored in the String object. The columns
    will be separated by delimeter. Our problem is how to determine
    the size and type of the fields of mssql,oracle and postgres database
    so that we can include it in the String object.
    Ex.
    String sResultSet=new String();
    ResultSet rs=statement.executeQuery(sSQL);
    while(rs.next()){
    sResultset=sResultSet + rs.getString(field1) + "||" + rs.getString(field2) + "||";
    vertical bars acts as delimeter
    supposedly this is the code:
    sResultset=sResultSet + rs.getString(field1) +"_" + rs.getFieldType() + "_"+
    rs.getFieldSize() + "||" + rs.getString(field2) +"_" + rs.getFieldType() + "_"+
    rs.getFieldSize() + "||";
    supposedly this is the code if rs.getFieldType() and rs.getFieldSize() methods are existing
    Anyone can give me an idea how to get the field type and field size of the database?
    thanks in advance

    Yes, but I dont know how to do it.
    Can you give me an example of using it.
    Thanks in advance

  • How to get the field COMPLETION in extract layout

    Hi,
    Does anyone knows How to get the field COMPLETION in extract layout? i have not been able to find it and it is imperative to have it for implementing a new evaluation.
    Thanks a lot for your help.
    CAMILO URIBE

    Hi Neil,
    The following steps describe what we did to get the new evaluation:
    1. Define Attributes and Object Types for Evaluations: here we added a new field for evaluation. The field was COMPLETION (degree of processing in percent), with relevant object "TASK". "No Summarization" was configurated as Rule for Summarization
    2. Define Extract Layouts: here we created a new extract layout for evaluation. The objects and attributes to be used were defined (the field COMPLETION  was defined as attribute).
    3. Assign Extract Layouts to Project Types.
    4. Define Evaluations: the new layout for evaluation were created using the attributes.
    5. Define Severity.
    6. Define Threshold Values. In the new evaluation the field COMPLETION was used in the formula.
    After configurating and testing, we have noticed that the values of field COMPLETION are not taking into account. It does not matter which value it has, evaluation always take 0.
    Thanks for your help,
    CAMILO URIBE

Maybe you are looking for

  • How do you make Adobe Reader 9.3 truly Distributable?

    I have a set of electronic minutes in PDF format with hyperlinks between files, bookmarks and other nice navigational features.  I need to distribute these minutes on CD to my customer with a distributable version of Adobe Reader 9.3 so that they can

  • How to find out spool requist number respective Sales Order

    hi, I need spool number respective to Sales Order, after print out script.While taking print out of sales order by selecting respective output type  i am able to get spool request number in table TSP01 .Upto eveything fine .But how to find this spool

  • AR Invoice creation with BP Consolidation

    Hi, I have a number of deliveries.The customers for these deliveries have a consolidating BP.Now I want to create an AR Invoice from these deliveries to that consolidating BP.How this can be done by code?Can anybody give me a sample code? Deepesh

  • Problem with BSO - ASO partitions (Essbase 9.3.1)

    Hi there, Is it possible to create a BSO partition on top of four ASO cubes when using member set functions in the partition definition (e.g. @GENMBRS or @LEVMBRS)? I have tried that but always get an "overlapping partitions" error, although the part

  • Coverflow view of Finder flashes white

    Any ideas what might be causing this, or has anyone else the same issue? Basically whenever I have Finder in the coverflow view, and double click to open a folder, the black space of the coverflow view flashes white. I had other issues, that haven't