Download idoc details to a file

Hi,
Is there any way i can downlaod an IDOC details from we05 or any other transaction into a file on my dektop. The file cna be  a excel or notepad etc file
Regards,

Hi,
follow the steps:
Input t-code IDOC
In selection screen, select 'Analyse IDOC field values
Press F8
Input your IDOC number
Check mark on 'Also evaluate empty fields
Click on 'Output in internal form' : this is very much important thing
The execute
You will see all the data
Then go to 'List'>Save/send option from where you can achieve your purpose.
Thanks!

Similar Messages

  • TCODE TO DOWNLOAD IDOC INTO A FLAT FILE

    Hi All,
       Please let me know if there is any tcode to download IDOC into a flat file..
    Regards,
    Kaveri

    try with we60 where you should have links to download the idoc type.
    Please check this:
    1. How to Download a Hierarchy to a Flat File
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/0403a990-0201-0010-38b3-e1fc442848cb
    2. How To Convert an IDoc-XML structure to a flat file and vice versa in XI 3.0 Version 1.10
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/46759682-0401-0010-1791-bd1972bc0b8a
    run the report RSEOUT00 with the idoc number, flat xml file will be generated at the location user/sap/XI/SYS/global/idoc_file
    Please rewrds if found help ful

  • How To download a idoc to a text file

    Hi Gurus,
    Can anyone let me know how to download  idoc to  a text  file (Local).
    Thanks  in advance
    B S B.

    Hi,
    Check the code below...
    Reads an existing Idoc and dispays the contents in a spreadsheet format
    REPORT Z_DISPLAY_IDOC_AND_DATA line-size 275.
    * This tool reads an existing Idoc and dispays the contents in a       *
    * spreadsheet format. The spreadsheet (MS-EXCEL) will be automatically *
    * created if D_EXCEL = 'X'.                                            *
    data: idoc_control like EDIDC,
          NUMBER_OF_DATA_RECORDS like sy-dbcnt,
          NUMBER_OF_STATUS_RECORDS like sy-dbcnt,
          INT_EDIDS like edids occurs 0 with header line,
          INT_EDIDD like edidd occurs 0 with header line.
    TYPE-POOLS :  LEDID.
    data: STRUCT_TYPE TYPE  LEDID_STRUCT_TYPE ,
          IDOC_STRUCT TYPE  LEDID_T_IDOC_STRUCT,
          SEGMENTS TYPE  LEDID_T_SEGMENT,
          SEGMENT_STRUCT TYPE  LEDID_T_SEGMENT_STRUCT,
          excel_tab(2000) occurs 0 with header line.
    parameter: DOCNUM like edidc-docnum obligatory, ""Idoc Number
               sap_rel like SY-SAPRL default SY-SAPRL obligatory,
               pi_ver like EDI_VERREC-VERSION default '3' obligatory,
               d_excel as checkbox default 'X'. ""Download ?
    start-of-selection.
      perform read_idoc.
      perform process_idoc.
      if d_excel = 'X'.
        perform download_to_excel.
      endif.
    end-of-selection.
    FORM read_idoc.
      CALL FUNCTION 'IDOC_READ_COMPLETELY'
           EXPORTING
                DOCUMENT_NUMBER          = docnum
           IMPORTING
                IDOC_CONTROL             = idoc_control
                NUMBER_OF_DATA_RECORDS   = NUMBER_OF_DATA_RECORDS
                NUMBER_OF_STATUS_RECORDS = NUMBER_OF_STATUS_RECORDS
           TABLES
                INT_EDIDS                = INT_EDIDS
                INT_EDIDD                = INT_EDIDD
           EXCEPTIONS
                DOCUMENT_NOT_EXIST       = 1
                DOCUMENT_NUMBER_INVALID  = 2
                OTHERS                   = 3.
      IF SY-SUBRC <> 0.
        MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
                WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
      ENDIF.
    ENDFORM.                    "" read_idoc
    FORM process_idoc.
      perform read_idoc_structure.
      perform display_data_records.
    ENDFORM.                    "" process_idoc
    FORM display_data_records.
      data: PE_seg_HEADER like EDI_SAPI01,
            segname like EDI_IAPI12-SEGMENTTYP,
            prev_segname like EDI_IAPI12-SEGMENTTYP value ' ',
            pt_fields2 like EDI_IAPI12 occurs 0 with header line,
            PT_FVALUES2 like EDI_IAPI14 occurs 0 with header line,
            byte_first type i,
            byte_last type i,
            field_val(50),
            tmp_str(15),
            tmp_str3(15),
            seg_repeats type i value 0,
            tmp_str2(15),
            tab_cr(1) type x value '09',
            tot_ctr type i value 0,
            ctr type i value 0,
            msg(40) type c.
      data: IDOC_STRUCT_wa TYPE  LEDID_IDOC_STRUCT.
      sort int_edidd by segnum.
      describe table int_edidd lines tot_ctr.
      loop at int_edidd.
        move int_edidd-segnam to segname.
        clear msg.
        concatenate 'Reading segment ' segname
                    into msg separated by space.
        if tot_ctr <> 0.
          ctr = ( 100 * sy-tabix ) / tot_ctr.
        endif.
        CALL FUNCTION 'SAPGUI_PROGRESS_INDICATOR'
             EXPORTING
                  PERCENTAGE = ctr
                  TEXT       = msg.
        add 1 to seg_repeats.
        clear tmp_str2.
        if int_edidd-segnam <> prev_segname.
          seg_repeats = 1.
          clear: pe_seg_header, pt_fields2, pt_fvalues2.
          refresh: pt_fields2, pt_fvalues2.
          CALL FUNCTION 'SEGMENT_READ_COMPLETE'
               EXPORTING
                    PI_SEGTYP                 = segname
                    PI_RELEASE                = sap_rel
                    PI_VERSION                = pi_ver
               IMPORTING
                    PE_HEADER                 = pe_seg_header
               TABLES
                    PT_FIELDS                 = pt_fields2
                    PT_FVALUES                = pt_fvalues2
               EXCEPTIONS
                    SEGMENT_UNKNOWN           = 1
                    SEGMENT_STRUCTURE_UNKNOWN = 2
                    OTHERS                    = 3.
          IF SY-SUBRC <> 0.
            MESSAGE ID SY-MSGID TYPE 'I' NUMBER SY-MSGNO
                    WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
          ENDIF.
          prev_segname = int_edidd-segnam.
        endif.
        read table idoc_struct into idoc_struct_wa with key
                               segment_type = int_edidd-segnam.
        if sy-subrc = 0.
          IF IDOC_STRUCT_WA-SYNTAX_ATTRIB-MUSTFL = 'X'.
            TMP_STR = 'Mandatory'.                  ""Mandatory
          ELSE.
            TMP_STR = 'Optional'.                  ""Optional
          ENDIF.
          if IDOC_STRUCT_wa-SEGMENT_TYPE_ATTRIB-QUALIFIER = 'X'.
            tmp_str3 = 'Qualified'.
          else.
            tmp_str3 = 'Non-Qualified'.
          endif.
          shift IDOC_STRUCT_wa-SYNTAX_ATTRIB-OCCMAX
                                     left deleting leading '0'.
          move seg_repeats to tmp_str2.
          condense: IDOC_STRUCT_wa-SYNTAX_ATTRIB-OCCMAX, tmp_str2.
          concatenate tmp_str2 'of'  IDOC_STRUCT_wa-SYNTAX_ATTRIB-OCCMAX
              into tmp_str2 separated by space.
          write :/ IDOC_STRUCT_wa-SEGMENT_TYPE,
               tmp_str,
               TMP_STR3,
               tmp_str2,
               IDOC_STRUCT_wa-SYNTAX_ATTRIB-HLEVEL,
               IDOC_STRUCT_wa-SEGMENT_TYPE_ATTRIB-plast,
               IDOC_STRUCT_wa-SEGMENT_TYPE_ATTRIB-DESCRP.
          if d_excel = 'X'.
            concatenate 'Segment Name' tab_cr
                        'Mand / Opt ' tab_cr
                        'Qual / non-Qual' tab_cr
                        'Seq of Max' tab_cr
                        'Level' tab_cr
                        'Owner' tab_cr
                        'Description'
                        into excel_tab.
            append excel_tab.
            concatenate IDOC_STRUCT_wa-SEGMENT_TYPE tab_cr
                  tmp_str tab_cr
                  TMP_STR3 tab_cr
                  tmp_str2 tab_cr
                  IDOC_STRUCT_wa-SYNTAX_ATTRIB-HLEVEL tab_cr
                  IDOC_STRUCT_wa-SEGMENT_TYPE_ATTRIB-plast tab_cr
                  IDOC_STRUCT_wa-SEGMENT_TYPE_ATTRIB-DESCRP
                  into excel_tab.
            append excel_tab.
            concatenate tab_cr
                        'Field Nma' tab_cr
                        'Type' tab_cr
                        'Length' tab_cr
                        'Byte From' tab_cr
                        'Byte To' tab_cr
                        'Description' tab_cr
                        'Value' tab_cr
                        'Qualifier Meaning'
                        into excel_tab.
            append excel_tab.
          endif.
        endif.
        sort pt_fields2 by field_pos.
        byte_first = 0.
        loop at pt_fields2.
          clear: field_val.
          byte_last = pt_fields2-EXTLEN.
          write int_edidd-sdata+byte_first(byte_last) to
                field_val left-justified.
          shift pt_fields2-EXTLEN left deleting leading '0'.
          shift pt_fields2-byte_first left deleting leading '0'.
          shift pt_fields2-byte_last left deleting leading '0'.
          write:/ '   ', pt_fields2-fieldname,
                  pt_fields2-datatype,
                  pt_fields2-EXTLEN,
                  pt_fields2-byte_first ,
                  pt_fields2-byte_last,
                  pt_fields2-descrp,
                  field_val.
          read table pt_fvalues2 with key fieldname = pt_fields2-fieldname
                        fldvalue_l = field_val.
          add byte_last to byte_first.
          if sy-subrc = 0.
            write : pt_fvalues2-descrp.
          else.
            clear pt_fvalues2-descrp.
          endif.
          if d_excel = 'X'.
            concatenate tab_cr pt_fields2-fieldname tab_cr
                    pt_fields2-datatype tab_cr
                    pt_fields2-EXTLEN tab_cr
                    pt_fields2-byte_first tab_cr
                    pt_fields2-byte_last tab_cr
                    pt_fields2-descrp tab_cr
                    field_val tab_cr
                    pt_fvalues2-descrp
                    into excel_tab.
            append excel_tab.
          endif.
        endloop.
      endloop.
    ENDFORM.                    "" display_data_records
    FORM read_idoc_structure.
      data: idoctype type LEDID_IDOCTYPE.
      if not idoc_control-cimtyp is initial.
        STRUCT_TYPE = 'E'. ""Extended
        idoctype = idoc_control-cimtyp.
      else.
        STRUCT_TYPE = 'B'. ""Basic
        idoctype = idoc_control-idoctp.
      endif.
      CALL FUNCTION 'IDOC_TYPE_COMPLETE_READ'
           EXPORTING
                RELEASE              = sap_rel
                STRUCT_TYPE          = STRUCT_TYPE
                IDOCTYPE             = idoctype
                VERSION              = pi_ver
    *       IMPORTING
    *            IDOC_TYPE            = idoctype
           TABLES
                IDOC_STRUCT          = idoc_struct
                SEGMENTS             = segments
                SEGMENT_STRUCT       = segment_struct
           EXCEPTIONS
                IDOCTYPE_UNKNOWN     = 1
                IDOCSTRUCT_UNKNOWN   = 2
                SEGMENT_DATA_MISSING = 3
                ILLEGAL_STRUCT_TYPE  = 4
                OTHERS               = 5.
      IF SY-SUBRC <> 0.
        MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
                WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
      ENDIF.
    ENDFORM.                    "" read_idoc_structure
    FORM download_to_excel.
      data: name like RLGRAP-FILENAME.
      shift docnum left deleting leading '0'.
      concatenate docnum '-' idoc_control-idoctp '.xls'
                  into name.
      CALL FUNCTION 'RH_START_EXCEL_WITH_DATA'
       EXPORTING
         DATA_NAME                 = name
         DATA_TYPE                 = 'ASC'
         WAIT                      = ' '
       TABLES
         DATA_TAB                  = excel_tab
       EXCEPTIONS
         NO_BATCH                  = 1
         EXCEL_NOT_INSTALLED       = 2
         WRONG_VERSION             = 3
         INTERNAL_ERROR            = 4
         INVALID_TYPE              = 5
         CANCELLED                 = 6
         DOWNLOAD_ERROR            = 7
         OTHERS                    = 8
      IF SY-SUBRC <> 0.
        MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
                WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
      ENDIF.
    ENDFORM.                    "" download_to_excel
    Cheers
    VJ

  • How can I download the pricing condition details in a file locally

    Hi,
    How can I download pricing condition details in a file locally. Weather any function module avialable or BAPI.
    So that I can down load the pricing condtion details in local server.
    Waiting for quick response.
    Best Regards,
    BDP

    Do you mean for a sales order ?
    You can check fm's
    ISAUTO_SIC_GET_PRICING_INFO , PRICING
    There are other fm's available,please search in SCN.
    to download to a local file, get the data to a itab and download it .

  • It's not just Download Helper v4.8.3, it's also RealPlayer: the download display window shows .mp3 files downloading, but nothing shows in the folder when it is done downloading.

    # Question
    It's not just Download Helper v4.8.3, it's also RealPlayer: the download display window shows .mp3 files downloading, but nothing shows in the folder when it is done downloading.
    Also in the '''Properties''' window of Windows Explorer I '''no longer have the Details tab''', so I can't update my mp3 files with Artist, Album, Genre, etc. But the details tab does show up when I access it thru Windows Explorer.
    I ran the AVG rescue disc an no viruses found. Now on '''FF3.6.15''' '''RealPlayer''' shows when I right click but then '''immediately disappears and an icon appears in the System Tray''', but as soon '''as I hover my mouse over it it disappears'''.
    Does anyone have any ideas or suggestions?
    How can I get this fixed? I have time-sensitive mp3s that I won't have access to anymore if I don't get this resolved in a hurry. (no pressure on you, I'm the one that's stressed about this) Can you help? Thanks so much for responding to this '''inquiry.''''''bold text'''

    See:
    *https://support.mozilla.com/kb/Downloads+window
    *Tools > Options > Privacy > Firefox will: "Use custom settings for history" > "Remember download history"

  • Problem in getting challan details via  text file in form 16

    Hi Experts...
    Here i want to display the challan details through text file.
    Here i have put all the details through text file and uplaoded the data in tcode pc00_m40_f16.
    It is working fine for those employees whose record is only one.If there are more than 1 months details for the employee it is not taking up the values.It is showing up previous values in challan details which were generated by system.The entries which i have put in the text file are not showing up.
    What could be the reason.please advice me.
    Regards,
    V Sai.

    Hi Sai,
    To get the challan details in FORM16, do the following steps
    1) Go to Tcode PC00_M40_F24. In this enter the required information and make sure that Quarter should be selected and the Tick mark for Temse file should be removed.
    2) Select the record and click on Challan Details and enter the required challan details and Save
    3) Now click on Download e-file save the file.
    4) Now execute the tcode PC00_M40_F16. In this enter the required information. Select the file, which was downloaded from Form24 and execute.
    5) The challan details will now appear in Page 3 of Form16.
    Regards,
    Navya

  • IDOC-- PI-- flat xml file

    Hi ,
    we are working on a HR IDOC>PI>flat xml file scenario.
    Idoc name is HRMD_A07.
    we have consolidated some 10 interfaces together.
    Plan is to,
    1)(master interface) get the idoc data into a flat xml file, where flat xml consists of unique fields of all 10 interfaces.
    2)Later, use flat xml as input to 10 interfaces, which are FILE>PI>FILE.
    we are facing problem in master interface. The data is not coming properly in flat xml.
    Can you guys suggest the proper way to do this.
    should we use,
    1)abap mapping, with standard functionality to convert idoc to flat file?
    2)write a udf to get the proper data?
    pls suggest the best approach.
    san.

    Hi San,
    you gave us nearly no details, so it is hard to give you any recommandation.
    PI provides 4 general possibilities for mappings:
    Graphical: Standard and for simple cases the best solution
    XSL: Webstandard, in some cases much less development time compare to graphical (if the message structure changes)
    ABAP: For special cases (access to ABAP tables, operations before parsing)
    Java: For special cases
    Regards,
    Udo

  • Is there any standard ptogram/tcode to download idoc contents with fields.

    Hello All,
    Is there any standard ptogram/tcode to download idoc contents with fields?
    Thanks,
    Devaraj.

    Hi Patil,
    I dont think there is standard program or t-code.
    But u can down load the IDOC with field contents by following way
    Goto t-code WE62- give the basic idoc name- press display button  then it shows all filed contents with description.
    Now select 'SYSTEM' LISTSAVE--LOCAL FILE from menu bar .
    Here select the file type ie spread sheet,html, etc and give the file name and directory where u need to place it.
    <b>Rewards with points if helpful.</b>
    Regards,
    Vijay.

  • How to download connector Quickstart distribution .jar file to connect H2 databse

    Hi,
    I am using CQ5.4 version and i want to connect H2 Database with my cq5 instance. From the tutorial i got to know that i need to download connector Quickstart distribution .jar file.
    But i am not able to figure out where i can get this file.
    I have already  downloaded H2 databse.
    Plz help  me as i need to complete this task as soon as possible
    Thanks in Advance....

    If you are refering to JDBC connector [1] I would recommend not to use it.  The connector has been in beta mode and we are in the process of correcting/removing the page for the JDBC connector.   Instead  use the respective JDBC driver and convert it into an OSGI bundle which can then be referenced in your custom JDBC client code to perform all DB activities. More details refer [2].
    [1]   http://dev.day.com/docs/en/crx/connectors/jdbc/current.html
    [2]   http://dev.day.com/content/kb/home/cq5/Development/HowToConfigureSlingDatasource.html

  • Downloading the data to XML file (Event driven )

    Hi ,
    Whenever there is any change or updation in HR master data i need to download the data to XML file. I have written a program to download the data to XML file but i need to trigger this program only when there is a change in HR master data.
    Could somebody tell me how to go about this. Reward points are assured.
    Best Regards
    Bhagat.

    Hi Bhagat,
    isn't it possible to use change pointers for this?
    Then in partner profile use an XML file port and it should be done!
    Probably this blog could help you:
    <a href="/people/stefan.grube/blog/2006/09/18/collecting-idocs-without-using-bpm">Collecting IDocs without using BPM</a>, have a look at the part where it explains how to write Idoc as XML.
    Hope it helps,
    Kind Regards,
    Sergio

  • ME33L Scheduling agreement, how to export details to local file?

    Dear All,
    At presnet, when I use ME33L view agreement, and how to expor some agreement's details to local file? like xls.(Material, text, Qty,price and so on)
    Thanks a lot.

    Hi Alex,
    You could use one of the reports to display document details (for example transaction ME3N, ME3M, etc). From here you can easily download the data via:
    -> System -> List -> Save -> Local File
    Regards,
    Purnima.

  • Detailed Navigation PAR file?

    Hi Guys,
    I have requirement to disable the Right click in Detailed Navigation.
    what is the PAR file name and how to do it?
    Thanks
    Srikanth

    Hi Srikanth,
    The Detailed Navigation Par file can be downloaded from Support in portal and the same will be stored as .bak file.Remove th .bak from the file and import into nwds using nwds import option.
    or you can make the file with .zip extension after that you extract into a folder there you can see all jsp files and corresponding jar files also.
    You can edit the .jsp for achiving the functionality which you are expecting.
    These changes don't make on the default file.Save the file with a different name and make the changes.
    you can refer the following links
    https://forums.sdn.sap.com/click.jspa?searchID=13994108&messageID=763398
    https://forums.sdn.sap.com/click.jspa?searchID=13994108&messageID=3729688
    https://forums.sdn.sap.com/click.jspa?searchID=13994108&messageID=5771771
    https://forums.sdn.sap.com/click.jspa?searchID=13994108&messageID=3647160
    https://forums.sdn.sap.com/click.jspa?searchID=13994108&messageID=76117
    https://forums.sdn.sap.com/click.jspa?searchID=13994108&messageID=340549
    Hope this helps you...
    Regards,
    Rudradev

  • Download IDOC with Trailing spacs

    I have a requirement like when I download an IDOC data into a text file, I need the dataline and the trailing spaces. This is required in EDI where it interprets the SDATA as 1000 charcter string and actual case we have actula data less than 1000 character in sap. So we need to append the remaining spaces to each data record which in turn fills the segment pad field in EDI map tool and read the next line correcly
    Any Idea pls share

    HI ,
    My requiremrnt is i want to download IDOC to local PC...but if i use /nzdown transaction i am not getting EDI_DC40 header in the downloaded file...
    Regards
    Venkatesh

  • How to download dunning letter to PDF file in background?

    Hi experts:
    Now my user have a request to download dunning letter to PDF file.
    What I want to know is if there is any way to config to solve this problem or I must develop a program to download?

    hello
    check standard program RSTXPDFT4
    or use function module
    CONVERT_OTFSPOOLJOB_2_PDF
    Thanks
    Anirudh

  • How do I download and print a pdf file in osx mountain lion

    How do I download and print a pdf file?

    control click on your PDF to download option
    Open it on your desktop Command-P is the short cut for print option.

Maybe you are looking for

  • How to show no. of actual working days in Payslip in case of +ve time mgt

    Dear Experts, We have a requirement of showing no. of actual working days in payslip, which should be Calendar Days-(Paid+Unpaid absence). I created an w/t 1WRD for actual working days. Our paid absence w/t is 2006 and unpaid absence is 2005 copied f

  • HP Laserjet Printer Question / OS 10.8

    Has anyone found a way to use an HP Laserjet 4050TN printer with OS 10.8? Connected by Ethernet to Airport Express. Using latest HP printer driver v.12.2 for OSX, no utility support. It was working fine in OS 10.5.8.

  • Rowid Problem in Forms 9i.

    Hi, I have uploaded some data through excel marcro to 10G database. When I am querying the data in my forms application based on Default_Where as if name_in('parameter.prm_rowid') is not null then           set_block_property( 'BLK_GL_DET', DEFAULT_W

  • Help: I can't control brightness/volume with F keys anymore.

    I'm using a Windows XP pro OS on my Macbook. Up until recently I was able to control the brightness and volume using the F1-F5 keys. Now all of a sudden, those buttons do completely different things. F1 now opens some help window. F2 renames files an

  • Top and bottom margins to be inside the frame and form should less cluster

    Hi All, In my application we have created nearly 10 regions and for each region i have created sub regions with No templates. Here are the deatils below. I need to display two regions side by side with borders, so what i have done is 1. Created a reg