0DOC_NUMBER - Sales Order No - Attributes

Hi Guys,
Here is my requirement. I need sales order related characteristics like soldto, shipto, endcustomer,purchase order date and some line item level fields  like few dates and status flags.
I am planning to add all the above as the attributes of 0DOC_NUMBER.
I plan to use the following DS
2LIS_11_VAHDR u2013 MC11VA0HDR u2013 Sales Document Header
2LIS_11_VAITM u2013 MC11VA0ITM - Sales Document Item
For the fields which are not available in the DS I will derive it from the user exit.
I don't need any Key figures from the above DS  just characteristics.
We are not using the above 2 DS for any reporting. What is the best way to enhance the attributes of 0doc_number. Do I have to use the above 2 DS or write a custom DS to populate the required fields.
If I have to use the above 2 DS,will the delta get triggered if there is any change in the date fields like some Z field which is derived in the user exit.
For example if a z date field changed from 08/01/2009 to 08/30/2009. Does this record gets captured in the next delta run. if not then we have to do a full update each time. i don't think it is possible.
Please advise what is the best way to enhance the attributes of 0doc_number .
Thanks for your help.
Senthil

Hi,
  It dont think its advisable to load soldto, shipto, endcustomer,purchase order date and some line item level fields like few dates and status flags to attrbutes. These are transactional data and would not work as you would have simply too many combinations. My suggestion would be to build a cube and use it for reporting.
Also points to be noted are that 2LIS_11_VAHDR u2013 MC11VA0HDR u2013 Sales Document Header
2LIS_11_VAITM u2013 MC11VA0ITM - Sales Document Item, these are transactional datasources.
Regards.

Similar Messages

  • Internet Sales Order - Additional attributes

    Hi,
    I have a requirement to enable Certification Requirements for products being sold.  Process goes like this -
    Customer places a Sales Order on Internet via Internet Sales Solution.  While placing the order, customer would select the types of certifications required for the product for example: certificate on country of origin, Quality certificate etc.  User should be able to select multiple such certificates as required, while creating the Sales Order.  Is there any way I can achieve this?  I am thinking about using additional attributes (via Set Types and attributes) assigned to the product master.  But, by assigning these to the product master, can I see the same attirbutes in the Sales Order in Internet Sales?  Secondly, can these attributes (with values) be transferred back to R/3 Sales Order? Any suggestions will be appreciated and properly rewarded for good answers.
    Thanks in advance

    Hi Gopala,
    Yes. You can use additional products attributes to display the required certification parameters.
    But these attributes can't be transfered onto the sales order by default. You need to some java development / abap development to extend the sales order.
    If you want to transfer the same attributes to R/3 order then you have enhance the BAPIMATICS strucuture so that the middleware transfers them.
    Also you need to extend R/3 sales order to hold these attributes. This is a complex scenario and you need to design a good functional specification document before even attempting the design
    Let me know, if you need any further info.
    <b>
    Do not forget to reward if it helps,</b>
    Regards,
    Paul Kondaveeti

  • Sales Order Item Attribute

    Hi,
    I need to add a few attributes to 0S_ORD_ITEM (Sales order item).  I have 2 sales order item status fields I want to add as attributes.  Has anyone done this? If so, what is used as the data source?
    Thanks for your help.
    Aaron

    Hi Aaron,
    well as Kristian already mentioned, this is not a very good idea. If you really need to do it you also have to compound 0s_ord_item by the document number and you need to create your own datasource for it and populate the status in the user exit. But: isn't it possible for you to add the status fields to the transactional data, is it? This might be the better approach. Another approach might be to create a ods which contains the document number, the item and the status fields and create a multiprovider on this new ods and your cube.
    Siggi

  • Sales order attributes

    what are the sales order attributes?

    hi Aaron,
    you can transfer again the infoobject from business content,
    rsa1->business content, choose 'object type' in left, middle panel look for infoobject and expand, choose 0doc_number and transfer,
    choose grouping only necessary objects, and install.
    couldnt find the datasource 0doc_number_attr in r/3, from the attributes it has (0CAMPAIGN 0LOGSYS 0OPP_NUM 0SAL_PROM 0SLS_ACTIV) looks like it's from crm system, it's under SD-IO application component.
    hope this helps.

  • Customer Master Definable Attributes to Sales Order and Pricing

    Hello,
    I have a requirement to set a customer master flag using freely definable attributes.  I am planning to use KNA1-KATR10 from the GENERAL Customer Master data.  We do not want the flag to be sales area specific.  The flag will be on the ship to customer.   
    I need to determine how to copy this flag into the sales order and then also to ensure that this field is available for evaluation in a pricing requirement routine. 
    How do i accomplish this?  An alternative would be to use the Customer Grp fields , KNVV-KVGR1 but i am guessing the process would be similar. 
    Best Regards

    If you want to save Katr10 to the order, you will have to
    1. Append new fiield to VBAK within an append structure like zzvbak.
    2. Retrieve Katr10 and move to VBAK in MV45afzz form userexit_move_field_to_vbak.
    3. Append new field Katr10 to pricing communication structure komk in include komkaz.
    4. If you retained Katr10 as field name then you are done since there is a move corresponding from vbak to komk, if not you need to move this to komk in MV45afzz form userexit_pricing_prepare_tkomk.
    The field will now be populated and available in your pricing requirement routine. Hope this helps.
    Matt

  • User exit to update characteristic attributes in sales order

    Hi all,
    I am having one queer requirement.
    We are having variant configuration. We are manufactiuring a material which is having lenght as one of the characteristic.
    While creating the sales order the user will enter the value against length. This we have to pull in the inspection lot with range.
    For ex. if the length required by customer is 1000 mm then depending upon the tolerance limit say +/-1.5 %, another characteristic should get updated with the allowed range (here in this example the lower range  985 and upper range 1015) against another characteristic.
    This characteristis will sever as class characteristic for QM master inspection characteristic.
    Here the problem is the functionality can't be mapped with object dependency in satandard SAP (you can't derive range with object dependency), so I am looking for user exit to update the second characteristic depending upon the value of first characteristic and allowed percentage.
    The user exit should be effective for sales order creation as well as sales order change.
    Please help.

    Hello Nikhil,
    I am looking for the tolerance limit to upadte against one char only and not two separate chars.
    If the range is against only one char (and that too again in numeric format and not characteristic format) same shall can be pulled against master inspection characteristic in inspection lot.
    Looking forward for the soution.
    Mimiri

  • How to update attributes of sales order?

    can anyone explain me this?
    Edited by: user9024076 on Jan 21, 2010 12:30 AM

    Hi Elio,
    Yes from UI it's the expected behavior but through DI API  I could update an user defined field of sales order line even if the LineStatus is equal to "C" (Closed) but only if the order header is not closed.
    Regards
    Andrea

  • Load Sales Order from Xml file

    Hi,
    I want to load a sales order from xml file. How can I do so? Where I'll get the xml schema for Sales Order or other documents (delivery,invoice etc)?
    Plz reply with code and xml file.

    When I'm going to load SO from xml file, it's showing an error:
    "The connected value 0 was not found in table Uasge of Nota Fiscal".
    What is this table for? Which attribute is related with this table?
    How can I find out that?

  • Suppressing the fields in Sales document like sales order(VBAK)

    Hi ABAP friends,
    Iam SD consultant, i was asked by my client to do suppress/not to show some fields in sales order document(table is VBAK),transaction is VA01/VA02/VA03.
    can it possible....what is the method to do it....please give some idea on it.
    Laxminarayana,

    hi
    hope it will help you.
    Pls reward if help.
    we can create Transaction Variants Using SHD0 Transaction.
    Transaction Variants and Screen Variants
    Transaction variants can simplify transaction runs as they allow you to:
    Preassign values to fields
    Hide and change the 'ready for input' status of fields
    Hide and change table control column attributes
    Hide menu functions
    Hide entire screens
    In particular, hiding fields in connection with screen compression, and hiding screens, can result in greater clarity and simplicity.
    Transaction variants are made up of a sequence of screen variants. The field values and field attributes for the individual screens found in transaction variants are stored in screen variants. Each of these variants is assigned to a specific transaction, can, however, also contain values for screens in other transactions if this is required by transaction flow. The transaction that the variant is assigned to serves as initial transaction when the variant is called.
    There are both client-specific and cross-client transaction variants. All screen variants are cross-client, but may be assigned to a client-specific transaction variant.
    A namespace exists for cross-client transaction variants and screen variants and both are automatically attached to the Transport Organizer. Client-specific transaction variants must be transported manually.
    In principle, transaction and screen variants can be created for all dialog and reporting transactions. There are, however, certain Restrictions that apply to certain transactions, depending on their internal structure.
    No transaction variants are possible with transactions already containing preset parameters (parameter transactions and variant transactions).

  • How to get Characteristic Values assigned to the line item of Sales Order?

    Hi,
    I want to get the Characteristic Values( Variant Configuration )assigned to First Line Item of Sales Order.
    I was using the Fn. Mod.: VC_I_GET_CONFIGURATION_IBASE,
    this fn. mod. giving all the Characters but not the assigned characteristic values.
    Is there any other way to find characteristic values of sales order.
    Thanks,
    vinayak.
    Message was edited by: vinayaga sundaram

    For example, please see this example program.
    It lists the characteristic names, the values, and the description of the values which are tied to a sales document.
    report zrich_0001.
    * Internal Table for Characteristic Data
    data: begin of i_char occurs 0.
            include structure comw.
    data: end of i_char.
    data: xcabn type cabn.
    data: begin of xcawn,
          atwtb type cawnt-atwtb,
          end of xcawn.
    data: xvbap type vbap.
    parameters: p_vbeln type vbap-vbeln,
                p_posnr type vbap-posnr.
    start-of-selection.
      select single * from vbap into xvbap
                 where vbeln = p_vbeln
                   and posnr = p_posnr.
      clear i_char.  refresh i_char.
    * Retrieve Characteristics.
      call function 'CUD0_GET_VAL_FROM_INSTANCE'
           exporting
                instance           = xvbap-cuobj
           tables
                attributes         = i_char
           exceptions
                instance_not_found = 1.
      loop at i_char.
        clear xcabn.
        select single * from cabn into xcabn
                 where atinn = i_char-atinn.
        clear xcawn.
        select single cawnt~atwtb into xcawn
                   from cawn
                     inner join cawnt
                       on cawn~atinn = cawnt~atinn
                      and cawn~atzhl = cawnt~atzhl
                          where cawn~atinn = i_char-atinn
                            and cawn~atwrt = i_char-atwrt.
        write:/ xcabn-atnam, i_char-atwrt, xcawn-atwtb.
      endloop.
    Regards,
    RIch Heilman

  • Cost Analysis by Sale Order

    Hello,
    I'm seeking to enable in BI a Cost Analysis Scenario with repect to the <b>Sales Orders</b>. That is, something similar to the analysis you can easily perform in the R/3 area <i>Accounting -> Controlling -> Product Cost Controlling -> <b>Product Cost by Sales Order</b></i>.
    For instance in standard report KKBC_KUN, you can choose a sales order number and get all the <b>cost elements</b> related to that sales order, with the corresponding costs.
    I have examined the following objects provided by the BW's Business Content:
    - <u>InfoCube 0PC_C01</u>: it contains only the costs related to <b>production orders</b>, and not the costs associated with sales orders.
    - <u>InfoSource 0CO_OM_CCA_9</u>: it seems interesting, in fact it delivers some header and line item data of the <u>Controlling Object Document</u>. Unfortunately it doesn't deliver the crucial characteristics <i><u>Controlling Object</u></i> and <i><u>Controlling Object Type</u></i>, which I definitly need for enabling my analysis scenario!!
    (By the way, are these 2 characteristics delivered by the BC? There exists a 0COSTOBJ characteristic, but it's not used by any object in the flow afterwards. Moreover, I can't find a standard DataSource in R/3 which I can use to load either its attributes or its texts, and see what data enter it..)
    Business Content for Product Cost by Sales Order), but none could help me.
    It seems really weird that it's not possible to carry out a <b>Cost Analysis by Sales Order</b> in BW, so if anyone has some suggestion it'll be very appreciated indeed.
    Thanks & Regards, Davide

    I eventually found the following SAP Note. No BCT for this analysis scenario....
    <b>Note 584791 - BW-BCT-CO: Costs not extracted on sales orders</b>
    <b>Symptom</b>
    In R/3, costs are posted directly to sales orders. The costs have to be analyzed in the BW system. In the standard system, however, this data is not extracted into the BW system.
    <b>Other terms</b>
    0CO_OM_OPA_1; 0CO_OM_OPA_6
    <b>Solution</b>
    1. There are currently no DataSources for costs on sales orders in the standard BW Business Content. Unfortunately, there are currently no resources scheduled for a new development in this area either.
    2. Therefore, the DataSources and the Business Content must be created in the customer project within the framework of consulting as a customer solution concerning the generic extraction options of the BW Service APIs or function modules you have programmed yourself for extracting data.
    3. Technical background information about costs on sales orders:
    The transaction data is available in the following R/3 tables
    COSS and COSP - Totals records or COEP - Line items.
    This concerns records for the VB* object numbers.
    The master data of the sales orders is contained in the VBAK and VBAP tables.
    The 0CO_OM_OPA_1 and 0CO_OM_OPA_6 DataSources only extract costs for orders with master data in the AUFK table. These types of requests always have OR* object numbers. Therefore, these DataSources cannot be used for sales orders.
    However, you may be able to assign requests from the AUFK table (for example, maintenance orders or production orders) to a sales order through the AUFK-KDAUF table field.

  • Sale order- Pricing -Access Sequence

    Hi Gurus,
    While creating Sale order, the price is picked from the Pricing procedure and Condition records maintained.
    In PR00- Material price and Customer-Material special price is maintained in VK11.
    So the system picks Customer Material combination price and the same we can see in the Item level conditions-Analysis for pricing and can also see it fetched record from where.
    So for this Client wants in the following way: POPUP MESSAGE
    At Sale order Warning Message that Price is taken from Which List- Normal Price List or Special Price List for Customer and Material combination
    Is there some way to do this?
    Thanks in Advance.
    Best Regards
    Sri

    Hi,
    U have to take ABAPER HELP  No doubt please use this input if tis use full .
    User Exits For Price Determination
    USEREXIT_PRICING_PREPARE_TKOMK (module pool SAPLV60A, program RV60AFZZ)
    This user exit allows you to copy additional fields for pricing in the TKOMK communication structure (header fields), which have not been provided in the standard SAP system. These fields can also be used for pricing in the billing document.
    This user exit is described in detail in the "New fields in pricing" section.
    USEREXIT_PRICING_PREPARE_TKOMP (module pool SAPLV60A, program RV60AFZZ)
    This user exit allows you to copy additional fields for pricing in the TKOMP communication structure (item fields), which have not been provided in the standard SAP system. These fields can also be used for pricing.
    This user exit is described in detail in the "New fields in pricing" section.
    USEREXIT_FIELD_MODIFICATION (module pool SAPMV61A, program MV61AFZA)
    You can use this user exit to adjust the display of individual lines in the condition screen by changing the display attributes of the screen fields. This does not include the display of subtotals.
    This user exit is also used in order processing.
    USEREXIT_FIELD_MODIFIC_KZWI (module pool SAPMV61A, program MV61AFZB)
    You can change the display of subtotals in the condition screen by changing the display attributes of the screen fields.
    This user exit is also used in order processing.
    USEREXIT_FIELD_MODIFIC_KOPF (module pool SAPMV61A, program MV61AFZB)
    You can adjust the display of subtotals in the condition screen to your requirements by changing the display attributes of the screen fields.
    This user exit is also used in order processing.
    USEREXIT_FIELD_MODIFIC_LEER (module pool SAPMV61A, program MV61AFZB)
    You can adjust the display of blank lines in the condition screen to your requirements by changing the display attributes of the screen fields.
    This user exit is also used in order processing.
    USEREXIT_PRICING_CHECK (module pool SAPMV61, program MV61AFZA)
    You can install additional checks to the standard checks of condition lines (e.g. maximum/minimum value).
    USEREXIT_PRICING_RULE (module pool SAPLV61A, program RV61AFZA)
    In the standard SAP system, it is predefined which condition categories and classes can be copied or recalculated per pricing type. You can change the predefined standard procedure for each pricing type.
    USEREXIT_CHANGE_PRICING_RULE (module pool SAPMV61A, program MV61AFZA)
    You can use this user exit to change the pricing type that has been predefined in the copying control table in billing.
    USEREXIT_XKOMV_BEWERTEN_INIT (module pool SAPLV61A, program RV61AFZB)
    This field is used in the formulas and therefore initialized before the loop for the pricing procedure starts.
    USEREXIT_XKOMV_BEWERTEN_END (module pool SAPLV61A, program RV61AFZB)
    Within a loop for the price components during pricing, specific values can be transferred into the communication structures in pricing to be further processed.
    USEREXIT_XKOMV_ERGAENZEN (module pool SAPLV61A, program RV61AFZB)
    In change mode, you can change the dynamic part of the condition record (KONVD) that is always redetermined (i.e. it is not stored in database table KONV).
    USEREXIT_XKOMV_ERGAENZEN_MANU (module pool SAPLV61A, program RV61AFZB)
    You can use this user exit to change the ready-for-input fields of the manually entered condition record in add mode in the condition screen.
    USEREXIT_XKOMV_FUELLEN (module pool SAPLV61A, program RV61AFZB)
    This user exit is always called up during a redetermination of all or individual price components. You can change the work fields of the condition line. However, this only applies to conditions that have been determined via a condition record.
    USEREXIT_XKOMV_FUELLEN_O_KONP (module pool SAPLV61A, program RV61AFZB)
    This user exit is always called up during a redetermination of all or individual price components. You can change the work fields of the condition line. However, this only applies to conditions that have been determined via a condition record. This may include subtotals, manually entered conditions or conditions that have been calculated with a formula.
    USEREXIT_PRICING_COPY (module pool SAPLV61A, program RV61AFZA)
    You can change the KONV fields for copied price components
    With best regards,
    venkataswamy.y

  • How to update the sales order header & item data in TM system

    Hi Experts,
    Greetings!
    I need your help,I have a one requirement sales order data came from ECC these sales order data need to update in TM Sales order header table as well as item table also these fields are additional fields.
    Can anyone please guide me I am very new in TLM .
    Thanks in advance.
    Thanks&Regards,
    Siva.

    Hi Siva
      "/SCMTMS/TRQ~ROOT" is for sales order header and "/SCMTMS/TRQ~ITEM" is for details.
      I assume you need to
    enhance the structures for these nodes to hold your add. fields;
    and do the same for the input parameter of service TransportationRequestRequest_In (which is used to create OTR) from PI side;
    Pass the add. fields during service call (impelment in ERP system);
    Map the fields from service paremeter to node attribute (implement in TM system, BAdI   /SCMTMS/TRQ_SE_TPNRQ_REQ~CHANGE_MODIFICATION create modification table for the input parameter).
    I cannot find source code for all of that; hope it helps.
    Sensen

  • Meet a problem of data exchange for sale order from CRM to R3.

    Dear Friends:
          I do the data exchange for sale oder from to R3 today , the problem's detail is as follows:
          When i save a sale order in CRM (Version is 5.0) . it can automatically generate a bdoc which bdoc type is BUS_TRANS_MSG. but the bdoc status alway is "Sent to receivers (not all have confirmed)". and the original order in CRM can not be change .it quote that "Document is being distributed - changes are not possible",  so i check the order status analysis in detail .it presents two error messages ," Event 'BEFORE_CHANGE', attribute '     FINI': Error code for function module 'CRM_STATUS_BEFORE_COMPLETED_EC' , "Item is not yet completed in OLTP system".  so i check  the order in R/3 ,it has already been create and without any error messages.
       Would like to tell me how to solve it . thanks your any idear..

    Hi Benjamin,
    When performing uploads to R/3 from CRM there is a response from the OTLP system that is sent back to the CRM Middleware to confirm that the data records were received and processed correctly. 
    Here is a checklist you can run through to verfiy that the connections, systems and objects that are needed are all in place:
    <b>On R/3 system:</b>
    - Check R/3 outbound queue (transaction SMQ1) for any entries that are not reaching CRM.
    - Check that all RFC destinations on R/3 are defined correctly and are pointing to CRM
    - Check the CRMCONSUM table in R/3 to ensure CRM is registered as a consumer
    - Check the CRMRFCPAR table in R/3 to ensure that order objects are valid for exchange between R/3 and CRM
    - Check for any short dumps in R/3 (ST22/ST21)
    <b>On CRM:</b>
    - Are there entries stuck in the inbound queue (SMQ2) with R3AU* names?
    - What does the CRM Middleware Trace show (SMWT)?  Sometimes this has more detail than the specific BDoc overview (SMW01)
    - Check for short dums in CRM (ST22)
    Let us know what else you uncover and we can work from there.
    Brad

  • How to Avoid sales orders from getting released

    Hi,
    We have done following :
    1. Created sales orders in AT org.
    2. Ran ASCP plan
    3. Sales order is considered as demand and the corresponding planned order is created in AT org.
    4. corresponding Internal Requisition is created in AT org and internal sales order is created in BE org (The sourcing rule for AT suggests to transfer 100% from BE).
    5. Now again the ASCP plan is run.
    6. The same sales order is again considered as demand and all the corresponding documents are also created (means, planned order, internal requisition, internal sales order).
    The requirement is that the sales order should continue being considered in the plan run as the demand so that it can be taken in the ATP calculation, but the corresponding IR should not be created each time the plan is run.
    I have modified the Visible_demand_flag of sales order line as 'N'. but problem is that orders are not even getting considered as demand till the flag is again reset as 'Y'.
    Please help is this. This has to be displayed in UAT to users.
    Regards.

    1)     Planning should not recommend new planned order if there is already a requisition to fulfill SO demand. Did you see that every time, a new planned is created for same SO demand ? Then you would need to ensure that Requisitions are being collected.
    2)     To prevent releasing the Planned Order – this can be done by populating item attribute ‘Release Time Fence’ – Kanban Item (Do Not Release)

Maybe you are looking for

  • Airplay no longer working on iTunes 11.1.3 Windows 8.1

    I have a PC connected by ethernet cable to a router, which is sending a wireless IPv4 signal to an airport express on my home network, which is in turn connected to some speakers. I also have an Apple TV connected to the same network. Airplay worked

  • How to calculate the volume of data used (PI licensing limit).

    Hi, One of our customers has several interfases running on SAP PI. They have a license that allows them the use of PI for a quantity of Gb in message data per month (I think that's the usual way). They would like to know how near/far they are of thei

  • How can I get a dual layer DVD+R to burn properly?

    I can not get a dual layer DVD+R to burn properly. The disk pops out before it's finished, usually at the end of the multiplexing stage.  iDVD seems to think the disk is still burning for about 20 more minutes although the box says "done".  I tried i

  • 3rd Party Posting Error - Document Transfer has Failed

    Our posting run was created and the document was released. When we try to post, we get a message saying the the document has been rejected and the status is changed to "Document Transfer Has Failed". Does anyone know how we can clear this and get the

  • CR XI : unable to create ressource objects

    Hello, I am migrating from CR V8 to CR XI in VBSCRIPT / ASP (RDC method for launching CR throught web pages). I have many multi-parametered reports and I can't display them throught the IE plugin (I just have a grey page, as if the objects were not c