Julian Date for use in Document ID

Can anyone show me how I can convert a date field into a Julian date(YYDDD)? Essentially I just want to have this converted into a variable that I will concatenate with other values that will be used in generating unique doc ID.
Additionally anyone have thoughts on how I can ensure the doc ID is globally unique w/o using getUID?
I have never done anything with a Julian date before so I am at a loss.....

Hi,
to display a julian date you can use the J symbol in your display pattern:
date{YYJ} to display January the 3rd 2015 as 153 (3rd day in 2015)
or
date{YYJJJ} to display January the 3rd 2015 as 15003 (with leading zeros)
To reuse the formatted Date in a script use the formattedValue instead of the rawValue.

Similar Messages

  • Validate the posting date for profit centre documents actual/plan

    Hi,
    I have an requiremnt where we want system to validate the posting date for profit centre documents actual/plan, Functionality should be same as system check  posting period for FI documents maintained in OB52 and controlling cost centre documents posting period maintained in OKP1.
    For creating Profit centre document activity types are available in Tcode 0KEO.
    I have come across Exits EXIT_SAPLPC08_001 and  EXIT_SAPLPC08_002. But i am notsure whether we can use these and implement these.
    PLease suggest what can be done to achieve this.
    Regards,

    Hi,
    U can use subsititution and specify that the profit center could be your head office or the store as per your req...
    I think thats the only option we have..
    Cheers
    Raghu

  • How to find closing date for a delivery document

    I nedd to fin closing date for a delivery document. I tried with clsdate but didnt work
    If someone can help me with this

    Hi.............
                 Better and simplest way you can get it through a simple qury report. Create a query by joining two tables ODLN and OINV. OINV's docdate means the closing date of delivery challan.
    Regards,

  • Download Smart form data for 6000 Invoice documents into Excel

    Hi,
    Using RSNAST000 program currently we are printing samrtform.
    Instead of printing data in smartform i need to write into excel.
    Please let me know the logic to do this i need to write 6000 smartforms(Invoice documents) data into Excel.
    Thanks
    Bhuvana

    Ask him how he thinks smart forms can be embedded in Excel, and why he wants Excel (for which benefit, for using which functions of Excel?). He has an idea, for sure.
    Technical possibilities of Excel to embed graphical documents are very limited, I mean 2 solutions: either storing the whole document as an image (rather easy), or split the document into pieces of text (into cells) and boxes and images (stored as Excel graphical elements) with a rather bad render (highly complex, I mean unfeasible).
    - If his idea is to embed them as images (PDFs), then show him the result : 50 kb to 500 kb for each smart form = excel of several mega bytes. He will certainly regret. Moreover I don't see the interest.
    On the other way, propose him to store smart forms in a single spool, so he will be able to display (it's then equivalent to preview) all of them at the same time. He'll surely agree that it's the most efficient way.
    Propose him proofs of concepts.

  • Can I change the count date for a PI Document?

    Dear All,
    By mistake, I entered count date as 30-Sep-2010 instead of 01-Oct-2010 while entering count for a PI document.
    Now, Can I change the count date to 01-Oct-2010 ?
    The issue here is I am not allowed to post the difference today since the count date belongs to the previous period which is 09 2010.
    pls suggest how can I resolve this issue?
    regards,
    Shetty

    Hi Shetty,
    I am assuming your issues is around posting the PI document and the count date  i.e.Posting period is in last month and hence you are stuck.
    If your client is ok to perform posting in previous period then try MMRV and allow posting in previous period and complete the Inventory counting posting and adjustment (write off differences and revert back the settings)
    Other option would be to  used above suggestion post PI doc without difference. Then create new PI document with correct count date.
    Hope this helps.
    Thx
    MJ

  • Billing Date for Cancelled Billing Document

    I have billing document whose billing date is Mar-2008 and in header creation date is May-2005. When we checked the document flow it showing same billing document has been cancelled in My-2005 and also cancelled document date is May-2005.  This billing document is created for contract whose billing plan is valid till Dec-2008. When i checked the billing plan there I get the billing date which showing in billing document. Now my question is why cancelled billing document having current year billing date when it is cancelled in May-2005.
    Regards,

    Hi
    We have a option to change the billing documnet date under header details.
    1) Go  to VF02
    2) Enter billing document date
    3) Go to header deatils and change the billing date to current billing date
    4) save the document.
    Pts if ur problem gets solved
    RGDS
    B.JAGANATH

  • Code sample for using change document function modules

    Can someone send me some sample code for using function modules CHANGEDOCUMENT_READ_HEADER and CHANGEDOCUMENT_READ_POSITIONS?  I'm specifically looking for changes that occured to the standard price field in the material master (MBEW-STPRS) and I need to pull the most recent price change for a given material.  I'm not sure how to write the code efficiently since I don't have a date to pass (again, since we're looking for the most recent change.)
    Thanks!

    hi check this..
    CHANGEDOCUMENT_READ_HEADERS
    Example:
    CALL FUNCTION 'CHANGEDOCUMENT_READ_HEADERS'
    EXPORTING
    objectclass = 'EINKBELEG'
    objectid = l_objectid
    username = space
    TABLES
    i_cdhdr = lt_cdhdr.
    LOOP AT lt_cdhdr WHERE udate IN s_aedat.
    CALL FUNCTION 'CHANGEDOCUMENT_READ_POSITIONS'
    EXPORTING
    changenumber = lt_cdhdr-changenr
    TABLES
    editpos = lt_editpos.
    LOOP AT lt_editpos WHERE fname = 'LOEKZ'
    AND f_new = 'L'.
    p_desc = text-r01. " Cancel Contract
    ENDLOOP.
    ENDLOOP.
    CHANGEDOCUMENT_READ_POSITIONS
    Example:
    CALL FUNCTION 'CHANGEDOCUMENT_READ_HEADERS'
    EXPORTING
    objectclass = 'EINKBELEG'
    objectid = l_objectid
    username = space
    TABLES
    i_cdhdr = lt_cdhdr.
    LOOP AT lt_cdhdr WHERE udate IN s_aedat.
    CALL FUNCTION 'CHANGEDOCUMENT_READ_POSITIONS'
    EXPORTING
    changenumber = lt_cdhdr-changenr
    TABLES
    editpos = lt_editpos.
    LOOP AT lt_editpos WHERE fname = 'LOEKZ'
    AND f_new = 'L'.
    p_desc = text-r01. " Cancel Contract
    ENDLOOP.
    ENDLOOP.
    Check this link.
    http://www.sap-img.com/mm001.htm
    <REMOVED BY MODERATOR>
    venkat.
    Edited by: Alvaro Tejada Galindo on Mar 18, 2008 4:05 PM

  • Documentation for using Adobe Document Services

    Hi,
    Is there any documentation available on how to use Adobe Document Services? I have installed Adobe Document Services for Netweaver 2004. But I am not able to use the services as I do not know how to access them (is it like Adobe Document Services exposes a set of APIs/webservices and we have to call them? If yes, is there any documentation on the same?).
    Thanks,
    Vibha.

    Hi,
    I think the below mentioned links will give a clear idea about ADS Configuration.
    https://websmp104.sap-ag.de/adobe
    Check MEDIA LIBRARY - Documentation link in this link.
    And also check this link too...
    http://help.sap.com/saphelp_nw2004s/helpdata/en/37/504b8cbc2848a494facfdc09a359b1/frameset.htm
    I hope this will help you.
    Regards,
    <i><b>Raja Sekhar</b></i>

  • Bolivia: expiring date for issuing billing document

    Hi gurus,
    there is a singular requirement in Bolivia which consists of a date in which a certain billing document has to be issued according to several variables, e.g, the number range issued by the Local tax agency.
    Is there in VBRK a field which could fit such requirement? if not, is there any standard field which could be added to VBRK? Otherwise, there is no more option than configuring a header text where user can update this date or as per standard texts in SO10 which can be called from the billing form, bearing in mind that this "expiring date" lasts at least for one year.
    thanks!
    VL

    In VBRK, as for as date fields are  concerned, to my knowledge all fields (pricing date, billing date etc) would be filled in from a predecing document and no date field would be left with blank which I am not sure as right now, I dont have access to SAP.  Nevertheless, there would be some unutilized fields which you can check and make use of that.  Having said this, you can achieve this with the help of billing exit.
    G. Lakshmipathi

  • Need to Create a Date for Use in Filter

    I need to set a filter to the effect of Modified Date >= [CURRENT_YEAR] || '02-01' and can't seem to get the filter right to allow me to concat/insert the year to the '02-01' to just get MM/DD/YYYY = 02/01/[Current Year]. It keeps throwing SQL errors.
    Here is the text I used to get the string but I can't seem to get this into an actual date format. I've tried doing CAST as DATE and doing a DATE 'YYYY-MM-DD' format as well.
    CAST(VALUEOF(NQ_SESSION.CURRENT_YEAR) AS CHAR)) || '-02-01'

    Ok. I finally found something that will work no matter what month we are talking about. The goal was to find the first day of the prior month so I always look for the two months activities.
    So if current date is 06/08/2010 then I wanted all activities >= 05/01/2010. If the date were 01/12/2010 then I would want 12/01/2010 as my date to filter etc. It is the rollover that messes up most of the date logic when using date parts as filters.
    Here is what I came up with and it works great. You basically subtract a month from today's date and then subtract the number of days (minus one) to get back the first of the prior month.
    TIMESTAMPADD(SQL_TSI_DAY,
    ((DAY(TIMESTAMPADD(SQL_TSI_MONTH,-1,VALUEOF(NQ_SESSION.CURRENT_DT))) -1) * -1)
    TIMESTAMPADD(SQL_TSI_MONTH,-1,VALUEOF(NQ_SESSION.CURRENT_DT)) )

  • Import existing config data for use in Advanced Admin Page

    How does one import an existing httpd.conf so that it can be used in the
    Apache Advanced Admin (server:2200/apacheadmin)? I have added an
    existing Apache server, but no existing directives show up for editing.
    Ken McLeod
    The Delphian School
    http://www.delphian.org

    Ken,
    It appears that in the past few days you have not received a response to your
    posting. That concerns us, and has triggered this automated reply.
    Has your problem been resolved? If not, you might try one of the following options:
    - Do a search of our knowledgebase at http://support.novell.com/search/kb_index.jsp
    - Check all of the other support tools and options available at
    http://support.novell.com.
    - You could also try posting your message again. Make sure it is posted in the
    correct newsgroup. (http://support.novell.com/forums)
    Be sure to read the forum FAQ about what to expect in the way of responses:
    http://support.novell.com/forums/faq_general.html
    If this is a reply to a duplicate posting, please ignore and accept our apologies
    and rest assured we will issue a stern reprimand to our posting bot.
    Good luck!
    Your Novell Product Support Forums Team
    http://support.novell.com/forums/

  • URI format for using XSL document function.

    Hi Tim,
    >>but I am not able to figure out where I should place the xml file. What are best practices for choosing a location for the xml file?
    You can place the xslt code and xml file in a single folder, zip it an import it into PI as an external definition. I think this should work
    Regards
    Suraj

    Thank you for your reply.    But my requirements are such that they need to be independent, and not be in the same imported archive (ie ZIP file).    In my case the XSLT code is a standard product that is the same across multiple installations,  but each installation may required some installation specific cross reference values that would be maintained in the XML file.    So I need them separated so if I make updates to my XSLT and distribute it, I do not wipe out the installation specific settings that have been made to the XML file.

  • Billing date for a purchase order in the corresponding billing document

    Hello,
    for a purchase order I need to select the billing date in the bill which corresponds to the purchase order. There is a posting date in the order history but I am not sure that this date is identical with the billing date in the purchase order. Any suggestions? Thanks.
    Regards, Lars.

    I guess you are talking about due date for a billing document.
    There's an FM Determine_Due_date for that. before that you'll have to use FM FI_DOCUMENT_READ with I_AWTYP as VBRK and I_AWREF as Billing Document Number. You will get T_BSEG entry.
      CALL FUNCTION 'FI_DOCUMENT_READ'
       EXPORTING
         i_awtyp           = 'VBRK'
         i_awref           = po_vbeln
       TABLES
         t_bseg            = i_bseg
      SORT i_bseg BY vbeln.
    READ TABLE i_bseg WITH KEY vbeln = 'Billing Document Number'.
      IF sy-subrc IS INITIAL.
        MOVE-CORRESPONDING i_bseg TO wa_faede.
        CALL FUNCTION 'DETERMINE_DUE_DATE'
             EXPORTING
                  i_faede                    = wa_faede
             IMPORTING
                  e_faede                    = wa_faede
             EXCEPTIONS
                  account_type_not_supported = 1
                  OTHERS                     = 2.
    This wa_faede will have due date in one of its fields.
    Hey do reward points if this post is helpful.

  • Setting create date for versioned documents

    Hi,
    I'm trying to explicitly set the create date for a versioned document (as in, the versions for the document), using the Content DB java API.
    What I'm trying to do is basically this (pseudo-code):
    - Create an unversioned document (the folders do not have auto-version turned on) with the create date explicitly set. This works fine.
    - Make it versioned
    - Check it out, upload a new version with the create date set, check it back in
    It is at the last step where I seem to have problems -- the act of checking a file back in seems to reset the create date to be the date of checkin rather than the date I set.
    Is there any way of accomplishing what I'm trying to do?
    Thanks,
    Phill

    Hello,
    why so complicated? You can do all in one ;)
    Check this out:
    How to upload file to Conetent database and remain the creating date
    In the end its like this:
    Item verTest = fileM.createDocument(
    new NamedValue[] {
    ClientUtils.newNamedValue(Attributes.CREATE_DATE, olddate)
    gl
    Matthias

  • Update routine to populate value for field ZDOCCATG(Document category)

    Hi Experts,
       I need to populate  data for field ZDOCCATG(Document Category) based on the value of the below  two fields,
    1. 0deb_cre_lc(Debit / credit Amount)
    2. 0ac_doc_typ(Belegart)
    The logic is as follows:
    if 0deb_cre_lc > '0'.
         if 0ac_doc_typ == 'dz'.
          ZDOCCATG = Disputes.
         else
      ZDOCCATG = Invoices.
       end If.
    else
    if 0ac_doc_typ < '0'.
    ZDOCCATG = Credits.
    end if.
    I need to write the update routine to get the values assigned for Document category based on these two fields. When i open the routine for the field ZDOCCATG, i can see the below screen:
    PROGRAM UPDATE_ROUTINE.
    $$ begin of global - insert your declaration only below this line  -
    TABLES: ...
    DATA:   ...
    $$ end of global - insert your declaration only before this line   -
    FORM compute_data_field
      TABLES   MONITOR STRUCTURE RSMONITOR "user defined monitoring
      USING    COMM_STRUCTURE LIKE /BIC/CS80FIAR_O03 - (Communication structure)
               RECORD_NO LIKE SY-TABIX
               RECORD_ALL LIKE SY-TABIX
               SOURCE_SYSTEM LIKE RSUPDSIMULH-LOGSYS
      CHANGING RESULT LIKE /BIC/AZOARFSCM00-/BIC/ZDOCCATG
               RETURNCODE LIKE SY-SUBRC "Do not use!
               ABORT LIKE SY-SUBRC. "set ABORT <> 0 to cancel update
    $$ begin of routine - insert your code only below this line        -
    fill the internal table "MONITOR", to make monitor entries
    result value of the routine
      RESULT = .
    if abort is not equal zero, the update process will be canceled
      ABORT = 0.
    $$ end of routine - insert your code only before this line         -
    ENDFORM.
    Please let me know the code to be inserted (based on the logic mentioned above) in the above screen . Thanks
    Regards,
    Kavitha Jagannath

    Hi Kavitha,
          Supposing the technical name of fields is /bic/0deb_cre_lc and /bic/0ac_doc_typ use the code below at the marked position.
    PROGRAM UPDATE_ROUTINE.
    $$ begin of global - insert your declaration only below this line -
    TABLES: ...
    DATA: ...
    $$ end of global - insert your declaration only before this line -
    FORM compute_data_field
    TABLES MONITOR STRUCTURE RSMONITOR "user defined monitoring
    USING COMM_STRUCTURE LIKE /BIC/CS80FIAR_O03 - (Communication structure)
    RECORD_NO LIKE SY-TABIX
    RECORD_ALL LIKE SY-TABIX
    SOURCE_SYSTEM LIKE RSUPDSIMULH-LOGSYS
    CHANGING RESULT LIKE /BIC/AZOARFSCM00-/BIC/ZDOCCATG
    RETURNCODE LIKE SY-SUBRC "Do not use!
    ABORT LIKE SY-SUBRC. "set ABORT <> 0 to cancel update
    $$ begin of routine - insert your code only below this line -
    fill the internal table "MONITOR", to make monitor entries
    result value of the routine                 
    <----- Paste the code below as shown here --->
    if comm_structure-/bic/0deb_cre_lc > 0.
      if comm_structure-/bic/0ac_doc_typ == 'DZ'.
       result = 'DISPUTES'.
      else
       result = 'INVOICES'.
      endIf.
    elseif comm_structure-/bic/0deb_cre_lc < 0.
      result = 'CREDITS'.
    end if.
    <----
    >
    if abort is not equal zero, the update process will be canceled
    ABORT = 0.
    $$ end of routine - insert your code only before this line -
    ENDFORM.
    Regards:
    Jitendra
    Edited by: Jitendra Gupta on Oct 15, 2009 3:05 PM

Maybe you are looking for

  • SLA Alerts in DB polling proxy

    Hi I have created a DBAdapter to poll a table in the database for any inserts/updates. Have adopted the Logical Delete processing. Now I need to configure an SLA alert for the proxy service based on this DBAdapter. The alert needs to be raised when n

  • Issue with function module HR_INFOTYPE_OPERATION in badi HRPAD00INFTY

    Hello All, I have a business scenario wherein, when user saves data for infotype 0002 from tcode PA30, i have create a new record for infotype 0105 by copying existing record and just changing the date. For the same I am using funtion module HR_INFOT

  • Error when executing SOLMAN_SETUP

    Hi All, I am getting the following error while am executing the t code SOLMAN_SETUP. the system is newly installed and is on the SP level20. Below the error details. Error when processing your request What has happened? The URL http://usilkrx112.lex.

  • Exchange 2007 SCR and MSExchangeMailboxAssistants Service

    Morning All, I did a SCR failover and failback yesterday to test Functionality on my exchange servers. everything worked as expected, however i am seeing the following error in my current live exchange server. Error is generated every 1 to 3 minutes.

  • XBox, Final Fantasy, CIVREV, and other goodies

    So, my boyfriend and I finally made the transition to a gamer family when we purchased a (new to us) XBox 360. I'll be honest, I've never really been that much of a gamer, but now, my boyfriend are fighting over the XBox (where it used to be the comp