Extracts in ABAP

Hi
I executed the following code.
NODES: spfli, sflight.
FIELD-GROUPS: header, flight_info, flight_date.
INSERT: spfli-carrid spfli-connid sflight-fldate
        INTO header,
        spfli-cityfrom spfli-cityto
        INTO flight_info.
START-OF-SELECTION.
GET spfli.
  EXTRACT flight_info.
GET sflight.
  EXTRACT flight_date.
Now, my question is where is the data stored internally. The size of the Internal Table is restricted to size of the App Server. Hence we go for Extracts to process Large Data. How is the Data stored and Managed internally in Extracts.

Hi,
Once you have declared the possible record types as field groups and defined their structure, you can fill the extract dataset using the following statements:
EXTRACT <fg>.
When the first EXTRACT statement occurs in a program, the system creates the extract dataset and adds the first extract record to it. In each subsequent EXTRACT statement, the new extract record is added to the dataset.
Each extract record contains exactly those fields that are contained in the field group <fg>, plus the fields of the field group HEADER (if one exists). The fields from HEADER occur as a sort key at the beginning of the record. If you do not explicitly specify a field group <fg>, the
EXTRACT
statement is a shortened form of the statement
EXTRACT HEADER.
When you extract the data, the record is filled with the current values of the corresponding fields.
As soon as the system has processed the first EXTRACT statement for a field group <fg>, the structure of the corresponding extract record in the extract dataset is fixed. You can no longer insert new fields into the field groups <fg> and HEADER. If you try to modify one of the field groups afterwards and use it in another EXTRACT statement, a runtime error occurs.
By processing EXTRACT statements several times using different field groups, you fill the extract dataset with records of different length and structure. Since you can modify field groups dynamically up to their first usage in an EXTRACT statement, extract datasets provide the advantage that you need not determine the structure at the beginning of the program.
Check this link,
<u>http://help.sap.com/saphelp_erp2004/helpdata/en/9f/db9f0535c111d1829f0000e829fbfe/frameset.htm</u> Hope it helps u.
Thanks&Regards,
Ruthra.R

Similar Messages

  • Extraction using ABAP Query

    Hi Experts,
    I have a data source in which the extraction is using ABAP Query. From RSA2 I got the infoset name. I would like to know if the extraction logic is put inside this infoset. If so how to see the extractor ouput in R/3 and how to debugg the infoset. I can't put break point in infoset. I tried to debugg the extractor through rsa3 and it is not going to the infoset also.
    Please help me as I don't have any experience in BI.
    Thanks,
    Soumya.

    Hi Soumya,
    Infosets are similar to views created on different tables by linking them with one another. So instead of debugging one should look for how this tables have been linked in tcode SQ01.
    Hope that helps.
    Regards
    Mr Kapadia

  • Cost Order Attribute Extraction (0COORDER_ATTR) - ABAP Dump

    I am having trouble with this Cost Order Attribute Extraction (0COORDER_ATTR).    It happened on the R3 side, and it is ABAP dump.
    The message:
    The following syntax error occurred in program "SAPLROMA" in include "LROMAU01" in Line 341: "The data object "L_S_BIW_COOR" does not have a component called "CCKEY".
    This error happened after installing the enchantment pack.  Also, I did look at the OSS notes, and nothing found.
    Any idea on how to fix this problem.

    Hello,
    Have you checked the structure L_S_BIW_COOR if it has the field CCKEY ?
    When it happens the dump? when you do a Check extractor in RSA3 t-code?
    Have you done any enhacement to the datasource? adding extra fields and filling them in the EXIT...
    Regards, Federico

  • Data extraction from ABAP methods

    Hi all,
    I need to extract data to BW from some methods that were developed and that I can check with transaction SE24. I would like to know if I can use standard DataSources - Extractors for this, or the only way is by General Extractors.
    Any clarification/recommendation on this issue will be really appreciated.
    Kind regards,
    MS

    Hi Miriam,
    If the fields that you want to extract are already available in any standard extractors, then please use the standard ones, rather then using any coding for creating new datasources.
    In case if a few fields are missing in any standard extractors, you can append those fields to the extrac. structure and then throguh user exit fill these fields.
    but to extract dat using standard extractors, u canot use your own programs. SAP has its own programs wchih automatically logs the transactional changes and bring them in queue.
    In case if these fields are not available in any of extractors, then you can create your own datasource and use ur coding to extract data

  • Infocube data extraction using ABAP

    Hi,
    We need to extract Charactristics values data from Infocube but LISTCUBE cannot be used because of reasons of flexibilty.
    can any body suggest a way of the data extraction from the Infocube.I tried using the 'RSD_CUBE_DATA_GET' but not to much success also SAP will not support for later releases.
    If anybody has a template program can you plaese send it.
    at email id [email protected]
    Thanks and Regards,
    Arunava

    Hi
    In BW v3.1 have been able to use function module RSDRI_INFOPROV_READ,  (- see demo program RSDRI_INFOPROV_READ_DEMO).
    Hope this is of some help.
    Regards,

  • Extract R/3 Abap Report to BW

    Dear Consultants,
    I need to extract an abap report result from R/3  into the BW.
    Can I call the r/3 abap report in BW?
    How can I do this??
    Best Regards
    Mehmet

    Hi Mehmet,
    You cannot extract the results from a R/3 report into BW directly. You can however go from a BW report to a R/3 transaction using RRI - Report to Report Interface.
    http://help.sap.com/saphelp_nw04/helpdata/en/99/08629bd3e41d418530c6849df303c9/content.htm
    I guess your requirement is to get the same R/3 report in BW. If thats the case then check these posts:
    Re: Extracting an R/3 report to BW
    Bye
    Dinesh

  • ABAP issues in BW

    Hi,
    Is there anyway working with BW that you could avoid doing ABAP? Which module component in BW exactly is ABAP being used extensively? And whether these components can be substituted using something else other than ABAP coding? I think BW reports requires ABAP when using User's exit variables, but can BW reporting be the way it is without using User's exit variables, meaning can reporting be effective without the use of user's exit variable?
    Now that BI 7.0 is requiring ABAP OO for the transformation routines, is it avoidable anyway?
    Thanks,
    RT

    Hi,
    R/3 side:
    ABAP is used extensively on the R/3 side if Business Content is enhanced or custom infoobjects/infocubes are required.
    This is unavoidable as the datasource structures need to be enhanced or created. 
    When enhanced - ABAP code would need to be written in the infosource user-exit to populate the enhanced fields.
    When custom info-cubes are built and if function modules are used for data extraction again ABAP is required.
    BW side:
    On the BW side transfer routines and update routines require ABAP coding.  The extent would depend on the requirements.
    BW Queries:
    The use of user-exit variables are again driven by the complexity of the query requirements.
    I would think that a BW consultant should concentrate on Data modeling and non-programming part of the implementation - the hard-core ABAP work may be passed to an ABAP developer.
    Regards
    Mathew.

  • Extract structure and table

    Hi Experts,
    How to know the fields of a extract structure are populated data from which tables?
    Thanks,
    Bill

    Hi,
    Datasource / tables in the source system
    Go to RSA2 (DS Repository) in your source system and display your source system.
    If Extraction Method is 'V' - you are lucky and you see table name where data is taken from.
    If it is F* - function module is used, and you have to go thru its code to see all the tables it uses and logic how data is
    processed.
    Ext. Meth   Short text                                                                               
    V                 Transparent Table or DB View                
    D                  Fixed Domain Value                          
    F1                Function Module (Complete Interface)        
    F2                Function Module (Simple Interface)          
    Q                 Extraction Using ABAP Query                 
    A                 DataSource Append                           
    or
    Table ROOSOURCE in ERP.
    Relevant fields EXMETHOD, EXTRACTOR.
    IF EXMETHOD = V, EXTRACTOR is view or tablename
    IF EXMETHOD = D, EXTRACTOR is name of domain
    IF EXMETHOD = F1, F2 EXTRACTOR is name of FM
    IF EXMETHOD = Q EXTRACTOR is name of Info set
    OR
    Since you have the extract structure and the extractor, you must have some transaction like the Extractor Checker RSA3. If so
    then execute ST05, switch on the trace and execute the extractor checker. Once the extractor checker presents the results
    switch off trace. The clcik on Display trace and you will see all the tables that were hit by the extractor checker to
    retrieve data and present it to you.
    Thanks,
    JituK

  • Populating our log message along with standard sap log in ck11n.

    Hi all,
    I have developed a user exit which is used in costing of material using ck11n.
    Here i have to show our custom log message along with the standard log shown by standard sap system after costing run is complete.
    I got one FM-- CM_F_MESSAGE  which is used by SAP. But i want the message along with SAP messages and not separately.
    Can u help me out for this. its very urgent.
    Thanks in advance.

    Hi
    I'm not sure because I don't know that trx, but I seem the function group of that function manages a log, so you can try.
    This is an extract of abap code of SAPLCKDI where that fm is used:
    CALL FUNCTION 'CM_F_MESSAGE'
       EXPORTING
         ARBGB = Y_CMF-CK
         MSGNR = '327'
         MSGTY = Y_CMF-W
         MSGV1 = SICHT
         MSGV2 = KLVAR.
    So I suppose you should call it by this way:
    CALL FUNCTION 'CM_F_MESSAGE'
       EXPORTING
         ARBGB = <your message class>
         MSGNR = <message number>
         MSGTY = <message type>
         MSGV1 = <text 1>
         MSGV2 = <text 2>
         MSGV3 = <text 3>
    I think MSGV* is optional parameter.
    Max

  • How to find from which table we got the data

    Hi friends ,
    How can we find from which table we r getting data in the datasource.
    I am getting data from crm system.based on that we created cubes and dsos.
    we have only one datasource.now i need to know from which table we pull the data?
    can any one give the procedure
    Thanks in advance........
    sridath

    Hi,
    Datasource / tables in the source system
    Go to RSA2 (DS Repository) in your source system and display your source system.
    If Extraction Method is 'V' - you are lucky and you see table name where data is taken from.
    If it is F* - function module is used, and you have to go thru its code to see all the tables it uses and logic how data is
    processed.
    Ext. Meth   Short text                                                                               
    V                 Transparent Table or DB View                
    D                  Fixed Domain Value                          
    F1                Function Module (Complete Interface)        
    F2                Function Module (Simple Interface)          
    Q                 Extraction Using ABAP Query                 
    A                 DataSource Append                           
    OR
    Since you have the extract structure and the extractor, you must have some transaction like the Extractor Checker RSA3. If so
    then execute ST05, switch on the trace and execute the extractor checker. Once the extractor checker presents the results
    switch off trace. The clcik on Display trace and you will see all the tables that were hit by the extractor checker to
    retrieve data and present it to you.
    Hope this helps.
    Thanks,
    JituK

  • Program "SAPLSZA1" tried to use screen 0000 - vendor display XK03 - dump

    Hello,
    when i try to display vendor (XK03) program SAPMF02K falls into dump. Problem is in calling subscreen into address area.
    CALL SUBSCREEN ADDRESS INCLUDING 'SAPLSZA1' '0300'.
    this is dump:
    The termination occurred in the ABAP program "SAPLSZA1 " in "%_CTL_INIT".
    The main program was "SAPMF02K ".
    The termination occurred in line 25 of the source code of the (Include)
    program "<SYSINI> "
    of the source code of program "<SYSINI> " (when calling the editor 250).
    Source code extract
    000010   * ABAP-System Include for all programs
    000020   constants SPACE value ' ' %_predefined.
    000030
    000040   * SYST-Felder als SY-Felder ansprechbar machen.
    000050   tables: SYST,
    000060           sy %%internal%%.
    000070   *
    000080
    000090   tables RSJOBINFO.                      "for SUBMIT .. VIA JOB ..
    000100
    000110   data: begin of common part %_SYS%%,
    000120           SCREEN    type SCREEN,
    000130           %_PRINT   type PRI_PARAMS,
    000140           %_ARCHIVE type ARC_PARAMS,
    000150         end   of common part.
    000160   *
    000170   data: %_VIASELSCR type X value '04' %_predefined.
    000180
    000190   system-exit.
    000200     perform (SY-XFORM) in program (SY-XPROG).
    000210
    000220   * Nach Laden des Dynpros
    000230   module %_CTL_INIT output.
    000240    <b> perform %_CTL_INIT in program SAPMSSYD using SY-REPID if found.
         >   endmodule.</b>000260
    000270   * Nach DCO
    000280   module %_CTL_OUTPUT output.
    000290     perform %_CTL_OUTPUT in program SAPMSSYD using SY-REPID if found.
    000300   endmodule.
    000310

    Hi,
    I have checked OSS Note Number 1037961 which is giving somewhat the same Error Description as per your query. Below is the summary of this OSS Note.
    Check whether this is useful for you.
    Summary
    Symptom
    When registering in the R/3 E-Commerce 5.0 B2C webshop the
    process finishes without any error messages, but if you go to the user details the address data is missing.
    The R/3 system has created the customer but when displaying with XD03
    the system dumps in program SAPLSZA1 : screen 0000 does not exist.
    This issue occurs only in ECO ERP 5.0
    Thanks,
    Satya

  • Faster Mapping methodology at Runtime

    Hi,
    Can anyone please tell me which of the XI mapping methodology is faster at runtime in which scenarios?
    I mean e.g. converting SAP data extracted using ABAP proxy to HTML, graphical or XSLT or ABAP mapping is faster?
    thanks for any help
    KP

    Hi KP,
    Have alook at the following comments and decide...
    1)Using the XSLT mapping with Java enhancement, you can implement mappings quicker and more flexibly.
    2)Java mapping programs are not permitted to be stateful. You are therefore not permitted to perform actions such as writing data to a database table during a Java mapping. The Integration Server cannot track such side effects. Therefore, if an attempt is made to resend a message that has not been received by the receiver, the data may inadvertently be written to the database twice in a Java mapping.
    Note the following points when using static variables in Java mappings:...
    1. Mappings can be executed in parallel. Therefore, several instances of a mapping may access a static field for read or write purposes at the same time.
    2. If mapping programs are executed more than once, the content of the static field may be lost. The reasons for this are as follows:
    i) The content of a static field is lost if the Java class in question is reloaded. This happens after a cache refresh, for example.
    ii) If the mapping runtime consists of a cluster, the mapping classes on each node of the cluster are loaded separately. Each node has its own static fields.
    Static fields can be used for constants and as a buffer, taking the above-mentioned points into consideration.
    http://help.sap.com/saphelp_nw04/helpdata/en/73/f61eea1741453eb8f794e150067930/content.htm
    http://help.sap.com/saphelp_nw04/helpdata/en/e2/e13fcd80fe47768df001a558ed10b6/content.htm
    http://help.sap.com/saphelp_nw04/helpdata/en/10/5abb2d9df242f6a62e22e027a6c382/content.htm
    For your scenario I think you can go for ABAP mapping
    Regards
    Suraj

  • Pricing Condition during upgrade

    Hi,
    During our SAP upgrade we are experiencing an issue related to PO pricing conditions. How can we bring over PO pricing conditions in open POs from 4.7 system to 6.0. We are using several custom condition types.
    If anybody have an experience like this please share with me for resolving this issue.
    Thanks
    John K. T.

    Hi John,
    check the following steps:
    1. maintain Z-table for Conversion from old and new conditions
    2. Include this table in extraction program (ABAPer'll do this)3.
    3. Check the extracted data for accuracy
    Now your file is ready with new conditions and new data as per your ECC6 system
    4. Then upload this flat file by uploading program.
    Revert where you are facing issues? What process you are following?
    Umakanth R

  • Any fm for PO Invoice receipt details ?

    Hi all,
    Is there any function which gives invoice receipt details for a purchase order ?
    I am aware of the tables to be used.

    What kind of details are you looking for ? Method  : IF_PURCHASE_ORDER_ITEM_MM~GET_HISTORY in class :CL_PO_ITEM_HANDLE_MM may be helpful.  See the WiKi post [Purchase Order Data Extraction using ABAP Classes|https://wiki.sdn.sap.com/wiki/display/stage/PurchaseOrderDataExtractionusingABAPClasses] for details.

  • Reg: How to see Database tables in any Datasource?

    Hi Friends,
    Please give me answer to see Database tables in any Datasource.
    Thanks,
    Rama

    Hi,
    I dont think there is any Tcode for this.
    Try either of this.
    Go to RSA2 (DS Repository) in your source system and display your source system.
    If Extraction Method is 'V' - you are lucky and you see table name where data is taken from.
    If it is F* - function module is used, and you have to go thru its code to see all the tables it uses and logic how data is
    processed.
    Ext. Meth   Short text                                                                               
    V                 Transparent Table or DB View                
    D                  Fixed Domain Value                          
    F1                Function Module (Complete Interface)        
    F2                Function Module (Simple Interface)          
    Q                 Extraction Using ABAP Query                 
    A                 DataSource Append                           
    OR
    Since you have the extract structure and the extractor, you can try Extractor Checker RSA3.Execute ST05 (activating SQL Trace), switch on the trace and execute the extractor checker. Once the extractor checker presents the results
    switch off trace. The clcik on Display trace and you will see all the tables that were hit by the extractor checker to retrieve data and present it to you.
    Note: Set the break point in the Extractor Function module.
    View the ST05 Extended Trace list. The Object name shows the Tables accessed.
    Hope this helps.
    Thanks,
    JituK

Maybe you are looking for

  • Retrieve Novell Username when not logged into Portal

    Hi, Is there a way I can store the users Novell username into a variable? This would be done in a report, displayed on the Portal homepage. I require this functionality before the user logs into the portal, so I can't use PORTAL.wwctx_api.get_user. T

  • Please Help me in connecting my X-Fi! Plea

    Hi all, Santa's going to bring me a shiny new X-Fi Fatality, and I can't wait to get my hands on it! But first I need your help in connecting it to my Creative/Cambridge DTT2500: speakers are now linked to my Audigy via the Y-cable with the mini-jack

  • Mobile Site - Need Accordion Widget to start at top of page upon item selection

    I have set up a mobile site.  I use the accordion widget for topics.  If I select any topic without diving into it and scrolling, it works fine.  If I scroll through a topic after selection, the next topic starts in the middle or the bottom.  Kind of

  • Automatically fill categories

    I have created a new service request with a unique category schema with only one item on each category level. level 1 - Ad hoc assignemnts level 2 - Tasks level 3 - Tasks level 4 - Tasks Currenly everything is working 100% but you still need to manua

  • Can you force the keyboard to appear on the iphone?

    I was booking some tickets on the web on my my iphone but when it came to completing the date the keyboard disappeared, which made the booking impossible. Is there any way you can force the keyboard to appear? Roggs