Automatic  allocation of stock into open sales order

Hai All,
I need assistent for the below requirement.
Let me expalin tha scenorio
For a particular material I am having 10 open orders i.e yet to be delivered.
based on the open order only we procure material from outside. Problem is when I do the GR to my plant the system automatically allocates the quantity to open orders which i don't want. since it is a rare material i want to dopartial delvery.
I dont know where to control this
Kindly assist me in this regard
Regards
Saru

you can do rescheduling or MB21 for allocation of mat to cust

Similar Messages

  • How to make open sales order consider allocated & unallocated stocks in MRP

    Dear Experts,
    MAT BOM, MAT TYPE, STRATEGY GROUP, PLANNING STRATEGY, Req-DM Req-CU
    3. TC180TK   fert                     20                                    KE                        make-to-order
    2. TB300TK   halb                    20                                    KE                        make-to-order
    1. TA300TK   roh                     10                                   LSF KSL                make-to-stock
    As listed above, material in line number 1 is required to produce 2,  and
    2 is required to produce 3.
    I have open open sales order for material TF180TK(fert).
    When I carry out MRP run, stocks of material  TB300TK (halb), that is allocated to this sales order is considered, but unallocated stocks are not considered.
    I want the system to consider both stocks, allocated & unallocated stocks.
    What settings do I need to effect, to make the System consider available stocks of  material  TB300TK , that is not allocated to this sales order during MRP run using MD01?
    Regards

    Dear
    For MTO scinario , any depedent will be either having Account assingement PR or it will pick up the speciall stock (E) based on the Individaul and Cllective Indicator as 1  in MRP4 view .It will never getting reservaed from un-allocated stock ( i beieve u r talking abou Un-restrited stcok ) .This is a standrad behaviour of the MTO cycle in SAP system .
    As you have mentioned , that you are using planning startegy 20 -MTO and also you want depdents (SFG and Compoenets in SFG) to be from un-allocated stock .In that case you should not use Planning strategy 20 and also assing Indviaul and Collective Indicator as 2 or blank .It will be purely MTS and you can have sales order with item categoery TAN .
    So please  keep Ind/Collective indicator as 2 in MRP4 and try
    Hope this helps
    Regards
    JH

  • How to make Open Sales Orders consider unallocated stocks in MRP run

    Dear Experts,
          Maerial BOM   MATERIAL TYPE    STRATEGY GROUP        PLANNING STRATEGY      DESCRIPTION
                                                                                    Req-DM      Req-CU
    3.    TF180TK               fert                           20                                                       KE             make-to-order
    2.    TH300TK               halb                          20                                                       KE             make-to-order
    1.    TA300TK               roh                           10                                  LSF              KSL           make-to-stock  
    As listed above material in line no.1  is required to produce 2 and
                                                           2 is required to produce 3.
    I have open open sales orders for material TF180TK(fert).
    What settings do I need to effect,  to make the System consider Stocks & Open Purchase Orders for material  TA300TK (roh) which are not allocated to these Sales Orders , when  MRP run is carried out at plant level using MD01? 
    Regards

    Dear Bisolaaina,
    I Think by mistake this duplicate thread might have been created so pls close it
    Regards
    Madhu

  • Getting data in GATP Planning area on open Sales Orders yet to be PGI'ed

    This is in context of allocation planning.
    I understand there are two internal GATP relevant key figures AEMENGE (allocation) and KCQTY (incoming sales order quantity) which come over from R3. These two key figures are part of any allocation planning design to track consumption of allocation from sales orders.
    We have a requirement to also get information on open sales orders not PGI'ed into GATP planning area. Is there a way to do this without configuring SNP and only core interface ? (Releasing data from SNP to GATP does not work since the levels are different)

    Hi
    Just to correct you. The tcode is LBWQ and not LBQW.
    Well as per your lines that it is not possible for 400 users to manually feed the data after changes .I totally agree.
    To help get the same functionality we have v3 jobs or direct delta which serves the same job for you.
    This is a job that runs at a regular interval as per you set it in the tcode LBWE.
    If the Datasource is Delta Enabled then only these jobs would be available to run for those data sources and if incase the DS is Full then you dont need these jobs at all.
    Thus once you set your DS as Delta. Go to LBWE select the DS you are working upon for delta
    After finding the DS you see two options update mode and update.
    Update mode -you can choose the type of update mode for example direct, queued and so on.. Generally we use Queued Detla
    Update - you have to set here how do you want it to run and from wat date etc.clickin on job control gives you a window where in u can set all the fields as per ur requirement.
    Once after these are done your job would automatically run and collect the changed records to the delta queue and from there you can pull the same using info pack.
    Hope that clarifies your doubt to some extent.
    Edited by: Puneet Chawla on Jan 29, 2010 8:52 AM

  • Uploading open sales orders from sap

    hi all,
    i need to upload open sales orders from legacy to sap. pls advice what steps need to be followed for the same.
    1) how we will we download open sales order from legacy and where..... is it to some flat file or some other option is  there . pls tell some options.
    2) how we will uload the sales ordes into sap . thru lsmw or is there some other option ?
    3)  there will be more number of fields in sap than in legacy. i think we need to manully create an excel file and add more fields manually in excel file so that the compulsonry feilds as per sap are present in sap ?
    4) how will availability check happen  in sap after sales order are t/f from legacy ?
    rgds
    pamela

    hi pamela,
    1.a. you need to down load in EXCEL in legact format and convert the same in LSMW format and upload it
    2.a. LSMW - Functionally, BDC, BAPI - Technically. to my knowledge LSMW is better option.
    3.a. first you download to EXCEL file from LEGACY, then align the same to SAP format you can add those fields that are mandatory as per your requriment.
    4.a.You are uploading sales orders in SAP which are showing OPEN status from LEGACY before you uploading the sales orders MM consultant would have uploaded its stock through 561 - dont worry on that, even though if stock is not uploaded also not an issue it will confirm at the later date.
    5.a. we have used LSMW process for our PREVIOUS ASSIGNMENT, before that we tested BAPI for it some how it was not capturing some fields.
    hope all your queries are solved
    balajia

  • LSMW BAPI Open Sales Order Load - How to update conditions?

    Hello gurus,
    I was using the BAPI SALESORDER_CREATEFROMDAT2 to upload open sales orders. Wanted to overwrite the default PR00 pricing condition that gets pulled from the customer-material info record, with the price that was existing in the original legacy system when the order was created there. Used the E1BPCOND structure in the Idoc, but since there is no such thing as a E1BPCONDX structure(corresponding to the structure BAPICONDX in the origial BAPI) where you could specify whether the condition should be updated, added or deleted, it adds a second PR00 condition with the legacy system price. The original PR00 condition with the customer-material record price still stays there. Eventhough the order seems to be taking into consideration only the second one I added, to determine the total pricing, I am worried the original sitting there, might cause problems down the document flow. Is there a way to update the existing PR00 condition(rather than adding a new one) on the order, through some flag in the Idoc structure that I am not aware of?
    Would greatly appreciate an answer ASAP.
    Thanks a lot in advance,
    Wayfarer

    Thanks and appreciate your taking your time to reply, Gerard, I guess my problem is, we are still on 46C, and the only message type available for this BAPI is SALESORDER_CREATEFROMDAT201. Just called a friend who is on ECC 60 who confirmed that the later version of this message type, SALESORDER_CREATEFROMDAT202 has the E1BPCONDX structure. I don't have that option since on LSMW it automatically defaults to the only message type(and method CREATEFROMDAT2) that is available, when you choose business object BUS2032. Guess I am out of luck, unless you have any other options to suggest.
    Thanks,
    Wayfarer

  • Stock confiramtion at sales order level for future date- Availability Check

    Hi all
    Here is the scenario
    This setting is available in the system:
    Stock is available
    Sales order created with Requested delivery date in future-> not confirmed
    Sales order created with Requested del date today -> confirmed
    The requirement :
    how and where to change this setting in IMG so that also orders with Requested Delivery Date in future are confirmed if stock is available.
    As this is urgent request to respond quickly.
    Regards
    Devender

    Hello Devender,
    You can achieve the mentioned scenario by configuring ATP. You can do ATP with RLT or ATP without RLT.
    In ATP with RLT, system will check and confirm the quantities from existing stock only and if quantities are insufficient then the system will consider inline POs or manufacturing time to confirm remaining quantitites.
    Else you will be getting schedule lines for only items in stock and remaining will be unconfirmed as ATP without RLT will be activated i.e., system will check and confirm the quantities from existing stock only.
    Types of Availability Check in Sales and Distribution
    Processing
    There are three types of availability check:
    _ Check on the basis of the ATP quantities
    _ Check against product allocation
    _ Check against planning
    The following SD-specific control features need to be maintained in Customizing:
    _ Checking group
    The checking group controls whether the system is to create individual or collective
    requirements in sales and shipping processing. In addition, a material block for the
    availability check with transfer of requirements can be set here. The checking group can
    also be used to deactivate the availability check. This option was created especially for
    the assembly order so that when the bill of material is exploded in the assembly order,
    the individual components, if necessary, can be classified as non-critical parts as far as
    procurement is concerned.
    The checking group specifies in combination with the checking rule the scope of the
    availability check. It is proposed in the material master record on the basis of the material
    type and the plant, and copied into the sales and distribution documents.
    _ Checking Rule
    You use the checking rule to control the scope of the availability check for each
    transaction in sales and distribution. You also specify whether the check should be
    carried out including or excluding replenishment lead time. The individual checking rules
    define by transaction, which stock and inward and outward movement of goods should
    be taken into account for the availability check.
    _ Schedule line category
    You can control with the schedule line category whether an availability check and
    transfer of requirements should be carried out in the sales documents. The possible
    settings for this at schedule line level are dependent on the settings in the requirements
    class which is determined from the requirements type of the material.
    _ Delivery item category
    The delivery item category can be used to control whether an availability check takes
    place in deliveries.
    Requirements type
    The various requirements are identified by their requirements type. The requirements
    type refers to the requirements class and its control features.
    _ Requirements Class
    The requirements class contains all control features for planning such as relevance for
    planning, requirements planning strategy and requirements consumption strategy. In
    addition, it is specified at a global level whether an availability check is to take place for
    the material in the sales and distribution documents on the basis of the ATP quantity
    (ATP = available to promise) and whether requirements are to be passed on. A finer
    degree of control can be obtained for sales documents using the schedule line category.
    Replenishment lead time is only included in the check performed on the basis of the
    ATP quantity.
    Prerequisites
    An availability check can only be carried out if the following prerequisites have been fulfilled:
    _ The control elements described above for the availability check must be maintained in
    Customizing for Sales and the relevant assignments made to the sales transactions
    _ The availability check must be switched on at requirements class level and - for the
    availability check in the sales documents - at schedule line category level
    A requirements type must exist by which the requirements class can be found
    _ A plant must be defined. It can either be proposed from the customer or material master
    record or can be entered manually in the document.
    _ A checking group must be defined in the material master record on the Sales/plant data
    screen in the Availability check field
    Configuring entries of the Availability Check
    IMGSDBasic fncsAvailability check and TORAvailability checkAvailability check with ATP logic or against planningDefine checking groups
    You can use SAP std checking groups of 01 for summarized reqts or 02 for daily reqts or u can create ur own.
    The columns total sales and total deliveries are selection options whereby u can configure a checking rule to sum up reqts to post to MRP either individually or by day or week.
    Column 5, Block qty; set this block if u want several users to be able to process the material simultaneously in different transactions without blocking each other. The No Check indicator is used when u want a material to not be relevant for an ATP check.
    Defining a material block for other users. The Block checkbox is an indicator that enables u to block the particular material from being checked for availability if it is already being checked at the same time by another user.
    Defining the default value for checking groups. However should no entry exist for the checking group in the material master record, one can set a default value per material type and plant.
    Controlling the availability check. In this section, u tell the system what stock on hand and what inward and outward movements of stock it must take into account when performing the availability check. These settings are based on the checking group that is assigned to the material master record and the checking rule that is predefined and assigned to the sd transaction. The carry out control for the availability check must be maintained for both the sales order and delivery.
    Reward points if helpful.
    Regards,
    Priyanka

  • Exclusion of open sales order in credit management

    Hi friends,
    My requirement is that, all open sales orders should not be considered into credit management.
    Is this possible in simple credit check or Automatic creidt check? Tell me the settings.
    Regards
    Rama

    Dear Rama,
    You can definitely Exclude Open Orders in Automatic Credti Management.
    Use T-Code - OVA8
    Select the required combination of Credit Control Area, Risk Cat. & Credit Group & double click.
    Under Checks Tab There is Check Box for Open Orders.
    In your case as you want to exclude Open Orders, just uncheck the box.
    Hope this helps...
    Give points if useful...
    Thanks,
    Jignesh Mehta

  • Report for open sales order

    Dear all,
    I need to create a open sales order report. Could you please tell me from which table i can get open sales order. Its standard report is VA05 and also I checked in table VBBE. but all record which i get from VA05 are not visible in VBBE table. It means VBBE doesnt carry all pending open records.
    Please guide me from which table i can get it or what is the sriteria to get it?
    Thankyou very much in advance
    Punnet Sharma

    hi,
    my logic goes like this:
    Note: Open cursor is used since we are dealing with huge amnt of data:
    * Select orders based on their Delivery status
      SELECT  vbeln
      FROM vbuk INTO TABLE git_vbuk
          WHERE lfstk = 'A' OR lfstk = 'B' .
    * Filter selected orders
    * Selection using open cursor
      DATA: lwa_op_sal_ord1 TYPE gt_comtab.
      IF sy-subrc = 0.
        OPEN CURSOR c1 FOR
          SELECT vbap~matnr
          FROM vbap INNER JOIN vbak
          ON vbap~vbeln EQ vbak~vbeln
          FOR ALL entries IN git_vbuk
          WHERE vbap~vbeln = git_vbuk-vbeln AND
                vbak~vbtyp = 'C'.
        DO.
          CLEAR lwa_op_sal_ord1.
          FETCH NEXT CURSOR c1 INTO CORRESPONDING FIELDS OF lwa_op_sal_ord1.
          IF sy-subrc = 0.
            APPEND lwa_op_sal_ord1 TO li_op_sal_ord1.
          ELSE.
            CLOSE CURSOR c1.
            EXIT.
          ENDIF.
        ENDDO.
      ENDIF.
    here filter orders based on 'A' and 'B' from VBUK...
    then frm header table VBAK get order for vbtyp ='C'.
    now li_op_sal_ord1 will have open sales orders..
    Moreover as per ur query y do u need the item data frm VBAP as u are only concerned abt VBELN.
    If u need item u hv 2 run another select.
    regards,
    ags

  • Reg : open sale order

    hai to all
    i my senario i should download the open sale order existing in the present production server into a flat fle
    can anyone tell me where this ship- to party is getting stored while creating the sale order. please let me know the table name.
    regards
    vijay

    Hi Vijay,
    To find out Open Sales Order. You shoud get them from VBUK-GBSTK <> 'C'. Store them in internal table.
    To get Ship-to-party, you can get it from VBPA (partner table).
    VBPA-VBELN = sales order number
    VBPA-POSNR = '000000'
    VBPA-PARVW = 'WE' or 'SH'
    You will get details for Ship to Party.
    regards,
    ram

  • Not Updating Open Sales Orders Value for CreditManagement

    Hi Frendz,
    This is the first time am implementing creditmanagement in my system tested simple credit limit check working fine.
    Now testing Static and Dynamic(Automatic) it also working fine but Its not caliculating open sales orders value either static or dynamic while Creating s.o, settings made clicked on open s.o, i have already created sales orders value of 10th.
    EX:- customer balance is 2lacs, credit limit is 1lac while creating s.o it always showing balance 1lac only(Instead of 1lac10th) with open sales order value  is 10th.
    Let me know Where i have missd settings.
    Hari Prasad

    hello,
    it is maintained against the cr control area in ent structure.
    one needs to change there.
    r u in prd system or development?
    becoz if prd, then this change will effect a lot of ongoing docs.
    rgs,
    AK

  • Deletion of open sales orders

    Dear all,
    we want to delete open sales orders .I searched forum unable to do .Please guide me.
    Regards,
    Suresh

    hi
    You can  delete the sales order using transaction VA02, but there should not be any subsequent document is created against it. Please let me know the error message you are still getting unable to delete so.
    Deletion /cancellation can only happen even if the subsequent documents are NOT created. After cancelling the invoice and deleting the delivery document, we can set the reason for rejection at the Sales Order Header Level.
    Steps:
    1. Cancel the invoice through T code VF11
    2. Reverse the Goods Issue using VL09, turn the pick quantity u2018zerou2019 in the delivery document
    3. Delete the delivery document using VL02n.
    4. Finally set the reason for rejection at the Sales Order Header Level. (So Bala, just check the SO you want to delete ever had any subsequent document? )
    Note: An Invoice cannot be deleted but canceled. It can only be canceled with (VF11) only if the relevant accounting document is not generated. Generation of accounting document means the value is posted into accounts and G/L accounts are hit.
    SAP FI department needs to reverse the accounting doc on a real-time scenario. Only after the accounting doc is reversed invoice can be canceled. Tax documents generated through the Invoice (Tax is maintained on a separate account) also need to be reversed but this is a part of FI so an SD consultant just needs to request the FICO guy to do the reversal
    transaction MASS or VA05 you should be able to set the reason for rejection

  • Reg:open sales orders

    Can any body give me the logic to list the oper sales orders.
    Thanks,
    srik

    Hi,
    *& Report  ZOPEN_SALESORDER
    report zopen_salesorder message-id arc no standard page heading.
    tables :kna1,vbak.
    select-options : so_vkorg for vbak-vkorg ,
    so_vtweg for vbak-vtweg ,
    so_spart for vbak-spart,
    so_kunnr for kna1-kunnr.
    data : keybalance like bapi3007_3 occurs 0 with header line.
    data : begin of sales_open occurs 0 ,
    vbeln like vbak-vbeln,
    auart like vbak-auart,
    kunnr like kna1-kunnr,
    bstnk like vbak-bstnk,
    lfstk like vbuk-lfstk,
    fkstk like vbuk-fkstk,
    gbstk like vbuk-gbstk,
    end of sales_open.
    data : begin of itm_sales occurs 0,
    vbeln like vbap-vbeln,
    posnr like vbap-posnr,
    matnr like vbap-matnr,
    lfsta like vbup-lfsta,
    lfgsa like vbup-lfgsa,
    fksta like vbup-fksta,
    fksaa like vbup-fksaa,
    gbsta like vbup-gbsta,
    end of itm_sales.
    data : l_kunnr like kna1-kunnr,
    l_vkorg like vbak-vkorg,
    l_vtweg like vbak-vtweg,
    l_spart like vbak-spart.
    data: v_statusl(20) type c,
    v_statusb(20) type c,
    v_statusf(20) type c,
    v_statusg(20) type c,
    v_status(20) type c,
    v_field(1) type c.
    **Selection Screen Validations.
    at selection-screen.
    perform validations.
    *& Form Validations
    text
    --> p1 text
    <-- p2 text
    form validations.
    **Customer
    if not so_kunnr[] is initial.
    select single kunnr into l_kunnr
    from kna1
    where kunnr in so_kunnr.
    if sy-subrc ne 0.
    message e002 with text-005.
    endif.
    endif.
    **Sales Organization
    if not so_vkorg[] is initial.
    select single vkorg into l_vkorg
    from tvko
    where vkorg in so_vkorg.
    if sy-subrc ne 0.
    message e003 with text-006.
    endif.
    endif.
    **Distribution Channel
    if not so_vtweg[] is initial.
    select single vtweg into l_vtweg
    from tvkov
    where vkorg in so_vkorg
    and vtweg in so_vtweg.
    if sy-subrc ne 0.
    message e004 with text-007.
    endif.
    endif.
    **Division
    if not so_spart[] is initial.
    select single spart into l_spart
    from tvta
    where vkorg in so_vkorg
    and vtweg in so_vtweg
    and spart in so_spart.
    if sy-subrc ne 0.
    message e005 with text-008.
    endif.
    endif.
    endform. " Validations
    top-of-page.
    perform sales_top_of_page.
    start-of-selection.
    perform sales_sel.
    *& Form sales_sel
    text
    --> p1 text
    <-- p2 text
    form sales_sel.
    data: date type sy-datum.
    date = sy-datum - 3000.
    select vbeln auart kunnr bstnk
    lfstk fkstk gbstk
    into table sales_open
    from vbakuk
    where vkorg in so_vkorg
    and vtweg in so_vtweg
    and spart in so_spart
    and kunnr in so_kunnr
    "and gbstk ne 'C'.
      and gbstk in ('A','B')
      and erdat >= date.
    loop at sales_open.
    call function 'BAPI_AR_ACC_GETKEYDATEBALANCE'
          exporting
            companycode = '1919'
            customer    = sales_open-kunnr
            keydate     = sy-datum
          tables
            keybalance  = keybalance.
        read table keybalance index sy-tabix.
    write:/4 sy-vline,
    5 sales_open-vbeln  color 2 intensified on,
    16 sy-vline,
    17 sales_open-auart color 2 intensified on,
    27 sy-vline,
    28 sales_open-kunnr color 2 intensified on,
    40 sy-vline,
    41 sales_open-bstnk color 2 intensified on,
    55 sy-vline,
    56 sales_open-lfstk,
    76 sy-vline,
    77 sales_open-fkstk,
    96 sy-vline,
    97 sales_open-gbstk ,
    117 sy-vline,
    118 keybalance-lc_bal,
    142 sy-vline.
    "hide sales_open-vbeln .
    endloop.
    write :/4 sy-uline(160).
    endform. " sales_sel
    *& Form sales_top_of_page
    text
    --> p1 text
    <-- p2 text
    form sales_top_of_page.
    write:/4 sy-uline(160),
    50 'OPEN SALES ORDERS' color 7 intensified on .
    write: /4 sy-vline,
    5 'SalesOrder' color 1 ,
    16 sy-vline,
    17 'OrderType' color 1,
    27 sy-vline,
    28 'Customer' color 1,
    40 sy-vline,
    41 'PoNumber' color 1,
    55 sy-vline,
    56 'Delivery Status' color 1,
    76 sy-vline,
    77 'Billing Status' color 1,
    96 sy-vline,
    97 'Processing Status' color 1,
    117 sy-vline,
    130 'Balance' color 1,
    142 sy-vline.
    write:/4 sy-uline(160).
    endform. " sales_top_of_page
    "at line-selection.
    "select a~vbeln
    "a~posnr
    "a~matnr
    "* a~kwmeng
    "b~lfsta
    "b~lfgsa
    "b~fksta
    "b~fksaa
    "b~gbsta
    "into table itm_sales
    "from vbap as a join vbup as b
    "on avbeln eq bvbeln
    "and aposnr eq bposnr
    "and b~gbsta ne 'C'
    "where a~vbeln eq sales_open-vbeln.
    "if not sales_open is initial.
    "loop at itm_sales.
    "write:/5 itm_sales-vbeln,
    "itm_sales-posnr,
    "itm_sales-matnr,
    "itm_sales-lfsta,
    "itm_sales-lfgsa,
    "itm_sales-fksta,
    "itm_sales-fksaa,
    "itm_sales-gbsta.
    "endloop.
    "endif.
    thanks
    Ravi

  • SQL Open Sales Orders Value using today's currency rates

    Hi experts,
    I am creating a report for displaying the open sales order values (and other fields) using current currency rate (where applicable). I developed the below query. The only problem with this query is that it ignores the order rows in which the currency field is blank (Don't understand why this happens in SAP). Do you have other ideas?
    Thanks & Regards,
    IC
    SELECT 
    T0.DocNum as 'Sales Ord No', T0.DocDate as "Ord Date",  T0.CardCode as "Cust Code",  T0.CardName as "Customer Name",  T1.ItemCode, 
    T1.Dscription,  T3.ItmsGrpNam,  T1.U_SU,  T1.U_SULEN,  T1.U_SUQTY,  T2.InvntryUom as 'Stock UOM',  T1.Quantity as 'Ord Qty', T1.Quantity*T2.U_ITWTSTU as 'Weight (KG)', T1.Quantity-T1.OpenQty as "Qty Delivered", T1.OpenQty as 'Bal Qty', T1.Price*T1.Quantity/T4.Rate AS "Ord Value (GBP)", T1.Price*T1.OpenQty/T4.Rate  AS "Open Qty Val (GBP)", T1.Price/T4.Rate  AS "Price (GBP)", T1.Price*T1.OpenQty as "Ord Value (BP Currency)", T1.Price as 'Price (BP Curr)', T1.Currency as 'Cur Ind', T4.[Rate] AS 'Curr Rate', T0.DocDueDate as "Due Date",  T1.WhsCode as 'Del WHG'
    FROM ORDR T0  INNER JOIN RDR1 T1 ON T0.DocEntry = T1.DocEntry INNER JOIN OITM T2 ON T1.ItemCode = T2.ItemCode INNER JOIN OITB T3 ON T2.ItmsGrpCod = T3.ItmsGrpCod, ORTT T4 WHERE T0.DocCur <> 'GBP' AND T1.Currency=T4.Currency AND T4.[RateDate] = [%0] AND T1.OpenQty > 0
    UNION ALL
    SELECT
    T0.DocNum as 'Sales Ord No', T0.DocDate as "Ord Date", T0.CardCode as "Cust Code", T0.CardName as "Customer Name", T1.ItemCode, T1.Dscription, T3.ItmsGrpNam, T1.U_SU, T1.U_SULEN, T1.U_SUQTY, T2.InvntryUom as 'Stock UOM', T1.Quantity as 'Ord Qty', T1.Quantity*T2.U_ITWTSTU as 'Weight (KG)', T1.Quantity-T1.OpenQty as "Qty Delivered", T1.OpenQty as 'Bal Qty', T1.LineTotal AS "Ord Value (GBP)", T1.LineTotal/T1.Quantity*T1.OpenQty AS "Open Qty Val (GBP)", T1.LineTotal/T1.Quantity AS "Price (GBP)", T1.Price*T1.OpenQty as "Ord Value (BP Currency)",T1.Price as 'Price (BP Curr)', T1.Currency as 'Cur Ind', T1.[Rate] AS 'Curr Rate', T0.DocDueDate as "Due Date", T1.WhsCode as 'Del WHG'
    FROM ORDR T0  INNER JOIN RDR1 T1 ON T0.DocEntry = T1.DocEntry INNER JOIN OITM T2 ON T1.ItemCode = T2.ItemCode INNER JOIN OITB T3 ON T2.ItmsGrpCod = T3.ItmsGrpCod WHERE T0.DocCur = 'GBP'  AND T1.OpenQty > 0 ORDER BY 2,1

    Hi,
    Try:
    SELECT 
    T0.DocNum as 'Sales Ord No', T0.DocDate as "Ord Date",  T0.CardCode as "Cust Code",  T0.CardName as "Customer Name", 
    T1.ItemCode,  T1.Dscription,  T3.ItmsGrpNam,  T1.U_SU,  T1.U_SULEN,  T1.U_SUQTY,  T2.InvntryUom as 'Stock UOM', 
    T1.Quantity as 'Ord Qty', T1.Quantity*T2.U_ITWTSTU as 'Weight (KG)', T1.Quantity-T1.OpenQty as "Qty Delivered",
    T1.OpenQty as 'Bal Qty', T1.Price*T1.Quantity/T4.Rate AS "Ord Value (GBP)",
    T1.Price*T1.OpenQty/T4.Rate  AS "Open Qty Val (GBP)", T1.Price/T4.Rate  AS "Price (GBP)",
    T1.Price*T1.OpenQty as "Ord Value (BP Currency)", T1.Price as 'Price (BP Curr)',
    T1.Currency as 'Cur Ind', T4.[Rate] AS 'Curr Rate', T0.DocDueDate as "Due Date",  T1.WhsCode as 'Del WHG'
    FROM ORDR T0  INNER JOIN RDR1 T1 ON T0.DocEntry = T1.DocEntry
    INNER JOIN OITM T2 ON T1.ItemCode = T2.ItemCode
    INNER JOIN OITB T3 ON T2.ItmsGrpCod = T3.ItmsGrpCod
    LEFT JOIN ORTT T4 ON T1.Currency=T4.Currency AND T4.[RateDate] = [%0] AND T4.Rate != 0
    WHERE T0.DocCur != 'GBP' AND AND T1.OpenQty > 0
    Thanks,
    Gordon

  • Self Updating Report of Open Sales Orders (Maybe Crystal )

    I want a self updating report of Open Sales Order. I want it to refresh constantly. I know that it could be an alarm but it would be executed every # minutes and dont want to. Any ideas ? I dont know Crystal Reports enough but is it posible ?

    Hi ,
    If I were you , I will not be crazy looking at my sales order in every 1 minutes ..I would train my users to check at least 15 minutes.
    I understand what u are trying to do;you  want that customer will see the latest open SO created ..but 15 minutes is good enough time .
    I think you have to check if database size grows up big time ..so far no report has come to me from my clients for this set up .
    make sure you  are not saving an alert into database
    If you are using multiple alerts , I will atleast monitor my database for a while to see i encounter performance issue ..
    So far for one alert at every 15 minutes ..i think u should be fine ..
    Hope this helps
    Bishal

Maybe you are looking for

  • My Ipad is disabled because it is asking me for a passcode which I never put in.

    My ipad is asking me for a passcode. I never put one in so it is disabled. My niece was playing on my ipad and may have put one in, but she doesn't remember. How do I get it off?

  • Files to large to put onto DVD

    This is my first time working with FCP, and I have no training on it at all, so I'm pretty much trying to figure out what I'm doing on the fly. I'm trying make a DVD with movies I exported from FCP. When I tried to burn the disc, though, I got an err

  • How do I get rid of Windows shares in Finder?

    We're a little Mac group sharing an office with loads of PC users and a lot of them send out NETBIOS broadcasts which clutter up our Finder sidebars. Almost all of them seem to have file-shairng turned on... Does anyone know if there's a way to rejec

  • How to set the default date behavior

    Hi, I am using type date in inputfield.In F4 help i am getting thecalender.Now my calender is behaving based on the SAP user date settings.How can i override the user setting date to my F4 calender.Is there any options to specify the date format as m

  • How to unlock scenario in XI?

    Hi! I was editing an XI scanrion in Integrated Builder (Configuration) and then connection was broken. Now I see the following message that forbids me to edit that scenario: Object Configuration Scenario "Name" currently being edited by user "User ID