Regarding Flatfile extraction

Hi ,can any one tell how to remove escape or extra characteristics  when uploading flat file data  to BW .
for example .
Attn: Alvin Joseph.
When RFG MM are created please default the BATCH status of the following Material groups as follows.  Please note that SEMI-FGs should remain as-is (non-batch).
BATCH      MATL GRP        DESCRIPTION
Y               RFG001000         NRE
Y               RFG002000         MPW
Y               RFG004000         WAFER
Y               RFG005000         DIE
Y               RFG006000         PROBE
Y               RFG007000         FINAL TEST
N               RFG001000         NRE
N               RFG004000         MASK
N               RFG008000         DESIGN SERVICES
when uploading above data  the data will come for 60 chars as one line & other data  like
BATCH      MATL GRP        DESCRIPTION
will go to some other records ,so is there any solution for this .
like should we write any routine  ? if so give me the code.
regards,
prash

I don't think that Eugene's blog will help you a lot here. But you're right, you need to write some code. In your case it could be the easiest way to delete the wrong lines. The coding in the start routine of the transfer rules could look like:
DELETE datapak WHERE batch <> 'N' AND batch <> 'Y'.
if your first field in the transfer structure is called batch. You could also add additional lines if you want to make sure that you don't add any records accidentally because an extra line starts with 'N' or 'Y'.
Best regards
Dirk

Similar Messages

  • Regarding Generic Extraction

    Hi Experts,
    I m new to SAP BW, I need a information regarding Generic Extraction as the senario is follows.
    I created a table with fields,
    Customer Id (PK), name, age ***, address
    and i maintained five records in it.
    i created a generic master data attributes data source using above table
    i replicated the data source in bw and run the full update and it is succussful.
    Now my requirement is to add 5 more records in the above table and i hav to get those records in bw using delta update.
    So, can any one can explain how to maintain delta for that generic datasource and how to run delta update in step-by-step process
    regards,
    Ramakrishna

    Check the PDF doc..on how to create generic delta..
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/84bf4d68-0601-0010-13b5-b062adbb3e33
    Check this doc for more
    http://www.ko-india.com/content/weblogs/generic_delta_explained.pdf
    Regards,
    R.Ravi
    Assigning Points is the way of saying Thanks in SDN!

  • Regarding CRM extraction.....

    Hi Gurus,
    I have few questions regarding CRM extraction.
    Q1: If we enhance a CRM transactional Datasource, do we have to write the ABAP logic in SE19 or CMOD or both?
    Q2: If we enhance a CRM MasterData Datasource, do we have to write the ABAP logic in SE19 or CMOD or both?
    Q3: What is the significance of the T-CODES BWA1, BWA5, BWA7 ?
    Q4: When do you implement the BADI CRM_BWA_MFLOW and when do we implement the BADI CRM_BWA_SFLOW and when do we implement both of them?
    Q5: What is the significance of the function module CRM_BADI_GET_BDOC? Is there any other function module which is used in CRM extraction that has to be implemented in coding?
    Please throw some light on my questions.
    Thanks
    Nice day
    Regards
    Sam

    HI,
    For Delta Extraction of CRM to BI pelase follwo the below steps
    Go to transaction GNRWB
    Select BUS_TRANS_MSG
    Select (on the right, the services): BWA_DELTA3, BWA_FILL, BWA_queue
    Press Generate.
    Also check for the following:
    1. The delta should have been initialized successfully.
    2. Confirm that all Bdocs of type BUS_TRANS_MSG
    are processed with success in SMW01.
    3. If there are queues in SMQ1 with erroneous status then activate
    these queues.
    In Transaction SMQ1 if there are Queues existing with
    names beginning with CRM_BWAn (n is number) then
    activate these queues in the same transaction.
    4.a)If required activate the datasource
    Go to transaction BWA5 > select the required datasource and
    activate.
    4 b) The Delta may not be active ,activate the delta in BWA7 by
    selecting the name of the datsource and pressing the candle icon for
    'activate delta'.
    5. In BW system
    Go to transaction RSA1 > modeling > infosources > select the
    info source > right mouse click on the selected
    infosource > choose option replicate datasource
    Activate the infosource.
    6. Go to the scheduler for the infosource > select delta in the
    update >choose the option PSA only (in the Processing tab)
    start immediately
    Check the entry in the RSA7 in the OLTP(CRM system)
    Hope It helps You.
    Regards,
    Nagaraju.V

  • OSS note regarding 0EC_PCA_3 extraction optimization

    hello Frnds,
    We are facing severe Data load issues with a load from 0EC_PCA_3 in production,
    Could any one suggest OSS note regarding 0EC_PCA_3 extraction optimization
    Thanks in Advance
    raky

    Rakesh
    Also check this for General BW related Performance issues
    Business Intelligence Performance Tuning [original link is broken]
    Thnaks
    Sat

  • Regarding LO Extraction

    Hi All,
    This is regarding LO Extraction.
    The steps that I am following are first installation of Business Content InfoCube. Next identified the data sources in LBWG I deleted the data from setup tables for that particular application.
    In a broad way how to extract the deltas from now on.
    We will do the time setup in 0LI*BW. Next we set the time in Job Control and then again in BW side we can set the time in InfoPackage.
    What is the best practice to follow to extract deltas?
    I am having all the materials and Links regarding LO.
    But I am not clear on this point. Someone please guide me regarding this issue.
    Regards
    YJ

    Jayanth
    Check this sequence. Hope this helps. Also check these weblogs.
    https://www.sdn.sap.com/irj/sdn/weblogs?blog=/pub/u/21406 [original link is broken] [original link is broken] [original link is broken] [original link is broken] [original link is broken] [original link is broken] [original link is broken]
    Also refer this link:
    http://www.sap-img.com/business/lo-cockpit-step-by-step.htm
    Thnaks
    Sat
    LO EXTRACTION
    - Go to Transaction LBWE (LO Customizing Cockpit)
    1). Select Logistics Application
    SD Sales BW
    Extract Structures
    2). Select the desired Extract Structure and deactivate it first.
    3). Give the Transport Request number and continue
    4). Click on `Maintenance' to maintain such Extract Structure
    Select the fields of your choice and continue
    Maintain DataSource if needed
    5). Activate the extract structure
    6). Give the Transport Request number and continue
    - Next step is to Delete the setup tables
    7). Go to T-Code SBIW
    8). Select Business Information Warehouse
    i. Setting for Application-Specific Datasources
    ii. Logistics
    iii. Managing Extract Structures
    iv. Initialization
    v. Delete the content of Setup tables (T-Code LBWG)
    vi. Select the application (01 – Sales & Distribution) and Execute
    - Now, Fill the Setup tables
    9). Select Business Information Warehouse
    i. Setting for Application-Specific Datasources
    ii. Logistics
    iii. Managing Extract Structures
    iv. Initialization
    v. Filling the Setup tables
    vi. Application-Specific Setup of statistical data
    vii. SD Sales Orders – Perform Setup (T-Code OLI7BW)
    Specify a Run Name and time and Date (put future date)
    Execute
    - Check the data in Setup tables at RSA3
    - Replicate the DataSource
    Use of setup tables:
    You should fill the setup table in the R/3 system and extract the data to BW - the setup tables is in SBIW - after that you can do delta extractions by initialize the extractor.
    Full loads are always taken from the setup tables
    The Lo-cockpit procedure is go with LBWE Transaction
    so that you can get Applications 02,03,...etc
    Under that you have
    Extract structures
    select your data source here Be sure that First you InActive that Then go with LBWG "Delete setup data"
    here you can give the application No example 02(if your application is Purchages)
    then once again LBWE go with Maintanace Tab select your Fields then your Datasource is Active position then You have to Fill the Data
    go with OLI*BW for example if your application is Purchages then OLI3BW
    then go with Extractor Checker RSA3

  • Help Regarding Generic Extraction

    Hi Experts,
    I m new to SAP BW, I need a information regarding Generic Extraction as the senario is follows.
    I created a table with fields,
    Customer Id (PK), name, age ***, address
    and i maintained five records in it.
    i created a generic master data attributes data source using above table
    i replicated the data source in bw and run the full update and it is succussful.
    Now my requirement is to add 5 more records in the above table and i hav to get those records in bw using delta update.
    So, can any one can explain how to maintain delta for that generic datasource and how to run delta update in step-by-step process
    regards,
    Ramakrishna

    Hi Ramakrishna,
    For doing a delta on a generic extractor you will have to set up any one of the following type of the field as delta attribute and on the basis of this delta records will be extracted.
    - Time Stamp
    - Calendar day
    - Numerical Pointer (i.e. Document Number)
    You can monitor your delta queue via RSA7 transaction.
    Also For delta you will have to do Init load first.
    Hope that helps.
    Regards.

  • Query regarding data extraction

    Hello All,
    I am new to ABAP development. I have been assigned to work on a report, where I have to fetch data for a SC, which will be extracted into an flat file.
    Now my requirement is as below:
    Each shopping cart will have a number of different records. The records are of the following types
    Header – Marked with record type = “HEAD”
    Line item – Marked with record type = ”ITEM”
    Accounting line – Marked with record type = ”ACC”
    Approval record – Marked with record type = ”APP”
    Now in this manner I have to fetch the data in an single flat file. Now I am really confused how I am going to do it. I have the tables for header, item, accounting line, approval records. Now my question is am I have to 1st fetch data for header then line then accounts and approval then join this into my final internal table?? Is this the correct approach?
    I am a beginner and your help will be highly appreciated.  
    I have attached a flat file for your reference.
    Regards,
    Sarnava

    So long as you have some unique identifier between each of these tables this shouldn't be a problem. I of course can't see what data you have in the tables but lets say for example you have an account number, then you can create your flat file something like this:
    head,account123,headfield1,headfield2... etc
    item,account123,itemfld1,itemdfld2,....etc
    item,account123,itemfld1,itemdfld2,....etc
    then the same logic of course for the other two lines i.e. the first part of the line is a field which contains "head" or "item" or "acc" or "app", then the unique identifier and then the rest of the records. And you can make it comma seperated or whatever you want. The user picking this up can then also sort it.

  • Regarding the Extract in alv report

    Hi gurus,
    please explain to me what is the Extract in ALV's.
    i have an alv report in which they declaired avariable like disextract and assigned a radio button, if the radiobutton is check then the data is stored in extract.what is the use of the extract?

    Hi,
    Please check below thread;
    Extract from ALV List
    Regards
    Jana

  • Regarding field extracts

    Hi to all,
    What are the field extracts and conversion exit in ABAP.
    Thanks..

    Hi,
    You are asking about the EXTRACT statement in ABAP.
    it is used in the context of Field Groups: when the data is huge, internal tables are not useful
    so we use field groups and use the commands like HEADER, EXTRACT, GET etc.
    see the sample code:
    REPORT demo_extract.
    NODES: spfli, sflight.
    FIELD-GROUPS: header, flight_info, flight_date.
    START-OF-SELECTION.
      INSERT: spfli-carrid spfli-connid sflight-fldate
                INTO header,
              spfli-cityfrom spfli-cityto
                INTO flight_info.
    GET spfli.
      EXTRACT flight_info.
    GET sflight.
      EXTRACT flight_date.
    END-OF-SELECTION.
      SORT STABLE.
      LOOP.
        AT FIRST.
          WRITE / 'Flight list'.
          ULINE.
        ENDAT.
        AT flight_info WITH flight_date.
          WRITE: / spfli-carrid , spfli-connid, sflight-fldate,
                   spfli-cityfrom, spfli-cityto.
        ENDAT.
        AT flight_date.
          WRITE: / spfli-carrid , spfli-connid, sflight-fldate.
        ENDAT.
        AT LAST.
          ULINE.
          WRITE: cnt(spfli-carrid), 'Airlines'.
          ULINE.
        ENDAT.
      ENDLOOP.
    Conversion exits are used to pass the values correctly to the fun modules, for ex:
    Kunnr field value is '64564', but the fun module wont take as it is: you have to pass '0000064564', to convert this we use conversion exits for the fields.
    reward if useful
    regards,
    ANJI

  • Regarding LIS extraction

    Hi All,
    I have modelled the Infocube 0PUR_C05(Vendor Evaluation Data)
    The datasorce is 0MM_PUR_VE_01
    The steps I followed to load data is as follows:
    1. In R/3 Rsa5: Select Data Source and Click on Transfer Datasources.
    2. In RSA3 extracted data.
    3. Next in BW installed Business content objects, replicated datasources.
    4. Created Infopackage and schedulled the data.
    5. But I am unable to load data.
    6. The Qm status shows Yellow and after some 7 hours, it turns to Red.
    This is the complete error message under Status tab for that request:
    Sending packages from OLTP to BW lead to errors
    Diagnosis
    No IDocs could be sent to the SAP BW using RFC.
    System response
    There are IDocs in the source system ALE outbox that did not arrive in the ALE inbox of the SAP BW.
    Further analysis:
    Check the TRFC log.
    You can get to this log using the wizard or the menu path "Environment -> Transact. RFC -> In source system".
    Removing errors:
    If the TRFC is incorrect, check whether the source system is completely connected to the SAP BW. Check especially the authorizations of the background user in the source system.
    Does somebody have an idea about it.
    Regards,
    Ravi

    Hi Ravi,
            Please check the RFC connection between BW and R/3 by selects your source system and right click from context menu click on check. If is ok, then check weather Idoc conformation was happing or not at monitor- Details – Request. If it was not happening then reschedule it once again. Because some times Idoc conformation will not happened... Hope you are facing this problem only.
    Regards,
    Phani Raj Kallur

  • Regarding PP Extraction

    Hi Gurus,
    Iam extracting data from 2lis_04_P_ARBPL to zcube (copy of 0pp_c04) in BI7. Iam getting error as  Request Idoc: "Application document not posted" but the request shows green, so can anybody help me regarding this.
    Regards,
    Naren.

    Hi,
    Use Tcode SM58 and SLG1 in Source system (R/3) and find the cause of problem. If needed you can manully push the Idocs by using Tcode Sm58 in SS.
    With rgds,
    Anil Kumar Sharma .P

  • How to do regarding flatfile delta upload

    hai gurus
    plz this urgent for me how to flatfile deltaupload
    regards,
    reddy

    Hi Reddy,
         First u try to allot points for those who are helping....then u will get proper response...
    Hope u understood..
    Regards-
    MM

  • Regarding COPA extraction

    Hi All,
    We have created a datasource for COPA(Account Based), used generic InfoCube, replicated DataSources and created TR and UR.
    The data is available in R/3. But when we are checking the data in RSA3. Obviously, we are unable to extract the data to BW. Can anybody provide us with a solution for this situation.
    Regards
    YJ

    Hi PRK,
    First of all thank you for your interest.
    Let me explain you clearly:
    When I am extracting the data using Extractor Checker, first I am receiving the following error:
    'Make an entry into all the required fields'
    Next I entered the values for 'Controlling Area', 'Company Code' and 'Period/year'(I had entered the correct date format).
    Next I am receiving the following error:
    'Errors occured during extraction'
    I will be thankful for your help.
    Regards
    YJ

  • Regarding the extraction

    Hi all,
    I just started learning BW . I tried to extract data to 0COPC_C04 and 0SD_C03. The data was properly loaded to PSA and after that the cube is not loaded properly.
    Can you please explain the about authorizations checks and master data loads of these cubes.
    Thanks,
    Krishna.

    Krishna,
    Want to make sure if your upload is completed?
    What mesg is it giving in the monitor.
    Try selecting the request and click on activate button. And then see if your data is avaiable for reporting.
    Regards,
    Rohini

  • Regarding LIS Extract Structure and Delta Queues

    Hi All,
    We are extracting data using 2LIS_01_S001. But we are unable to pull Delta loads. When we verified we found that the structure (Fields)of the Delta queues are not in same order as S001 table. So, we modified the structures of delta queues using the access key. Now the order of fields in S001, S001BIW1 and S001BIW1 are all same. Till now I was unable to load the deltas for the data source. Now my doubt is should I have to do the LIS setups again (Statistical Information Setup)or can I do a Full Load and do deltas directly???

    Hi,
    You have to setup the tables once again.If your requirement is to load the customer data donot depend on LIS because there are lot of problems with this LIS.SAP is not recommending this LIS.Simply load customer attribute data and load transaction LOS also.
    This is a better option.
    Hope this helps.
    Assign points if useful.
    Regards,
    venkat

Maybe you are looking for

  • Drag drop layers behaviour

    Sorry if this is simple -I'm new here. I've applied a drag layers behaviour to a series of layers on a page in Dreamweaver 2004MX. When viewed on the screen resolution I developed the page on they work fine (1280 by 1024). When I take the screen reso

  • Email Spell Check

    Two things regarding the spell check.  When I click on the spell check after writing an email, it turns the misspelled words yellow.  Any 'misspelled' words in the email chain are highlighted and when i send it they stay yellow to the other user.  Is

  • Capture only the email address in a muse form

    How do you create a form in Muse where you capture only the email address?

  • What is it mean if i have in the uper right corner cicle and luck pleas i need help ?

    what is it mean if i have on my main screan in the right uper corner a circle and luck inside ? pleas i need to know about it and how can i remove it ?

  • System security virus opens untitled document for home web page

    Got System Security 2012 virus pop ups. Used Malwarebytes to get rid of it. The only thing left is when I try to go to facebook, it instead opens an untitled document that makes it look like I am getting a Virus alert from System Security. I can go t