Function Module required to convert the date coming from external system

Hi Friends,
   I need a Function Module that would convert the incoming date from external sytem in format YYYYMMDD to the SAP system in DDMMYYYY. The External system data type for the date is Numberic. Please suggest any FM if you know.I found out many in SAP but didn't find for this requirement

Wait a minute.  I am definetely missing something here.  You want to convert from an external format YYYYMMDD to SAP's internal format?  SAP's internal format is YYYYMMDD.
All you should have to do is move you external date directly to your internal date.
data: date1(8) type c value '20051225'. "Format YYYYMMDD
data: date2 type sy-datum. "Format (YYYYMMDD)
write: / date2.
When you write out date2 it will be in whatever format your user profile has. 
If you want to force the date format independent of your user profile settings during the write statement:
write: / date2 DDMMYY.
Message was edited by: Thomas Jung

Similar Messages

  • How to convert the date time from MM-DD-YYYThh:mm:ss to YYYY-MM-DDThh:mm:ss format

    Hi All,
    I have a requirement in my project like to convert the date time from one format to another.my situation is like to convert the date time from MM-DD-YYYThh:mm:ss to YYYY-MM-DDThh:mm:ss format. I am using the soa suite 11.1.1.6.
    Can any one suggest me how to convert in the BPEL transformation.
    Thanks,
    Sanju.

    Hi Sanju,
    Store the date to be converted into a variable viz. dateVar. Now, process an expression in assign as: xp20:format-dateTime($dateVar,'[Y0001]-[M01]-[D01] [h]:[m01]:[s01]').
    Regards

  • How can i use an ao card (pci 6723) to output data and to trigger an ai o acquire the data coming from the ao card?card (pci 6254) t

    Hello
    I am trying to perform AO (pci 6723) and to trigger my AO card (pci
    6254) to read the data coming from the AO card. I am using LV7,1,
    win2000.
    Is an RTSI cable necessary or I can connect the trigger signals externally ?
    I am using the LV example " multi function - synch ai-ao.vi" but i can't for some reason configure the trigger lines.
    thank you in advance for your time.
    Yiannis

    Hello Yiannis,
    If I understand you correctly, you want to synchronize your analog input and analog output that are started by a trigger on the analog input board. If you don't want to use the RTSI lines, your best bet is to export the AI Sample Clock and then read it in to the AO board. There is an example on ni.com called DAQmx - Synchronized AIAO Shared Clock. It appears to be having techincal issues so I have attached the example below. To export ai/sampleclock, use DAQmx Export Signal.vi after Get Terminal Name with Device Prefix.vi. Export Sample Clock to PFI3 (There are only connections between the sample clock and PCI3/4/8/9). Connect PFI3 on your AI board to PFI0 on your AO board (with a wire). Then change the source for the AO Timing.vi to Devx/PFI0. If you want to do triggering, stick the DAQmx Trigger.vi between the Timing property node and the DAQmx Start.vi on the AI task. I have shown how to do this in the modified version below. Please take a look at it and let me know if you have any questions. If you still get an error please take a screenshot of it and post to the forum. Have a great day!
    Sincerely,
    Marni S.
    Attachments:
    Synchronized_AIAO_Shared_Clock[Modified].vi ‏140 KB

  • How to store the data coming from network analyser into a text or excel file

    Hii everyone
    I'm using Agilent 8719ET network analyser and wish to store the data coming from netowrk analyser into a text file/ excel file.
    Presently I'm able to get the data on Labview graph using GPIB . Can anyone suggest how to go ahead after collect data sub vi. How can the data be stored into a file apart from showing on the graph?
    Attached is the vi for kind consideration...
    Looking for help
    Regards
    Rohit
    Attachments:
    Agilent 87XX Series Exceed Max Meas.vi ‏43 KB

    First let me say that your code really looks pretty good. The data handling could be made more efficient by calculating the number of datapoints that are going to be in the completed dataset and preallocating the entire array -- but depending upon your answer to my questions, the logic in the lower shift register may be going away - so we won't worry about that right now.
    The thing I need to know before addressing the data storage question is: Each time you call "Collect and Display Data.vi", how many element are in the array? Are you reading single data points, or a group of data? (BTW: if the answer to that question is obvious based on the way the other VIs are setup, I don't have the drivers so I can't tell what the setup values are.) Second, how fast does the loop iterate? Are we talking msec per loop?, seconds? fortnights?
    The issues here are two-fold: how much data? and how fast is it coming? The answer to these will tell you how to save the data.
    Mike...
    Certified Professional Instructor
    Certified LabVIEW Architect
    LabVIEW Champion
    "... after all, He's not a tame lion..."
    Be thinking ahead and mark your dance card for NI Week 2015 now: TS 6139 - Object Oriented First Steps

  • Function module to find out the changed values from tables

    What is the standard function module to find out the changed values (the old & new values) from tables in SAP ?

    Hi Harish,
    Please elaborate your requirement...
    Please have a look on CDHDR AND CDPOS tables... it contains changed data... but all chages are not being tracked using it..
    Try Below FMs as well..
    For Header Level...
    CALL FUNCTION 'CHANGEDOCUMENT_READ_HEADERS'
        EXPORTING
          date_of_change    = cdhdr-udate
          objectclass       = cdhdr-objectclas
          objectid          = cdhdr-objectid
          time_of_change    = cdhdr-utime
          username          = cdhdr-username
        TABLES
          i_cdhdr           = icdhdr
        EXCEPTIONS
          no_position_found = 1
          OTHERS            = 2.
    For Item Level
    CALL FUNCTION 'CHANGEDOCUMENT_READ_POSITIONS'
          EXPORTING
            changenumber      = icdhdr-changenr
          IMPORTING
            header            = cdhdr
          TABLES
            editpos           = icdshw
          EXCEPTIONS
            no_position_found = 1
            OTHERS            = 2.
    Hope it will solve your problem..
    Thanks & Regards
    ilesh 24x7
    ilesh Nandaniya

  • Oracle property manager data import from external system to oracle..

    Hi All,
    currently im working on Oracle property manager module..
    i have a requirement like upload and update the properties from external  system to oracle applications.
    how we can import Data from others systems to oracle,, is any API's or Open interfaces available  for this requirement.
    Please suggest me..
    Thanks all.

    Hi,
    You will  have to study the business needs and populate according data, You may also raise an SR with respect to this and get the support from Oracle if you don't have any experienced superiors on this subject/module to ask from.
    Please see if the following links help you.
    Oracle Property Manager Implementation Guide
    http://docs.oracle.com/cd/A85964_01/acrobat/pntrm.pdf
    Thanks &
    Best Regards,

  • Save_text Function module is not update the data in the notification, Help!

    Here is the code snippet, does anybody know why? Thanks!
    form update_root_causes
       tables p_it_root_causes type zqmtxt_t
       using notif_no.
      data:
          ls_header type thead,
          lit_lines type standard table of tline,
          lwa_line like line of lit_lines,
          lv_index type i value 0.
      field-symbols:
          <fs> like line of p_it_root_causes.
    fill the header
      ls_header-tdobject = 'QMEL'.
      ls_header-tdname = notif_no.
      ls_header-tdid = 'LTXT'.
      ls_header-tdspras = sy-langu.
    fill the lines table
    fill from line #2 ...
      lv_index = 0.
      loop at p_it_root_causes assigning <fs>.
        if lv_index gt 0.
          lwa_line-tdformat = '*'.
          lwa_line-tdline = <fs>-qmtxt.
          append lwa_line to lit_lines.
        endif.
        lv_index = lv_index + 1.
      endloop.
    update the save_text
      call function 'SAVE_TEXT'
        exporting
          header          = ls_header
          insert          = 'x'
        tables
          lines           = lit_lines.
      call function 'COMMIT_TEXT'
       exporting
         object                = ls_header-tdobject
         name                  = ls_header-tdname
         id                    = ls_header-tdid
         language              = ls_header-tdspras.
    endform.                    " UPDATE_ROOT_CAUSES

    Hi Anthony,
    Two things you can check:
    1. Ensure the notification number you are passing is valid, i.e. it has the requisite number of leading 0s (apply CONVERSION_EXIT_ALPHA_INPUT to ensure to the field notif_no before passing it to ls_header)
    2. In the function module to SAVE_TEXT - INSERT should be 'X' not 'x'
    Please check.
    Adi

  • Functional module required to fetch ROUTE data

    Hi ,
    Is there any functional module which fetches Route data , based on Partner number  ( example 4000391) and Partner Role ( example WE ).

    Hello,
    Can you pls let me know what is route data?
    is it routing data?
    raghav

  • Remote function module to wait untill the response came from webmethods

    hi all.
    here i have got a situation that the remote function module created in SAP-R/3 to wait untill the response came from webmethods :
    i have created the remote function module by assigning one structure in tables(tab) and 3 parameters in changing tab just to collect the messages return from webmethods
    so this rfc will be called by webmethods and pick the structure data and then it wll return 3 variables back to rfc.
    here the rfc need to wait untill the response came from webmethods.
    so can any body suggest me on what source code do i need to write in RFC

    Hi Naina,
    Normally RFC are synchronous, they do have return parameter as export parameter.
    If return parameter is missing then , you can create Wrapper RFC.
    Wrapper RFC:
    It is nothing but you just  create BAPI in SE37 transaction with Return parameter as export parameter and make it remote enabled by clicking on Radio button.
    Under source code, CALL BAPI which XI has to call.
    Thats it!
    I hope this helps.
    Let me know if any help required.

  • How to update a Z-table in ECC for the data coming from CRM

    Hi Experts,
    I need to store the industry code and description from customer master from CRM into a Z-table in ECC.I have checked the BDOC segments is already there in CRM.This Z-table has to be updated each time when the user save the customer master.This Z-table will be non editable in ECC.
    Thanks in advance.
    Regards,
    Sumit

    Hello,
    Do you synchronize CRM business partner with ECC business partner?
    Because in standard industry code & description are replicated between both objects... so I don't really understand what you try to do.
    Anyway, if you would like to save some information in a Z table each time a business partner gets replicated into ECC, you can register a function module in table COM_BUPA_CALL_FU on ECC to do the job.
    Kind regards,
    Nicolas Busson.

  • How to store the data coming from visa into file

    Hi ,
    I want to store the data into text file,which is coming from visa-read.
    I tried visa read to file ,but it's not working.
     Am new to labview plz help me out.
    Thanks in advance. 

    CSFGF wrote:
    Hi ,
    I want to store the data into text file,which is coming from visa-read.
    I tried visa read to file ,but it's not working.
     Am new to labview plz help me out.
    Thanks in advance. 
     Share the code you have so far with us so that we can check what's going wrong.

  • Where is the data coming from in query

    Hi,
    When we run a query are we getting the data from source system?
    Or the cube in Bw?
    CAn somebody clarify this for me?
    And if i have a query which invloves A hierarchy,is the query execution time going to be more?
    Or because the hierarchy is master data it does not effect the query execution time?
    Thanks.
    Haarika.

    The OLAP cache is a performance aid.  A query will look in the OLAP cache to see if the data has already been retrieved from the database already, and if it has been, and all other criteria for using the cache are met, the query will get the data from the cache rather than having to read the database.  Deleting the data in the cube will invalidate the cache for that query, meaning the query must go to the cube, and surprise, surprise, find no data. Any time the cube gets changed, the cache will be invalidated.

  • Understanding the data transfer from source system to PSA

    hi experts,
    i an new to BI. i have created a transactional data source for VBAK table and replicated that to BI. Created transformations and info package for uploading the data into PSA. i just want to know the sequence of steps that the system executes when we run the infopackage. i know that it makes a rfc call to source and brings the data back to BI. i want to where that RFC call happens and what is the RFC FM name etc.,. I tried to debug the process using /h, but as you know, it is very difficult to debug the whole standard code. it is very complex. i got lost some where in the middle. if anybody has any idea / or done any research on this ,please share your findings.
    thanks

    Hi,
    Once you click on Start buton in Infopackage,
    1. BW system wil send on erequest to ECC along with DataSource details.
    2. Based on BW request ECC will respond and it will send message OK and starts extraction.
    3. Based on InfoPackage selection the Data will executes in ECC and picks the data in Packets.
    4. And ECC will send the data in teh form of Datapackets to BW (Idocs)
    5. Once the selection creatiro is over the Job will finish.
    6. You can see the data in BW
    Thanks
    Reddy

  • Master Data issue from external system to BW

    Hi,
    BW Version: BI 7.0
    Source System : Oracle D/B
    The Data will be processed by some external application and the processes Data will be stored in tables in Oracle D/B.I am extracting Data from Oracle Tables to BW.
    The issue i had is in the external application for example if we created a new Location ID,The new location ID won't be avaliable in Oracle untill i use it (assing it to any employee)
    Once i assign it to employee then the Location ID and Description will be avaliable transaction tables.
    Then in this cas how can i load master data to location ID in BW.
    or
    Thanks

    Hi,
    Simply create a Location ID InfoObject that will work as Master Data. Then create a datasource for the extraction of the Location ID Master Data (at least for the attributes, and probably for the texts as well).
    You can then schedule an update of this data everynight via process chains.
    All this will update the desired information independently from the transaction data.
    Hope it helps,

  • Problem in data coming to PI system from SAP?

    Hello All,
    I facing problem with the data coming from SAP system to PI system.
    in VT02n give the shipment number and after that create some thing and trigger an IDOC.
    when the data come to PI system, i checked in moni i saw that  data getting mixed.
    means for example:
    IDOC data in we19:
    data1 --- abcdef
    data2----12345.00
    When i check idoc data in PI moni:
    <data1> abcdef   1<data1>
    <data2>2345.00<data2>
    where and how the data in second tag coming into first tag. where this can happen.
    any one faced this kind of problem, please let me know.
    Thanks and Regards,
    Chinna

    problem solved, i have not imported latest meta data into PI in idx2.
    now i have done it, now its working fine.

Maybe you are looking for