Want to add number of sales orders in a COPA report or form

Hi All
I created a COPA report that has two columns: sales from sales orders & sales from billing documents. Now I want to add columns which shows number of sales orders that make up sales. Can any one explain me , how can we acheive this  With a user exit, .
thanks in advance for looking into this

Hi Steve,
Walter is very right in saying so.
In SD module itself you can get some reports like this.
Even in COPA you will get these kind reports.  But if your company is a big company and have lots of sales orders,
Then you will have serious problems with System performance issue. 
When you define that sale order is a segment level character, then system will ear up the resources and take very long time in executing the reports.
But for some reason this requirement is a must case, then it is very simple
you define Sale order in either form or report,
then give the variable parameters like Co.Code, Period etc. you will get all the sales orders details for the selected period
But think about not going for it before you make up your mind
Best Regards
Surya

Similar Messages

  • Number of sales orders in a copa report

    Hi All
    I am designing a revenue report from COPA.In the report,By changing the chrecteristics(sales org), the revenue in the report changes and underneath the revenue the number of sales orders will change. Now my question is, Is there any way to display number of orders that make up the $ amount in Copa report?

    Hi Williams,
    In order to regenerate this program call function module 'RKE_GENERATE_INTERFACE_ACT' in the test environment and start it for the respective operating concern.
    Example: if the name of the operating concern is 'S001', program 'RK2SS001' has to be regenerated.
    Proceed as follows to generate program 'RK2SS001':
    Call Transaction SE37 (Function Builder).
    Enter function module: 'RKE_GENERATE_INTERFACE_ACT'.
    Choose 'Single test' (F8).
    Enter import parameter ERKRS = 'S001'.
    Choose 'Execute' (F8).
    You would drive the steps for the generation of the program 'RK2SXXXX' for ALLE your operating concerns through.
    By the program changes described in this note it is avoided to call the CO-PA cross-company-code derivation type in the so-called 'overwrite mode'. Usually characteristic values of the derivation type which are already filled, that means directly copied from the sales order, are not overwritten anymore.
    If characteristic values during the processing of cross-company-code orders are supposed to be copied from the profitability segment of the supplying company code into the CO-PA line item of transaction type 'A', the possibility is provided with the attached correction. Technically the implementation of the desired transfer logic is not executed within the framework of a standard SAP enhancement, but rather by means of the help of a CO-PA-specific user exit of category 'RKE_EXIT'.
    In order to use the 'RKE_EXIT', proceed as follows:
    1. Call Transaction 'SE16' and create an entry in table 'TKEEXITS' with following field contents:
                        EXITID - 'KEI1_INTERC'
                        APPL - 'KE'
                        SEQNO - '001'
                        ISACTIVE - 'X'
                        REPORT - Name of a program in the customer namespace 'Z*'
                        MODEL - Name of a FORM routine in program REPORT.
    2. Then you can implement the 'RKE_EXIT' in FORM routine 'FORM' of program 'REPORT'. If you want to deactivate it, you have to set the flag 'ISACTIVE' to initial or remove the entry from table TKEEXITS.
    3. FORM routine 'FORM' must be declared with following chaning parameters:
                        I_EXIT_ACTIVE TYPE C
                        I_ERKRS LIKE TKEBB-ERKRS
                        IS_CE1 TYPE ANY
                        IS_CE1_INTERC TYPE ANY
    4. To activate the 'RKE_EXIT' in the program, first set flag 'I_EXIT_ACTIVE' to 'X', since otherwise you can not branch to the exit within the same transaction during the next access.
    5. In the parameter 'I_ERKRS' the operating concern 'XXXX' of the selling company code is passed. The parameter 'IS_CE1' contains that one current line items for the record type 'A'. The parameter 'IS_CE1' contains the current line item for the transaction type 'A'. The characteristic values of the profitability segment stored in the sales order from the supplying view are passed in parameter 'IS_CE1_INTERC'. Are the selling and assigned the supplying company code different operating concerns, values of characteristics only are available in the parameter 'IS_CE1_INTERC', that exist in both operating concerns with the same technical indicator.
    6. The parameters 'IS_CE1' and 'IS_CE1_INTERC' are passed in non-record structured form and must be assigned in the FORM routine to corresponding program variables which both of the type 'CE1XXXX' with which 'XXXX' designates the operating concern of the selling company code are. On these program variables the characteristic value transformations can be executed. Finally the program variable 'IS_CE1' must be assigned to the parameter again, so that the changed characteristic values are returned correctly.
    The source code of the 'RKE_EXIT', if the implementation is done in program 'ZZCOPA_CHANGES_INTERCOMPANY', FORM routine 'CHANGES_INTERCOMPANY' and operating concern 'S001' and from the profitability segment of the returning view characteristic 'WWXYZ' is supposed to be copied
    Regards,
    Srinivas Muthyala

  • Can we add Delivery texts/Sales order text in VL10 report

    Hi,
    Is it possible to have delivery texts/sales order texts on VL10 report.
    Please let me know if there is a way to do it.I've looked at the note198137.
    Thanks in advance.
    Regards,
    Rekha

    Yes I am aware of the fact that text is accessed thru read_text FM .....
    My question is what parameters/ field values can we plug in STXH/STXL to get info that a particular "text" entry exists in this table. I have a sales order which has few texts, I want to know if they have an entry in STXH and STXL about their text i.d.s....
    Let me put it this way - What ever entry exists in STXH for this sales Order I want to see that. What parameters of this sales order do I pass in this Table STXH to see that entry ??
    I hope this is clear now

  • Add buttons in Sales Order's Addtional Data B Tab

    Hi All,
    I want to add buttons in Sales Order's Additional Data B tab. I had try to draw a creen in painter and push a button in the screen, also assign a fcode to it.
    I had try to test the button, and I find that, it could work, but after it's action, a error msg give out and said there are no this request function.
    I think it may cause by the fcode passing between screen. However, I don't know how to fix it. Any sample coding could for me reference?
    Thanks!

    Hi,
    yes u can add the button  with Fcode on Additional data B screen.But u have write the code in the PAI of the screen,inorder to do something,for that u need to have accesskey also...i hope while adding fields to Additional data B screen u ahve used teh accessskey for adding..zfields
    Regards,
    Nagaraj

  • Want to copy an entire sales order item and add it as a new item to same SO

    Hi,
      I want to copy an entire sales order item and add it to the same sales order with a different quantity. When I use the regular BDC and add it gets me only the default values for fields like Forwarding Agent etc. But doesnt actually copy any changes. Is there some standard SAP function module or some other mechanism I can use to exactly copy the original item along with all the changes values e.g pricing conditions, forwarding agent etc.
    Thank you for reading.

    How will this help me for copying an item? This function module is only useful for the following
    1. Delete the whole order
    2. Delete order items
    3. Change the order
    4. Change the configuration
    In order to change the order items I first need to know the items.
    Is there any function module which can read all the values in a sales order item, then I can pass them to BAPI_SALESORDER_CHANGE probably

  • How to count number of sales orders generated in a month in SAP SD

    Hi SD Gurus,
    I have a very strange query from client. I have to count the number of sales order created in a month for a z report. For example 30 in Jan, 25 in Feb etc. Could anyone suggest me How to count number of sales orders generated in a month in SAP SD.
    Regards
    Vinod Kumar

    Hi,
    Goto the T.Code "SE16" or "SE16n" or "SE11".
    Enter the table name as VBAK
    Enter the created on date as the starting date of the period and to date as the end date.
    Enter.
    Click on "Number of Entries".It will tell you the number of entries created in a particular period.
    If you want a report,goto the T.Code "VA05n".
    Regards,
    Krishna.

  • Serial number in sales order creation

    HI all,
         please help to me........
    My requirement a add the serial number BAPI sales order.
    problem is their no serial number in bapi structure.
                How to add serial number crate a salesorder bapi.
    serial number is RIPW0-SERNR.
    Thanks & Regards,
    SReddy.

    hi,
    refer to this link
    http://help.sap.com/saphelp_nw04/helpdata/EN/3e/0e1089c24611d1ad09080009b0fb56/content.htm
    refer to this code...
    Also if you set the * CONVERT_PARVW_AUART = 'X' parameter to 'X' you can use sold to party as SP and ship to party as SH.
    REPORT ZEX_BAPISALESORDCRT .
    --Data Declaration--
    Data: st_BAPISDHEAD like BAPISDHEAD, " Sales Order Header Data
    ta_BAPIITEMIN like BAPIITEMIN occurs 0 with header line, " Ln item
    ta_BAPIPARTNR like BAPIPARTNR occurs 0 with header line, " Partner
    d_BAPIRETURN1 like BAPIRETURN1, " Bapi return msg
    d_vbeln like bapivbeln-VBELN. " Sales Order Number
    Move the data to create sales order in the repective parameters------*
    move: 'TA' to st_BAPISDHEAD-DOC_TYPE, " Sales document type
    '15493' to st_BAPISDHEAD-PURCH_NO_C,
    '00010' to ta_BAPIITEMIN-ITM_NUMBER,
    'Y-351' to ta_BAPIITEMIN-MATERIAL,
    '1100' to ta_BAPIITEMIN-PLANT,
    '1' to ta_BAPIITEMIN-REQ_QTY,
    'AG' to ta_BAPIPARTNR-PARTN_ROLE, " Sold to Party
    '0000007777' to ta_BAPIPARTNR-PARTN_NUMB.
    Append the internal tables-------------------------------------------*
    append ta_BAPIPARTNR.
    clear ta_BAPIPARTNR.
    append ta_BAPIITEMIN.
    clear ta_BAPIITEMIN.
    Move ship to party---------------------------------------------------*
    move: 'RG' to ta_BAPIPARTNR-PARTN_ROLE, " Ship to party
    '0000007777' to ta_BAPIPARTNR-PARTN_NUMB.
    Append the internal tables-------------------------------------------*
    append ta_BAPIPARTNR.
    clear ta_BAPIPARTNR.
    Call the Bapi to create the sales order
    CALL FUNCTION 'BAPI_SALESORDER_CREATEFROMDAT1'
    EXPORTING
    ORDER_HEADER_IN = st_BAPISDHEAD
    WITHOUT_COMMIT = ' '
    CONVERT_PARVW_AUART = ' '
    IMPORTING
    SALESDOCUMENT = d_vbeln
    SOLD_TO_PARTY =
    SHIP_TO_PARTY =
    BILLING_PARTY =
    RETURN = d_BAPIRETURN1
    TABLES
    ORDER_ITEMS_IN = ta_BAPIITEMIN
    ORDER_PARTNERS = ta_BAPIPARTNR
    ORDER_ITEMS_OUT =
    ORDER_CFGS_REF =
    ORDER_CFGS_INST =
    ORDER_CFGS_PART_OF =
    ORDER_CFGS_VALUE =
    ORDER_CCARD =
    ORDER_CFGS_BLOB =
    ORDER_SCHEDULE_EX =
    if d_vbeln <> space.
    write: 'Sales order No. ', d_vbeln.
    endif.

  • How to restrict the Number of sales orders in theTCode:VL10A whil creation

    I'm creating the Delivery by using the batch job with program: RVV50R10C Here I need to restrict the number of sales orders numbers while creating deliveries for sales orders
    Like system should pick the sales orders (sales documents) from 1 to 100 OR 100 to 200
    Please advise me how to do it and what changes I need to do it

    Hi,
    Aslo, you can see Note 198137 - VL10: Customer-specific enhancements / user exits. As is for SO, check subroutine LV50R_VIEWG03. If cf_subrc = 1 thin this SO isn't seen in list.
    ***INCLUDE LV50R_VIEWG03 .
    *&      Form  POSTAB_VEPVG_FILL_USER
    FORM POSTAB_VEPVG_FILL_USER
         USING    IX_LIST_PROFIL    TYPE      SHP_VL10_LIST_PROFIL
                  IX_PARAMETERS     TYPE      SHP_VL10_PARAMETERS
                  IX_SELECT_OPTIONS TYPE      SHP_VL10_SELECT_OPTIONS
                  IT_ENQUEUE        TYPE      SHP_VL10_PACKAGE_T
                  IX_SD_ORDER       TYPE      SHP_VL10_SD_ORDER
                  IS_VEPVG          TYPE      VEPVG
         CHANGING CS_POSTAB         TYPE      SHP_VL10_ITEM
                  CF_SUBRC          TYPE      SYSUBRC.
    CF_SUBRC = 0.
    *  cs_postab-zzfield = ......              "add new field to List
    *  if xxxxxxx = yyyyyyy.
    *    cf_subrc = 1.                         "Exclude this index from List
    *  endif.
    ENDFORM.                    " POSTAB_VEPVG_FILL_USER
    I hope this helps you
    Regards
    Eduardo

  • Whre to see the contract number in sales order

    Hi All,
    I created conrtact thruogh T.code:va41,based on this number,i create sales order.But my question is where can i see the contract number in sales order(va01).Pls suggest.
    Thanks,
    GTNR

    Hi GTNR,
    This is not possible to see in VA01 while creating the sale order,because the system taking the reference document no form buffer,so it is not possible to see in VA01.While creating the order you select create with reference there it self you will tell the system through which contract you want to create the sale order.
    Once you save the order in change mode VA02 you can see that through document flow or form table also you can see
    as Mr.Ravi mentioned above.
    Regards
    Ram

  • How we add & grandtotal of sales order report in alv

    hi guru how we add & grandtotal of sales order report in alv
    regards
    subhasis

    hi subhasis,
    since u want the grand total in ALV use the following code...
    clear gs_fieldcat.
    gs_fieldcat-fieldname = field.
    gs_fieldcat-tabname = DB table
    gs_fieldcat-seltext_m = text.
    gs_fieldcat-do_sum = 'X'
    gs_fieldcat-datatype = data type (Curr or Quant)
    gs_fieldcat-ref_fieldname = reference field name
    gs_fieldcat-ref_tabname  = reference table name
    append gs_fieldcat to gt_fieldcat.
    hope this will work...
    please reward points in case usefull
    regards,
    prashant

  • Revision number in sales order and scheduling agreement

    I want revision number in sales order as well as scheduling agreement. for this where we configure or 
    how will it come in VA01 as well as VA31.
    Regards

    Hi Amit,
    Its not hard to find this info at help.sap.com
    Sales Order
    Definition: Request from a customer to a company to deliver a defined quantity of products or provide a service at a certain time. The sales area that accepts the inquiry is responsible for completing the agreement.
    Scheduling Agreements
    Purpose
    A customer scheduling agreement is an outline agreement with the customer containing delivery quantities and dates. These are then entered as schedule lines in a delivery schedule. You can either create schedule lines when you create the scheduling agreement or you can create them later.
    You fulfill a scheduling agreement by creating the deliveries in the schedule as they become due. You process deliveries for a scheduling agreement in exactly the same way as you process a normal delivery. After you have carried out the delivery, the system updates the Delivered quantity field in the scheduling agreement item with the delivery quantity. The following graphic shows the document flow for scheduling agreements.
    Integration
    You would use this component if you had outline agreements with the customer that contained future delivery quantities of materials that would be sent at certain times within a fixed time period.
    If you work with scheduling agreements for the component supplier industry you also need to choose the "Electronic Data Interchange" (EDI) component.

  • Maximum number of sales order per condition

    Hi experts.
    How can i increase the number of sales order in..vk11--+*Additional data tab-*-+-limits for pricingmax number of orders-(the option which enables for cummulative function)
    the discount has to be restricted to say 100 number of sales order,but the system restricts it to 3 only.Is there any possibility to increase the same ,so that i can include the same in the field -ANZAUF.
    Thanks in advance,
    regards,
    Anshuman

    Hi,
    In standard you can set maximum 3 orders as limit.
    If you want to increase the limit to more than 3 orders then it is possible through User Exit.
    Talk to your ABAPer for an user exit in program SAPMV13A if I am not wrong. Table to be used is KONP and field is ANZAUF.
    Regards
    Pradyumna

  • Delivery schedule line number in sales order is not populated in production

    Hi all,
    i am doing make to order scenario with 20 strategy group. In sales order we r defining the different delivery schedule lines.when i run the MRP and getting the plan orders for all the FG material and semifinished material, the sale order number and sale order item number is getting updated in production order . Beside these two , delivery schedule line number is not populated in production order.
    please give your valuable suggestion .
    i would be highly thankful to u
    Will reward points.
    Regards
    Kumaraguru

    Hi Kumar,
    Some changes done in your PRD server.If yes then contact abap consultant regarding the same.
    Because these type of problem comes when you do transport or changes done in the system.
    Regards,
    Anil

  • Delivery schedule line number in sales order is not populated  in productio

    Hi all,
    i am doing make to order scenario with 20 strategy group. In sales order we r defining the different delivery schedule lines.when i run the MRP and getting the plan orders for all the FG material and semifinished material, the sale order number and sale order item number is getting updated in production order . Beside these two , delivery schedule line number is not populated in production order.
    please give your valuable suggestion .
    i would be highly thankful to u
    Regards
    Kumaraguru

    Hi Kumar,
    Some changes done in your PRD server.If yes then contact abap consultant regarding the same.
    Because these type of problem comes when you do transport or changes done in the system.
    Regards,
    Anil

  • How can i do if i want to add number to the filenames of my pic in my macpro

    how can i do if i want to add number to the filenames of my pics in my macpro? if someone can help

    You could look into utilities like A Better Finder Rename or similar apps on the page I linked to.

Maybe you are looking for

  • Oracle 8i installation - problems on Dell P4

    Has anyone experienced compatiblity problems on other Pentium 4 processors. We can't install Oracle 8.17 or Sun's JBuilder 4 on these Dell Precision 330 workstations. Dell won't give us any help, they just say to call Oracle and Sun, but we can insta

  • How do I set permissions between iMac and Macbook Pro using apple extreme base station hooked up to comcast modem

    I am trying to share files on my iMac with my wife's macbook Pro for which I am set up as a second user with administration privileges.  I think i have the computers finding each other (for example my iMac shows up on the shared list in my wifes's fi

  • Workflow step - Add record to mask

    Hi, Is there a workflow step that can add a record to a mask? Any ideas on how we can achieve that? Thanks.

  • A second monitor

    i just set up a second monitor. i now have two identical screens in front of me. i was really hoping for one screen that's twice as big kinda thing. can i set that up? and if yes, how do i do it in OSX 10.3.9? thanks powermac G4   Mac OS X (10.3.9)  

  • Maximum HD disk size on NW8440

    Hi, I'd like to replace my HD on a NW8440 laptop. Does anybody know the max capacity it supports? I'd ilke to know if someone has used a disk greater than 120 Gb. Thanks,