Quotation date

hi,
    my quotation date is valid from 1st to 10th of this month.so if im creating PO w.r. t PO after 10th sys should not create a PO .but standard sys is creating PO.what to do.even i had set ERRor message too to stop creation of PO
still PO is created .what to do

Hi Rahul
In PO header, you are looking to 'Communication' tab.
Check the 'Additional Data' tab where you will see quotation no & date fields.
You should have activated the fields in IMG setting given by Dipak.
Best regards
Ramki

Similar Messages

  • Inquiry Number,Inquiry Date,Quotation No,Quotation Date,Sales order No

    Hi ALL,
    Please let me know from which SD cubes can we get data relation to these fields
    Inquiry Number,Inquiry Date,Quotation No,Quotation Date,Sales order No,Sales order Number,.
    Or do we need to enhance these field .
    Regards

    hi,
    We can link enquiry, quotation & sales order through the document type there is a field -
    Reference mandatory  in that you entered the  link
    Thanks
    naresh

  • How  to upload sales quotation data through LSMW?

    Hello i need to upload the sales quotation data from transaction VA21 for this we are using LSMW direct input method
    the program RVINVB10 is used and there are 8 segments as given below was mapped
    BVBAKKOM   Header records
    VBPAKOM      Partner records
    BVBAPKOM    Item records
    BVBEPKOM     Schedule line data
    H_BTEXHKOM Header text record
    H_BTEXLKOM  Header text line
    BTEXHKOM      Item text record
    BTEXLKOM      Item text line
    i have tried to upload the data using some test data but unable to upload. can anybody send the sample test data for it which needs to be given in flat file?
    when i debugged the program i found some problem with the function module SD_SALES_HEADER_MAINTAIN
    please let me know what are the export and import parameters to pass to this function module to work properly

    yes

  • Date characterstics?

    Hi all,
    If u have different date fields in the cube
    delivery date
    actual delivery date
    goods issue date
    delivery at warehouse
    and they have taken as characterstics?
    how they should be mapped in cube?

    Ofcourse it's possible . Just an example for you from SAP's business content cube:
    Quotations / Orders
    Technical Name: 0SD_C05 As you can see that 
    0QUOT_FROM
    Quotation validity date (date from which quotation is valid)
    0QUOT_TO
    Binding period for quotation (date until quotation is valid)
    is included in characteristics list even their type is date.
    you can see detail information here:
    http://help.sap.com/saphelp_nw2004s/helpdata/en/17/cd5e407aa4c44ce10000000a1550b0/frameset.htm
    Sarhan.

  • Follow-up opportunity from quotation

    Hi Experts,
    I am using a quotation to create a follow-up opportunity.
    for this I am using TXN 'CRMD_BUS2000112'. using transaction type 'ISU service quotation'. now after processing it ...I want to check whether quotation data has been transferred to oportunity or not...How to do that.I don't know where to check it and using which ID....
    points are sure.
    Thanks,
    Sushant

    Hi Sushant,
    To check whether the quotation data is copied to opportunity, open the quotation you created and go to the document flow. Open the opportunity from there and see the header and item data is copied to opportunity from the quotation you created. If this has not happened then you have check your copy control for the transaction types you have created.
    Reward points if helpful.
    Shridhar

  • How to display the data in PDF format : problem is splitting into 2 lines

    Hi ,
    I developed one report which downloads the data into PDF format and saved in C drive but my problem is
    in my program : Line size of the report is 255 in PDF it is splitting into 2 lines. it has to show in a single line. how to do it. how to reduce the width of the output? i am sending my code below. anybody can suggest me how to do it. if possible please send me the code.
    my code:
    report zmaheedhar.
    maheedhar-start
    TABLES : vbak.
    parameters : p_vbeln type vbak-vbeln.
    data : begin of itab occurs 0,
            vbeln type vbak-vbeln,
            ERDAT type vbak-erdat,
            ERZET type vbak-erzet,
            ERNAM type vbak-ernam,
            ANGDT type vbak-angdt,
            BNDDT type vbak-bnddt,
            AUDAT type vbak-audat,
            VBTYP type vbak-vbtyp,
            TRVOG type vbak-trvog,
            AUART type vbak-auart,
            AUGRU type vbak-augru,
            GWLDT type vbak-gwldt,
            SUBMI type vbak-submi,
            LIFSK type vbak-lifsk,
            FAKSK type vbak-faksk,
            NETWR type vbak-netwr,
            WAERK type vbak-waerk,
            VKORG type vbak-vkorg,
           end of itab.
    maheedhar-end
    DATA: pripar TYPE pri_params,
          arcpar TYPE arc_params,
          lay TYPE pri_params-paart,
          lines TYPE pri_params-linct,
          rows TYPE pri_params-linsz.
    DATA: val(1), val1(1).
    *---> Local Printer Name defined in SAP, Change NHREMOTE to your local printer
    DATA: dest TYPE pri_params-pdest VALUE 'ZNUL'.
    DATA: name TYPE pri_params-plist VALUE 'Testing'.
    DATA: i_pdf TYPE STANDARD TABLE OF tline.
    DATA: spono TYPE tsp01-rqident.
    maheedhar-start
    top-of-page.
    write: 'Sales Document' , 'C Date', 'Entry time', 'Created By','Quotation date',
           'Date','Document Date','SD document category','Transaction group','Sales Document Type',
           'Order reason'.
    start-OF-SELECTION.
          select vbeln  ERDAT ERZET ERNAM ANGDT BNDDT AUDAT
                  VBTYP  TRVOG AUART AUGRU GWLDT SUBMI LIFSK
                  FAKSK  NETWR WAERK VKORG from vbak
            into table itab
            where vbeln = p_vbeln.
    maheedhar-end
    --- Retreive local printer details
    CALL FUNCTION 'GET_PRINT_PARAMETERS'
      EXPORTING
        destination            = dest
        no_dialog              = 'X'
        immediately            = ' '
      IMPORTING
        out_archive_parameters = arcpar
        out_parameters         = pripar
        valid                  = val
        valid_for_spool_creation = val1
      EXCEPTIONS
        archive_info_not_found = 1
        invalid_print_params   = 2
        invalid_archive_params = 3
        OTHERS                 = 4.
    IF sy-subrc NE 0.
      MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
      WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
    ENDIF.
    *-- Set Spool printer details w.r.t local printer
    pripar-prdsn = 'DSN'.
    CALL FUNCTION 'GET_PRINT_PARAMETERS'
      EXPORTING
        in_archive_parameters    = arcpar
        in_parameters            = pripar
        no_dialog                = 'X'
        list_name                = name
      IMPORTING
        out_archive_parameters   = arcpar
        out_parameters           = pripar
        valid                    = val
        valid_for_spool_creation = val1
      EXCEPTIONS
        archive_info_not_found   = 1
        invalid_print_params     = 2
        invalid_archive_params   = 3
        OTHERS                   = 4.
    IF sy-subrc EQ 0.
    ---> Triggers the spool creation in the sense all the write statements from hereon will be written to spool instead of screen
      NEW-PAGE PRINT ON
      NEW-SECTION
      PARAMETERS pripar
      ARCHIVE PARAMETERS arcpar
      NO DIALOG.
    ELSE.
      WRITE:/ 'Unable to create spool'.
    ENDIF.
    *--- Output statements
    *WRITE:/ 'First Line', 'mahee','lklk','kikik','lokiuj','fffff','kijuyh','fgfgfgfg','gtgtgtgtgtgtgtgtggggggggggggggggggggggggggggggg'.
    *WRITE:/ 'Second Line'.
    LOOP at itab.
    write: itab-vbeln,
            itab-ERDAT,
            itab-ERZET,
            itab-ERNAM,
            itab-ANGDT,
            itab-BNDDT,
            itab-AUDAT,
            itab-VBTYP.
    ENDLOOP.
    "---> Close spool
    NEW-PAGE PRINT OFF.
    spono = sy-spono.
    Convert ABAP Spool to PDF
    CALL FUNCTION 'CONVERT_ABAPSPOOLJOB_2_PDF'
      EXPORTING
        src_spoolid                    = spono
        no_dialog                      = 'X'
    TABLES
       pdf                            = i_pdf
    EXCEPTIONS
       err_no_abap_spooljob           = 1
       err_no_spooljob                = 2
       err_no_permission              = 3
       err_conv_not_possible          = 4
       err_bad_destdevice             = 5
       user_cancelled                 = 6
       err_spoolerror                 = 7
       err_temseerror                 = 8
       err_btcjob_open_failed         = 9
       err_btcjob_submit_failed       = 10
       err_btcjob_close_failed        = 11
       OTHERS                         = 12.
    Download PDF contents to presentation server
    CALL FUNCTION 'GUI_DOWNLOAD'
      EXPORTING
        filename                        = 'c:\test.pdf'
        filetype                        = 'BIN'
      TABLES
        data_tab                        = i_pdf
    EXCEPTIONS
       file_write_error                = 1
       no_batch                        = 2
       gui_refuse_filetransfer         = 3
       invalid_type                    = 4
       no_authority                    = 5
       unknown_error                   = 6
       header_not_allowed              = 7
       separator_not_allowed           = 8
       filesize_not_allowed            = 9
       header_too_long                 = 10
       dp_error_create                 = 11
       dp_error_send                   = 12
       dp_error_write                  = 13
       unknown_dp_error                = 14
       access_denied                   = 15
       dp_out_of_memory                = 16
       disk_full                       = 17
       dp_timeout                      = 18
       file_not_found                  = 19
       dataprovider_exception          = 20
       control_flush_error             = 21
       OTHERS                          = 22.
    thanks,
    maheedhar

    hi tripat,
    actual problem is what u said it is decreased the wiidht of the output.
    now the output is:
    Sales Document C Date Entry time Created By Quotation date Date Document Date
    SD document category Transaction group Sales Document Type Order reason
    62741 07/29/1996 11:54:38 DARLENE 00/00/0000 00/00/0000 07/29/1996 C
    actual output is:
    output should come in a single line. it is splitting into 2 lines.
    thanks,
    maheedhar

  • BAPI: Create Sales order with reference to Quotation

    Hi ...
    I am using bapi BAPI_SALESOREDER_CREATEFROMDATA2  and
    i want to create sales order with reference Quotation... All quotation data like Materials prices and conditions must be copied from reference quotaion which is allready created .....
    ..Thanks..
    ..Ashish

    Hello,
    nice to see that this has already been solved.
    But it actually doesnt work in my scenario. Do you have an example coding which will explain your solution.
    Mine looks like this:
    * Update Flag
      ls_header_inx-updateflag = 'I'.
    * Angebotskopf einlesen
      SELECT SINGLE * FROM vbak INTO ls_vbak
        WHERE vbeln = iv_vbeln
          AND vbtyp = lc_vbtyp.
      IF sy-subrc <> 0.
        EXIT.
      ENDIF.
    * Auftragskopf setzen
      ls_header_in-doc_type      =  ls_vbak-auart.
      ls_header_in-sales_org     = ls_vbak-vkorg.
      ls_header_in-distr_chan    = ls_vbak-vtweg.
      ls_header_in-division         = ls_vbak-spart.
      ls_header_in-req_date_h   = ls_vbak-VDATU.
      ls_header_in-ref_doc        = ls_vbak-vbeln.
      ls_header_in-refdoc_cat   = 'B'.
    * Angebots-Partner einlesen (Nur AG und WE)
    * Auftrag anlegen
      CALL FUNCTION 'BAPI_SALESORDER_CREATEFROMDAT2'
        EXPORTING
    *   SALESDOCUMENTIN               =
          order_header_in               =  ls_header_in
    *      order_header_inx              = ls_header_inx
    *   SENDER                        =
    *   BINARY_RELATIONSHIPTYPE       =
    *   INT_NUMBER_ASSIGNMENT         =
    *   BEHAVE_WHEN_ERROR             =
    *   LOGIC_SWITCH                  =
    *   testrun                       = 'X'
    *   CONVERT                       = ' '
       IMPORTING
          salesdocument                 = ev_vbeln
        TABLES
          return                        = et_return
    *      order_items_in                = lt_items_in
    *      order_items_inx               = lt_items_inx
          order_partners                = lt_partners
    *   ORDER_SCHEDULES_IN            =
    *   ORDER_SCHEDULES_INX           =
    *   ORDER_CONDITIONS_IN           =
    *   ORDER_CONDITIONS_INX          =
    *   ORDER_CFGS_REF                =
    *   ORDER_CFGS_INST               =
    *   ORDER_CFGS_PART_OF            =
    *   ORDER_CFGS_VALUE              =
    *   ORDER_CFGS_BLOB               =
    *   ORDER_CFGS_VK                 =
    *   ORDER_CFGS_REFINST            =
    *   ORDER_CCARD                   =
    *   ORDER_TEXT                    =
    *   ORDER_KEYS                    =
    *   EXTENSIONIN                   =
    *   PARTNERADDRESSES              =  .
      CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'
        EXPORTING
          wait = 'X'.
    Unfortunatly this just makes the reference to the quotation but does not takeover ALL data from header and pos level.
    Thanks and regards
    Markus Armbruster

  • How to display the data in PDF format

    hi all,
    i will give input in my selection screen and i will execute my report then it has to display data in PDF file in some directory (like c or d directory). i refered existingthreads . most of then saying using spool req we can download pdf file i.e. not my requirement. my requirement is when i click on execute button it has to display the data in pdf file with headings.
    Anybody can send me the sample code please.
    thanks,
    maheedhar

    Hi Easwar,
    i am sending my code. in this one records is splitting into 2 records.
    report zmaheedhar.
    maheedhar-start
    TABLES : vbak.
    parameters : p_vbeln type vbak-vbeln.
    data : begin of itab occurs 0,
            vbeln type vbak-vbeln,
            ERDAT type vbak-erdat,
            ERZET type vbak-erzet,
            ERNAM type vbak-ernam,
            ANGDT type vbak-angdt,
            BNDDT type vbak-bnddt,
            AUDAT type vbak-audat,
            VBTYP type vbak-vbtyp,
            TRVOG type vbak-trvog,
            AUART type vbak-auart,
            AUGRU type vbak-augru,
            GWLDT type vbak-gwldt,
            SUBMI type vbak-submi,
            LIFSK type vbak-lifsk,
            FAKSK type vbak-faksk,
            NETWR type vbak-netwr,
            WAERK type vbak-waerk,
            VKORG type vbak-vkorg,
           end of itab.
    maheedhar-end
    DATA: pripar TYPE pri_params,
          arcpar TYPE arc_params,
          lay TYPE pri_params-paart,
          lines TYPE pri_params-linct,
          rows TYPE pri_params-linsz.
    DATA: val(1), val1(1).
    *---> Local Printer Name defined in SAP, Change NHREMOTE to your local printer
    DATA: dest TYPE pri_params-pdest VALUE 'ZNUL'.
    DATA: name TYPE pri_params-plist VALUE 'Testing'.
    DATA: i_pdf TYPE STANDARD TABLE OF tline.
    DATA: spono TYPE tsp01-rqident.
    maheedhar-start
    top-of-page.
    write: 'Sales Document' , 'C Date', 'Entry time', 'Created By','Quotation date',
           'Date','Document Date','SD document category','Transaction group','Sales Document Type',
           'Order reason'.
    start-OF-SELECTION.
          select vbeln  ERDAT ERZET ERNAM ANGDT BNDDT AUDAT
                  VBTYP  TRVOG AUART AUGRU GWLDT SUBMI LIFSK
                  FAKSK  NETWR WAERK VKORG from vbak
            into table itab
            where vbeln = p_vbeln.
    maheedhar-end
    --- Retreive local printer details
    CALL FUNCTION 'GET_PRINT_PARAMETERS'
      EXPORTING
        destination            = dest
        no_dialog              = 'X'
        immediately            = ' '
      IMPORTING
        out_archive_parameters = arcpar
        out_parameters         = pripar
        valid                  = val
        valid_for_spool_creation = val1
      EXCEPTIONS
        archive_info_not_found = 1
        invalid_print_params   = 2
        invalid_archive_params = 3
        OTHERS                 = 4.
    IF sy-subrc NE 0.
      MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
      WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
    ENDIF.
    *-- Set Spool printer details w.r.t local printer
    pripar-prdsn = 'DSN'.
    CALL FUNCTION 'GET_PRINT_PARAMETERS'
      EXPORTING
        in_archive_parameters    = arcpar
        in_parameters            = pripar
        no_dialog                = 'X'
        list_name                = name
      IMPORTING
        out_archive_parameters   = arcpar
        out_parameters           = pripar
        valid                    = val
        valid_for_spool_creation = val1
      EXCEPTIONS
        archive_info_not_found   = 1
        invalid_print_params     = 2
        invalid_archive_params   = 3
        OTHERS                   = 4.
    IF sy-subrc EQ 0.
    ---> Triggers the spool creation in the sense all the write statements from hereon will be written to spool instead of screen
      NEW-PAGE PRINT ON
      NEW-SECTION
      PARAMETERS pripar
      ARCHIVE PARAMETERS arcpar
      NO DIALOG.
    ELSE.
      WRITE:/ 'Unable to create spool'.
    ENDIF.
    *--- Output statements
    *WRITE:/ 'First Line', 'mahee','lklk','kikik','lokiuj','fffff','kijuyh','fgfgfgfg','gtgtgtgtgtgtgtgtggggggggggggggggggggggggggggggg'.
    *WRITE:/ 'Second Line'.
    LOOP at itab.
    write: itab-vbeln,
            itab-ERDAT,
            itab-ERZET,
            itab-ERNAM,
            itab-ANGDT,
            itab-BNDDT,
            itab-AUDAT,
            itab-VBTYP.
    ENDLOOP.
    "---> Close spool
    NEW-PAGE PRINT OFF.
    spono = sy-spono.
    Convert ABAP Spool to PDF
    CALL FUNCTION 'CONVERT_ABAPSPOOLJOB_2_PDF'
      EXPORTING
        src_spoolid                    = spono
        no_dialog                      = 'X'
    TABLES
       pdf                            = i_pdf
    EXCEPTIONS
       err_no_abap_spooljob           = 1
       err_no_spooljob                = 2
       err_no_permission              = 3
       err_conv_not_possible          = 4
       err_bad_destdevice             = 5
       user_cancelled                 = 6
       err_spoolerror                 = 7
       err_temseerror                 = 8
       err_btcjob_open_failed         = 9
       err_btcjob_submit_failed       = 10
       err_btcjob_close_failed        = 11
       OTHERS                         = 12.
    Download PDF contents to presentation server
    CALL FUNCTION 'GUI_DOWNLOAD'
      EXPORTING
        filename                        = 'c:\test.pdf'
        filetype                        = 'BIN'
      TABLES
        data_tab                        = i_pdf
    EXCEPTIONS
       file_write_error                = 1
       no_batch                        = 2
       gui_refuse_filetransfer         = 3
       invalid_type                    = 4
       no_authority                    = 5
       unknown_error                   = 6
       header_not_allowed              = 7
       separator_not_allowed           = 8
       filesize_not_allowed            = 9
       header_too_long                 = 10
       dp_error_create                 = 11
       dp_error_send                   = 12
       dp_error_write                  = 13
       unknown_dp_error                = 14
       access_denied                   = 15
       dp_out_of_memory                = 16
       disk_full                       = 17
       dp_timeout                      = 18
       file_not_found                  = 19
       dataprovider_exception          = 20
       control_flush_error             = 21
       OTHERS                          = 22.
    thanks,
    maheedhar

  • Tailoring Report Data Per Sales Rep

    Hi,
    We have a database that holds information on quotes and sales.
    I wish to create a report that will alert sales reps when their quotes are due to expire. So far I have done the following query:
    SELECT a.QUOTATIONID AS [Quotation ID],
    a.QUOTATIONNAME AS [Reference],
    a.CREATEDDATE AS [Quotation Date],
    a.QUOTATIONEXPIRYDATE AS [Valid Until],
    a.SALESGROUP AS [Sales Manager],
    b.EMPLID AS [Sales Rep Employee ID],
    b.NAME AS [Sales Rep],
    b.EMAIL AS [Email]
    FROM SALESQUOTATIONTABLE a
    INNER JOIN EMPLTABLE b ON a.SALESTAKER = b.EMPLID
    WHERE a.QUOTATIONEXPIRYDATE BETWEEN DATEADD(DAY, 6, GETDATE()) AND DATEADD(DAY, 14, GETDATE())
    This brings back all the data I need. I could now put it into a SSRS report which will run each Monday morning and email oout to all sales reps in XLS format. Id like to make it a little cleverer though. What I want to do is to run the report each Monday
    morning, group the data by sales rep and email it out in XLS format to only the relevant sales reps and have it only contain data for that particular rep. Is this possible? If so how do I do this?
    Cheers
    Paul

    Follow steps as below
    1. use the above query to build a dataset
    2. Use dataset within your SSRS report
    3. Add a grouping and filter on sales rep  in your report
    4. set up a data driven subscription as explained here to render report automatically each Monday. Pass list of sales reps to report parameter through a dataset
    http://beyondrelational.com/modules/2/blogs/101/posts/13460/ssrs-60-steps-to-implement-a-data-driven-subscription.aspx
    Please Mark This As Answer if it helps to solve the issue Visakh ---------------------------- http://visakhm.blogspot.com/ https://www.facebook.com/VmBlogs

  • How to add new price break lines to existing PO quotations?

    Hi,
    I am using a custom interface (to insert quotations data into PO headers/lines interface tables) and PO documents open interface to create PO Quotations in Oracle.
    I need to modify this interface to:
    1. Update existing price break lines for a quotation line.
    2. Add new price break lines to existing quotation line(which may/may not have exsiting price break lines).
    Please let me know:
    1. What modifications need to be done to the existing code.
    2. What values needs to be passed to the action columns in PO_HEADERS_INTERFACE and PO_LINES_INTERFACE for above scenarios?
    Any ideas/help will be appreciated.
    Thanks
    Imran

    Hi Imran,
    I have done a similar exercise for BPA price breakup.. Let me know if you need that as reference. I can share that :).. Please provide your personal mail id..
    Regards,
    S.P DASH

  • Info Update Indicator RFQ/Quotation for Services

    Hi All,
    When I create a RFQ for Services with Item Category "D", and update the Price in the quotation ME47, I don't see the "InfoUpdate" indicator like in a NON-Service RFQ/Quotation.
    How would the Info Record Created for Serive Material Group ?
    So there's NO info Update in RFQ/Quotation price update?
    Thanks in advance.

    Hi Duke,
    After seeing your quesstion, even i tried to do same....
    Very first, you maintian your RFQ from Tcode -ME41...Maintain your services and its gruop.....and save..
    Then go to Maintain your Quotation in ME47---here this click on the item details button while maintaining the qutation itself...which is given 10th button andnear additional data button..click on it....it'll take you to the screen where in the quotation data you can enter the Infoupdate....then save your quotation....
    This will help...
    Regards
    Priyanka.P
    AWARD IF HELPFULL

  • Getting crazy selecting dates on a mysql table (long)

    Hi all,
    I have a problem that is driving me crazy.
    I have a table containing 2 columns (QUOTATION and DATE).
    I want to extract only the records that have the date falling
    between
    a specific range.
    I've set 2 variables to hold the two dates:
    $start_date=date
    ("Y-m-d",mktime(0,0,0,date("m"),date("d")-90,date("Y")));
    $end_date=date
    ("Y-m-d",mktime(0,0,0,date("m"),date("d"),date("Y")));
    But when I run this query:
    SELECT quotation, date FROM mytable WHERE date BETWEEN
    {$start_date}
    AND {$end_date} ORDER BY date DESC";
    I get ... nothing selected.
    If I use:
    SELECT quotation, date FROM mytable WHERE date >
    {$start_date} ORDER
    BY date DESC";
    I get _all_ records: the records before and after the
    $start_date.
    Here is my little script:
    =====================================
    <?php
    mysql_select_db($database_mmm_conn, $mmm_conn);
    $quotation = (isset($_GET['quotation'])) ?
    mysql_real_escape_string($_GET['quotation']) : "";
    if ($quotation)
    $quotationquery=$metallo;
    else {
    $quotationquery='default_quotation';
    $start_date = (isset($_GET['start_date'])) ?
    mysql_real_escape_string($_GET['start_date']) : "";
    if ($start_date)
    $start_date_query=$start_date;
    else {
    $start_date_query=date
    ("Y-m-d",mktime(0,0,0,date("m"),date("d")-90,date("Y")));;
    $end_date = (isset($_GET['end_date'])) ?
    mysql_real_escape_string($_GET['end_date']) : "";
    if ($end_date)
    $end_date_query=$end_date;
    else {
    $end_date_query=date
    ("Y-m-d",mktime(0,0,0,date("m"),date("d"),date("Y")));;
    $query_dati = "SELECT {$quotationquery}, date FROM mytable
    WHERE date
    BETWEEN {$start_date_query} AND {$end_date_query} ORDER BY
    date
    DESC";
    $dati = mysql_query($query_dati, $mmm_conn) or
    die(mysql_error());
    $row_dati = mysql_fetch_assoc($dati);
    $totalRows_dati = mysql_num_rows($dati);
    ?>
    ===============================
    the command
    <? echo $query_dati; ?>
    will return:
    SELECT quotation, date FROM mytable WHERE date BETWEEN
    2007-09-19 AND
    2007-12-18 ORDER BY date DESC
    Even in PhpMyAdmin I don't get anything.
    Heeelllppppp!!
    Any suggestion will be very appreciated.
    Ciao ;).
    tony

    sweetman wrote:
    > here is the correct query string:
    >
    > $query_dati = "SELECT {$quotationquery}, date FROM
    mytable WHERE date
    > BETWEEN '{$start_date_query}' AND '{$end_date_query}'
    ORDER BY date
    > DESC";
    You don't need those complex PHP calculations to find the
    start and end
    dates. It's much more efficient to do it in your SQL like
    this:
    $query_dati = "SELECT {$quotationquery}, date FROM mytable
    WHERE date
    BETWEEN DATE_SUB(NOW(), INTERVAL 3 MONTH) AND NOW() ORDER BY
    date
    DESC";
    David Powers, Adobe Community Expert
    Author, "The Essential Guide to Dreamweaver CS3" (friends of
    ED)
    Author, "PHP Solutions" (friends of ED)
    http://foundationphp.com/

  • Table for quotation 'contribution margin' and 'net margin'

    Hi Guys,
                I need to see the contribution margin and net margin of header level of sales quotation.I am not able to trace the table,in which it is stored.Please let me know what table is used to store these values...

    Hi,
    The Main Quotation data is stored in VBAK(Header) and VBAP(Item) tables with document type as AG.
    VBAK-
    Do you see 'contribution margin' and 'net margin' in the CONDITIONS tab your header ? If yes then , take the condition types against which they appear and then go to KONV table with KNUMV of the Sales Quotation(present in VBAK) and the condition types. You will have the value in KWERT field.
    Regards
    Saket Sharma

  • Can CMOD change date related field description? Need user exit?

    Hi friends,
    customer use quotation and quotation date fields for other purposes thus need to change field description to make it more sense. I followed below link and changed qutotation..but same solution didn't apply to quotation date (data element IHRAN)
    Please kindly advise.
    [http://www.renet-web.net/2005/09/01/changing-standard-sap-field-descriptions]
    Thanks,
    Linda
    Edited by: Linda Gao on Aug 25, 2011 4:27 PM

    Use Quotation date in PO header as an example.
    Prerequisite: You might need a access key to access below steps.
    ME21Nu2014cursor at field quotation date (PO header) top task bar systemSatatus, Note down program name(SAPLMEGUI) ,screen number (1229) and field name (IHRAN) go to SE51, input program name and screen number choose radio button u201Celement listu201D press change go to subtab u201CText/ I/O templatesu201Dchange text part in column u201CText or I/O field u201C for component name MEPO1229-IHRAN(note IHRAN is field name you took down earlier on)save and activate the changes.

  • ANY EXIT available for ME49 quotation comparision

    dear SAP  gurus,
    i need to build the logic and apply exit to me49 tcode in such a way that it should check the minimum number of quotations must be be three .
    Is there any exit which supports and how logic to be devoloped.
    pl comment on this .
    nagaraju.

    HI Nagaraju garu,
    I am giving the information for ur issue.if answer is helpfull reward me the points immediately.
    The request for quotation (RFQ) process starts with a request for material(s) from a vendor(s). The RFQ process includes offer comparisons to selection of the best source. The buyer will evaluate the responses from vendors to determine the best source of supply. The accepted quotation will be processed into a purchase order and a reject letter is sent to the vendor(s) whose quotations were rejected. 
    Material-specific information including vendor pricing and lead-time from the quotation are captured within SAP master data records.
    4.2     Enter Quotations
    Use
    In this activity you will enter quotations.
    Procedure
    1.     Access the transaction choosing one of the following navigation options:
    SAP ECC Menu     Logistics &#8594; Materials Management &#8594; Purchasing &#8594;  RFQ/Quotation &#8594; Quotation &#8594; Maintain
    Transaction code     ME47
    2.     On the Maintain Quotation: Initial Screen screen, enter an RFQ number and press Enter:
    3.     On the Maintain Quotation: Item Overview screen, enter a price in the Net Price field and choose Save.
    You can also choose Item Conditions (Shift + F6) to enter other condition types, such as discount, surcharge and freight cost etc.
    4.     Repeat steps for all quotations.
    Result
    Quotations are entered.
    4.3     Compare and Select Vendor
    Use
    This can be done once all quotations have been entered.
    Procedure
    1.     Access the transaction choosing one of the following navigation options:
    SAP ECC Menu     Logistics &#8594; Materials Management &#8594; Purchasing &#8594;  RFQ/Quotation &#8594; Quotation &#8594; Price Comparison
    Transaction code     ME49
    2.     On the Initial screen, enter quotation range or coll. no. and choose Execute.
    3.     For the selected vendor, click on column and choose the Quotation button.
    4.     On the Maintain Quotation screen, select line item and choose Item Detail (F2) button.
    5.     In Quotation Data section, in InfoUpdate field, enter B and choose Save.
    If it is the same buyer for all plants, select C.
    6.     To return to the Price Comparison screen, choose Back.
    7.     Select a rejected vendor and choose the Quotation button.
    8.     On the Maintain Quotation screen, choose Item Detail button.
    9.     To reject a quotation, select the Rej. Ind. checkbox and choose Save. Repeat for additional rejected vendors.
    Result
    Approved quotation is saved, other quotations are rejected.
    Option A: For all rejected quotations, perform the next step.
    Option B: For all approved quotations, skip the next step and continue with the rest of the process.
    4.4     Rejection of RFQ
    Use
    This can be done once all quotations have been entered by the purchasing manager.
    If RFQ is rejected, the reject RFQ letter can be printed automatically.
    4.5     Purchasing Info Record Update
    Use
    This can be done once all quotations have been entered by the purchasing manager.
    If RFQ is accepted, the purchasing info record will get updated automatically
    and u asked about exits right?
    we will use  user exits for this purpose .
    and follow the above process for creating your three different quotations
    for ny isuues reply me and reward me if the answer is helpfull to me...pls
    thsnks karthik

Maybe you are looking for

  • Not able to select audio track.

    When unlinked and  I click on an audio track nothing happens. I can't clear or move the track.

  • H.264 Audio

    I'm still in the early stages of testing this but it seems after the latest updates, Creative Cloud products can't detect audio on H.264 compressed files.  I've seen it on .mp4 and .mov wrappers so far.  Premiere imports them without any audio at all

  • Status of number range has not updated

    HI GURUS! I read a lot of similar questions as mine. But I didn't find the correct answer for my problem. The issue is: after I uploaded the Vendor master with LSMW, the status of the number range is still 0! So I have to change it manually. What sho

  • Best way to store a LOT of data?

    Hi guys, I have a program which contains two arrays of several objects(ie Objects containing other Objects) which I need to store. The arrays can be anywhere from 1000-7000 objects. I have used xstream to write this data to disk and I get a file size

  • EMC RecoverPoint?

    Has anyone used EMC's RecoverPoint before for Oracle replication? How'd it go? We're considering it for replicating to a disaster recovery site (we're running 10g RAC); from my perspective as a DBA, any DR solution that doesn't require a database red