ABAP Report for IDOC data of perticular IDOC basic type

Hi,
I have requirment to create report to display the IDOC Data of the perticular IDOC type.
However I believe in IDOC the data comes in raw format.
Is there any standard TCODE wherein we can have IDOC data of perticular IDOC type.
or Could you please let me know how is it possible to retrieve data from IDOC using SAP ABAP .
Thanks
Vinay
Moderator message: (almost) duplicate post locked.
Edited by: Thomas Zloch on May 2, 2011 12:39 PM

Hi,
Please find a sample code
* Build Control records
CONTROL_RECORD_OUT-MESTYP = MESTYP.
CONTROL_RECORD_OUT-IDOCTP =  IDOC_TYPE.
CONTROL_RECORD_OUT-RCVPRT = 'LS'.   " << Fill the receiver port type US/LS
CONTROL_RECORD_OUT-RCVPRN = LOGSYS.
* Build Data records
*--- EDIDD40 data Here if you have multiple items then make a loop
loop at i_itab.                   " i_itab contains the details about EDIDD40 fields
  IT_EDIDD-SEGNAM = SEGMENT.   " Will be EDIDD40
  IT_EDIDD-SDATA = i_itab.
*--- Append the data
APPEND IT_EDIDD.
endloop.
aRs

Similar Messages

  • GRR2- 4FM-RepPaint(put ABAP code for convert data in field)

    Hi,
    If somebody know how possible add ABAP code for convert data in some column-field of report (by RepWriter,UserExit,BADI)?
    Thanks a lot.

    Elaborate your question. Not clear ??

  • Abap report for calling abap proxy?

    why do we need  to write abap report for calling abap proxy? i mean what's the use of abap report and what are the things inside the report ...please give me details about abap report.

    Hi,
    In SPROXY for your outbound interface you generate the proxy class.
    The ABAP report is used to fill the data from the ABAP tables and then trigger the call to XI using this class.
    Look into the code in this blog and check what is done,. The data is filled in the report and then the call is made to XI using an object of the class created in SPROXY using the EXECUTE_ASYNCHRONOUS method.
    /people/ravikumar.allampallam/blog/2005/03/14/abap-proxies-in-xiclient-proxy
    Regards
    Bhavesh

  • I need the Log Report for the Data which i am uploading from SAP R/3.

    Hi All,
    I am BI 7.0 Platform with Support Patch 20.
    I need the Log Report for the Data which i am uploading from SAP R/3.
    I extract the DATA from R/3 into BI 7.0 DSO where I am mapping the GL Accounts with the FS Item.   In the Transformation i have return a routine on the FS Item InfObject . I am checking the Gl code into Z table for the FS Item .
    I capture the FS item from the Z table then update this FS item to Infobject FS item.
    Now i  need to stop the Data upload if i do not find the GL code in the Z table, and generate report for all GL code for which the FS item is not maintained in the Z table.
    Please suggest.
    Regards
    nilesh

    Hi.
    Add a field that you will use to identify if the GL account of the record was found in the Z table or not. Fx, create ZFOUND with length 1 and no text.
    In your routine, when you do the lookup, populate ZFOUND with X when you found a match (sy-subrc = 0) and leave it blank if you don't find a match. Now create a report filtering on ZFOUND = <blank> and output the GL accounts. Those will be the ones not existing in the Z table, but coming in from your transactions.
    Regards
    Jacob

  • AP Invoice Aging Report for past date

    hi guys,
    I am running R12.
    my requirement is to run AP invoice aging report for past dates (same like AP Trial Balance Report), but the seeded invoice aging report has no option to do so.
    would appreciate some help
    thanks in advance
    Ravi

    Hi Senthil,
    I am running R12.
    my requirement is to run AP invoice aging report for past dates (same like AP Trial Balance Report
    if u have any solution to this , please suggest me how to resolve this requierement.
    thanks in advance
    Ravi
    mail:[email protected]

  • Want to schedule WebI report for End date of Prior Month

    Hello Experts,
    We have WebI report created on top of Bex Query, We have key date as prompt for the report. Can we schedule the webi report for key date as last date of prior month, so if current month is February, my key date should be Jan 30 2011. I am not sure if this is possible?
    Thanks,
    Ravi

    You need to apply two FM to get the end day of the month.
    First you need to apply FM MONTHS_PLUS_DETERMINE. This will give you the date after 3 months.
                CALL FUNCTION 'MONTH_PLUS_DETERMINE'
                  EXPORTING
                    MONTHS        = 3   " << for 3 months
                    OLDDATE       = l_start_Date   " << 12/01/2007
                 IMPORTING
                   NEWDATE       = l_3_Date. " << 02/01/2008
    Then call the FM RP_LAST_DAY_OF_MONTHS . this will give you the end date of the month
      CALL FUNCTION 'RP_LAST_DAY_OF_MONTHS'
        EXPORTING
          day_in            = l_3_Date  " << 02/01/2008
        IMPORTING
          last_day_of_month = l_3_Date  " < 02/29/2008
        EXCEPTIONS
          day_in_no_date    = 1
          OTHERS            = 2.
    Call both FMs again to get your another date(after 4 months).
    Regards,
    Naimesh Patel

  • How to take unreconcilled transactions report for a date range ?

    hi all,
    How to take unreconcilled transactions report for a
    data range ?
    we have taken unreconcilled transactons from
    external reconcillation using filter option mentioning
    range of dates,But when we take print out using PLD,
    it showing unreconcilled transactions for all dates.
    But our client requires it as a standard report from SAP ?
    Our client is using SAP B1 2005B PL39.
    Jeyakanthan

    Hi
    Financials -> Financial Reports -> Accounting -> General Ledger.
    In the 'Display' dropdown select, 'Unreconciled' .
    Hope this should help you.

  • Abap report for PO details including the person releasing the PO last.

    Hi gurus,
    I need to create a abap report for the purchase order details. I am finding difficulty in getting the last person who released the PO. Can anyone tell me how can I get the person who released the PO last ??
    From which table I can get this detail ??

    Hey hi ,
    thanks for your reply,
    Actually , I already went through the tables before, but here, there is one scenario listed below which is creating the problem :
    1. There are two person related with the release of PO and either of the two can release the PO ( in other's absense ). Now, how to check who released the PO among the two. Here link with the PO is necessary as the person released this PO might not release the next PO.
    Thats why i feel the link of the PO must be existing based on release code too. As suppose the organization assign another manager to release the PO, it should not affect previous PO's released by the Old manager.
    thanks
    Edited by: kanak bhandari on Feb 6, 2008 1:19 PM

  • Configuring reports for express data(2)

    We are in the process of configuring reports for express data.
    In this regard we have done the following steps:
    1.In the machine A reports 9i developer suite release 2 has been installed on Windows 2000
    Professional Edition with the following utilities - (a) Oracle Reports Builder and runtime
    support,(b) Oracle Express Connection Editor and (c) Oracle SNAPI are installed.
    2.Express Server 6.3.4 has been installed on Windows 2000 Professional Edition in machine
    B with Remote Operation SNAPI 6.3.4.0.
    3.Oracle 8i has been installed on Solaris and the Express Support Administrator and User
    Accounts have created and the xrb_admin.sql and xrb_user.sql have been run through the
    respective accounts.
    Queries
    1.We have still not run the Express Oracle8 External Procedures on the Oracle8
    gateway. Should we run this in order to get Express Data in Reports9i incase of the General
    Maintenance where the Express data fetches the data from the Oracle8 gateway on the fly
    ?We are also not able find the Express Oracle8 External Procedures downloads after
    extensive search on OTN.Please guide as to where can we find the downloads.
    2.What are the configurations settings that have to be done in the tnsnames.ora,sqlnet.ora
    and listener.ora ?

    Ramakrishnan,
    Express connectivity for Oracle9i Reports is installed by default as one of your pluggable data sources and it communicated directly with Express, which is a large change over Reports 6i in which you needed an Oracle8i database to talk to the Express database.
    For Oracle9i Reports, you need to have:
    1 - Express installed 6.3 or later.
    2 - Oracle9i Reports
    3 - The connection dialog (which is documented in the release notes if you need to set this up)
    That's it. When you click on the Express PDS to access the data, it will read the connection dialog information and you need to supply the logon information to the Express database.
    You should also look at the help topic for Express and you will find all the necessary documentation on configuring Reports and how to connect.
    Regards,
    The Oracle Reports Team jls

  • Configuring reports for express data

    I am trying to configure reports for express data and in this regard I have done the following :
    1.Machine A having reports 9i Developer suite Release 2 and Pluggable Express Connection Editor
    installed on Windows 2000 professional.
    2.Machine B having which Express Server 6.3.4 installed on Windows 2000 professional.
    3.In Machine A created user OESDBA with Administrator privilige.
    In the reports I am able to connect to the Express Server and attach the database and choose the
    measure.Once all the other steps are done I am able to print the data on the reports.
    But if I use a parameter form in which I give the HOST,USER and PASSWORD then substitute the
    same in the express_server parameter value in the AFTER PARAMETER FORM trigger block then
    the report gives an error saying that
    Express query contains incorrect,missing or damaged information.
    How to solve this error ?
    Can any one help me out.

    Ramakrishnan,
    Express connectivity for Oracle9i Reports is installed by default as one of your pluggable data sources and it communicated directly with Express, which is a large change over Reports 6i in which you needed an Oracle8i database to talk to the Express database.
    For Oracle9i Reports, you need to have:
    1 - Express installed 6.3 or later.
    2 - Oracle9i Reports
    3 - The connection dialog (which is documented in the release notes if you need to set this up)
    That's it. When you click on the Express PDS to access the data, it will read the connection dialog information and you need to supply the logon information to the Express database.
    You should also look at the help topic for Express and you will find all the necessary documentation on configuring Reports and how to connect.
    Regards,
    The Oracle Reports Team jls

  • RDS for SAP data migration through IDOC's

    Dear Experts
      Just now we have installed BODS 4.1 and RDS also installed now. I am in the process of exploring the RDS. I found all the migration objects is available in the form of IDOC's. Now my questions are
    How to work on custom IDOC's. Do i need to extensively code on R/3 side to upload the custom fields. Like user exit or BADI for custom fileds
    If yes then i would say implementation time through RDS will remain more or less same time.
    Through BODS or by RDS migration objects is there any way without coding on ABAP R/3 side, Can we achieve migrating custom fields
      Please let me how to achieve above requirements by RDS
    Thanks
    Vijay Mukunthan

    Hi Vijay,
    You are right, the standard content of the Rapid Data Migration RDS packages brings the content with the standard IDoc interface for SAP standard only. So custom objects are not pre-built with the package. However, we incorporated the foundation to include custom coding as easy as possible:
    1) IDoc
    We are using the standard interface technology IDoc. IDocs do have an enhancement concept which is described in the online help. There are three main cases and all of them are supported, however two need additional coding:
    Z-fields: Additional fields in existing tables lead to IDoc segment extensions
    With the IDoc segment versioning concept this is easy to realize without any ABAP coding
    Z-tables: Additional IDoc segments will be necessary and lead to a new IDoc version
    With the IDoc versioning concept you can easily add Z-segments with leveraging provided user exits
    Custom business objects:
    You can even create a complete own IDoc message type in Z-namespace for own stuff, leveraging the given ALE layer of the IDoc middleware
    2) Enhancement guide
    With the RDS package we offer an enhancement guide which helps you to modify the jobs and data flows in the SAP Data Services content according to the changes in the target IDoc structure to reflect additional fields and tables. We built it as a step-by-step guide following for a sample IDoc type but will work similarly for any IDoc.
    Best regards,
    Frank Densborn.

  • Create ABAP Report  for  Infoprovider

    Could anyone tell me Function module to fetch Infoprovider(s) for creating ABAP report on.
    The report should provide:
    Input:
    - Infoprovider(s)
    - Date-range: default: last 6 months
    Output:
    - data which is shown in the requests tab as described before, preceeded with the name of the infoprovider and having the possibility to download to Excel.
    Thanks

    Hi,
    you can easily use it as a template to create your own program. The program just shows what to do and how you need to populate the tables in order to pass selection parameters to the fm to get the required data back.
    Here a little demo I created to do it a bit flexible from different cubes:
    DATA: ref_data_tab TYPE REF TO data,
          ref_data_line TYPE REF TO data,
          it_sfc TYPE rsdri_th_sfc,
          l_sfc TYPE rsdri_s_sfc,
          it_sfc2 TYPE rsdd_th_sfc,
          l_sfc2 TYPE rrsfc01,
          it_sfk TYPE rsdri_th_sfk,
          l_sfk TYPE rsdri_s_sfk,
          it_sfk2 TYPE rsdd_th_sfk,
          l_sfk2 TYPE rrsfk01,
          l_first_call TYPE rs_bool,
          l_end_of_data TYPE rs_bool,
          l_tabname(30) TYPE c,
          l_cube(30) TYPE c,
          it_cobpro TYPE rsd_t_cob_pro,
          l_cobpro TYPE rsd_s_cob_pro.
    FIELD-SYMBOLS: <e_t_data> TYPE table,
                   <l_data> TYPE ANY,
                   <fs_field>.
    PARAMETERS: pa_cube TYPE rsinfoprov OBLIGATORY DEFAULT '/NBAG/CML_C05',
                pa_debug AS CHECKBOX.
    IF pa_cube(1) = '0'.
      CONCATENATE '/BI0/V' pa_cube '2' INTO l_tabname.
    ELSE.
      CONCATENATE '/BIC/V' pa_cube '2' INTO l_tabname.
    ENDIF.
    CREATE DATA ref_data_tab TYPE TABLE OF (l_tabname).
    CREATE DATA ref_data_line TYPE (l_tabname).
    ASSIGN ref_data_tab->* TO <e_t_data>.
    ASSIGN ref_data_line->* TO <l_data>.
    IF pa_debug = 'X'.
      BREAK-POINT.
    ENDIF.
    CALL FUNCTION 'RSD_COB_PRO_ALL_GET'
      EXPORTING
        i_infocube                      = pa_cube
      I_WITH_ATR_NAV                  = RS_C_FALSE
      I_WITH_META_IOBJ                = RS_C_FALSE
      I_OBJVERS                       = RS_C_OBJVERS-ACTIVE
      I_BYPASS_BUFFER                 = RS_C_FALSE
    IMPORTING
       e_t_cob_pro                     = it_cobpro
      E_T_IOBJ_CMP                    =
      E_T_ATR                         =
      E_TLOGO                         =
    EXCEPTIONS
       infocube_not_found              = 1
       error_reading_infocatalog       = 2
       illegal_input                   = 3
       OTHERS                          = 4.
    IF sy-subrc <> 0.
      WRITE: / sy-subrc, sy-msgno, sy-msgid, sy-msgv1, sy-msgv2, sy-msgv3.
    ENDIF.
    CLEAR: it_sfk[], it_sfc[].
    LOOP AT it_cobpro INTO l_cobpro.
      IF l_cobpro-iobjtp = 'KYF'.
        IF l_cobpro-ncumfl IS INITIAL.
          l_sfk-kyfnm = l_cobpro-iobjnm.
          l_sfk-kyfalias = l_cobpro-iobjnm.
          l_sfk-aggr = l_cobpro-aggrgen.
          INSERT l_sfk INTO TABLE it_sfk.
          MOVE-CORRESPONDING l_cobpro TO l_sfk2.
          INSERT l_sfk2 INTO TABLE it_sfk2.
        ENDIF.
      ELSE.
        IF l_cobpro-dimension NP '*P'.
          l_sfc-chanm = l_cobpro-iobjnm.
          l_sfc-chaalias = l_cobpro-iobjnm.
          l_sfc-orderby = 0.
          INSERT l_sfc INTO TABLE it_sfc.
          MOVE-CORRESPONDING l_cobpro TO l_sfc2.
          INSERT l_sfc2 INTO TABLE it_sfc2.
        ENDIF.
      ENDIF.
    ENDLOOP.
    CLEAR l_end_of_data.
    l_first_call = 'X'.
    WHILE l_end_of_data = space.
      CALL FUNCTION 'RSDRI_INFOPROV_READ'
        EXPORTING
          i_infoprov                   = pa_cube
          i_th_sfc                     = it_sfc
          i_th_sfk                     = it_sfk
      I_T_RANGE                    =
      I_TH_TABLESEL                =
      I_T_RTIME                    =
       i_reference_date             = sy-datum
      I_T_REQUID                   =
      I_SAVE_IN_TABLE              = ' '
      I_TABLENAME                  =
      i_save_in_file               = 'X'
      i_filename           = 'C:\test.csv'
       i_packagesize                = 1000
      I_MAXROWS                    = 0
         i_authority_check            = ' '
      I_CURRENCY_CONVERSION        = RS_C_TRUE
       i_use_db_aggregation         = ' '
       i_use_aggregates             = ' '
       i_rollup_only                = ' '
      I_READ_ODS_DELTA             = RS_C_FALSE
      I_CALLER                     = RSDRS_C_CALLER-RSDRI
      I_DEBUG                      = RS_C_FALSE
       IMPORTING
         e_t_data                     = <e_t_data>
         e_end_of_data                = l_end_of_data
      E_AGGREGATE                  =
      E_SPLIT_OCCURRED             =
        CHANGING
          c_first_call                 = l_first_call
       EXCEPTIONS
         illegal_input                = 1
         illegal_input_sfc            = 2
         illegal_input_sfk            = 3
         illegal_input_range          = 4
         illegal_input_tablesel       = 5
         no_authorization             = 6
         ncum_not_supported           = 7
         illegal_download             = 8
         illegal_tablename            = 9
         trans_no_write_mode          = 10
         inherited_error              = 11
         x_message                    = 12
         OTHERS                       = 13.
      IF sy-subrc <> 0.
        WRITE: / sy-subrc, sy-msgno, sy-msgid, sy-msgv1, sy-msgv2, sy-msgv3.
        EXIT.
      ELSE.
        LOOP AT <e_t_data> INTO <l_data>.
          WRITE: / sy-tabix, ':'.
          LOOP AT it_cobpro INTO l_cobpro.
            IF l_cobpro-ncumfl IS INITIAL.
              ASSIGN COMPONENT l_cobpro-iobjnm OF STRUCTURE <l_data>
                  TO <fs_field>.
              IF sy-subrc = 0.
                WRITE: <fs_field>.
              ENDIF.
            ENDIF.
          ENDLOOP.
        ENDLOOP.
      ENDIF.
      CLEAR: l_first_call, <e_t_data>[].
      IF l_end_of_data <> space.
        EXIT.
      ENDIF.
    ENDWHILE
    Hope this helps a bit
    regards
    Siggi

  • Error while pulling report for particular dates

    hi
    i am trying to fetch report for the first quarter in incident management --> incident analyst i got an error the below error:
    On in-depth analysis i found out that this error occurs in the month Jan and Feb 2014 hence i am not able to pull the complete report of quarter. Kindly help me to resolve this issue.
    Date: 14-04-2014 15:13:11
    Application: System Center Service Manager Console
    Application Version: 7.0.6555.0
    Severity: Error
    Message: An error has occurred during report processing.
    System.Exception: An error has occurred during report processing. ---> System.Exception: Query execution failed for dataset 'Data_Incidents'. ---> System.Exception: For more information about this error navigate to the report server on the local server
    machine, or enable remote errors
       --- End of inner exception stack trace ---
       --- End of inner exception stack trace ---
       at Microsoft.Reporting.WinForms.ServerReport.ServerUrlRequest(Boolean isAbortable, String url, Stream outputStream, String& mimeType, String& fileNameExtension)
       at Microsoft.Reporting.WinForms.ServerReport.InternalRender(Boolean isAbortable, String format, String deviceInfo, NameValueCollection urlAccessParameters, Stream reportStream, String& mimeType, String& fileNameExtension)
       at Microsoft.Reporting.WinForms.ProcessingThread.ProcessThreadMain(Object arg)
    System.Exception: Query execution failed for dataset 'Data_Incidents'. ---> System.Exception: For more information about this error navigate to the report server on the local server machine, or enable remote errors
       --- End of inner exception stack trace ---
    System.Exception: For more information about this error navigate to the report server on the local server machine, or enable remote errors
    Micheal Nishit

    Hi All,
    Any pointers or suggestions for this issue ??
    Is there a setting/option avialable in CMC which could resolve these errors.
    Or, user has to login once to infoview in all circumstances to avoid these errors.
    Thanks,
    Chandra

  • Report for a date range

    Hi,
    My end user requires me to develop a report that will accept the following parameters:
    Customer Code : ABC
    From Period : 01-Jan-2005
    To Period : 31-Dec-2010
    Output must be as follows :
    Customer Jan-05 Feb-05 Mar-05 Apr-05 May-05 ......................................Dec-10 Total Order
    Code
    ABC 10 15 5 20 10 ...................................... 15 X value
    I have told my end user that it is not possible to create an Oracle report that will give data for any period range that the user specifies. First the number of columns for the date range must be fixed like say at a time only data for 12 months will be displayed in the report. Then they can run the report for any year and the parameter has to be
    Customer Code : ABC
    Year :2005
    The output will be :
    Customer Jan-05 Feb-05 Mar-05 Apr-05 May-05 ......................................Dec-05 Total Order
    Code
    ABC 10 15 5 20 10 ...................................... 15 X value
    Am I right or wrong ? Please advise. This is very urgent.

    I don't see why this should not be possible.
    Remember that you can have repeating frames in every direction (ie. right and down) and can combine these.
    What I would do is look for (or create) a type of calender-table where I could select the date values from (ie. JAN 05) qualified by the from- and to-Parameters (aka query1),
    then have a second, dependent query which uses the date from the calender (aka query2).
    Then stack a down repeating frame for query2 into the right repeating frame for query1 and you should be almost there... Use the date from query1 as heading...
    Cheers,
    Jens Rettig

  • Abap report for budget/actual/commitment

    Hi Guru..
    Please help me.
    Im in urgent
    I wanna write an abap program for budget/actual/commitment.
    I try to trace prgram s_alr_87013019, but only one table found.
    Please let me know which table is using for budget/actual/commitment
    report..
    Please guru..

    Hello Mohd,
    The actual,budget and commitment values are stored in the one table COSP.
    The values differentiate with field <b>VRGNG</b> - "CO Business Transaction".
    If the record has in this field text '<b>COIN</b>' it means that values are "actual".
    For example:
    OBJNR     PR00000101
    GJAHR     2005
    KSTAR   101101
    VRGNG     <b>COIN</b>
    TWEAR   USD
    WTG001     100,00
    WTG002  200,00
    It means that the element PR0000101 has the '<b>actual'</b> operations refering
    the cost element 101101, with values: 100,00 USD in january 2005 and
    200,00 USD in february 2005.
    The next row in the table COSP, clould look like this:
    OBJNR     PR00000101
    GJAHR     2005
    KSTAR   101101
    VRGNG     <b>RMBA</b>
    TWEAR   USD
    WTG001     100,00
    WTG002  0,00
    This means that there was a <b>'Purchase requisition'</b> in january 2005
    with decretation on object PR0000101.
    And the next row, could be:
    OBJNR     PR00000101
    GJAHR     2005
    KSTAR   101101
    VRGNG     <b>RMBE</b>
    TWEAR   USD
    WTG001     0,00
    WTG002  150,00
    And that means that in february 2005 there was a <b>'Purchase order'</b>
    with value 150,00 USD decretated on this object.
    I hope, that my explanation is now clear and accurate.
    - Marta

Maybe you are looking for