Business Object Template for SALES ORDER

hi all,
          how to get the business object template for sales order..iam able to get template for business partners but unable to get for sales order.... i have tried all the codings given, by still iam getting a error like
<?xml version="1.0" encoding="utf-8" ?>
- <env:Envelope xmlns:env="http://www.w3.org/2003/05/soap-envelope">
- <env:Body>
- <env:Fault>
- <env:Code>
  <env:Value>env:Receiver</env:Value>
- <env:Subcode>
  <env:Value>-1</env:Value>
  </env:Subcode>
  </env:Code>
- <env:Reason>
  <env:Text xml:lang="en">General Error</env:Text>
  </env:Reason>
- <env:Detail>
  <Command>GetBusinessObjectTemplate</Command>
  <SessionID>DC703486-75R0-AD4D-97D1-0E80D8195155</SessionID>
  </env:Detail>
  </env:Fault>
  </env:Body>
  </env:Envelope>
my coding for getting business object template for sales order is
<WebMethod()> Public Function GetBusinessObjectTemplate(ByVal SessionID As String) As Xml.XmlDocument
        Dim n As SBODI_Server.Node
        Dim s, strXML As String
        Dim d As Xml.XmlDocument
        d = New Xml.XmlDocument
        n = New SBODI_Server.Node
        strXML = "<?xml version=""1.0"" encoding=""UTF-16""?>" & _
        "<env:Envelope xmlns:env=""http://schemas.xmlsoap.org/soap/envelope/"">" & _
        "<env:Header>" & _
        "<SessionID>" & CStr(SessionID) & "</SessionID>" & _
        "</env:Header><env:Body><dis:GetBusinessObjectTemplate xmlns:dis=""http://www.sap.com/SBO/DIS"">" & _
        "<Object>oOrders</Object>" & _
        "</dis:GetBusinessObjectTemplate></env:Body></env:Envelope>"
         s = n.Interact(strXML)
        d.LoadXml(s)
        Return (RemoveEnv(d))
    End Function

Hi,
I need to pass object key or object type to a function module 'SAP_WAPI_WORKITEMS_TO_OBJECT'. This function module returns the worklist details(workflow inbox). In worklist details i need to use the field for workitem id.
Regards,
Gautham

Similar Messages

  • Need Business Object (BUS) for sample order request in CRM 5.0

    Hello Friends,
    Path: Sales-> Maintain Sales transactions ->Sample Order Request
    I want to create workflow for below scenario.
    When i create Sample order request in CRM, that time workflow should be triggered and notification mail go to a concerned person.
    now for that i need Business Object for Sample Order Request.
    So please can you suggest me a Business Object (BUS) for this sales transaction of sample order request.
    Thanking you,
    Marmik Shah

    Hi,
    if you activate the technical names in the menu, you'll see that transction for maintaining sales transactions is called:
    crmd_bus2000115
    So there you have it, it's BO BUS2000115
    regards, Rob Dielemans

  • DTW Template for SALES ORDERS

    Hi All,
                Can anybody give me the name of the DTW template used for Sales Orders Updation.
                 I am Using SAP Business One 2005B version.
    Thanks and Regards,
    Sree.

    Sree,
    This is the key
    1. Fill the DocEntry and LineNum columns in your template to reference the Order and the exact lines you plan to update
    Suda

  • Table which stores Object Status for Sales order

    Hi Experts,
    In Sales order header Status , there is a an object status when i click on that one it will take to new screen
    It will show status with status no, and Status w/o Status no.
    I want to know in which table this status will be saved.
    Please let me know if my question is unclear.
    Thanks,
    Sunil kairam.

    Hi Vikranth,
    I already check that but didn't find my answer in that.
    I have these following status showing when i click on object status buttion.
    No Stat Text
    10 S10  Not approved (Finance)
    20 S20  Only Down payment Allowed
    30 S30  Eligible to Order Book Record
    40 S40  Totally approved (Finance)
    TECH Technically valid
    EXEC Released for execution
    BIOK Batch input success
    FPD  First Promised Date
    FF   Firm Forecas
    Can you please tell me where this status will be stored?
    Thanks,
    Sunil kairam.

  • Is there a Business Object for Sales Order Create and Change VA01 and VA02

    Hi experts -
    I am looking for a business object for Sales order create and change VA01 and VA02 respectively?
    Thanks,
    Mark

    Hi Mark,
    I think this question is best answered in [SAP Solutions|/community [original link is broken]; Forums.
    - Subhodeep
    Edited by: Subhodeep on Aug 29, 2009 11:14 AM

  • Set up a template for sales quotes in SAP Business One.

    I would like a sales quotation template to contain the same 10 items so that I do not have to enter the items each time. What is the best way to do this? Is there any sales quotation template in SAP for this?
    I am using SAP Business One 2007A SP0 PL49 and B1UP.

    You may use Draft function to make your own template for Sales Quotes.
    Thanks,
    Gordon

  • Services for Object button in Sales Order

    Hello Experts,
    We are not getting Services for Object Button in Sales Orders. Actually we need to attach some documents to Sales Orders.
    Thanks in advance.
    Mamta.

    Dear Friend,
    If you are not getting Services for Object Icon in Sales Document, then follow this:
    T-code - SU01 u2013 Here Enter User ID & click in change icon.
    Then click on Parameters Tab & Add Parameter u2013 SD_SWU_ACTIVE. .
    This will definitely solve your problem...
    Thanks,
    Jignesh mehta

  • How settlement rule will be created for Sales order with cost object

    Dear Experts,
    We are using product cost by sales order with valuated stock. In addition we are not using COPA
    We also consume some materials at sales order level and at the end of month we want to do the result analysis and settlement for the same amount. In this case can any on explain how system will behave regarding settlement of sales order cost and what entries will get pass in the system.
    In our case we have done below activities...
    we have created sales order,
    All production order activities completed till final GRN including month end activities
    Material consumption against sales order
    Result analysis executed
    At the time of sales order settlement, system throwing error (Sender doesn't have valid receiver, please create settlement rule for sender object)
    Then i checked in sales order there sales order settlement rule not defined.
    I guess this settlement rule need be generated by system automatically. If not, please let me know the process of it.

    HI kishore
          the reason is that sale order always carry the revenue  and production order and production period carry the cost .
       cost you can settle to the Material and even management want  to be settle the cost to material only in production order OR period
    but in sales order  when u sell the product it carry the revenue not the cost and management want see and analysis based on profitability segment are profit center level .
    Prerequisites
    If CO-PA is active, the system generates a settlement rule when you create the sales order. The settlement rule determines whether data is settled to other objects or other areas in Controlling. In accordance with this settlement rule, the relevant data is settled to CO-PA.
    If CO-PA is not active, create a settlement rule. This settlement rule that you create manually normally contains a G/L account as a receiver (such as 399999). You can also settle costs and revenues or results analysis data to objects with revenue.
    You can also settle the cost of sales calculated in results analysis to a fixed asset or a cost center. To do this, you must add to the allocation structure the results analysis cost elements under which the cost of sales is updated to the order.
    The settlement rule includes a distribution rule for the sales order item. The distribution rule is made up of a settlement receiver, a settlement share, and a settlement type:
    The settlement receiver (such as profitability segment or G/L account) specifies the object to which the actual costs and revenue of the sales order item are settled. The settlement receiver can be proposed through the settlement profile.
    The settlement share defines the percentage or the equivalence numbers used to distribute the costs to the individual settlement receivers. The settlement share for sales order items is usually 100%. A settlement share of 100% is preset in the system.
    The settlement type specifies full settlement of the sales order item. This ensures that all the data on the sales order is available for results analysis.
    Settlement still takes place in each period. The revenues and the cost of sales are transferred to CO-PA by period, and the work in process and the reserves are transferred to FI.

  • Impact Analysis: Business Area, Profit Center changed for Sales Order type

    Hi All,
    Can you please let me know the impact of changing the Business Area and Profit Center for Sales Order Document types.
    Scenario:
    Let's say that sales document type ZOR has been used for sometime. On this document x number of sales orders have been raised, delivered and invoiced over the years.
    Now, if you change the Business Area and Profit Center what would be the business impact.
    thanks,

    Hi,
    First of all itu2019s not a good business practice to change the Business area and Profit Centre.
    However if at all l you change the Business area and Profit centre the following is the impact::
    Business Area: effects the sales order in accounts assignment at Header level.
    Profit centre: effects the accounting part at Item level
    Overall in MIS reporting w.r.t Profit and Business Analysis in Finance will be affected.
    Thanks and regards
    DSR

  • Need Authentication Objects For SALES ORDERS

    Hi All,
    Can anyone provide me list of Authentication Objects For SALES ORDERS.
    I opened the SU03----SD class there are nearly 19 objects.
    i need to knwo what are the related Authorization Objects for SalesOrders.
    Regds
    Raj

    Role can be created with the authorizations to the transactions like VA01/02/03 and authorized users can be assigned to these roles, this way you can control the authorizations to standard transactions,
    Hope this helps,
    Vasanth

  • RA Category for Sales Order Actual Settlement

    Hi,
    During production order settlement for WIP we run in every month end. Generally in tcode OKG8 (Posting Rule in WIP calculation and Result Analysis) we use RA category WIPR(Work In Process with Requirement to Capitalize) which is used production order settlement for WIP. We have done production order settlement and successfully value posted to WIP settlement gl account because in OKG8 WIPR is maintained against P&L and B&S account.  After that we have done Result Analysis for Sales Order through KKA3. Value has posted to various objects under Result /analysis. Now we need to run  Actual Settlement for Sales Order. In case of Sales Order Costing what should be its RA catergory for Actual Settlment : Sales Order settlment which is run through VA88.
    Best Regards,
    Samrat Roy

    Dear Waman,
    In OKG8 posting rule WIP calculation against RA category is maintained as WIPR with P&L and BS gl account. Uner Result Analysis valuation method against RA Key for Sales Order is maintained as PREL, REL, DLV, FNBL and TECO. Production order settlement has done and value has posted to WIP gl account and  Quantiy has issued for delivery and billing. After the Sale billing I have done KKA3 which is Result Analysis for Sales Order. Value has posted to Sales order wip, Actual Revenue, Actual Cost, Cost of Sale, Revenu affecting net income, Planned revenue, planned cost, Planned profit and loss value shows. After that I have run VA88 and sales order wip value has posted to wip gl accounts which is set in OKG8 both P&L and BS gl account which same gl is used for production order settlment also and I created Sales Order settlement rule which is receiver in GL accounts. That GL is external settlement GL account. That external settlment receiver gl is same as sales order settlment profile's allocation structure GL. So during final sales order settlment same gl is debited and credited of calculated profit.
    But I have some doubts which I requires as per business. I need Revenue Surplus(POCS), Reserve Unrealized Cost(RUCR), Revenue in Excess Billing(POCI) and variance from Result Analysis(VARR). I wanted to set this RA category in OKG8 but system does not allow me which says alrady WIPR is maintaied and value posted to result analysis. So I need to deactivate first then new RA key can be introduced..
    Also I would ask you after production order settlement for wip, shall I run wip for Sales order and Sales Order settlement. or I need to to pas customer delivery and final billing. After billing I need to run WIP on sales order and sales order settlement. Basically I will run two times WIP which are production order and sales order. Our business sceanrio consists of one sales order with 29 prouction and its corresponding 29 wip which will be finally settled to Sales order external settlment gl account.
    Best Regards,
    Samrat roy

  • Create and Change functionality for Sales order

    Hii All,
                Can any one please suggest me any Standard program or BAPI or IDOC for Sales order, it should cover create as well as change fuctionality of Sales order.
    this is very urgent to me.
    Suitable Answer will be Rewarded.
    Thankyou,
    Shobha.

    For change you can use:
    BAPI_SALESORDER_CHANGE         Sales order: Change Sales Order
    For create you have the following choices:
    BAPI_SALESORDER_CREATEFROMDAT1 Sales order: Create Sales Order
    BAPI_SALESORDER_CREATEFROMDAT2 Sales order: Create Sales Order
    BAPI_SALESORDER_CREATEFROMDATA Create Sales Order, No More Maintenance
    BAPI_SALESDOCU_CREATEFROMDATA with business object 'BUS2032'
    The difference between the create ones is the functionality you get e.g. create_from_data2 is the 'most powerful' but you also have to provide the most data. It just depends on what you want it to do.
    In terms of IDOCS:
    message type:
    SALESORDER_CREATEFROMDAT201 or
    SALESORDER_CREATEFROMDAT202 or
    ORDERS05
    Hope that helps,
    Michael
    Here is an example we use, you might want to populate additional fields or leave fields out in case you want different data to be transferred to the IDOC - however some fields are mandatory.
    create the order header structure
      ls_header-doc_type   = ls_screen-order_type.
      ls_header-sales_org  = gc_vkorg_aa01.
      ls_header-distr_chan = gc_distr_aa.
      ls_header-division   = gc_divis_aa.
      ls_header-purch_no   = ls_screen-po_num.
      ls_header-po_method  = ls_screen-po_source.
      ls_header-ship_cond  = ls_screen-ship_cond.
    create partner input table (sold to)
      ls_partner-partn_role = gc_role_sold.
      ls_partner-partn_numb = ls_screen-sold_to.
      APPEND ls_partner TO lt_partner.
    create partner input table (ship to)
      ls_partner-partn_role = gc_role_ship.
      ls_partner-partn_numb = ls_screen-ship_to.
      APPEND ls_partner TO lt_partner.
    items are added by looping at a table
        ls_item-material = <fs_upload>-matnr.
        ls_item-req_qty  = <fs_upload>-quantity.
      process the quantity, it needs to be three decimals, because it
      will be moved into a string in the BAPI and divided by 1000 before
      it is moved back into a number field (1.500 => 001500 => 1.5)
        ls_item-req_qty = ls_item-req_qty * 1000.
      truncate remaining decimal places if exist (1.2525 => 1252.5 => 1252 => 1.252)
        ls_item-req_qty = trunc( ls_item-req_qty ).
        price is taken from the file
          ls_item-cond_type = gc_cond_so_upld_price.
          ls_item-cond_val1 = <fs_upload>-price.
        condition one (price) is multiplied by 10 in the BAPI
          ls_item-cond_val1 = ls_item-cond_val1 / 10.
        no discount
          ls_item-cd_type2   = gc_cond_so_upld_disc.
          ls_item-cd_value2  = 0.
        ls_item-item_categ = ls_screen-item_cat.
          APPEND ls_item TO lt_item.
    then BAPI is called
      CALL FUNCTION 'BAPI_SALESDOCU_CREATEFROMDATA'
        EXPORTING
          order_header_in           = ls_header
          business_object           = gc_bus_obj
        IMPORTING
          SALESDOCUMENT             = lv_vbeln
          RETURN                    = ls_return
        tables
          order_items_in            = lt_item
          order_partners            = lt_partner.
      IF ls_return-type NE gc_msgty_error AND
         ls_return-type NE gc_msgty_abend.
      No errors where found
        CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'.
      ELSE.
      There was an error or abend
        CALL FUNCTION 'BAPI_TRANSACTION_ROLLBACK'.
      ENDIF.

  • Condition for sales order delivery block

    Hi All,
    I am new to Workflow,
    I have created work flow  for Sales order changes, its works fine.
    but my requirement is after that it will check whether sales is block for delivery or not.
    if it is block then only it should send mail.
    Regards,
    Arpit

    Hi Arpit,
    1. Go to t-code SWO1.
    2. Click Settings -> Delegate.
    3. Delegate the BO YBUS2032 to the BO BUS2032.
    In workflow perform the following steps:
    1. Go to t-code SWDD and open your workflow template.
    2. Go to Basic Data (cap sign button at the top of the screen) or click Ctrl + F8
    3. Go to Start Events tab.
    4. In the Object type enter your BO name BUS2032 (not YBUS2032), in Event of object enter the BO event.
    5. Click on 'B' i.e. Binding Defined, click on generate automatic binding. It would automatically generate the appropriate binding for the workflow. You can also alter the binding as per requirement.
    6. Click on 'C' i.e. Start Condition. A dialog would open, select the appropriate start condition for the workflow. Use the attribute that you created and make the start condition. Check the condition before saving (recommended).
    6. Click on 'A' to Activate the binding and start condition. All 'A', 'B' and 'C' would get green.
    7. Save the changes made and activate your workflow.
    Hope this helps!
    Regards,
    Saumya

  • F4 for Sales Order No

    Hi All
    I am trying to put in a F4 functionality for Sales Order Document No in my BSP application. I developed the custom BSP extension and element as per Thomas's weblogs. I am able to get it working for Material No  but not for Sales Order No.
    I am trying to use the business object BUS2032 and/or a reference to the data type VBUK-VBELN but neither of them is working.
    Has anyone got the F4 to work for sales orders?
    Any suggestions would be appreciated.
    Thanks in Advance
    Shawn

    What exactly isn't working?  I don't have a system with that BSP exentions running directly on ERP, so I can't test the direct data reference.  I did try the BUS2032 object remotely.  At first I got a not authorized message. This is common for many BAPIs.  They need an authorization function module. This must be configured in table BAPIF4T. I created a single generic function module to do authorization checks by data type and then just assign them to the object (in this case VBELN_VA) in this config table. 
    You may also find that it is easier to create your own custom BOR object.  I created one generic BOR object where I can add my own Key Fields and Attributes to, in order to quickly link to any Search Help I want.

  • Workflow for Sales Order Release via Status Profile

    Dear all,
    i want to make a workflow for sales order which have 4 User Status in One status profile.
    Once Event triggered for sales order
    1.   Mail should go to main authority with sales order number.
    2.  Once authority will do some changes in the required field then he/she changes
         the user status-1 from defauts as per line Item and mail should go to department no-1 (Head authority).
    3.  Once again same changes in sales order but now user status-2 from user status-1
         as per line Item and mail should go to department no-2 (Head authority).
    4.  Once again same changes in sales order but now user status-3 from user status-2
         as per line Item and mail should go to department no-3 (Head authority).
    5.  Once again same changes in sales order but now user status-4 from user status-3
         as per line Item and mail should go to department no-4 (Head authority) .
    and parrally for each changes of Status mail should also go to User (Event Creator).
    6. Finally mail sholud go to User as you are permitted to do next business transaction for this sales order
    Please tel me the process as i am very new this topic and i am always going to stuck in Binding.
    please help me out.
    Thank You

    Hi Neeraj,
    First of all start with SWELS and SWEL T-Code to check if any standard event is getting triggered or not. If event is getting triggered, then use the same event to trigger the workflow; otherwise create a custom event of BO and use the same to trigger the workflow.
    Hope you are aware of T-Code SWO1 and delegation of BO. The BO used for your requirement will be BUS2000115.
    As you want the workflow to get triggered only for one status profile and one of its status, so use check function module. There set the condition for you status profile and status.
    The FM which you will be using the most is CRM_ORDER_READ. To read the status, you can also use CRM_STATUS_READ_OW.
    Now simply make the approval steps in the workflow using activity. In the activity, you can use the standard method USERSTATUSPOPUP to send the workitem for approval. In each step use the same activity with different agents as approvers.
    Just go with these things and let me know if you get stuck up somewhere.
    Regards,
    Guddan

Maybe you are looking for

  • When will Mozilla correct the printing bug with Firefox where only 1 page is printed?

    There is a problem with FireFox whereby it only prints the FIRST PAGE of many sites. Searching the web on this, it seems that this problem has been around for a long time and even what the cause is. Apparently FireFox interprets the html text "overfl

  • Migrate existing database to ASM.

    Hello all, I am currently working on stand alone database and i want to migrate my existing database to ASM. i am trying it via RMAN and i did the following changes in my database :- SQL>alter system set control_files='+data' scope=spfile; System alt

  • IPad appears to be dead

    Hiya My iPad appears to be dead. Nothing out of the ordinary happened. It was switched on and when I pressed the home button the screen went grey then...nothing. I have tried charging/reset/hard reset. Nothing happened. I have also tried to connect t

  • How to find number of rows after query

    I have a simple query page. On this page I enter query criteria and hit the go button I get the query result. (say it finds one record) On processFormRequest of the controler of this page after I execute (executing explicitly because I am using some

  • Can not login to ASDM

    Hi All, I have done with my anyconnect vpn. but after  anyconnect vpn is connected, I can not connect to my asa55212-x using  ASDM. It is display message that " Unable to launch device manager  from 175.100.111.XX". and  if I disconnect anyconnect vp