GET Number Based on year

Dear All
Any FM Available Number generation based on calander   year
Thanks And Regards
Suresh

Hi Suresh
Refer Below Thread
http://www.abapcode.info/2008/01/sap-function-module-for-date-and-time.html
Regards,
Syf

Similar Messages

  • CAML Query to get Items based on Year and Month From Date Column

    Hi All,
           * As we knew that there are default columns in calendar like Stattdate,Title,Location..etc.
            * I required the CAML Query to get the list items of calender of particular Month and Year,So that I can get number of items or evetns are in Calendar
    Can any one help me how can I do this using caml query
    Samar

    Hi Stuart,
                 Thanks for your response,I had chosen 2nd option of our above mention suggestion.But when I try to fetech the data from a calendar it is showing below error .I
    had checked the below code with oter lists by changing Type to text and it worked fine.Can you please help me how can I fetech for the calulated columns
    Error
    "One or more field
    types are not installed properly. Go to the list settings page to delete these
    fields. "
    Code:
     string year="2014";
                string month="February";
                SPSite mysite = SPContext.Current.Site;
                SPWeb myweb = mysite.OpenWeb();
                try
                    SPList mylist = myweb.Lists["Calendar"];
                    SPQuery myquery = new SPQuery();
                    myquery.Query = @"<Where>
                                          <And>
                                           <Eq>
                                             <FieldRef Name='Year'/>
                                             <Value Type='Calculated'>"
    + year + @"</Value>
                                          </Eq>
                                          <Eq>
                                             <FieldRef Name='Month'
    />
                                             <Value Type='Calculated'>"
    + month + @"</Value>
                                          </Eq>
                                         </And>
                                      </Where>";
                    SPListItemCollection totaltiems = mylist.GetItems(myquery);
                   Label1.Text= "Total Number of Items is "+" "+totaltiems.Count.ToString();
                catch (Exception ee)
                    Label1.Text = ee.Message;
                finally
                    myweb.Dispose();
    Calculated Columns
    Samar

  • Function Module to get pernr number based on first name and last name

    Hi All,
    What is the Function Module to get pernr number based on first name and last name.
    Could you please help me.
    T@R.
    Vidya

    hi Vidya,
    you can get perner from PA0002 based on firs name and last name.
    use select query and get perner.

  • Can i get month, quarterly, half yearly, yearly wise sales report basing on

    hi,
    sap gurus,
    good evening to all,
    how can i get month, quarterly, half yearly, yearly wise sales report basing on division and material.
    is there any std transaction code for that.
    customization is requried for that.
    regards,
    balaji.t
    09990019711

    Standard SAP SD Reports:=
    Statistic Group:
    Purpose u2013 To capture data for Standard Reports, we require to activate Statistic Group as under:
    --> Item category (Configuration)
    --> Sales document type (Configuration)
    --> Customer (Maintain in Master data)
    --> Material (Maintain in Master data)
    When you generate statistics in the logistics information system, the system uses the combination of specified statistics groups to determine the appropriate update sequence. The update sequence in turn determines for exactly which fields the statistics are generated.
    Configuration:
    IMG --> Logistics Information System (LIS) --> Logistics Data Warehouse --> Updating --> Updating Control --> Settings: Sales --> Statistics Groups -->
    1. Maintain Statistics Groups for Customers
    2. Maintain Statistics Groups for Material
    3. Maintain Statistics Groups for Sales Documents
    4. Assign Statistics Groups for Each Sales Document Type
    5. Assign Statistics Groups for each Sales Document Item Type .....
    All Standard Reports which are available are as under:
    SAP Easy Access: Information Systems -> Logistics -> Sales and distribution ->
    1. Customer -> Incoming orders / Returns / Sales / Credit memos / Sales activities / Customer master / Conditions / Credit Master Sheet
    2. Material -> Incoming orders / Returns / Sales / Credit memos / Material master / ...
    3. Sales organization -> Sales organization / Sales office / Sales employee
    4. Shipping point -> Deliveries / Returns
    5. SD documents -> Orders / Deliveries / Billing documents ...
    & so on.
    Regards,
    Rajesh banka

  • How to get po number based on billing document number

    Hi every body
          how to get a po number based on billing document number
    thanks in advance.
    sekhar.k

    Hi,
    Check this field VBRK-BSTNK_VF.
    Regards,
    Satish

  • Get CMdetails based on Reference Number

    Hi,
    I am developing Credit Memo Details report, here user wants all the details including Acct Docu Number based on Reference number.
    The report is working fine if the Credit memo has account docu number, but now user wants this report to work if Cmemo does not have ACCtDocuNum also.
    Please help me to modify this report so that it displays all details with out AcctDocuNumber also based on Reference number.
    Thanks,
    Neelu.
    FORM get_data.
      SELECT a~vbeln a~posnr a~vgbel a~netwr a~fkimg a~matnr
             b~vkorg b~vtweg b~spart b~kunag b~xblnr b~bstnk_vf
             FROM vbrp AS a
             INNER JOIN vbrk AS b
              ON a~vbeln = b~vbeln
              INTO TABLE ivbrkp
              WHERE b~xblnr IN s_xblnr
              AND b~fkart = 'ZMKD'.
      IF sy-subrc = 0.
        SELECT kunnr matnr sprice eprice eohqty bstkd crmemo
              FROM zppprice INTO TABLE izppprice
              FOR ALL ENTRIES IN ivbrkp
              WHERE kunnr = ivbrkp-kunag
                    AND matnr = ivbrkp-matnr
                    AND crmemo = ivbrkp-vgbel.
      ENDIF.
    ENDFORM.                    " get_data
    *&      Form  process_data
    *       text
    *  -->  p1        text
    *  <--  p2        text
    FORM process_data.
      DATA: lv_name1 LIKE kna1-name1,
            lv_auart LIKE vbak-auart,
            lv_augru LIKE vbak-augru,
            lv_werks LIKE vbap-werks,
            lv_fkdat LIKE vbkd-fkdat,
            lv_knumv LIKE vbak-knumv,
            lv_kbetr LIKE konv-kbetr.
      LOOP AT ivbrkp.
        g_bqty  =  ivbrkp-fkimg.
        MOVE ivbrkp-vbeln      TO iout-vbeln.
        MOVE ivbrkp-posnr      TO iout-posnr.
        MOVE ivbrkp-vgbel      TO iout-vgbel.
        MOVE ivbrkp-netwr      TO iout-netwr.
        MOVE g_bqty            TO iout-g_bqty.
        MOVE ivbrkp-vkorg      TO iout-vkorg.
        MOVE ivbrkp-vtweg      TO iout-vtweg.
        MOVE ivbrkp-spart      TO iout-spart.
        MOVE ivbrkp-kunag      TO iout-kunnr.
        MOVE ivbrkp-matnr      TO iout-matnr.
        MOVE ivbrkp-xblnr      TO iout-xblnr.
        MOVE ivbrkp-bstnk_vf   TO iout-bstnk_vf.
        READ TABLE izppprice WITH KEY kunnr = ivbrkp-kunag
                                      matnr = ivbrkp-matnr
                                      crmemo = ivbrkp-vgbel.
        g_qdiff =  izppprice-eohqty - g_bqty.
        IF sy-subrc = 0.
          MOVE izppprice-sprice  TO iout-sprice.
          MOVE izppprice-eprice  TO iout-eprice.
          MOVE izppprice-eohqty  TO iout-eohqty.
          MOVE g_qdiff           TO iout-g_qdiff.
        ENDIF.
        SELECT SINGLE name1
                FROM kna1 INTO lv_name1 WHERE kunnr = ivbrkp-kunag.
        IF sy-subrc = 0.
          MOVE lv_name1 TO iout-name1.
        ENDIF.
        SELECT SINGLE auart augru FROM vbak INTO (lv_auart, lv_augru)
                                  WHERE vbeln = ivbrkp-vgbel.
        IF sy-subrc = 0.
          MOVE lv_auart TO iout-auart.
          MOVE lv_augru TO iout-augru.
        ENDIF.
        SELECT SINGLE werks FROM vbap INTO lv_werks
                            WHERE vbeln = ivbrkp-vgbel
                              AND posnr = ivbrkp-posnr.
        IF sy-subrc = 0.
          MOVE lv_werks TO iout-werks.
        ENDIF.
        SELECT SINGLE fkdat FROM vbkd INTO lv_fkdat
                            WHERE vbeln = ivbrkp-vgbel.
        IF sy-subrc = 0.
          MOVE lv_fkdat TO iout-fkdat.
        ENDIF.
        SELECT SINGLE knumv
               FROM vbak INTO lv_knumv
                WHERE vbeln = ivbrkp-vgbel.
        SELECT SINGLE kbetr
               FROM konv INTO lv_kbetr
                WHERE knumv = lv_knumv
                AND kschl = 'ZCPP'.
        IF sy-subrc = 0.
          MOVE lv_kbetr TO iout-g_pdiff.
        ENDIF.
        APPEND iout.
        CLEAR iout.
        CLEAR ivbrkp.
        CLEAR lv_name1.
        CLEAR lv_auart.
        CLEAR lv_augru.
        CLEAR lv_werks.
        CLEAR lv_fkdat.
        CLEAR lv_knumv.
        CLEAR lv_kbetr.
      ENDLOOP.
    ENDFORM.                    " process_data

    Hi,
    There is std Tcode MB25 in sap or u can use RESB table to see reservation against production order.
    Arun

  • How to get sales order number based on purchase order

    hi,
    what is the transaction code to find the sales order number based on the purchase order number
    Regards,
    Murali

    Hi,
    Go to Se16 (data browser), see the table VBKD, enter the PO number, if any, execute.
    Prase

  • Get the Serial Number based on the  Delivery

    Hi Experts,
    I want to fetch the serial number based on the delivery number  and Item.
    If I see in the LIPS table we have the field like SERNR but we dont have data in that field.
    But in the VL03n transaction Serial Number exists for the same delivery.
    Please any one Suggest me Using which table we can fetch the serial number.
    Thnx ,
    Sam

    TABLES: RSEROB.
    DATA : S_LV_IRSEROB TYPE STANDARD TABLE OF RSEROB WITH HEADER LINE.
    *       S_LV_ORSEROB TYPE STANDARD TABLE OF RSEROB WITH HEADER LINE,
    *       WA_RSEROB TYPE RSEROB.
    CLEAR : S_LV_IRSEROB , S_LV_ORSEROB , WA_RSEROB .
    *LOOP AT ITAB_LT_ITEMS INTO WA_ITEMS.
      S_LV_IRSEROB-TASER   = 'SER01'.
      S_LV_IRSEROB-LIEF_NR = WA_ITEMS-VGBEL.---delivery no.
      S_LV_IRSEROB-POSNR   = WA_ITEMS-VGPOS.--delivery item
      APPEND S_LV_IRSEROB.
      CALL FUNCTION 'GET_SERNOS_OF_DOCUMENT'
        EXPORTING
          KEY_DATA                  = S_LV_IRSEROB
    *   STATUS_PRE_READ           = ' '
    *   EQUNR_CORR                = 'X'
        TABLES
          SERNOS                    = S_LV_ORSEROB
    *   SERXX                     =
       EXCEPTIONS
         KEY_PARAMETER_ERROR       = 1
         NO_SUPPORTED_ACCESS       = 2
         NO_DATA_FOUND             = 3
         OTHERS                    = 4.
    *  IF SY-SUBRC EQ 0.
    *    Loop at S_LV_ORSEROB INTO WA_RSEROB.
    *      CALL FUNCTION 'CONVERSION_EXIT_ALPHA_OUTPUT'
    *  EXPORTING
    *    INPUT         =  WA_RSEROB-SERNR
    * IMPORTING
    *   OUTPUT        = WA_RSEROB-SERNR        .
    *      WA_ITEMS-SERIAL_NO = WA_RSEROB-SERNR(18).
    *      MODIFY ITAB_LT_ITEMS FROM WA_ITEMS.
    *    ENDLOOP.
    *  ENDIF.
    *ENDLOOP.

  • Get PO based on PartNumber

    Does any body can help me to get the PO number based on a JOB Parameter
    (Query)
    Thks!

    Hi Rao,
    we can get Fiscal year period and quarter based on the calmonth and calweek using the field routine in transformation.
    pls check below related links
    Function module for deriving CALMONTH from CALWEEK
    Function modules to convert Cal week in to Cal Mon,Cal Quar and Cal Year
    Regards,
    Malli.

  • Fiscal workweek number based on normal calender

    Hi Experts,
      I need some help on Fiscal calender. Are there any tables or function modules which will give the Fiscal workweek number based on the normal calender date? If so please advise me where and how I will get the details.
    Thanks in advance,
    Swarna Munukoti.

    Check these threads
    convert  fiscal year/period to calender year/month
    function module reqd for fiscal period using current date
    Edited by: mrugesh phatak on Jan 9, 2009 9:40 AM

  • How to findout the clearning document number based on the reference

    Hi all
    we  need to findout the clearning document number based on the reference number in financial transaction code.
    basically we know how to retrieve the data from table level using BKPF without non primary key as XBLNR but
    we  want to know is this any function module to retrieve the document number based on the reference number like XBLNR.
    Please confirm.
    Thanks
    K.Gunasekar

    you can get it from BSAD too. but again its not a primary key

  • How to get number of pages in word document

    I am developing an OCR application where I need to get number of pages of word documents. I am currently assuming that each page consists of 46 lines but some how, I am not getting convinced with this logic. Is there any simplest way to get this information?
    Let me tell you that in the OCR system I am converting tiff iamges to .txt file and again reading txt file and counting number of pages based on number of lines.
    regards,
    Ranjan

    The number of pages depends on the font size, length of each line and any page break in between.
    You could just say, one page per 46 lines, it depends on how accurate you must be.
    Why not count the number of pages you scanned?

  • Alpha numeric numer ranges for Shopping Cart based on year and month

    Dear All,
    My client requirement is that Shopping cart number should be generated based on year and month specific.
    Though it is possible through smart numbering, it should generate automaticaly.
    For eg:- Shopping cart generated for March 2011 should be  1103SC00001 to 1103SC99999
                  Shopping cart generated for June   2011 should be  1106SC00001 to 1106SC99999
                  Shopping cart generated for January 2012 should be  1201SC00001 to 1201SC99999
    Is thera any badi available for this.
    Regards,
    Raju

    why dont you add this to description field?

  • Any SAP standard report is used to retrieve the inventory number based Asse

    Hi all
    Any SAP standard report is used to retrieve the inventory number based Asset ID.
    Please help us to provide the standard report.
    Regards
    K.Gunasekar

    Hi,
    Create the Sort version with field Inventory no, so that you can display Inventory no details in all Asset report.
    You can get "Inventory no" details by including field "INVNR" in Sort versions for Asset reporting(T.code - OAVI).
    Hope this information helpful for you.
    Thanks & Best Regards,
    M.Ganesan

  • Retreiving accounting Doc number based on PO number

    Hi,
    In my abaprogram I need to retrieve the accounting document number for a given PO number which has been GR'd.
    I need to know the table which stores there details.
    I need acounting document number because I need to read the BKPF table for getting exchange rate for a PO.
    If I read the BKPF table based on Object key which I can retrieve from PO, the select query takes a long time  hence I think I need to read bkpf based on primary key ?
    Please advice,
    Regards,
    Shital

    Hi,
    Refer to these links...
    For BSID- Accounting Document Number corresponding PO Number is required
    Retrieving Accounting Document number based on PO numbers

Maybe you are looking for

  • Subtotal in ALV     Urgent

    Hi experts, I got a CR of an ALV report where I have to add subtotal of PR Qty for a particular material Please help me how to add subtotal ? Regards

  • Discoverer/portletprovider: ORA-01017 error

    Hi. When i register the web provider pointing to http://<myserver>:7777/discoverer/portletprovider, i have error: Error! BaseException is ... ORA-01017: invalid username/password; logon denied What is a username to mean?

  • Important BADI's in MM

    Dear Experts, can you please update me with the important BADI's in MM and its application? Thanks and regards, Ranjan

  • Hierarchy  data loading  in sap  bw 7.3 for 0 costcenter-dtp error

    Hi , I am loading data from ECC with data source 0COSTCENTER_0101_HIER to BW.For this i have created transformations between info object HIERARCHIES 0COSTCENTER and data source and DTP as well.I have loaded data upto PSA with info package  no issues,

  • Iweb pages all jumbled

    After a period of NOT updating website........open to find text on one website all jumbled up.  Website appears OK online........but not sure what to do and/or how to change. Have a couple other websites that appear OK Any ideas?