Transfers Delivery to ARInvoice with Freights rows

Hi,
I'm having a hard time to transfers the Freights of the delivery to the ARInvoice from the DI API
I did try all kind of things from that code :
                    // Seems to work WITH and WITHOUT FREIGHT but I'm not sure of the procedure to do it and on SDN forum there's no explaination
                    // and the documentation is silent about it :(
                    if (DeliveryDocument.Expenses.ExpenseCode != 0)
                        ARInvoiceDocument.Expenses.ExpenseCode = DeliveryDocument.Expenses.ExpenseCode;
                        ARInvoiceDocument.Expenses.LineTotal = DeliveryDocument.Expenses.LineTotal;
                        ARInvoiceDocument.Expenses.TaxCode = DeliveryDocument.Expenses.TaxCode;
to that code :
                        //// Trying to add the Freights rows but getting No matching record found...
                        //if (DeliveryDocument.Lines.Expenses.Count > 0)
                        //    for (int iFreight = 0; iFreight < DeliveryDocument.Lines.Expenses.Count; iFreight++)
                        //        DeliveryDocument.Lines.Expenses.SetCurrentLine(iFreight);
                        //        ARInvoiceDocument.Lines.Expenses.ExpenseCode = DeliveryDocument.Lines.Expenses.ExpenseCode;
                        //        ARInvoiceDocument.Lines.Expenses.LineTotal = DeliveryDocument.Lines.Expenses.LineTotal;
                        //        ARInvoiceDocument.Lines.Expenses.TaxCode = DeliveryDocument.Lines.Expenses.TaxCode;
                        //        if (iFreight < DeliveryDocument.Lines.Expenses.Count - 1)
                        //            ARInvoiceDocument.Lines.Expenses.Add();
this commented code gives the error : No matching records found
All this to say that I really don't know how to transfers the Expenses from Delivery to AR INvoice
when there are multiple Freight rows
For everything else it works perfectly.  I mean,  BaseLine, BaseEntry etc..
if I do not play with Freight, the transfers occur perfectly.
Even the first piece of code above works for just 1 Freight
but as soon as there are more then one line in Freights, it is a mystery !
Not that I didn't check in the Documentation,  which is very silent about it and on the forum here, well nothing clear about to do it.
Thank you for any help.
Meanwhile, I'm still trying all kind of things.

Seems that even if I do a SetCurrentLine a still have the problem.  I tought that .Add() place the SetCurrentLine on it automaticly.
here's the actual context in which I'm trying that :
                    // Now lets link the lines from the base document that means, the Invoice lines will be those from the Delivery document
                    // This is the way SAP works when time comes to transfers a Delivery to AR Invoice.
                    for (int iLine = 0; iLine < DeliveryDocument.Lines.Count; iLine++)
                        DeliveryDocument.Lines.SetCurrentLine(iLine);
                        ARInvoiceDocument.Lines.BaseType = (int)BoAPARDocumentTypes.bodt_DeliveryNote;
                        ARInvoiceDocument.Lines.BaseEntry = DeliveryDocument.DocEntry;
                        ARInvoiceDocument.Lines.BaseLine = DeliveryDocument.Lines.LineNum;
                        //// Trying to add the Freights rows but getting No matching record found...
                        if (DeliveryDocument.Lines.Expenses.Count > 0)
                            for (int iFreight = 0; iFreight < DeliveryDocument.Lines.Expenses.Count; iFreight++)
                                DeliveryDocument.Lines.Expenses.SetCurrentLine(iFreight);
                                ARInvoiceDocument.Lines.Expenses.ExpenseCode = DeliveryDocument.Lines.Expenses.ExpenseCode;
                                ARInvoiceDocument.Lines.Expenses.LineTotal = DeliveryDocument.Lines.Expenses.LineTotal;
                                ARInvoiceDocument.Lines.Expenses.TaxCode = DeliveryDocument.Lines.Expenses.TaxCode;
                                if (iFreight < DeliveryDocument.Lines.Expenses.Count - 1)
                                    ARInvoiceDocument.Lines.Expenses.Add();
                                    ARInvoiceDocument.Lines.Expenses.SetCurrentLine(ARInvoiceDocument.Lines.Expenses.Count);
                        TotalBeforeDiscount += DeliveryDocument.Lines.Price;    // Calculating the Total before discount...
                        for (int iUDF = 0; iUDF < DeliveryDocument.Lines.UserFields.Fields.Count; iUDF++)
                            ARInvoiceDocument.Lines.UserFields.Fields.Item(DeliveryDocument.Lines.UserFields.Fields.Item(iUDF).Name).Value = DeliveryDocument.Lines.UserFields.Fields.Item(iUDF).Value;
                        if (iLine < DeliveryDocument.Lines.Count - 1)
                            ARInvoiceDocument.Lines.Add();

Similar Messages

  • Error on adding Delivery / AR Invoice with Freight

    Dear Experts,
    While punching a delivery or A/R invoice with freight values, i get the following error:
    Cannot add or update this document, rows are missing [freight code missing for line 0]
    I have assigned a particular tax code to freight and im using it for the freight values.
    Kindly help me on this issue.
    Regards,
    Jimit Chhapia

    HI,
    I have checked and all the codes do exist.
    Apart from that, the entries do not show an error when passed using the manager login, but when i try to punch the entry with other user id the error comes up. The other user also has full authorizations.
    What could be the issue?

  • Intercompany STO with inbound delivery with freight....Urgent

    Hi,
    I have following scenario to map.
    There are 2 company codes A & B and a shipment of goods is to be transferred from A to B.
    I wish to use Intercompany STO process with UB.
    However, A & B are geographycally separated so there involves transportation costs which will be beared by B.
    How can I have the pricing procedure if I wish to have one in STO ?
    If I create some freight conditions then I can add the values but I will not able to know the exact freight charges till B receives the shipment and the invoice for the same.
    In this case how can I use pricing procedure ?
    If I do not enter any freight charges in PO then how can I add them before I do the GR in B as this is requirement to add freight costs on material at the time of goods receipt so to arrive at exact landed cost for that material in B.
    Once I wish to transfer the goods from A to B, I will do delivery so that stock gets reduced from A otherwise if I wait till the stock is physically transferred to B and then B changing the PO and add freight and subsequently doing picking, PGI and GR ,it will not correctly reflect stock positions in A.
    What is the better way I can map this process.
    If I wish to use inbound delivery before receiving the goods in B can I add conditions in Inbound delivery ? If so how it can be done ?
    So my intended procedure will look as
    Intercompany STO-UB
    Outbound Delivery
    Picking/PGI
    Inbound Delivery with freight
    GR
    Please suggest as this is very critical and important requirement
    Thanks in advance
    regards,
    manOO

    Hi,
    Thanks for the feedback.I wished to use NB but I don't want to go with the regular NB and subsequent billing cycle.
    I want to use UB.
    Anyways, is there any way by which I can have freight cnditions added at the time of Delivery.Be it Outbound or Inbound.
    Please suggest.
    Thanks in advance
    Regards,
    manOO

  • STO with freight--to beloaded on material at GR--Critical

    Hi,
    Scenario:Cross company stock transport
    Goods are transfered from plants A to B.
    PO in B with freight condition FRB1 is to be created.
    Goods issued against this PO.
    Goods are received in th B plant.
    B comes to know the EXACT freight costs ( clearing charges,customs transportation etc) only after goods reach to B, so he wants to enter/modify the EXACT cost at the time of GR ie to load this cost on material.
    But once GI is done, system does not allow to change/add the conditions in PO.
    How this can be handled so to have delivery costs loaded on material at the time of GR in plant B?
    This question has been raised by me earlier also but yet to find out any conclusive suggestion.This is very critical for me.
    PLEASE suggest how this type of requirement is mapped.I am sure this is a very commonly followed process in any industry and in SAP must be mapped.
    Thanks in Advance
    Regards,
    manOO

    Hi Sairam,
    Thanks for the feedback.
    In my case the exact delivery costs are only known when the goods reach the destination.
    I can put some prefixed value as the delivery cost.But once I issue the goods vide delivery created, I can not alter the freight costs.
    In most of the cases, it will be very difficult to put the exact costs in PO and that is the problem.
    How this can be handled then ?
    Is there any way by means of which we can have conditions in Inbound delivery by means of which I can create a Inbound delivery and put the exact conditions there ..
    Please suggest a another approach.
    Thanks in advance
    Regards,
    manOO

  • GRPO with Freight gives an error ...

    Hello Experts,
    When I post a GRPO without Freight it gives no error, but when I try to add with Freight Amount it gives an ERROR.
    Inventory Account is not defined [Goods Receipt PO - Rows - Warehouse Code] Message 173-77.
    Freight Setup: for that perticulat Freight that I am using... is Revenue and Expense Accounts are defined... Distribution and Drawing Methods are Quantity and Stock Check Box is CHECKED.
    Help Required...
    Thanks & Regards

    Hello Nazir,
    If your the items are set up with 'GL accounts managed by warehouse' (this is defined under the Inventory Tab of the Item Master Data), you should check that all the accounts for the warehouse have been set up under Administration => Set Up => Inventory => Warehouses => Accounting Tab.
    In particulary you should check that you have defined an Expense Account for the specific warehouse in the GRPO document.
    Also since you have chosen to affect the stock with additional expenses you need to specify an offsetting G/L account to the Stock account for clearing journal entries created by A/P Invoices and Goods Receipt POs.                                           
    I hope it solves your issue.
    Kind Regards,
    Magalie Grolleau
    SAP Business One Forums Team

  • Purchase order with Freight Value

    Dear All,
    My scenario is....
    I Purchase some material to my x vendor. when he send the material , he charge freight amount on it. now please suggest me how to create a purchase  order with freight value & I want to take freight effect on every material. vendor is not divide freight amount on every material. now what will i do. If i take this effect only one material than My material map get change. How to take this effect on every material.
    Regards
    Vimal

    Hi,
    When vendor send material , vendor send firght value invoicce, means at the time of PO you don't know it,so it can be consider as unplanned delivery cost in SAP and you can post this cost in MIRO ,on details tab in unplanned delivery field.
    In following path you can decide where this value should add in material cost or G/l account in following path
    In SPRO ,Maintain settings as shown  MM---> Logistic Invoice Verification -->Incoming Invoice --> Configure How unplanned delivery costs are posted
    Regards
    Kailas Ugale
    Edited by: kailasugale on Dec 14, 2011 10:21 PM

  • Having problems with front row (and the opticle drive)

    I bought my macbook three days ago, and I'm already having problems. First off, I transfered music from my user profile on my old iMac G5 to the macbook via data DVD. My music collection had some purchaces from the itunes store, so I had to go through the authorization thing, and I can now play them just fine in the iTunes library, but the problem is, if I try to use the front row program to play my purchaced music, I get the message saying that I have to authorize it first. What the ****? Does anybody else have this problem? Also, like many other macbook users, I'm having problems with the opticle drive, such as getting cds to be recognized and other things of that nature.

    I noticed that this problem started after I tried to use a software to unlock my drive's region...
    I believe this is the problem. The VLC Media Player will usually play DVDs from other regions without changing the settings on your optical drive. You may need to reset your optical drive's firmware back to the original setting, make sure you have the region set for the one you'd prefer to use the most and then use VLC to play the other DVDs.
    -Doug
    P.S. After two years in the Front Row forum, I'm not sure I've ever heard of anyone playing HDDVD_TS folders with Front Row. I'm not saying it won't work, but I'm not sure it's really supported either. I do have DVD Studio Pro myself, but I'll have friends or family staying with me for nearly the next month, so my evenings and weekends will be a bit full to try making one up for testing...

  • Problem adding sales order with freight since 8.8 pl 20 (and 8.81 pl 0)

    Dear All,
    Since the upgrade to 8.8 patch 20 I have a problem with adding a sales orders with freight (expensecode 1 does exist!) through the XML import of (the same problem with 8.81 pl 0).
    This is the XML:
    <BOM>
         <BO>
              <Documents>
                   <row>
                        <DocType>dDocument_Items</DocType>
                        <DocDate>20110328</DocDate>
                        <DocDueDate>20110328</DocDueDate>
                        <CardCode>INT_C_PenS</CardCode>
                   </row>
              </Documents>
              <Document_Lines>
                   <row>
                        <ItemCode>10000024</ItemCode>
                        <ItemDescription>Afvalbak CONSTRUCTO 50</ItemDescription>
                        <Quantity>4.00</Quantity>
                        <ShipDate>20110328</ShipDate>
                        <DiscountPercent>20.00</DiscountPercent>
                        <UnitPrice>528.00</UnitPrice>
                        <LineStatus>bost_Open</LineStatus>
                        <LineType>dlt_Regular</LineType>
                   </row>
              </Document_Lines>
              <DocumentsAdditionalExpenses>
                   <row>
                        <ExpenseCode>1</ExpenseCode>
                        <LineTotal>64.00</LineTotal>
                   </row>
              </DocumentsAdditionalExpenses>
         </BO>
    </BOM>
    When the DocumentsAdditionalExpeses part is deleted then there is no problem.
    The error with the DocumentsAdditionalExpeses is 'Internal error accured'.
    Can anyone confirm that this not is working through XML import (DTW works) or is there a solution?
    Thanks and best regards,
    Wim Kleinsman

    Hi,
    Try this one.
    <BOM>
    <BO>
    <Documents>
    <row>
    <DocType>dDocument_Items</DocType>
    <DocDate>20110328</DocDate>
    <DocDueDate>20110328</DocDueDate>
    <CardCode>INT_C_PenS</CardCode>
    </row>
    </Documents>
    <Document_Lines>
    <row>
    <ItemCode>10000024</ItemCode>
    <ItemDescription>Afvalbak CONSTRUCTO 50</ItemDescription>
    <Quantity>4.00</Quantity>
    <ShipDate>20110328</ShipDate>
    <DiscountPercent>20.00</DiscountPercent>
    <UnitPrice>528.00</UnitPrice>
    <LineStatus>bost_Open</LineStatus>
    <LineType>dlt_Regular</LineType>
    <ExpenseCode>1</ExpenseCode>
    <LineTotal>64.00</LineTotal>
    </row>
    </BO>
    </BOM>
    Regards,
    Siva

  • Goods issue from vendor consignment stock with freight charge

    Hi Experts,
    I have a typical scenario for GI from consignment stock with freight charge.
    The consigment price is agreed of the material is agreed between the vendor and the client. The vendor buy the material and use the company/client shipment.The client carry the vendor material in their shipping. The fright charges was not included in the consignment price. Presently they accumulated the vendor frieght charge in a separate account.
    When the user raise a reservation and goods issue was done from consignment stock  Info record price of material  for the consignment + 8% of the price of material should be charge to the user.
    And the 8% of info record price of the consignment material should be posted to freight recovery account.
    So there is no balance between the freight charges account and the freight recovery account.
    Can you suggest who we can mapped this process?
    Regards
    DP

    Hi DP,
    As SAP doesn't Support Delivery cost settlement with the consignment process to seprate G/L ( Similar to accruals ), you need to go for Z development which while posting MRKO will be executed with refernce to PO & Issue Document Posting the freight Value to Appropriate fright G/L .
    Regards
    Manish
    Edited by: Manish Kumar on Nov 3, 2010 12:06 PM

  • Problem with Current row of a VO???

    I have a Advanced table region in which i add many rows..and i get the data in to it from the lov page (lov mappings).
    for each row i add... i have to set a item in main page table region doing some validations the data i get from lov region.
    with examples..more detailed..
    i have paymentAmount and AllocAmount...i get the payment Amount from LOV...after doing some validation on paymnetAmount i have to set the same value to the AllocAmount.
    ARTransactionLine is the VO which contains the above mentioned attributes....and advanced table i mentioned above is based on this VO.
    for this purpose im using the following code..
    ARTransactionLineVOImpl
    vo=(ARTransactionLineVOImpl)findViewObject("ARTransactionLineVO1");
    ARTransactionLineVORowImpl TransDetailsVORow = (ARTransactionLineVORowImpl)vo.getCurrentRow();
    payment_amount = TransDetailsVORow.getPaymentAmount();/*for this paymentAmount i made a lov mapping..so that currentrow contains the value of paymnetAmount from lov page*/
    if(/* some validation*/){
    TransDetailsVORow.setAllocAmount(payment_amount);
    now when i do this ..for the first row it is working fine...but for the second row it is failing...getCurrentRow() is giving the values of previous row..not the current row...
    first of all what does this getCurrentRow return???
    help me ...n tell me where i was wrong...

    I m sure you have not gone through the tutorials completely.
    ARTransactionLineVOImpl vo =(ARTransactionLineVOImpl)findViewObject("ARTransactionLineVO1");
    ARTransactionLineVORowImpl TransDetailsVORow = (ARTransactionLineVORowImpl)vo.getCurrentRow();
    with this row i am doing the below opeations..
    Number x=TransDetailsVORow.getPaymentAmount();
    /* some validations*/
    TransDetailsVORow.setAllocAmount(x);
    Change to
    ARTransactionLineVOImpl vo =(ARTransactionLineVOImpl)findViewObject("ARTransactionLineVO1");
    ARTransactionLineVORowImpl TransDetailsVORow = (ARTransactionLineVORowImpl)vo.first();
    while (TransDetailsVORow!=null)
    Number x=TransDetailsVORow.getPaymentAmount();
    /* some validations*/
    TransDetailsVORow.setAllocAmount(x);
    TransDetailsVORow = (ARTransactionLineVORowImpl)vo.next();
    Tapash

  • Creating a list with different row sizes...

    I'm new to AS 3.0 and CS4 and I've been getting up to speed
    on all of it. I've used the List component before with my own
    CellRenderer. I now need to create a list with different row
    heights. The List component is great and does everything that I
    want but it requires all rows to be the same height.
    I'm unsure of where to go. Creating my own class seems like a
    lot of work. The TileList and Grid components don't allow different
    sized (and dynamically changing) row heights either. Is there some
    base class (SelectableList? BaseScrollPane?) that I should extend
    or do I need to just bite the bullet and write it all from scratch?
    I need each row to have it's own height and interaction with
    a row could change the height of the row. The main use is a list of
    data. If the user clicks in an item, it turns the display into
    something they can edit (which will need more height).
    Thanks for any thoughts on a direction I should think about.
    By the way, I really like that AS 3.0 is much more consistent of a
    programming language than previous MX versions that I've used.
    We're doing a lot of AS/Flash/AIR work with it and it's turning
    into a wonderful environment...

    Any ideas about this??

  • Database, Dataset, Table Adaptors Error "Unable to load, Update requires a valid DeleteCommand when passed DataRow collection with deleted row"

    Microsoft Visual Basic 2010 Express.
    I am new to Visual Basic programing and i am trying to understand the relationships between Datasets, database, table Adaptors. I have to following code that is is giving me the following error" Unable to load, Update requires a valid DeleteCommand
    when passed DataRow collection with deleted rows". 
    I can track the error and its located in "OffsetTableTableAdapter.Update(MaterionOffsetDataSet.OffsetTable)" code. What am i missing?
    It seems that i can delete the data on the DataGridView Table and it only displays the correct data. but my database is not updating, even though the data grid displays differently.I can determine this because, when i save the offset database, i have all
    the previous uploads and all the rows that i wanted to delete are still there.
    My final goal is to be able to import offset data from a CSV file, save this data on the pc, send a copy of this data to a NuermicUpDown so the customer can modify certain numbers. From here they download all the date to a controller.  IF the customer
    needs to modify the imported data, they can go to a tab with a data grid view and modify the table. They will also have to option to save the modified data into a csv file.  
    Im not sure if i am making this overcomplicated or if there is a easier way to program this.
    CODE:
    Private Function LoadOffSetData()
            Dim LoadOffsetDialog As New OpenFileDialog 'create a new open file dialog and setup its parameters
            LoadOffsetDialog.DefaultExt = "csv"
            LoadOffsetDialog.Filter = "csv|*.csv"
            LoadOffsetDialog.Title = "Load Offset Data"
            LoadOffsetDialog.FileName = "RollCoaterOffset.csv"
            If LoadOffsetDialog.ShowDialog() = Windows.Forms.DialogResult.OK Then  'show the dialog and if the result is ok then
                Try
                    Dim myStream As New System.IO.StreamReader(LoadOffsetDialog.OpenFile) 'try to open the file with a stream reader
                    If (myStream IsNot Nothing) Then 'if the file is valid
                        For Each oldRow As MaterionOffsetDataSet.OffsetTableRow In MaterionOffsetDataSet.OffsetTable.Rows
                            oldRow.Delete()                       
    'delete all of the existing rows
                        Next
                        'OffsetTableTableAdapter.Update(MaterionOffsetDataSet.OffsetTable)
                        Dim rowvalue As String
                        Dim cellvalue(25) As String
                        'Reading CSV file content
                        While myStream.Peek() <> -1
                            Dim NRow As MaterionOffsetDataSet.OffsetTableRow
                            rowvalue = myStream.ReadLine()
                            cellvalue = rowvalue.Split(","c) 'check what is ur separator
                            NRow = MaterionOffsetDataSet.OffsetTable.Rows.Add(cellvalue)
                            Me.OffsetTableTableAdapter.Update(NRow)
                        End While
                        Me.OffsetTableTableAdapter.Update(MaterionOffsetDataSet.OffsetTable)
                        MainOffset.Value = OffsetTableTableAdapter.MainOffsetValue          'saves all the table offsets
    to the offset numericUpDown registers in the main window
                        StationOffset01.Value = OffsetTableTableAdapter.Station01Value
                        StationOffset02.Value = OffsetTableTableAdapter.Station02Value
                       myStream.Close() 'close the stream
                        Return True
                    Else 'if we were not able to open the file then
                        MsgBox("Unable to load, check file name and location") 'let the operator know that the file wasn't able to open
                        Return False
                    End If
                Catch ex As Exception
                    MsgBox("Unable to load, " + ex.Message)
                    Return False
                End Try
            Else
                Return False
            End If
        End Function

    Hello SaulMTZ,
    >>I can track the error and its located in "OffsetTableTableAdapter.Update(MaterionOffsetDataSet.OffsetTable)" code. What am i missing?
    This error usually shows that you do not initialize the
    DeleteCommand object, you could check this
    article to see if you get a workaround.
    >> Im not sure if i am making this overcomplicated or if there is a easier way to program this.
    If you are working CSV file, you could use OleDB to read it which would treat the CSV file as a Table:
    http://www.codeproject.com/Articles/27802/Using-OleDb-to-Import-Text-Files-tab-CSV-custom
    which seems to be easier (in my opinion).
    Regards.
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • Empty report with pagination,  rows not displayed

    Dear HTML DB Team,
    We have in our reports the next error: An empty report with pagination appears , no rows not displayed
    The test case to reproduce the error:
    1. Create "SQL report" with next report attributes in "Layout and Pagination"
         a. Row ranges 1-15 16-30 in select list (with pagination)
    b. Number of Rows : 15
    c. Number of Rows (Item): empty
    d. Max Row Count: empty
    2. Fill the table on which the report is based with 17 rows
    3. Go to the 2nd page of the report , pagination rows 16-17 of 17
    4. Remove 2 rows from the table, refresh report
    5, The pagination shows now 1 - 15 of 15 rows
    - no rows displayed
    - no "previous button" ( only )
    - no way to get the rows displayed, except logging out and in again
    Any suggestions?
    Erik

    Hello,
    i encountered the same problem while developing in HTMLDB.
    In application builder, i select application Application 106, then click on items, then click next ( the application has 22 global items). Now i want to take a look at the global items in application 105 (there are only 5). In the menu i click Builder - Application 106, select application 105 from Available Applications, click Go and Items. It shows no rows, but says that is displaying rows 1-5, and offers a Next button. No way to see/modify the items unless make a new session or go back to Application 106, Click Previous to see the first page of global items and then again switch to Appication 105 or click to the next button and then manually set pg_min_row=1 in URL.
    One more question - is this forum the right place to report bug suspicions, or is there some other special place for that?
    Best regards,
    Andres

  • How can i create a grid with summary row

    Hello Professionals,
    I'm wondering how could i create a grid like the grid below, i want to create a grid with summary row,
    i have tried to create it using collapsing but it didn't work as required.
    Any suggestions?, i want to know just the starting point so i can make deep investigations.
    Thanks in Advance,

    Hi Karem,
    this can be achieved by just assigning a datatable containing the data plus some formatting of grid. Meaning there is no feature for that.
    The datatable can be filled manually or by sql query. Then you have to attach some events for updating the values ( validate after for gid item ).
    A small example for a sql query showing last month quotations and orders with summary :
    select 1 as Sort,cast(DocNum as varchar) as DocNum,DocTotal,convert(varchar, DocDate,104) from OQUT where DocDate between  DATEADD(month, -1, GETDATE()) AND GETDATE()
    UNION ALL
    Select 2 as Sort,'Summary ( Quotation ) : ',sum(DocTotal), convert(varchar,  DATEADD(month, -1, GETDATE()),104)+' - '+convert(varchar,   GETDATE(),104) from OQUT where DocDate between  DATEADD(month, -1, GETDATE()) AND GETDATE()
    UNION ALL
    select 3 as Sort,cast(DocNum as varchar) as DocNum,DocTotal,convert(varchar, DocDate,104) from ORDR where DocDate between  DATEADD(month, -1, GETDATE()) AND GETDATE()
    UNION ALL
    Select 4 as Sort,'Summary ( Order ) : ',sum(DocTotal), convert(varchar,  DATEADD(month, -1, GETDATE()),104)+' - '+convert(varchar,   GETDATE(),104) from ORDR where DocDate between  DATEADD(month, -1, GETDATE()) AND GETDATE()
    ORDER by Sort
    regards,
    Maik

  • CD artwork is no longer transferring to ipod touch with iTunes 12

    CD artwork is no longer transferring to ipod touch with iTunes 12.  Artwork is showing on my laptop but will not transfer to ipod.  I've never had this problem in the past!  I've deleted the album and reloaded but it still won't transfer.  Can anyone help as it's really frustrating me!  Thanks

    Try:
    - Reset the iOS device. Nothing will be lost      
    Reset iOS device: Hold down the On/Off button and the Home button at the same time for at
    least ten seconds, until the Apple logo appears.
    - Unsync/delete all music and resync
    To delete all music go to Settings>General>Usage>Storage>Music>Tap edit in upper right and then tap the minus sign by All Music
    - Reset all settings                            
    Go to Settings > General > Reset and tap Reset All Settings.
    All your preferences and settings are reset. Information (such as contacts and calendars) and media (such as songs and videos) aren’t affected.
    - Restore from backup. See:                                               
    iOS: Back up and restore your iOS device with iCloud or iTunes
    - Restore to factory settings/new iOS device.           

Maybe you are looking for

  • Problem with the garbage record getting printed at the beginning

    Hello Friends, I know that this problem is very difficult to solve without looking at my script and its program. But I will try asking anyways. I have written the following code (Driver program) which uses to tables ZRAMCUSTMAST AND ZRAMCALLMAST. ZRA

  • How to store internal table value in single variable

    hi gurus, i have 3 value in int table , so want to store the value of int table into single variable of type string. how it is possible

  • Wont open new tab when I click on it

    When I click on the new tab it will not open at all. Right clicking on the new tab icon wont work either. I can open a new tab when I click on a link in a web page though.

  • Pricing procedure issue ..

    Hi Expert, I have assigned pricing procedure to sales org. 1500 so that i am able to create sales order through VA01. I have assigned it through view V_T683V. Now i want to create MAM order in sales org. 1500 but at the time of creation i am getting

  • Installing J2SE v1.4.2_05 JRE "error reading setup initializing

    I have a customer who just updated their OS on their computer from Windows 98 to XP and now they are trying to download the J2SE v1.4.2_05 JRE version of Java. In the installing process it gives them this error: "error reading setup initializing" Any