Custom ORDER BY in report

Dear apex devs!
I need an option to control the order clause in an select statement.
Hence I have a two buttons, which when pressed bind a global page item via Ajax.
I then thought I could reference the content of my Application Item in the sort order of my statement as follows:
select a.ba_lang, b.lng_baumart, b.int_bedeutung
from vt_tbl_baumart a, vt_tbl_baumartenbedeutung b, vt_tbl_gebiet c
where a.cnt_baumart = b.lng_baumart and b.lng_gebiet = c.cnt_gebiet and
lower(b.lng_gebiet)= lower(:p6_lng_gebiet) and instr(upper(a.str_verfahren),upper(nvl(:F_VERFAHREN,a.str_verfahren))) > 0
order by decode( :F_SORT, 'BA_LANG', ba_lang, 'INT_BEDEUTUNG', int_bedeutung )However instead of ordering according to both columns I need to either sort according to column ba_lang or int_bedeutung!
Do you have a hint how to accomplish this?
Thanks for sharing your knowledge!
I appreciate it!
Seb

Hi,
Try
SELECT a.ba_lang,
  b.lng_baumart,
  b.int_bedeutung
FROM vt_tbl_baumart a,
  vt_tbl_baumartenbedeutung b,
  vt_tbl_gebiet c
WHERE a.cnt_baumart                                                        = b.lng_baumart
AND b.lng_gebiet                                                           = c.cnt_gebiet
AND lower(b.lng_gebiet)                                                    = lower(:p6_lng_gebiet)
AND instr(upper(a.str_verfahren),upper(NVL(:F_VERFAHREN,a.str_verfahren))) > 0
ORDER BY
  CASE :F_SORT
    WHEN 'BA_LANG'
    THEN 1
    ELSE 3
  ENDWhen item F_SORT is "BA_LANG" query is sorted by column 1 (ba_lang) else by column 3 (int_bedeutung)
Regards,
Jari
Edited by: jarola on Dec 10, 2010 1:50 PM

Similar Messages

  • Customer order actual activity report

    Dear experts,
    I am using make to order strategy and I have a multilevel BOM structure. I am following some semi-finished products individually for customer order and some for make to stock. I need a report to see the actual activity confirmations for a single customer order including all the activities of semi-finished products in BOM. For your help please.

    Hi Ahmet,
    This is rather a problem of material ledger multi-level settlement than of activity pricing. Material ledger will pick up the actual activity price correctly and will use the difference against the former activvity price as multi-level price difference on the production process. The problem is, if there are multiple outputs coming out of the process, as is resulting of the order combination process, material ledger will by default search for a apportionment structure (for joint production) in the material master of the main (or original) output material. As nothing will be maintained there, all the differences will go to this material.
    You can overcome the situation by a BADI implementation of BADI cost_split. There should be an example implementation in your system (if you have the Mill Products add-on active, as is indicated because you use Mill_oc) that enables to distribute the price differences by quantity of the outputs of a process. If you don't find the example implementation I could provide it to you.
    best regards,
               Udo

  • Customer order delivery report

    Hi ,
    May i ask is any standard report can list all the customer orders which alreday be deliveried by plant level ?
    Thanks !

    Hi Denny,
    Could you try using VL04 T-code and check
    Else check VT11 T-code to check the shipments as well
    Also check VL06O T-code
    Syed Nasir

  • External Inventory Feed - Wish to Exclude Customer Order Stock

    We have an hourly inventory job, which writes available inventory to an external file.  Recently, we learned that the report is including material which has already been reserved for future customer orders (see for example in MD04).  We do not have an ABAP programmer on staff so I am posting our existing code below and would appreciate hugely an updated script.
    I've seen references in other searches to MD04 and use of function 'MD_MPS_READ_STOCK_REQMTS' as well as 'BAPI_MATERIAL_STOCK_REQ_LIST', but do not know how to incorporate this into the hourly job.
    As you can see, the report output is being pulled from MARD-LABST, unrestricted, but it needs to also exclude allocated customer order stock.
    Thank you in advance for looking.
    *& Report  ZMM_INVENTORY_FEED*&*&---------------------------------------------------------------------**&*&*&---------------------------------------------------------------------*
    REPORT  zmm_inventory_feed NO STANDARD PAGE HEADING.
    TABLES:mara,marc,mard,mvke.
    *-------------Types Declaration----------------------------------------*TYPES:BEGIN OF ty_file,
          text(500),
          END OF ty_file,
          BEGIN OF ty_mard,
          matnr    TYPE mard-matnr,
          werks    TYPE mard-werks,
          lgort    TYPE mard-lgort,
          labst    TYPE mard-labst,
          mstae    TYPE mara-mstae,
          maktx    TYPE makt-maktx,
          mvgr2    TYPE mvke-mvgr2,
          END OF ty_mard,
          BEGIN OF ty_final,
          supplier TYPE lfa1-lifnr,   "Supplierid
          matnr    TYPE mard-matnr,   "Item no
          labst    TYPE char13,       "Qty
          qtyback  TYPE char13,       "Qtyback
          qtyorder TYPE char13,       "Qtyorder
          itemav   TYPE c,            "Itemavdate
          itemdis  TYPE char13,       "Discount
          desc     TYPE makt-maktx,   "Description
          END OF ty_final.
    *----------Internal Table Declaration---------------------------------*DATA:it_mard   TYPE TABLE OF ty_mard,
         it_final  TYPE TABLE OF ty_final,
         it_file   TYPE TABLE OF ty_file,*----------Work Area Declaration--------------------------------------*
         wa_mard   TYPE ty_mard,
         wa_temp   TYPE ty_mard,
         wa_final  TYPE ty_final,
         wa_file   TYPE ty_file.
    *----------Local variable Declaration---------------------------------*DATA: lv_labst   TYPE char13,
          lv_labst_i TYPE i,
          lv_labst1  TYPE char13,
          lv_labst2  TYPE j_1itaxvar-j_1itaxam1,
          lv_mess    TYPE string.DATA lv_filename TYPE char100.*----------Selection-Screen Declaration-------------------------------*SELECTION-SCREEN BEGIN OF BLOCK b1 WITH FRAME TITLE text-001.
    SELECT-OPTIONS:s_mstae  FOR mara-mstae OBLIGATORY,                     "Material Status
                   s_mvgr2  FOR mvke-mvgr2 OBLIGATORY,                     "Material Group
                   s_matnr  FOR mara-matnr,                                "Material Number
                   s_werks  for mard-werks,
                   s_lgort  FOR mard-lgort.PARAMETERS:    p_per(3) TYPE n DEFAULT 20,                             "Percentage
                   p_appl   TYPE rlgrap-filename DEFAULT '\\Appsrv02\Datadown\DropShip_SAP_Test\'. "File Path
    SELECTION-SCREEN END OF BLOCK b1.*----------End Of Declarations----------------------------------------*
    *AT SELECTION-SCREEN ON VALUE-REQUEST FOR p_appl.*  PERFORM f4_filename.                     "F4 help for file path
    START-OF-SELECTION.
      PERFORM get_data.
      PERFORM process_data.
      PERFORM file_export.*&---------------------------------------------------------------------**&      Form  GET_DATA*&---------------------------------------------------------------------**       text*----------------------------------------------------------------------*FORM get_data .
      SELECT a~matnr
             a~werks
             a~lgort
             a~labst
             b~mstae
             c~maktx
             d~mvgr2 INTO CORRESPONDING FIELDS OF TABLE  it_mard
                           FROM mard AS a
                     INNER JOIN mara AS b
                             ON b~matnr = a~matnr
                     INNER JOIN makt AS c
                             ON c~matnr = a~matnr
                     INNER JOIN mvke AS d
                             ON d~matnr = a~matnr
                          WHERE mstae   in s_mstae              "Exclude Material Status Filteration
                            AND a~werks IN ('1100','1200')        "Plant in 1100 and 1200
                            AND mvgr2   IN s_mvgr2              "Exclude Material group
                            AND a~matnr IN s_matnr
                            and a~werks in s_werks
                            AND a~lgort in s_lgort.
      SORT it_mard BY matnr werks lgort.
      DELETE ADJACENT DUPLICATES FROM it_mard COMPARING matnr werks lgort.ENDFORM.                    " GET_DATA*&---------------------------------------------------------------------**&      Form  PROCESS_DATA*&---------------------------------------------------------------------**       text*----------------------------------------------------------------------*FORM process_data .
    *--------------File Header Information --------------------------------*
      wa_final-supplier    = 'Supplier Id'.
      wa_final-matnr       = 'Item Number'.
      wa_final-labst       = 'Total Qty'.
      wa_final-qtyback     = 'Qty Backordered'.
      wa_final-qtyorder    = 'Qty on Order'.
      wa_final-itemav      = 'Item NextAvdate'.
      wa_final-itemdis     = 'ItemDiscont'.
      wa_final-desc        = 'Description'.
      CONCATENATE  wa_final-supplier
                   wa_final-matnr
                   wa_final-labst
                   wa_final-qtyback
                   wa_final-qtyorder
                   wa_final-itemav
                   wa_final-itemdis
                   wa_final-desc    INTO wa_file
                                    SEPARATED BY ','." RESPECTING BLANKS.
      APPEND wa_file TO it_file.
      CLEAR :wa_final,
             wa_file.*------------------End File Header---------------------------------------*
    *------------------File Item Data----------------------------------------*
      LOOP AT it_mard INTO wa_temp.
        wa_mard = wa_temp.
        MOVE:wa_mard-matnr TO wa_final-matnr,  "Item No
             wa_mard-maktx TO wa_final-desc.   "Description
        IF wa_mard-werks     = '1100'.
          wa_final-supplier  = '6476'.         "Supplierid
        ELSEIF wa_mard-werks = '1200'.
          wa_final-supplier  = '6477'.
        ENDIF.
        IF wa_mard-labst IS NOT INITIAL.
          lv_labst1 = lv_labst1 + wa_mard-labst.
        ENDIF.
        AT END OF werks.
          IF wa_mard-mstae = 'AE'.
            wa_final-itemdis = '0'.        "Item Discontinued
          ELSEIF wa_mard-mstae = 'CM' OR wa_mard-mstae = 'DR'.
            wa_final-itemdis = '1'.
          ENDIF.
          IF lv_labst1 IS NOT INITIAL AND p_per IS NOT INITIAL.
            lv_labst = lv_labst1 * p_per / 100. "Qty
            lv_labst = lv_labst1 - lv_labst.
            IF lv_labst LT 0.                    "If Qty less than Zero Make it as Zero
              lv_labst = 0.
            ENDIF.
          ELSE.
            lv_labst = lv_labst1.
          ENDIF.
          lv_labst2 = lv_labst.                  "Rounding to Nearest Qty
          CALL FUNCTION 'J_1I6_ROUND_TO_NEAREST_AMT'
            EXPORTING
              i_amount = lv_labst2
            IMPORTING
              e_amount = lv_labst2.
          lv_labst_i = lv_labst2.
          lv_labst = lv_labst_i.
          CONDENSE lv_labst.
          CALL FUNCTION 'CONVERSION_EXIT_ALPHA_OUTPUT'
            EXPORTING
              input         = wa_final-matnr
           IMPORTING
             OUTPUT        = wa_final-matnr
          CONCATENATE wa_final-supplier
                      wa_final-matnr
                      lv_labst
                      wa_final-qtyback
                      wa_final-qtyorder
                      '          '"'00/00/0000' "wa_final-itemav
                      wa_final-itemdis
                      wa_final-desc INTO wa_file
                                    SEPARATED BY ','." RESPECTING BLANKS.
          APPEND wa_file TO it_file.
          CLEAR:lv_labst1,
                lv_labst,
                lv_labst2,
                wa_file.
        ENDAT.
        CLEAR:wa_mard,
              wa_temp,
              wa_final.
      ENDLOOP.*---------------------------End  File Item data----------------------*ENDFORM.                    " PROCESS_DATA*&---------------------------------------------------------------------**&      Form  FILE_EXPORT*&---------------------------------------------------------------------**       text*----------------------------------------------------------------------*FORM file_export

    What you said is exactly what I want! Very thankful for your help.
    Yes, I have found that in EBEW table that standard price is valuated with preliminary cost estimate because I don't give a sales order cost estimate but I give an sales order stock in the customizing - requirement class. So, I have this question that how the sales order stock is determined.
    In COPA customizing (COprofitability analysismaster datavaluationSet up valuation using material cost estimate), standard cost estimate or sales order cost estimate can be transferred into COPA value fields in our system.
    But, I have still have a question: I found in our system, preliminary cost estimate in the linked production order is determined for valuation of sales order stock in EBEW table. As sap online help says, cost component splits can not be transferred to COPA.
    So, according to SAP online help, I think what you said u201Cu2026..However , when we start thinking about the result of this cost to flow into COPA , this cannot happen as the Inventory was valued with a Preliminary csot estimate. So , the Online help says that it will not be able to transfer Result of Preliminary cost estimate into COPA for transferrring COGS details. System would always require a Standard cost estimate or a Sales order Cost estimate to flow Cost details into COPAu201D is correct.
    But, in our system, cost component can be transferred into COPA!? When I create a sales billing (invoice) with tcode VF01, it can create a profitability analysis document (shown in VF03) which it had a cost component split for that material in the sales order stock valuated with the preliminary cost estimate. Or where is stored for the Make-to-Order materialu2019s cost component split in COPA?
    That is the real point that confused me. Hope you can help me. Thanks very much.

  • Consumer/customer relations payment load report

    is there any standard report for Consumer/customer relations payment load report.....for country specific

    Hi Rajan,
    There is a lot of scope for performance tuning the code:
    1. Read statement should be with BINARY SEARCH
    2. Select statement should have FIELDS in the same order as they exist in the table
    3. Select statement where clause should have fields in same order as they exist in the table.
    4. Internal tables seem to be having a huge number of fields. If possible, please limit the fields to only required fields in the internal table.
    Best regards,
    Prashant

  • Why is the customer order form not showing up in my email box?

    I am using Forms Central and the customer order request is not showing up in my email box. I understood this to be a function of the order form. Why is the information only showing up on the report, but, no emails being received?

    Hi,
    I believe you are referring to the email notification that you receive via email once someone has filled out and submitted the form.
    Please take a look a this post and see if the instructions explained there help you resolve your issue: http://forums.adobe.com/message/5696674
    If this does not help you resolve the issue, please share the form to [email protected]
    Information on how to share the form: http://forums.adobe.com/docs/DOC-2462
    Thanks,
    Lucia

  • Custom grouping in crystal report

    I have a requirement of creating a report off BEx query (BI 7.0).
    I have database field which gives around 250 rows. Now with these 250 rows I need to create a custom grouping in crystal report having 2 groups and a detail.
    Some info about database field: For ex: 'A', 'B' and 'C' are 3 sample rows of the database field. I want to arrange this in such a way that.
    A will form Group 1 and B will form group 2 and it is sub group of Group 1. and C is part of Group 2.
    A (group 1)
    B (Group 2)
    C.
    But when I tried it it resulted in
    A (group 1)
    Others
    Others (group1)
    B(Group 2)
    C.
    In this method I was successful in creating report if there were only 2 levels. But when it comes to 3rd level i am facing the problem. Any solution from experts.

    Hi Raghavendra,
    You can create the superset group i.e Group A in ur illustration by choosing Insert -> Group from the pull-down menus and specifying the field name in the panel.
    Next, in order to create the subset group i.e Group B and Group C you need to create a formula in the Formula Workshop-Formula Editor like the below syntax:
    If <db_field_name> = "<value B>"
    OR <db_field_name> = "<value C>"
    then "Group B"
    This formula can be used as your second group by choosing Insert -> Group from the pull-down menus and specifying this formula name in the panel.
    Thanks,
    Amogh.

  • Custom Net Change Booking Report

    Friends,
    I am in the process of creating a Custom Net Change Booking Report.
    The Report should show the changes that affect the sale order Bookings.
    The Audit history capture the changes but it stores two lines for each change.
    Main Constrains are:-
    * Order Lines getting splitted should not be consider since it will not affect the total quantity.
    * Qty Change, price adjustment and the New lines created to the sales order should be considered.
    Following is the query i tried.
    The main issue in the query is if an order line is getting changed for qty and price at the same time it is not showing the changes correctly.
    Any help is appreciated.
    SELECT a.hist_creation_date, b.hist_creation_date,
    TO_CHAR (a.order_number) order_number, a.header_id, a.line_id,
    b.new_attribute_value - b.old_attribute_value net_qty_change,
    0 net_price_change, a.hist_type_code,
    'QTY UPDATE/CANCEL' type_of_adjustment
    FROM oe_order_lines_audit_v a, oe_audit_attr_history b
    WHERE b.entity_id = 2
    AND a.line_id = b.entity_number
    AND a.HIST_CREATION_DATE = b.HIST_CREATION_DATE
    AND hist_type_code NOT IN ('SPLIT')
    AND attribute_id IN (1230) -- Quantity Change
    AND b.reason_code IS NOT NULL
    UNION ALL
    SELECT --DISTINCT
    /* -- Type Of Price Adjustment */
    a.hist_creation_date, b.hist_creation_date,
    TO_CHAR (a.order_number) order_number, a.header_id, a.line_id,
    0 net_qty_change,
    b.new_attribute_value - b.old_attribute_value net_price_change,
    a.hist_type_code, 'PRICE ADJUSTMENT' type_of_adjustment
    FROM oe_order_lines_audit_v a, oe_audit_attr_history b
    WHERE b.entity_id = 2
    AND a.line_id = b.entity_number
    AND a.HIST_CREATION_DATE = b.HIST_CREATION_DATE
    AND attribute_id IN (1316) -- Price Adjustment
    UNION ALL
    SELECT
    /* New Line */
    wsh.creation_date, wsh.creation_date,
    wsh.source_header_number order_number,
    wsh.source_header_id header_id, wsh.source_line_id line_id,
    wsh.requested_quantity net_qty_change, 0 net_price_change,
    NULL hist_type_code, 'NEW LINE' type_of_adjustment
    FROM wsh_delivery_details wsh
    WHERE 1 = 1
    AND wsh.source_line_id NOT IN (SELECT entity_number
    FROM oe_audit_attr_history a
    WHERE 1 = 1 AND entity_id = 2)
    AND wsh.split_from_delivery_detail_id IS NULL
    Thanks
    Karthik

    Sandeep,
    Thanks for the reply i am in Oracle Application release 12.0.4 and I could not find the view oe_order_lines_all_ac1 in this version.
    I appreciate your help.
    Thanks
    Karthik

  • Want to make a link in Customer order sample application!

    Want to make a link in Customer order sample application! ( In Reply To : Re: How to send E-mail from customer order sample application ? ) Mar 22, 2004 6:24 AM
    Reply
    Is it possible to make a link for upload files from Excel? ( In Reply To : Re: Error in upload CSV file format ? )
    I apologize again I want to make file upload and download link from excel to HTML DB Oracle , what I've to do in this regard, I want to make in the Customer Sample Application.If you explain in detail and steps than that will be very kind.
    Thanks in advance !

    muhammad--
    i am now more sure that you're asking what i thought you were asking, but i also now see where you might be getting confused. my original answer you your question (referenced above) still stands. i think you're getting confused, though, with the csv output functionality. it's not csv Input...it's csv output. that means it provides a link within your report region to allow users to download the data shown to a local csv document. there is no native functionality w/in htmldb to facilitate the uploading of spreadsheet data into one's application. in my original answer to your question, i said that my answer at the bottom of...
    Bulk Insert, SQL*Loader style
    ...gives you an idea as to one way to enable this in your app.
    hope this helps,
    raj

  • Optimal outline order for Hyperion Reporting

    Good Morning -
    What is the best outline order for faster report retrieval ? I am not referring to optimal order for calculation which is modified hour glass.
    Is it still inverse order of hour-glass?
    Thanks

    hyperion Reporting (Financial Reporting)uses Report scripts to generate its data. The optimal report has dense dimensions as the columns and inner most row of data from the dense dimensions. if you have a common format of how the reports pull data having the outline ordered from the left most report row member to the right most member
    So if you had the sparse dimensions of product market and customer and your report looks like customer, product market switching the order of the dimensions to match that could help report preformance (assuming you are drilling into each of these dimensions. I've also heard having your most commonly accessed sparse dimension last is better. And of course if you are using attribute dimensions in your report having the base dimension associated with the attribute dimensions last is recommended for better report retrieval (I don't know why)

  • SD Customer Order Extraction:

    Hi,
    1) what to take better for SD Customer Order Extraction:
    SD Order Header Status 2LIS_11_VASTH,
    SD Order Item Status LIS_11_VASTI,
    SD Sales: Order Delivery 2LIS_11_V_SSL,
    or:
    2LIS_11_VAHDR-Sales Order-Header Data
    2LIS_11_VAITM-Sales Order-Item Data
    2LIS_11_VASCL Schedule Lines.
    2LIS_11_VAKON - Sales Order Conditions Extractor     
    2) Change of data /  SCD:
    Does any of the extrator data changes after once beeign transmitted ?
    ThanXs
    Martin

    Hi Martin:
       It depends on the user requirements. First identify which particular DataSource covers your reporting needs.
    2LIS_11_VAHDR - "Extraction SD Sales: Document Header"
    http://help.sap.com/saphelp_nw70/helpdata/en/f0/3baf6718d2427a94ced005f298be06/content.htm
    2LIS_11_VAITM - "Extraction SD Sales: Document Item"
    http://help.sap.com/saphelp_nw70/helpdata/en/3a/27b6962129448ebe71fd945cfa8823/content.htm
    2LIS_11_VASCL - "Extraction SD Sales: Document Schedule Line"
    http://help.sap.com/saphelp_nw70/helpdata/en/dd/db9e759d4f453a8e081ad7df5f7770/content.htm
    2LIS_11_VAKON - "Extraction SD Sales: Order Conditions"
    http://help.sap.com/saphelp_nw70/helpdata/en/3c/7b88408bc0bb4de10000000a1550b0/content.htm
    2LIS_11_VASTH - "Extraction SD Order Header Status"
    http://help.sap.com/saphelp_nw70/helpdata/en/67/eecac778e50f4994e2f6686f3cbd3d/content.htm
    2LIS_11_VASTI - "Extraction SD Order Item Status"
    http://help.sap.com/saphelp_nw70/helpdata/en/04/ea8f6398f7d647bc8df22a54d24472/content.htm
    2LIS_11_V_ITM - "Extraction SD Sales: Document Item Billing"
    http://help.sap.com/saphelp_nw70/helpdata/en/94/5780aeec7d43d9be78b05fd4b3212e/content.htm
    2LIS_11_V_SCL - "Extraction SD Sales: Document Schedule Line Billing"
    http://help.sap.com/saphelp_nw70/helpdata/en/41/938d9c476c4ed6a9eed87b59ae19ac/content.htm
    2LIS_11_V_SSL - "Extraction SD Sales: Order Delivery"
    http://help.sap.com/saphelp_nw70/helpdata/en/21/ca6d07d5b807459ec8957dad97c179/content.htm
    Regards,
    Francisco Milá

  • Query for a customer order backlog

    Hi,
    I'm looking for a sql query (customer order backlog) that list all open article from open orders and not complete supllies which are to be deliver. Who can help?
    Regards,
    Michael

    Hi Michael,
    SBO has its own report called 'Open Items List' that can be found under sales reports. This can be used to list out all open sales orders.
    Alternatively, you could write a query, filtering on the OpenQty field in the RDR1 table to tell you which rows were still open and awaiting delivery. Something like:
    select
         T1.DocNum,
         T1.CardCode,
         T1.CardName,
         T1.DocDate,
         T0.ItemCode,
         T0.OpenQty
    from
         RDR1 T0
         inner join ORDR T1 on T0.DocEntry = T1.DocEntry
    where
         T0.OpenQty > 0
    order by
         T1.DocNum
    Kind Regards,
    Owen

  • Standard analyis for customer order

    hi SAP gurus,
    Do we have any tool or report or a t code which can give us our current availability to meet a customer order. For example we get a customer order of 100 units. Is there a way where the user can go in and input that 100 units and the system tells us that yes you have all the required sufficient materials and yes you will be able to meet the customer order. (taking into consideration the existing reservations, due orders etc)
    Thanks
    Anusha

    Hi,
    SAP won't say "yes" (standard system) but ATP can be used for this. Please check SAP online help for details:
    http://help.sap.com/erp2005_ehp_04/helpdata/EN/cf/70124adf2d11d1b55e0000e82de178/frameset.htm
    http://help.sap.com/saphelp_crm40/helpdata/en/79/c1c53ace2d6265e10000000a114084/content.htm
    Regards,
    Csaba

  • KMAT and customer order classification

    Hi,
    Is the usage of material type "KMAT" a MUST to use customer order classification ?
    Carsten

    No it is not. Even though all the documentation states that a configurable is of type KMAT, you really want to use either FERT or HALB, and just flag the material as "configurable" in the material master.
    KMAT is the "old school" material type and I heard rumour that SAP doesn't even use it and may fade it out.
    For ease of searching, reporting, etc, we usually create a new material type ZMAT, created from FERT or HALB. and always use that, but this part is not a hard requirement by any means.

  • Crm_ customer order closing and change

    hi all,
    can anybody know the how  CRM customer order closing?
    and also I wanna to know how can I change the customer order in the CRM. ??

    Hi Mathivana,
    I had faced these issue several time. As per SAP standard logic whenever you saved order in CRM it replicate immediatly in ERP till that time the order will be locked for any further change in CRM to save transaction data intigrity. The lock gets removed once the CSA queue(notification) from ERP update in CRM than unlocked.
    You check the in SMW01 transaction and perform search with order number you will find Bdocs are in Intermediate stage(I can't tell reason as it can be so many reason why Bdocs get stuck) -Select and activate the Bdocs once again if you are lucky and it activated your order till be unlocked.
    Or else user report most common for this issue "CRM_CHECK_DISTRIBUTION_STATUS" pass order number number and document type to unlock distribution than you will be able to change order.
    100 % sure shot answer. Appriciate if points alloted
    Thanks,
    prem

Maybe you are looking for