How to automatically set value of sold to party field in crmd_order screen?

Hi Experts,
We have a requirement where we have to automatically populate a standard SAP screen field when the screen opens. The T-code is crmd_order and the field is present in the fast entry tab whenu201Dcreate support messageu2019 is clicked. Now I am trying to achieve this by implementing the BADI which this T code calls. There are no user exits to this as per my understanding. There are some 20 BADIs this Tcode calls before opening. I have tried implementing almost all of them but the value is not getting reflected on the screen field. List of BADIu2019s called are as below.
We are trying to automatically populate the sold to party field based upon the guid of the support message. Based upon this guid of the support message we are fetching list of partner function from u201CBAPI_ACTIVITYCRM_GETDETAILMULTu201D. Then we are taking the partner function value of u201CSLFN0002u201D. The BP number captured from this partner function will be passed to u201CBAPI_BUPA_ADDRESS_GETDETAILu201D to get the country of the super user. Based on this country the sold to party is to be determined.
We have made a Z table for fetching this sold to party/region based on the country derived from above logic:
Z Table
Country                 Region/Customer/sold to party
IN                            IN/BAN-C1
BD                          IN/BAN-C2
US                          US/CAN-C1
Now these unique (sold to party/region) values  based on the country has to be populated automatically on the sold to party field of the screen (CRMD_ORDER).
The logic for deriving the same is correct and the main problem is to default it on the screen field.After getting the value of the required field I am trying to display it on the screen by using the standard FM u201CCRM_ORDER_MAINTAINu201D and passing the value in IT_PARTNER.The FM is getting executed but the value is not getting reflected on the screen. I donu2019t understand where it is going wrong I am not able to solve this.Kindly let me know if anyone can throw some light on this.
Regds,
vlp

Hi vlp,
You can achive it with BAdI:CRM_ORDER_FIELDCHECK. Actually I've implemented the similar case  with this BAdI. This BAdI is called many times because it always works when any field is changed. So you should restrict the timing your logic works.
Regards,
Masayuki

Similar Messages

  • Sold to party in Order header screen

    Hi,
    Iam having a service contract and when I assign the service contract in service order header screen in SALES DOCUMENT field, I need to have the sold to party(assigned to Contract) field automatically populate in the sold to party field in the order header screen.
    Presently its not happening and how to make this?
    Is there is any relavent exit available for this?
    regards
    KRISHNAN

    I can't remember exactly how we did it - only that we did manage it via a user-exit.
    Unfortunately I don't have the documentation either...
    You could do it at save (IWO10009) as follows:
    data: t_ihpa like ihpavb occurs 10.
    * get order parnter data
      call function 'PM_PARTNER_GET_XIHPA'
        tables
          h_xihpa = t_ihpa.
    * do your own processing here
    * remembering to set the UPDKZ field (I=insert, U=update, etc)
    * set order partner data
      call function 'PM_PARTNER_PUT_XIHPA'
        tables
          h_xihpa = t_ihpa.
    Not entirely orthodox, but it'll work...
    PeteA
    [www.pjas.com]

  • User Exit to validate sold to party field

    Hi Friends,
    Is there any user exit/ BADI to validate sold to party field in VA01. This exit should not only apply to the VA01 transaction but anywhere customer number is created in SAP. It should be possible to find a user exit that is called right at the time of entry of the customer number so that the search in the database can be intercepted and search by either number and return the one found.
    I found V45A0002 ...but this is for predefine values on sold to party field.
    Please Note: - It should be common user exit to validate sold to party and customer number in any trn.
    Points will be given for helpful answers.
    Regards,
    Hari krishna

    Hi Nagaraj,
    Thanks for your reply.
    In this include (MV45AZZ), It will stop at the user-exits USEREXIT_MOVEFIELD TO_VBAP, USEREXIT_FIELD_MODIFICATION.
    But however, I tried to create/change customer in XD01/XD02...It was not stopping in MV45AZZ at any of the exits.
    Any alternative solution or Is there any exit/ BADI ???
    Regards,
    Hari krishna

  • How to pre-set values to iView form WebDynpro

    Hello
    I'm using  MDM 5.5 Business Package with WebDynpro.
    I want to set the values got by WebDynpro to MDM iView.
    for example,
    In the screen(iView) for creating a record, all input fields are empty at first.
    And then, the values will be set on each fields when the customized button clicks.
    ref
    /people/steffen.ulmer/blog/2006/10/05/extending-mdm-55-business-package-functionality-with-web-dynpro-for-java-using-epcf
    /people/steffen.ulmer/blog/2007/01/03/integrating-mdm-item-details-iview-into-a-webdynpro-application
    I read these blogs, but I don't know how to pre-set values to iView.
    Regards.
    Koji

    Hi,
    try this way..
    go to Se09/Se10-->Click on the trnasport request >go to Tab Object>Prog(R3TR) OBJ(TABU)Object name (<Enter table name>)
    >Next press Include Object>Enter write condiiton  for the table field and retrive the data into transport request for specified Keys.
    http://searchsap.techtarget.com/tip/How-to-transport-table-entries
    Prabhudas

  • Not able to change the value in 'sold to party' once disabled.

    Hi,
    I am validating the Business partner entered in the 'sold to party' field while creating a sales order in webclient UI.
    The error message pop up as expected but the field becomes disabled. I tried changing the field to editable by setting  rv_disabled = 'FALSE' in method GET_I_SOLDTO_NAME.
    Now the field is editable but it does not take the new value which i enter. it takes the old value only.
    How do i make the field to accept new values?
    Thanks in advance.
    Regards
    Shanthi.

    Hi Shanthi,
    Just check small config in your Partner determination profile if it helps you:
    Path: SPRO->CRM->Partner Processing->Define Partner Determination Procedure-
    Open you Partner determination Profile and go in details Sold-to-party partner and Mark Check box Changable to allow to make changes in partner.
    Regards,
    Dipesh.

  • How can I set a default for webpages to expand to full screen?

    How can I set a default for webpages to expand to full screen? Every webpage I go to does not expand to a full screen which causes me to have to ctrl+++ each time. How can I set my preference to expand to full screen automatically?
    Thanks.

    The Firefox [https://support.mozilla.com/en-US/kb/Page+Zoom Page Zoom] feature does a domain by domain level of saving the users preferred zoom level settings, there is no default Page Zoom level setting in Firefox, as with some other browsers.
    Try the Default FullZoom Level extension: <br />
    https://addons.mozilla.org/en-US/firefox/addon/6965
    Or the NoSquint extension: <br />
    https://addons.mozilla.org/en-US/firefox/addon/2592/

  • MB56-sold to party field value is not appearing

    Hi,
    In MB56 - Batch where used list report, there is no data flowing for sold-to-party field. Sales order is displayed and delivery also performed for the same. But, still there is no sold-to-party data.
    Mean while, it shows sold-to-party value against some STO transactions in MB56.
    Kindly help me out to solve this problem.
    Thanks in advance
    Regards
    Sudhar

    Hi Sudhar,
        Just change the Layout, you should see the Outbound Delivery/Sales Order/Sold-to-Party information.
    Thanks

  • Customer and sold.to.party field

    Hi,
    I have a question related to cproject I hope someone can help me.
    We would like to use customer and sold-to-party fields for a project. When we select these field , 'BP' values are retieved. We would like customer values ( data from ERP) are showed in this matchcode, Is this possible? ( link customer field to ERP).
    In the case only BP values can be retrieved from these fields, how can I difference from employee and customer?
    I'll appreciate any help!
    Thanks a lot,
    Sara

    Hi,
    The standard search help would show only the Business Partners for these fields. If you want to use these fields, you will have to create corresponding BPs for your customers.
    A work around for this would be to have  different number range / numbering convention for BP as customers and BPs as employees. For e.g. use C0XXXXXXXX for customers and use E0XXXXXXXXXX for employees.
    You may also check out the search criteria base on BP roles in the same search help as another work around.
    Let me know if this helps.
    Regards,
    Vivek

  • Sold to party field disabled

    Hello all,
    I recently add a new sales order type and then I try to create a sales order using the new creating order type. After I filled in the first screen and entered in the second screen, I found the sold to party field was disabled and can't be used.
    Can anyone help on this issue? How can I solve the problem?
    Thank you.
    slai

    Dear Sai
    Do you mean it was in display mode???
    If it is so then check your settings in VOPA for sales document header and check if in partner procedure you will see SP is not changeable.
    If you are facing another problem check in VOV8 if you are using Transaction Variant ? and in SHDB check the transaction variant is OK.
    If some other issue is thr then do right back
    Regards
    Jitesh

  • Sold to party field

    Hi,
    I am unable see the sold-to-party field in this function module crm_order_read....and which parameter i will check....

    Hi Pavan,
    I think you might have already posted same thread in other space,
    There will not be any field called directly sold to party in crm_order_read function module.
    We have table type parameter ET_PARTNER, you can get sold to party partner number corresponding to sold to party function.
    If you want to see the sold to party id you should know the partner function of the sold to party.
    Refer to this thread
    i am unable see the sold-to Party in this function module crm_order_read
    Best Regards,
    Dharmakasi.

  • ADF Faces: How do I set values for input controls in an af:table

    Use case: user enters master/detail information into an input form using an af:table for the desired number of detail rows.
    I have an ADF Faces input form with master level input controls, and an af:table (bound to a backing bean CoreTable) for the detail data set.
    The input controls are value bound to updateable view objects built from entity objects, with the appropriate view links providing master/detail iterators.
    Once the user has entered the master keys (via inputTexts, and selectOneChoices), I create a row in the detail VO, thus creating a visible blank row in the af:table.
    The user then completes the key for the detail row (in the af:table) by selecting a value in a selectOneChoice (in a af:column) with autoSubmit on and a valueChangeListener that sets the VO row attribute with the new value.
    The user then continues to enter into the remaining inputTexts and selectOneChoices in the af:columns until all values have been entered.
    I do not have autoSubmit on for any input controls in the af:columns other than the key, for performance improvement.
    The user can then use a command button (which has an action method) to create another row in the af:table.
    But, (in the action method) I need to set the values for the 1st detail VO row attributes, from the input controls, before creating another row.
    The input controls are bound to backing bean CoreInputText and CoreSelectOneChoice objects, and they have not set their values at this point, even though I have partialSubmit on for the "New Row" command button.
    I do not value bind the input controls in the af:columns to the backing bean objects, because we need to display data for all rows entered into the af:table.
    Any advice on the best way to perform this operation would be very appreciated!!!!

    Thanks for the reply Steve!!
    Yes, I followed the techniques in Screencast#7, and it works great in my edit page.
    But I am having problems with my input form.
    I actually have master/detail/detail relationship for which I am creating an input form.
    I created the input form as a copy of the edit form, and am making revisions as necessary.
    I created new view objects for the input form (from my three entity objects), which have the "Tuning" set to retrieve "No Rows (i.e. used only for inserting new rows)"
    I added an invokeAction that binds the "CreateInsert" action on the master iterator, so when the page is first displayed, the master level controls are available for data entry (as in 13.6.2 in the Developers Guide): but the first level detail controls are not rendered, and the af:table (for the second level detail) is rendered but with no rows.
    Once the user enters key values for the master (a three part key), I manually create a first level detail row by executing the "CreateInsert" action binding for the first level detail iterator.
    Continuing on, the user then enters a key value for the first level detail I manually create a second level detail row using it's "CreateInsert" action binding.
    Now the user has a form with all master and first level detail controls completed and one empty row in the af:table for it's first entry.
    The key column in the af:table has autoSubmit on, and an value change listener. That listener uses it's getNewValue() to set the key value ("locationCode" in this case) using
    setLocationCode from the ViewRowImpl. Here is that value change listener:
    public void locationChanged(ValueChangeEvent event) {
    if (null != event.getNewValue()) {
    LocObsCreateViewRowImpl locCreateRow = (LocObsCreateViewRowImpl)appMod.findViewObject("LocObsCreateView").getCurrentRow();
    if (null == locCreateRow.getLocationCode()) {
    locCreateRow.setLocationCode(event.getNewValue().toString());
    Now comes my problem: once they have entered the values in the remaining columns, they can use a command button to create another row in the 2nd detail iterator, thus creating another visible empty row in the af:table. But the values from the first row (other than the key column) are not assigned to the row in the collection and I can't figure out how to set values in the collection's row.
    I imagine I'm missing something using bindings and the Request Processing Lifecycle, and after reading this I can see how much manual work is going on.
    The users have specified the need to have all information available on one page, so I've designed it so they can insert and iterate through the first level detail collection.
    They have also asked to not use the mouse; they are looking for a "heads-down-data-entry" system.
    Again, I really appreciate any advice you could give.
    Jeffrey

  • How to get/set value in illustrator preference file using ActionScript 3.0

    Hi all,
    I want to get/set the flex panel components preference in illustrator preference file using ActionScript 3.0.
    I tried to achieve this  like --
    import com.adobe.illustrator.Preferences;
    var pref : Prefereneces = new Preferences();
    //To set value I used  this...
    pref.setStringPreference("url", id1.text);
    //To get value I used this..
    id1.text = pref.getStringPreference("url");
    i think there is prb in creating  Preference variable but I am unable to resolve.
    plz help.
    Thanks.

    I am having trouble with setStringPreference. It seems to be setting the value to 0 in the Prefs file. When I first wrote the code, it was working, but something is keeping it from saving the right value now. Did you get yours working? Any ideas?

  • How to automatically set Print Scaling to 'None'

    Is there any way to automatically set print scaling to 'none' on an existing PDF document?
    This setting is set manually by going to File > Properties, and then going to the 'Advanced' tab and changing the 'Page Scaling' preference from 'Default' to 'None'. This preference can then be saved with the document.
    There seems to be no way to do this via javascript but if anyone has found a way to automate this that would be great!!!
    Ideally I want to run this as a batch process across a number of PDFs. Maybe as a last resort there is a way to do this using "execMenuItem"????
    Many thanks in advance for your help!!!!
    HJ

    Would something along these lines would work???
    "if printing 1:1 is critical, my recommendation would
    be to have an area on the page(s) for which scaling must be performed
    where you explicitly state the requirement for no scaling AND in which
    you place an line of known length, let's say an inch or a centimeter with
    text that warns that if that line is not exactly at the size specified,
    to reprint without scaling."
    (extract from post at: http://lists.frameusers.com/pipermail/framers/2008-March/011530.html)

  • How to Automatically Set Allow in Network peer Assisted Settings

    Hi I am working on cirrus. my application size is two small that settings popup is not showing. and by default it is set to deny....how can I set it to allow by default

    Hi, I'm not sure what Program you are using, but Flash Player is a browser plugin. You may want to post on another Adobe Forum, as the Flash Player Forum is for the end user issues.
    Thanks,
    eidnolb

  • Default value for Sold to Party and Reported By with Support Message

    I have customized the service desk scenario and went through the entire service desk implementation guide part I blog that talks about the partner setup.
    When I create a support message through the service desk scenario (under help) in the satellite system it does default the sold-to-party and the reported by person in the resulting document.
    When I create a support message in Solution Manager out of DSWP or SOLAR02 it does as well.
    However when I create the support message out of Solution Manager under help it does NOT default the sold to party and reported by, and I always have to correct that in the document later on.
    Has anyone experienced this before and can tell me why this happened. Obviously has something to do with setting up the partner in Solution Manager, but I do not understand how it can work for the Satellite system but not in Solution Manager itself.
    Thanks
    Paul

    > Has anyone experienced this before and can tell me why this happened. Obviously has something to do with setting up the partner in Solution Manager, but I do not understand how it can work for the Satellite system but not in Solution Manager itself.
    Did you generate BP entries for the SolMan system itself?
    Markus

Maybe you are looking for

  • Moved drive to USB Port on Time Capsule and TM no longer sees backups

    I moved my FireWire attached HD from a direct attachment to my Mac Pro to attached via the USB port on my Time Capsule. Time Machine now wants to start over, and does not see the previous backups. The destination drive name did not change, other than

  • No entry for account key 1002 in HRA transaction key in Account assignment

    Dear sap-gurus, the following problem occured. When posting a document (s-modelling), system displayed an error that there is no entry for account key 1002 in HRA transcation key in SPRO Account assignment. The document's size is very big, it conside

  • Table Headrow repeats itself improperly

    Hello, THIS IS URGENT: It is been quite some time now, I am trying to sort out a problem I am facing with repeating headrow of a table. I have tried almost every forum in adobe, and a lot of google links on the subject but does not seem solve my prob

  • Repeat custom calendar option missing

    I just got my ipad on Saturday,  use my caledar and i used the "repeat custom" option Saturday, Sunday and Monday but today  I go to use it and it is no longer there, how do i get it back? this is an option i use very often, there has to be a fix for

  • Issue in Landing page for HR Renewal Feature pack 4

    Hi Gurus, I am trying to config landing page on S/B before doing it in Dev , while executing the MSS role , ESS role and HR Professional role I am getting the below screen shot like this , please advise me , it's urgent , it will be a great help for