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

Similar Messages

  • SAP Tables  for Open Customer Orders and Sales History

    Dear Experts.
    I am looking to get SAP SD related tables for the following,
    1) SAP tables for Open Customer Orders     
    From SAP, I need to get all tables that Contain all open customer orders for products.
    2) Sales History
    From SAP, I need to get all tables that contain the previous month's sales history (shipped customer orders).
    Please Help!!

    hi
    check the following link
    http://www.erpgenie.com/abap/tables_sd.htm
    hope it will help you
    regards,
    sreelatha gullapalli

  • MDX Query for Average customer first sale amount for each year

    Hello,
    I new to MDX, and I am looking to build a query that would get all the first sale amount for the customes and average that.  The intent is to use find an average each year.   I am looking to use this against the adventure works database.   
    I am not sure exatcly how to start this .  Any help is much appreciated.
    J

    Hi,
    I'll do it in several stages.
    let's first define an ordered set of date/sale to one customer over all periods:
    SELECT
    {[Measures].[Internet Sales Amount]} ON 0
    NonEmpty
    [Date].[Calendar].[Date]
    [Customer].[Customer].&[15561]
    ,[Measures].[Internet Sales Amount]
    ,[Customer].[Customter].&[15561]
    ) ON 1
    FROM [Adventure Works];
    we retain the first line of the result set  with item(0):
    SELECT
    {[Measures].[Internet Sales Amount]} ON 0
    NonEmpty
    [Date].[Calendar].[Date]
    [Customer].[Customer].&[15561]
    ,[Measures].[Internet Sales Amount]
    ,[Customer].[Customer].&[15561]
    ).Item(0) ON 1
    FROM [Adventure Works];
    next, for each year we define a measure that will retain the first sale for each customer
    (I  limit the customer set to the first 2000)
    WITH
    MEMBER [Measures].[Mymeasure 2006] AS
    NonEmpty
    Exists
    [Date].[Calendar].[Date].MEMBERS
    ,[Date].[Calendar].[Calendar Year].&[2006]
    [Customer].[Customer].CurrentMember
    ,[Measures].[Internet Sales Amount]
    ,[Customer].[Customer].CurrentMember
    ).Item(0)
    ,[Measures].[Internet Sales Amount]
    MEMBER [Measures].[Mymeasure 2007] AS
    NonEmpty
    Exists
    [Date].[Calendar].[Date].MEMBERS
    ,[Date].[Calendar].[Calendar Year].&[2007]
    [Customer].[Customer].CurrentMember
    ,[Measures].[Internet Sales Amount]
    ,[Customer].[Customer].CurrentMember
    ).Item(0)
    ,[Measures].[Internet Sales Amount]
    SELECT
    [Measures].[Mymeasure 2006]
    ,[Measures].[Mymeasure 2007]
    } ON 0
    ,NON EMPTY
    Head
    [Customer].[Customer].[Customer]
    ,2000
    ) ON 1
    FROM [Adventure Works];
    We then take the average for each year:
    WITH
    MEMBER [Measures].[AVG cust first sale 2006] AS
    Avg
    Head
    [Customer].[Customer].[Customer]
    ,2000
    NonEmpty
    Exists
    [Date].[Calendar].[Date].MEMBERS
    ,[Date].[Calendar].[Calendar Year].&[2006]
    [Customer].[Customer].CurrentMember
    ,[Measures].[Internet Sales Amount]
    ,[Customer].[Customer].CurrentMember
    ).Item(0)
    ,[Measures].[Internet Sales Amount]
    MEMBER [Measures].[AVG cust first sale 2007] AS
    Avg
    Head
    [Customer].[Customer].[Customer]
    ,2000
    NonEmpty
    Exists
    [Date].[Calendar].[Date].MEMBERS
    ,[Date].[Calendar].[Calendar Year].&[2007]
    [Customer].[Customer].CurrentMember
    ,[Measures].[Internet Sales Amount]
    ,[Customer].[Customer].CurrentMember
    ).Item(0)
    ,[Measures].[Internet Sales Amount]
    SELECT
    [Measures].[AVG cust first sale 2006]
    ,[Measures].[AVG cust first sale 2007]
    } ON 0
    FROM [Adventure Works];
    Philip,

  • Error while creating a query for my custom infotype

    Hi,
    I have created a custom infotype with fields currency amount and currency field .
    While I am creating a query for it its giving an error
    Message no. AQ_AD_HOC221 Error when generating the report(see long text )
    I tried to execute the standard program RPUMS40CCI but still I am facing same error .
    I have also maintained table T777i for my infotype but still problem exists.
    Please help.
    P

    Hi
    Check in PM01

  • Alert message(Query) for a Production order?

    Hi Experts,
    I want to get an alert message for the production order doucument based on the due date of it. The user must get the alert a  one day before the duedate of the document. How to write the Query for it? Urgent ,waiting for earliest reply.
    Regards ,
    Magesh.

    Create a Formatted Seach with the following Query
    SELECT T0.DocNum AS 'Document Number', T0.CreateDate AS 'Creation Date', T0.DueDate AS 'Due Date'
    FROM  [dbo].[OWOR] T0  WHERE DATEDIFF(Day,GetDate(),T0.DueDate) = 1
    Then, Create an Alert from Adminis..> Alerts Management and Give a Name, Click Open Saved Query, Select the query you saved, Tick the Int. check box against the user who gets the Alert.  Check Active. Select Frequency.
    Good luck
    Suda

  • Query for Group by & order by

    Hi all,
    I have a table name as angdata77 having attributes like asigno..
    i want to retrieve data from angdata77 by using both group by & order by clauses.. for total count..
    am using the query as
    select asigno,count(*) from angdata77 group by asigno order by asigno;
    Is there any other query for retrieving the data from angdata77
    Thanks in Advance,
    Venkatesh J.

    885756 wrote:
    Ya it's good.. Performance also good while retrieving data...
    I want to know other Possibilities also sir...There will be no better alternative for this, because this is the most simple and straight forward way to get the output you are looking for..
    Go ahead without any confusion... :)

  • Creating an SQL Query for Project Custom Fields Values

    Hello:
    I'm currently trying to create an SQL Query to show all of the server's Project Custom Fields Values, along with the modification date.
    So far, I've managed to display correctly all of the data for all of the Projects' text value Custom Fields (those not based on a LookUp Table) with this query:
    SELECT
    MSP_PROJECTS.PROJ_NAME,
    MSP_CUSTOM_FIELDS.MD_PROP_NAME,
    MSP_PROJ_CUSTOM_FIELD_VALUES.CODE_VALUE,
    MSP_PROJ_CUSTOM_FIELD_VALUES.TEXT_VALUE,
    MSP_PROJ_CUSTOM_FIELD_VALUES.MOD_DATE
    FROM
    MSP_PROJ_CUSTOM_FIELD_VALUES
    INNER JOIN
    MSP_CUSTOM_FIELDS
    ON MSP_CUSTOM_FIELDS.MD_PROP_UID = MSP_PROJ_CUSTOM_FIELD_VALUES.MD_PROP_UID
    INNER JOIN
    MSP_PROJECTS
    ON MSP_PROJECTS.PROJ_UID = MSP_PROJ_CUSTOM_FIELD_VALUES.PROJ_UID
    WHERE
    MSP_PROJ_CUSTOM_FIELD_VALUES.CODE_VALUE IS NULL
    ORDER BY
    MSP_PROJ_CUSTOM_FIELD_VALUES.PROJ_UID,
    MSP_PROJ_CUSTOM_FIELD_VALUES.MD_PROP_UID
    However, when I try a new Query to obtain the actual values for the Projects Custom Fields that do use a LookUp Table, I can't seem to find what table in the model I'm supposed to link to the MSP_PROJ_CUSTOM_FIELD_VALUES.CODE_VALUE field (the TEXT_VALUE
    field has NULL value when CODE_VALUE field isn't NULL)
    Any suggestions on how to obtain the actual Projects' custom fields values instead of the Code Value, for Metadata that do use a LookUp Table?
    Also, I'm able to run this query only in the Published Database, since the MSP_CUSTOM_FIELDS table is empy in the Draft Database. Why is that?
    Awaiting your kind reply,
    Sebastián Armas PMO Project Manager

    Hi Sebastián, rather than directly accessing the database it would be better to use the PSI to get this data.  Take a look at the ProjTool sample in the SDK whcih gets this data.
    Best regards,
    Brian.
    Blog |
    Facebook | Twitter | Posting is provided "AS IS" with no warranties, and confers no rights.
    Project Server TechCenter |
    Project Developer Center |
    Project Server Help | Project Product Page

  • Creating a query for a custom report layout

    hello guys,
    i am really stuck with this task - i need to populate a report with rows with "0" values based on a particular criteria, here is the example: lets say we have a table BROKERS with company names, their transaction types and cumulative amounts for a current month and all months ever.
    COMPANY TRAN_TYPE CURR_MNTH ALL_MNTH
    Broker1 CURRENCY_SELL $1000.00 $1500000.00
    Broker1 GOLD_SELL $50000.00 $2500000.00
    Broker1 GOLD_BUY $80000.00 $8500000.00
    Broker1 STOCKS_SELL $35000.00 $3500000.00
    table BROKERS does not have a field TRAN_TYPE, but has a field TRAN_TYPE_CD which reffers to another table called TRAN_TYPE_CD_EXPL, where all the codes are explained:
    TRAN_TYPE_CD TRAN_TYPE_CD_EXPLD
    1 STOCKS_SELL
    2 STOCKS_BUY
    3 GOLD_SELL
    4 GOLD_BUY
    5 SILVER_SELL
    6 SILVER_BUY
    7 COPPER_SELL
    8 COPPER_BUY
    9 CURRENCY_SELL
    10 CURRENCY_BUY
    so the results shown above is just a simple join of those two tables:
    select b.COMPANY, tt.TRAN_TYPE, b.CURR_MONTH, b.ALL_MNTH
    from BROKERS b, TRAN_TYPE_CD_EXPL tt
    where b.TRAN_TYPE_CD = tt.TRAN_TYPE_CD;
    everything is pretty simple, but here is where the problem starts : the report i am working on should look like this:
    COMPANY MARKET TRAN_TYPE CURR_MNTH ALL_MNTH
    Broker1 FOREX CURRENCY_SELL $1000.00 $1500000.00
    Broker1 FOREX CURRENCY_BUY $0.00 $5500000.00
    Broker1 CONTRACTS GOLD_SELL $50000.00 $2500000.00
    Broker1 CONTRACTS GOLD_BUY $80000.00 $8500000.00
    Broker1 STOCKMARKET STOCKS_SELL $35000.00 $3500000.00
    Broker1 STOCKMARKET STOCKS_BUY $0.00 $9500000.00
    so let me explain :
    firstable, report should contains a column MARKET, which should be populated based on the values in the column TRAN_TYPE, but the thing is there is no table MARKET in database, so each time when you need to populate it in a report or somewhere else, you need to use decode like this (assumed everybody knows where all kind of tran_types belong to):
    SELECT DECODE (TRAN_TYPE_CD_EXPL.TRAN_TYPE_CD_EXPLD,
    'CURRENCY_SELL', 'FOREX',
    'CURRENCY_BUY', 'FOREX',
    'STOCKS_SELL', 'STOCKMARKET',
    'STOCKS_BUY', 'STOCKMARKET') AS MARKET,
    or based on TRAN_TYPE_CD value:
    SELECT DECODE (BROKERS.TRAN_TYPE_CD,
    9, 'FOREX',
    10, 'FOREX',
    1, 'STOCKMARKET',
    2, 'STOCKMARKET') AS MARKET,
    2) problem number 2 is more complicated : the report logic says - is a company has at least one transaction in a particular group (lets say CURRENCY_SELL for market type 'FOREX'), the report should be populated with other tran_types from the market type group with $0 even thou this company did not have any of those transactions during current month. so in this case it should be populated with the rows
    Broker1 FOREX CURRENCY_BUY $0.00 $5500000.00
    and
    Broker1 STOCKMARKET STOCKS_BUY $0.00 $9500000.00
    The thing is that it will be executed thru plsql batch on unix, so it must be a single query.
    Any ideas and/or suggestions are very appreciated!
    Thanks
    P.S.
    Its oracle 11gr2, with read-only role.

    Hi,
    This sounds like a jo for a partitioned outer join.
    Here's one way:
    WITH     broker_summary     AS
         SELECT     b.company
         ,      tt.tran_type
         ,      b.curr_mnth
         ,      b.all_mnth
         FROM     broker               b
         JOIN      tran_type_cd_expl     tt  ON     WHERE     b.tran_type_cd     = tt.tran_type_cd
    ,     market          AS
         SELECT     'CURRENCY_SELL' AS tran_type,       'FOREX' AS market     from DUAL  UNION ALL
         SELECT     'CURRENCY_BUY',               'FOREX'           from DUAL  UNION ALL
         SELECT     'STOCKS_SELL',               'STOCKMARKET'          from DUAL  UNION ALL
    ,     got_market_cnt     AS
         SELECT     bs.company
         ,     m.market
         ,     m.tran_type
         ,     b.curr_mnth
         ,     b.all_mnth
         ,     COUNT (*) OVER ( PARTITION BY       bs.company
                         ,          m.market
                          )     AS market_cnt
         FROM           market          m
         LEFT OUTER JOIN     broker_summary     bs   PARTITION BY (bs.company)
                             ON   bs.tran_type     = m.tran_type
    SELECT       company
    ,       market
    ,       tran_type
    ,       NVL (curr_mnth, 0)     AS curr_mnth
    ,       NVL (all_mnth,  0)     AS all_mnth
    FROM       got_market_cnt
    WHERE       market_cnt     > 0
    ORDER BY  company
    ,       market
    ,       tran_type
    ;If you'd care to post a little sample data (CREATE TABLE and INSERT statements) and the results you want from that data, then I could test it.
    You should create a market table. Do it once, then you won't have to do it over and over again in every query that needs it.

  • Handling DST in SQL Query for UCCX Custom Report

    We wrote all custom reports for one of the call centers using our UCCX deployment.  One problem we see we will hit in the future is DST.  We suggested they use UTC but they wanted to see the call data based off of EST timezone.  Right now we are okay because we use -5 to get the correct data but come March we are wondering how to address the issue.  What options do we have?  How are other people handling DST with the SQL queries for custom reporting?  I see that the HR client will determine this based off of the local computer time then gives you the option to use UTC.  We have all of our queries in an Excel document that the customer just needs to open and select Refresh All to update their data.
    Thanks

    "case-when" statements are evaluated in order.
    so you must do something like this:
    SELECT
    CASE WHEN <is not number>THEN 'N'
    CASE WHEN <is greater than 0>THEN 'Y'
    Now "<is greater than 0>" will always have number for input, can't get "not number" error there.
    See this thread:
    Re: regular expression: integer is between N..M
    Edited by: CharlesRoos on May 27, 2010 5:03 AM

  • Query for Inactive customer becomes active

    Looking for query that will show me all customers that have started to purchase from us.
    ie.  who have not made a purchase for the past six months and then started up again.
    Any help is appreciated.

    Try this one:
    SELECT T0.CardCode, T0.CardName, (Select Max(DocDate) From DBO.ODLN Where CardCode = T0.CardCode AND DateDiff(dd, docdate, getdate()) < 183
    Group By cardcode Having Count(DocENtry) = 1) AS 'DocDate'
    From DBO.ODLN T0
    Where DateDiff(dd, t0.docdate, getdate()) < 183 AND DateDiff(DD,(Select Max(DocDate) From DBO.ODLN Where CardCode = T0.CardCode AND DateDiff(dd, docdate, getdate()) < 183 Group By cardcode Having Count(DocENtry) = 1), GetDate()) < 31
    I have assumed only active within one month should be showed. You could select any days you like by changing the last number.
    Thanks
    Gordon

  • Query for  customer and its all the underlying sites in AR

    Hi Expert,
      Please help me to build a query for a customer and its all the underlying sites .
    Thanks

    Please check this thread:
    Running Total in QLD
    Thanks,
    Gordon

  • 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.

  • How to create one delivery for multiple sales order

    Hi!! Friends,
    Can some one explain the steps to be followed in creating one delivery for multiple sales order in SAP SD.
    Regards
    AKASH
    Message was edited by:
            AKASH TAMBI

    Hi.,
                  You can combine different orders in to one delivery ,But for the customer Order combination should be checked in  the sales area data of the shipping tab,we can combine orders but the ship to party,Route,Inco terms,Shipping date,shipping point should be same,you can do in T.code VL04 & VL10
    REWARD if helpfull
    Thanks & Regards
    Narayana

  • Stock blocking for a customer-Highest priority

    Hi Steve
    Please confm how to allocate stock to customer without sales order.

    Hi
    Please find answer for the queries
    1.What is it that you are trying to achieve?-<b>We wanted to block stock for the customers without sales orders?Once we receive the sales order from customer,we will release the blocked stock for that customer....</b>2..Do you want stock to be reserved for that customer ONLY--<b>Yes we wanted stock to be reserved for that customer only</b>3.What is the process?
    <b><b>We will be blocking the stock against the customer before the order receipt.Once we get customer order we will go and unblock the stock and issue sales orders for that customer?</b></b>
    Is there any way of blocking the stock for a particular customer without sales order
    It is not a standard process to have customer stock (although the experts on the SD board may be able to suggest something).
    But you can reserve stock for a customer order and I know that you said "without" a sales order, but it might be better to create a dummy sales order for this and reserve the stock against that order number.
    If you don't use a sales order then how are you going to issue the goods to the customer when appropriate?

  • MRP is not considering material availability dates for sorting customer ord

    Hello Experts,
    MRP is not considering material availability dates for sorting customer order/ sales order in sequence (thatu2019s is oldest from newest in order) in MD04.
    Please suggest.
    Thanks,
    Om

    Om,
    No.  Aside from my obvious desire to preserve my privacy, it would be a disservice to the other forum members.  No-one else but you and I would understand your problem, and no-one else but you would be able to benefit from any solutions. 
    There are dozens of free public portals suitable for posting pictures on the internet.  I suggest that you use one.
    Best Regards,
    DB49

Maybe you are looking for