Text data extract

Hi,
I have to extract a text data regarding bill of lading. I have already used the following code for extracting basic data text from material master.
TABLES:
    STXH.
DATA:
    TDNAME LIKE STXH-TDNAME,
    MYLINE LIKE TLINE-TDLINE,
    ZE13_LINE(1200) TYPE C.
DATA:BEGIN OF LINES OCCURS 0.
        INCLUDE STRUCTURE TLINE.
DATA:END OF LINES.
DATA:BEGIN OF MYHEADER.
        INCLUDE STRUCTURE THEAD.
DATA:END OF MYHEADER.
CLEAR ZBASICTEXT.
CLEAR TDNAME.
*CONCATENATE '000000000000'
*MARA-MATNR
MOVE MVKE-MVGR4
TO TDNAME.
*MOVE 'AF'
*TO SY-LANGU.
*MOVE TDNAME TO ZZTDNAME.
CALL FUNCTION 'READ_TEXT'
    EXPORTING
        ID = 'YBOL'
        LANGUAGE = SY-LANGU
        NAME = TDNAME
        OBJECT = 'TEXT'
     IMPORTING
        HEADER = MYHEADER
     TABLES
        LINES  = LINES
EXCEPTIONS
        ID                      = 1
        LANGUAGE                = 2
        NAME                    = 3
        NOT FOUND               = 4
        OBJECT                  = 5
        REFERENCE_CHECK         = 6
        WRONG_ACCESS_TO_ARCHIVE = 7
        OTHERS                  = 8.
IF SY-SUBRC = 0.
  LOOP AT LINES.
    MOVE LINES-TDLINE(132) TO ZBASICTEXT."myline.
    EXIT.
  ENDLOOP.
End If.
Here the last line extracts only 132 characters, but however the Bill of Lading text is 10 line paragraph.So can somebody explain how to extract that data. Also I am using this code in ABAP Query for a field.
I appreciate your help.

Hi,
I have changed as per your suggestions like the following;
IF SY-SUBRC = 0.
  LOOP AT LINES.
*MOVE LINES-TDLINE(132) TO ZBASICTEXT. "myline.
*concatenate lines-tdline into zbasictext separated by SPACE
EXIT.
WRITE:/ LINES-TDLINE.
  ENDLOOP.
ENDIF.
But however the output comes like this now;
     SCHEDULE B# 2914.22.1000                         
X    FLAMMABLE LIQUID, N.O.S., (1-CARBON 2-          
     LIQUID ACETATE, PROPANE),                
     3, UN 9999, PG II                               
     ERG# 901                                         
     SCHEDULE B# 0000.90.0000                                                                               
Material MG                                          
Basic data text                                                                               
800001   ZZ                                          
       ******DO NOT SHIP CALL 480-987-7177******    
800002   ZZ                                          
       ******DO NOT SHIP CALL 480-987-7177******    
800003   IRE                                         
      SCHEDULE B# 3707.90.0000                        
800004   ZZ                                          
       ******DO NOT SHIP CALL 480-987-7177******    
800005   ZZ                                          
       ******DO NOT SHIP CALL 480-987-7177******    
800006   ZZ                                          
That means I need the material number and parallely the description instead of the text description first and material number second.
How to format this? I am a SD functional guy and hence not able to play around properly in the ABAP codes.
Thanks a million.

Similar Messages

  • Problem with Text data Extraction from R/3

    Hi Experts,
    The problem is extracting Text data from R/3 system.
    Actually its an delta load.The load is running fine....but it is not bringing any data from the source system (R/3)0 Record.When I checked the table in R/3 system the data are there.
    I tried with Fullupdate too, still its bring 0 record.
    What will be the solution for this?
    Thanks in Advance!
    Regds,
    SPS

    Hello SPS, I cant remember very well, but when we found this issue, the problem was Language key. There was a problem with standard datasource.
    Did you try to find any notes for your datasource ?
    Hugs,
    Bueno

  • Infoobject change for extracting texts data.

    Hi BW guys,
    Here is my requirement.
    I have one info object 'salesmen', which is already used in some other ODS & Cube's.
    Now I want to extract texts data for the object 'salesmen', for that I will need to change my infoobject (changes are : adding credit control are object under compounding).
    But while i am activating the info object again it is giving errors.
    Error messages:
    1) InfoObject XXXXX (or ref.) is used in data targets with data -> Error:
    2) Characteristic XXXXX: Compound or reference was changed
    3)InfoObject XXXXX being used in InfoCube XXXX (contains data)
    etc....
    But i don't want to delete the data in any data target.
    Is there any way to solve this problem?
    Thanks in advance......

    Hi,
    If you have not many cubes and ODSs with this salesman, you can consider another, beter, but more time-consuming way.
    1. Create a new IO for your salesman, add a compounding attribute as you want.
    2. Load master data for the new IO.
    3. Create copies of your infoproviders.
    3. In each of them delete an old salesman IO and insert a new one.
    4. Create export datasourses for old cubes.
    5. Create update rules for new data targets based on old ones.
    6. In URs map your new IO with the old one. All other IOs should be mapped 1:1 (new<-old).
    7. Reload data targets.
    That's all.
    The way I proposed earlier is less preferrable. Because anyway you'll have to change loaded into data targets data. And in this case it's better to change data model as you want.
    Best regards,
    Eugene

  • Extract the text data

    Dear SDNs,
    My client wants to extract the data from invoice text types like he wants to find out the text data in each text fields which are maintain in the invoice item level.
    please advice my above scenario.I dont know where it could be stored and how i will extract them.
    Thanks,
    KV

    hi
    goto STXH
    find your text object : VBBP
    Text Name
    Text ID  (which you created at text determination 4 digit which you have added to billing as text determination)
    Text Name:
    note down the above
    now goto SE37 and enter READ_TEXT run
    enter as below
    ID
    LANGUAGE
    NAME
    OBJECT and execute then click on tables icon then you can get the text which you have maintained in ur invoice
    Take the help of ABAPPER
    regards

  • Error when extracting the text data

    Hi all
    I am getting an error when transfering the text data thru flat files .
    It is asking " No transfer structure available for the source system ," and saying that 0langu is not assigned to source syatem.I am working on 3.5.
    pls suggest me.
    thanks in advance
    karna

    hi,
         you have to decline 0LANGU, STTXT(short text), MDTXT(medium text),
    LGTXT(long text), and respective key field(primary key) of attribute for
    text data source.  give the above five info object's in transfer structure for
    text data source and activate it.
    if helpful provide points
    regards
    harikrishna.N

  • Text Data Processing 4.1 Training in February & April for APJ & EMEA

    We would like to announce upcoming training opportunities in Malaysia and Germany for partners and select customers on Text Data Processing within the upcoming Data Services 4.1. Get early hands-on access to software and participate in the review of the product roadmap.
    Why Partner Test?
    - Receive an introduction to the product and how text analytics capabilities are being delivered through Data Services
    - Only source for partners and select customers to get deep product knowledge directly from development at this early stage
    - Better understand migration scenarios for BusinessObjects Text Analysis XI customers
    Test Scope
    - Entity Extraction from unstructured data in one or more of the 31 supported languages
    - Data Quality transforms for post-processing such as Match and Address Cleanse
    - Sentiment analysis in either English, German, French or Spanish
    Time Frame & Location
    - Kuala Lumpur, Malaysia: February 13-16  >>> FULL <<<
    - Walldorf, Germany: April 16-17 and 18-20  >>> FULL <<<
    Tester Profile
    - Data Services knowledge helpful
    - Previous experience with text analytics or text mining
    - Existing use cases for text analysis and sample data to test
    Tester Demand
    - 2-4 days depending on session
    - No registration fee but attendees must provide their own travel and lodging
    For further Text Data Processing info: http://wiki.sdn.sap.com/wiki/display/BOBJ/TextDataProcessing
    If you are interested in attending or have questions please contact Anthony Waite @ SAP.
    Edited by: Anthony Waite on Feb 7, 2012 4:58 PM

    Did you tried this document:
    How to find the Missing Records for the Target Table during Post Load validation at Business Objects Data Services - Bus…

  • New tutorials posted for Text Data Processing on Data Services 4.0

    Check out the 3 new Text Data Processing tutorials available at http://wiki.sdn.sap.com/wiki/display/BOBJ/TextDataProcessing within the Product Tutorials section.
    -- Introduction to Entity Extraction Transform: this 15-minute demo provides an overview of the Text Data Processing Entity Extraction transform for Data Services 4.0. The Entity Extraction transform enables you to process unstructured text, such as web pages, news articles, maintenance logs, text from a spreadsheet, or even from a database column, to extract key pieces of information that you can use in query and reporting.
    -- Using Text Data Processing Blueprints: this 6-minute demo explains how to get up and running with TDP quickly using a series of jobs contained in a blueprint. A blueprint is a sample end-to-end solution available on SAP Community Network.
    -- Creating an Extraction Dictionary: this 13-minute demo explains how to create an Extraction Dictionary, which can be used to customize a TDP Entity Extraction transform to improve results.

    Thanks for sharing your use case.  I have a few questions if you don't mind:
    1) What file formats are typically found within these compressed containers?  For example, html, xml, txt, pdf, MS Office, etc.
    2) Do these compressed containers ever have other embedded compressed containers within them?  For example, a zip file containing other zip files within it.
    3) If the intention is to process document files, do any of the document files have other document formats embedded/nested within them?  For example, a MS Word document with a spreadsheet embedded within it.

  • Master text data in Open Hub

    Hi All,
    I am working on BI 7.0 and am currently working on Open Hub. I have to extract data from a cost center infocube, but i also need to send the master text data for certain fields along with the infocube data into the file server.
    Is this possible with open hub services,could someone please provide me with a step by step procedure to this one.
    I have been following a similar thread
    Nav. Attrib in Open Hub 04s
    Please let me know if it was succefully implemented by someone.
    Regards
    Dipali

    Hi Uppala,
    Following are 2 approaches to achieve this
    Approach 1:
    1. Create info spoke which will extract data from cube to data base table (do not use file)
    2. Create one more info spoke which will extract master data text to data base table (again do not use file)
    3. Create join on both the data base tables.
    4. Write a ABAP program which will create a file based on the joins of tables.
    Approach 2 :
    1. Create multiprovider on cube and master data info object
    2. Create info spoke based on the multi provider, that will extract data to flat file
    For 2nd approach u have to put certain filters to avoid unwanted rows
    Regards,
    Ajinkya

  • How to create generic text datasource to load text data?

    met issue in generic master data load
    Hi,
    please see above link for detail infomation regarding the attribute data load. now the language and description column of the infoobject s_saled is empty. i need to create a generic text datasource to load data from R3 to BW. the table which i use to extract attribute data is VBAK, but i don't find any filed relate to language and description.
    met issue in generic master data load
    can anyone tell me how to load the text data?
    thanks very much.
    Eileen

    hi eileen,
    go to transactio rso2  in your source system ie r/3.
    there u have three three fields for transaction data
                                                    attributes.
                                                     text.
    choose text and proceed as u did for trancsaction data load.
    thank u,
    reward if helpful.

  • How to find all the Master data extract structures and Extractors

    I intend to create Master data dimensions closely similar to SAP BI in a 3rd party system. I would like to use SAP's standard extractors for populating the master data structures in SAP BI and then use a proprietary technology to create similar structures in a 3rd party database.
    Question: How to get a complete list of all Master data extract structures and corresponding extractors?
    Example: In ECC if I do SE80 and give 'Package' and 'MDX' and then press the 'display' spectacles, I get a list of structures and views under "dictionary objects" covering Material, Customer, Vendor, Plant Texts and attributes.
    How do I get the remainder of the Master data extract structures viz. Purchase Info Records, Address, Org Unit etc?
    Regards
    Sasanka

    Hi,
    try the table ROOSOURCE and search the data source with string in astrick attr  for master data and for text with text
    This will give you the list of all the master data source in the system and it contains a column which tells about the extract structure and function module used by each.
    Thanks
    Ajeet

  • HFM data extract for Multiload

    Very new to this and need some help please. When extracting HFM data for FDM multiload what is the best way to get the data for periods into columns and not rows without formatting the data manually?

    The data extract interface is limited and does not allow you to have multicolumns for the periods. What you can try is to create a smartview (if the number of rows is not too large) and the save the file as a CSV, then in a text editor replace all commas by semicolons. Otherwise, if you can write Excel VBA code then this could also be an alternative again number of lines could be a potential issue.
    If you don't have to run it through translation tables, you can probably accomplish must of the changes using a strong text editor such as K-edit.

  • Master Data Extraction through Open Hub services(InfoSpoke)

    Hello,
             I need your help on this issue,
    Here is my scenario...
    I want to extract Master data from BW (Info Object) as a file and put it in a server then later that can be picked up by some other deprtment for their process. This process has to be automated to run on a weekly basis.
    I know this can be done through a InfoSpoke(either ATTR or Text) and Process Chain but I want both attributes & text data in a single file because through InfoSpoke we can get either ATTR or TEXT data in a file.
    1)Is there any way we can have both TEXT and ATTRIBUTEs data in a single file.
    2) Also what are the options to transfer the file from a BW app server into another non-BW server?
    Currenty I created a BEx query against a InfoObject, ruuning a report and sending them the file manually. I want to automate the process.
    I would appreciate if you could give me input on the above.
    Thanks
    BI Consultant

    Hi,
    The simpleset way to do is to create a ODS with the required columns and map it to your TEXT and ATTR. Then you could use either a Query or a Info Spoke to extract data how ever you want it. Since you are using master data it would have been validated, so you don't need to use a reportable ODS, which takes time to activate the data. So create a info set on top of the ODS and do a simple query if you want to use it. If you want to automate completely and deliver the output as .CSV file to the destination server you may have to do little bit more and that will involve some serious ABAP work. The simpleset would be have a ODS 'Non reportable' and extract the data using info spoke.
    Let me know if you need more info.
    Thanks,
    Alex.

  • Data Extraction from CRM to BW

    Hi,
    I just need some information/help on BW Data Extraction from CRM, it would be great if some one could help out or mail some related help documents.
    Currently we are implementing the complaints module in CRM simultaneously on the BW side we have identified an info cube for complaints 0CSAL_C09, but this cube and its ODS source does not have all the required fields like (newly created text types, serial number etc), so how these tables and fields can be identified in the source system and added to extract structure in CRM. Also what is the table in which the CRM transaction data would be stored.
    Especially i require the newly added text types in CRM to appear in BW, there are around 5 new text types are added and user can enter free text, i need these information to be captured in reports. kindly mail me the steps to [email protected]
    Thanks
    Akila.R

    hi,
    try these links
    http://help.sap.com/bp_biv335/BI_EN/html/BW/SalesAnalysis.htm
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/f2910623-0c01-0010-de8f-d1926988a986
    http://help.sap.com/bp_biv135/html/bw.htm
    http://help.sap.com/bp_biv135/html/BW/SalesAnalysis.htm
    http://help.sap.com/bp_biv235/BI_EN/index.htm
    http://help.sap.com/saphelp_nw04/helpdata/en/af/ed833b2ab3ae0ee10000000a11402f/frameset.htm
    this:
    http://help.sap.com/bp_biv235/BI_EN/index.htm
    http://help.sap.com/saphelp_nw2004s/helpdata/en/af/ed833b2ab3ae0ee10000000a11402f/frameset.htm
    regards,
    pankaj singh
    reward if helpful

  • [svn:fx-4.x] 15186: In RichEditableText handlePasteOperation() if there are no constraints (maxChars, restrict or displayAsPassword) and multiline text is allowed we can do an immediate return before the text is extracted from the text flow .

    Revision: 15186
    Revision: 15186
    Author:   [email protected]
    Date:     2010-03-31 16:42:19 -0700 (Wed, 31 Mar 2010)
    Log Message:
    In RichEditableText handlePasteOperation() if there are no constraints (maxChars, restrict or displayAsPassword) and multiline text is allowed we can do an immediate return before the text is extracted from the text flow.  This should be the typically case when pasting large amounts of text.
    QE notes:
    Doc notes: None
    Bugs: partial fix for SDK-25793
    Reviewed By: Gordon
    Tests run: checkintests
    Is noteworthy for integration: No
    Ticket Links:
        http://bugs.adobe.com/jira/browse/SDK-25793
    Modified Paths:
        flex/sdk/branches/4.x/frameworks/projects/spark/src/spark/components/RichEditableText.as

    Step by step, how did you arrive at seeing this agreement?

  • Data extraction from an array of data

    So I want to extract a
    subset from an array of data. 
    I have two columns of data that I need to do with,
    these are potential energy (expressed in terms of kT) and relative separation.  The data typically results in a parabola-type
    shape with the potential energy on the y-axis and the separation on the
    x-axis.  The potential energy starts at
    high kT's at small separation and then decreases to zero as the separation
    increases and then it starts to increase again once it is past zero kT.  The issue I have is that I need to disregard
    any data that is greater than 6 kT.  Thus
    I need to extract the data (both the potential energy data and the
    corresponding separation data) from the array that is 6kT or below.  So the problem I am having is trying to work
    out how to approach the extraction of this data.  I would love to get some suggestion as to how
    I should approach it.
    I initially thought of using a mathscript node to do this,
    but I am not sure of how I should code this, if this is indeed possible.
    Another option I considered was to use one of the array vi's
    to perform this extraction as I thought I could use them to find the element
    where the kT is higher than 6 and the corresponding index element which I could
    then use to extract the relevant portions of the array.  But I don't see an easy way to achieve this.
    So the vi I will write for this will function will actually
    be a subvi of another vi I have written (this vi is named ‘non-linear fit to PE
    data mod.vi' and it also has a couple of other subvis).  I have attached this vi and a relevant data
    file (as an example of the data I will be getting and needing to analyse) in a
    zip file.  I haven't included an example
    of the subvi I need to write because I looking to find some pointers as to how
    I could do this first.  In the ‘non-linear
    fit to PE data mod.vi' I have included a text box in the location I will be
    putting this subvi.
    Any help in helping me out here would be appreciated.
    Thanks
    Solved!
    Go to Solution.
    Attachments:
    data extraction help needed.zip ‏31 KB

    Try the attached VI. as per my understanding you want to remove the data in the array which is grater than the specified value,am right?
    Balaji PK (CLA)
    Ever tried. Ever failed. No matter. Try again. Fail again. Fail better
    Don't forget Kudos for Good Answers, and Mark a solution if your problem is solved.
    Attachments:
    Remove Data.vi ‏8 KB

Maybe you are looking for

  • I had to reset my iPhone. How do I get my apps and music back?

    I had to reset my iPhone. How do I get my apps and music back? It is backed up on iCloud.  Thanks

  • Video works with one friend but not another?? please HELP!

    my ichat video isn't connecting with my friend christina. we've taken turns calling each other and my computer keeps saying "no data has been received in 10 seconds" i can hear the ringing and then when we go to connect thats when the message comes u

  • BAPI_ADDRCONTPART_SAVEREPLICA Create contact person issue

    Dear SAP Gurus, I'm coding a RFC for create customer with contact person. I used BAPI_PARTNEREMPLOYEE_GETINTNUM and BAPI_ADDRCONTPART_SAVEREPLICA in order to create the contact person for the corresponding customer. The process is 1. get customer num

  • IPhoto doesn't keep an accurate number of Events

    I have been doing a LOT of reorganizing lately with my photos. I'm starting to get them all grouped correctly into Events. This has required a whole lot of splitting from existing Events. I noticed today that it seems to show WAY to many Events, so I

  • Display Order

    How do you manipulate the order of display objects? I'm have an application in which I'm allowing users to move various objects around on the screen. The implementation of the objects use JLabel. While they are in motion I want them to occlude (appea