Default Customer code in Sales order

Hi Experts ,
     Is there any option in SAP B1 to set a 'Cash' Customer as default when the sales order is loaded , After adding a document and in New Document Menu click. If there is no option in SAP B1, how can I do it using SDK. I already wrote code in '1282' menu click, and sales order Form Load. But i cant able to set the Default customer after adding a Sales order and the document refreshed to a new document.
I tried to do the same in FORM_DATA_ADD , BeforeAction=False and ActionSucess=True, but it cause some problem if document total is ZERO, when system message is pop up..
Is there any solution for this.
Thanks .

Hi,
You can solve it with the following work-around:
create a query that will always return the relevant CardCode (for example: Select '1') and save it in the Query Manager.
In the Sales Orders form, in the Card Code field, create a FMS with the above query. Define it to always refresh on change in filed Doc Num,
This setup will set card code '1' in the field after a new Order was created, of when pressing "Add" menu.
It does NOT work when clicking "Sales Orders" menu, but you said you've already solved it by code.
Another thing - if your handle several Document Series for Sales Orders, or  your users set DocNum manually, you might set the FMS to be refreshed upon change of some other appropriate field.
Beni.

Similar Messages

  • Writing customer code in SALES ORDER MODULE using UI API.

    Hi Experts,
    I have a problem in writing a data in Sales Order fields...
    here's the scenario
    after i select the business partner code in my UI i want it to write the customer code in customer textbox of the Sales Order module.
    but after i write the error appears.
    error: {"Item - Can't set value on item because the item can't get focus.  [66000-153]"}
    Please help me in this problem.
    thanks,
    Edited by: Joey Bryan Dante on Aug 26, 2011 7:38 AM

    Dim oItem As SAPbouiCOM.Item
                                Dim oItems As SAPbouiCOM.Items = oForm.Items
                                oItem = oItems.Item("3")
                                Dim oEdit As SAPbouiCOM.EditText
                                oEdit = oItem.Specific
                                oEdit.Value = oCardCode
    this is my code.
    thanks,

  • One time customer postal code in sales order

    hi
    For the one-time customer, it is required to input the postal code in sales order. How to disable it? As I already disable it in customer master. pls advice. thanks

    Dear Friend,
    The mandatory feilds in the customer Masters can be set to non mandatory in the account group sequence.
    Go to transaction OBD2 account group change.
    Then select your account group of your customer.
    Tehn select the address feilds you will find the customizing of the entries.
    Whether it is mandatory supperreses or optional entries.
    Now you can make it optional entry.
    reward points if helpful,
    regards,
    Amlan Sarkar

  • Item Default Bin Details in Sales Order - Print

    Hello Experts,
    I have a Optical Business group, am using SAP Business One. In my business i have order lens and stock lens, each stock lens item code have default bin location in same warehouse.
    Following is my business process:
    Am using EyeCare Add-On to process my optical sales.
    1. Create order in EyeCare against customer order. ( Frame & Lens [Item Code, Qty, MRP, TaxCode, Whse, Etc.,)
    2. Changing status into Create Sales Order (That time system automatically creating Standard SAP sales order)
    3. Changing status into Send for Fitting. (This time the order details going fitting screen)  same time physically sending job cover to fitting lab (Frame, Prescription & Sales order print document) Lens are physically stored at fitting lab in each separate bin same as defined in SAP.
    In this scenario, i have a requirement. I wand to print the Default Bin Details (Selected Item Code in Sales Order)  in Sales order print document.
    How it is possible, anyone can help me...?
    I was created a user defined field in marketing document Row ( Default Bin Location) Is it possible to get the bin details in this field by linking formatted search query.
    See the attachments.
    Thanks & Regards.

    Hi Abdul,
    Try this:
    SELECT T1.BinCode FROM OITW T0  INNER JOIN OBIN T1 ON T0.DftBinAbs = T1.AbsEntry WHERE T0.ItemCode =$[$38.1.0]
    Regards
    JP

  • Changing Tax Code in Sales Order

    Hi All,
    I've a requirement to change the tax code of MWST CT from normal value XX to a new tax code in sales order for few excpetion cases.
    For normal cases the tax code will always be XX for MWST CT in the sales order. However for very specific business need the tax code for the existing sales order needs to be changed to a new value. The need for changing the tax code always arise after creating the sales order.
    Kindly suggest the possible ways to meet this requirement.
    Regards,
    Ashish

    Changing the tax code in the sales order is not std sp procedure and I don;t think sp allow tampering with it either.
    The taxes are based on the combination for customer and material and I suggest that you maintain all tax codes at the material and customer level for all combinations possible and each customer is alloted one unique one.
    What are the possible reason why tax changes. It can only be the delivery address is changed. If the material iself changes then you may have to modify the sales order itself but if there is a change in the ship to party then....
    Now if the shipto party changes then you can always redetermine taxes in billing where the actual taxes will be redetermined based on the new conditions.
    If you see the tax line item in the sales order you will see that it is greyed out.
    You can change the excise duty but not taxes.
    This is the default where the condition type is prohibited from changing manually. But if you change the setting to Free or manual then you can change the value of tax bu the tax code will be as determined by the combination of material and shipto.
    regds
    Jude
    Edited by: jude xavier on Sep 7, 2008 8:23 PM
    Edited by: jude xavier on Sep 7, 2008 8:24 PM

  • Security object for shipping conditions (T-Code VA02-sales order)

    Hi
    I need to gray out filed-VSBED (shipping conditions) in T-code VA02 (sales order change) for users, what could be the security object to be used for this requirement?
    Regards
    sri

    The functional requirement till doesnt seem very clear to me , why would someone want to grey this field? (unless you have a strong case that you use different document types for normal orders, express deliveries, normal service, free of charge and a whole lot of possibilities)
    Your SD consultant should guide and let you know that:
    Shipping conditions are defined in customizing
    you can eithe assign particular shipping conditions to particuar sales document types to make it as a default
    (or) you can have the shipping conditions defined in the customer master
    the ones set up in SPRO take a preference, but as you rightly noticed - if a use wishes to change the shipping conditions proposed by the system he would be able to do that, and this CANNOT be controlled with authorization objects
    The only option you would have, is to find out if the users who are not suppposed to change the conditions beong to the same user group (or make a logical assesment on the common binding feature in the set of users)
    then evaluate if you want to make the program changes such that the changes affect only the particular set of users
    Note: Changes you make in ABAP do not necessarily apply to the complete user base - it depends on how well you analyse and plan the requirement

  • Customer Name on Sales Order not in Data Collections

    Hi,
    I am looking for some help. My company just did an upgrade from 11i to R12 in the middle of May. As part of the upgrade we installed ASCP. We have noticed that certain customers are not being collected when running Standard Data Collections. We have open sales orders in the system for the customer. The sales order are being collected properly and appear in the plan. When we show the Customer field in the 'Supply/Demand Screen' in ASCP, the field is blank for select customers. Is there anything on the customer master or sales order line that would prevent the customer name from being collected? Any insight would be helpful.
    Thanks
    Rich

    You can go to order organizer screen select the OA NO which you are not able to see in the ASCP workbench, go to line items---using show field get the Demand visible
    tab on screen-----default value should be 'Y' if blank then then that could be the one of the reason.

  • Tax Code Determination - default tax code for sales

    Under the tax code determination window i have set the default tax code for sales as VAT@4% and I have save it.  but when I open the sales quotation , order or any other sales document the tax code is not appeared.  what could be the reason?
    thanks
    SV Reddy

    Is ur "Determination Type" is 'Material Type'?
    FYI from Help file,
    When you enter item information in the marketing documents, system will check the item master data. If the item classification for the tax is:
    Material Item
    The tax code determination for material will start.
    Service Item
    The tax code determination for service will start.
    When you enter service information in the marketing documents, the tax code determination for service documents will start
    Regards,
    Dhana

  • Default line item in Sales Order

    Hi guys,
    I need to have a material item code as default in phase of sales order creation.
    Requirement is that when user is compilin sales order header data system automatically generates a line item.
    I was thinking to manage it with product proposal standard functionality, what do you think about, do have anyu alternative solution, standard one is appreciated.
    Thank a lot in advance for your support
    Salvio

    Salvio,
    never used myself..
    but can provide you some useful links, hopefully they should help you:
    [Item Proposal Configuration for Order Creation;
    [Sales-what is the difference between product proposal and cross selling;
    [DYNAMIC PRODUCT PROPOSAL;
    So if you search the forum, maybe you'll find many more.
    Regards,
    Raghu.

  • Need to copy a custom field from sales order to billing document

    Hi All,
    I have a requirement, I need to add a new field in the sales order header part and even a field in the billing document, once i add this field up in both the documents in the header part i need to create a copy routine using the VOFM tran, can any body help me on what's the procedure to add a field in billing document and does the copy routine transfer the data ( Custom Field ) from Sales Order to the Billing Document, if yes can somebody help me with the procedure on how to and code of it.
    solved it myself ....
    Regards.
    Message was edited by: seshi
            seshi

    Hello,
    Regarding item 1, is it in the region of the global links (ie logout, home, preferences, etc.)? If not, have you tried creating a link via personalizations to the region you wish to have the link displayed (item type = link, destination = fully qualified name of your .xml page/region?
    Regarding item 2, you may have to create the custom subtab programatically using the controller for the region of the current subtab layout.
    Regarding item 3, you can also add a submit button to the page button bar region via personalizations. You can then add any logic you want to the button in the controller for the page.
    Hope this helps.

  • Change Tax code in sales order

    Hello Friends,
    We have a requirement for the tax code determination - There are two way determination of tax code in sales order
    -> From the tax condtion records
    -> From manual input of tax code in the sales order
    Could you please advice on how we can insert manually the tax code since the standard SAP not supports the requirement.  For your information, business case not supports to maintain condition recors for those tax codes to insert manually.
    Please advice
    Best Regards,
    Goutham

    Hi,
    During sales order creation, the tax classification from the customer master is proposed in the sales order document.
    In condition record, you maintain the tax code for this tax classification along with some other field combinations. Accordingly, teh percentage linked to the tax code will be decided as teh % of tax for the customer. This is the logic.
    If you want to change the tax code in the sales order, it is not possible. However if you really want to change it, you can achieve it by changing the tax classification of the customer in the sales order header. This is available in the billing tab of order header. The field is "Alternate tax classification". You can change the desired tax classification here. Correspondingly by linking the tax code to this tax classification in VK11, you should be able to change the applicable tax code in the sales order.
    In summary, you should change the tax classification in order to change the tax code which is linked to it.

  • 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

  • Report for Sold to Party code against Sales order number

    Hi,
            Is there any standard report to take out the Sold to Party code against Sales order number as i have the sales order number.
    I don't want to use Tables ,so pls tell standard report if any.

    Dear   Monty garg.
    You can use u201CVA05Nu201D to find the sales orders which have been created against for the particular customer/sold to party.
    Please let me know if any further clarifications pertinent to this.
    Thanks&Regards
    Raghu.k

  • How to resrve the stock to the customer against the sales order

    hi,
    sap gurus,
    good morning to all,
    how to reserve the stock to the customer against the sales order if this process is not MAKE TO
    ORDER SCENARIO.
    the prices of the products will be often changing drastically so
    he is following MAKE TO STOCK Process in his production process.
    so with out using m.t.o. process how to reserve it against the customer.
    for eg:
    in the market when the customer/dealer/stockist coems to know that prices are going to increase
    then obviously he tends to purchase in bulk quantities and reserve it in godown.
    so how to map that process.
    help me on this.
    regards,
    balaji.t
    09990019711

    Dear Balaji,
         This can be done By MM consultant through movement type. to move the stock from unresticted stock to customer stock.
    Regards,
    Sudhir

  • Function Module to fetch Customer Number from Sales Order or Process Order

    Hi Gurus,
    I am looking for a Function module which gives me customer number from Sales order or Process order.
    Please let me know of any FM's available.
    Regards,
    Madan

    Hi,
    Thanks for your response.
    I am actually looking for function modules which take "Sales Order" or "Process Order" as input (import parameter) and return Customer Number as output (export parameter).
    Please suggest some function modules you know any.
    Many Thanks,
    Madan

Maybe you are looking for

  • Iphone 5 comes on by  itself and plays music

    My iphone 5 randomly comes on while on standby, blaring loud distorted sounding music.

  • How to create dropdown using VO

    Hello Everyone, I am using Jdeveloper 11.1.1.4 . I am new to VO and have going to create simple dropdown using VO. We have table called "MyTable" in the database which inclues the columns "First_name","Last_Name","Emp_id"(primary_key) . In my .jspx p

  • Sharepoint 2010 Webpart

    I had Two Picture Libraries in my main site.Want to display the specific picture library with slide show in my sub-site..Please suggest the exact Solution for this .. Plz give the solution immediately

  • App Store is missing in Snow Leopard.

    I am running OS X 10.6.8 and the App Store is missing. I have tried multiple reinstalls but it does not help. I want to upgrade to Mountain Lion but can't do without the App Store. I have contacted support and they are of no help. Any ideas would be

  • Import Meta Challenge

    Your mission, should you choose to accept it.... I'm one, I know there are others. You know the tune: 30k-90k RAW images with meta data in the .xmp files. I'd use aperture but........ Can an automator action (or anything else besides one by one) be s