Generic Text DataSource using FM

Hi All,
I need to create a generic text DataSource in R/3 using a FM.
I tried to create a text DS using a FM based on FM RSAX_BIW_GET_DATA_SIMPLE (as template).
I tested it in R/3 using RSA3 and everything worked as expected, but after replicating it in BW and assigning it to an InfoSource I detected a problem.
What happens is that BW receives all existing records with all fields but the text field filled! I couldn't figure out why.
I recon there's also another FM template which seems to be specific for text extraction (RSAX_BIW_GET_TEXTS), but this FM happens to be incompatible with a Generic DataSource, in other words FM RSAX_BIW_GET_TEXTS does not have the expected interface parameters.
Has anyone ever successfully created a Generic text DataSource using a FM? I've looked around the forums and could not find any example.
Thanks for the attention and for any help.
Ricardo Calaça Nunes

Hi Ajay,
First of all, thanks for your reply. Answering your question: yes, that's exactly what happens.
Let me explain my problem a little bit further. I've created a custom characteristic in BW, this InfoObject was created with texts option checked. I want to load texts for this InfoObject in BW using an algorithm that reads data in R/3 hence my need for a generic text DataSource using FM.
FM RSAX_BIW_GET_TEXTS which is also a template seems to be specific for text extraction, but a generic DS is not accepting a extraction FM based on it because its parameter interface is different from FM RSAX_BIW_GET_DATA_SIMPLE.
The latter is good for master data extraction, I've successfully used it in the past, but as mentioned in my previous post BW seems not to accept text fields in a extraction structure filled by a FM based on RSAX_BIW_GET_DATA_SIMPLE whether this FM is in a generic master data DS or else in a generic text DS.
Can you imagine a possible solution?

Similar Messages

  • 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.

  • Language Dependent Text datasource

    I have a language dependent generic text datasource mapped to my language dependent infoobject in BW.  In my source system, I have 68 records; 34 English and 34 French.  I am only pulling 34 English records to BW but not the 34 French records.  In my extractor checker (RSA3), I pull all the 68 records.  Any reason why I am not pulling all the records from the text table.  To reiterate, I have the flag "Texts language dependent" checked in my text infoobject.  What is the reason why I am only pulling 34 English records and NOT all the 68 records?

    1. Check the selections at the Infopackage level whether you are pulling only EN or there is no selection at the language field... in the data selection tab.
    2. Check whether your system is unicode or not? Use RSCPINST program to check the same and also check French language is already installed in your system.. Execute the program, you can see the installed languages in left side and and uniode (*or non unicode at right side).
    3. Also check the program in R/3 system and based on that we can conclude the next step...
    Hope this helps..
    Murali

  • Printing Crystal report using Generic Text output - formating lost

    Hi. I have an accounting system using Crystal to generate it's business forms, in particular invoicing as reports. Recently we have installed new printing system that needs generic text to capture and create the business forms (invoices) into a graphic and text. When Crystal sends data to Generic Text Printer, you can view it ok as a preview but it moves text around , bunches it up and formatting is never the same for two documents. I need resolution as the printing software needs fixed text in a specific location within the data file.  Is there a way in Crystal to format fields so they dont move the data and bunch it up. The business forms written in Crystal have sub reports that are supressed if no data is to be printed, but finding text is moving and hard to capture a fixed location in text file. Any suggestions would be appreciated.

    Hello,
    Thank you for your responses.
    Yes, I'm using a bundled version that came with VS 2005.
    I'd love to download this update, but I cannot get there! I don't have an login and password for this site, and I don't know how to get them.
    This is all I'd found about this issue in this thread:
    http://www.crystalreportsbook.com/forum/forum_posts.asp?TID=844
    "I opened an incident with Business Objects.  They said there is not a way to do what we want to do with the Crystal Reports for .NET assemblies.  They are going to implement a way to create a postscript file and include it in Service Pack 3 of Crystal XI Release 2.  They would not say how the postscript will be created (ie, ExportToDisk or any other method), only that they would include it in CRXI Release 2 SP3 which they intend to release sometime this coming winter. "
    "Just an update...this has been fixed in Crystal XI Release 2 Service Pack 3.
    I just finished testing, and it now allows you to print to a file without prompting the user.  We are now able to create a postscript file."
    Thanks,
    Peter
    Edited by: Peter Afonin on Jul 16, 2008 11:52 AM

  • Generating a Generic DataSource using Function Modules

    I am attempting to create a generic DataSource using a  function module.  All of our DataSources are business content or custom generated that involve views.  At least in our company this is true.  Is there any resources available to me with examples on how to do this.  I have looked at SAP's 'simple example' and would need a ABAP/BW Guru to figure it out!  Any help would be greatfull.  Thanx.  JJ

    Hi Jerry,
       The simple example should provide you with the necessary requisite. All what you need to do is to
    create your own extract structure and assign that as type for the table parameter e_t_data.
    Now you will get the selection criteria, as well as the fields selected in the datasource from the 2 incoming tables. You need to write the necessary abap code to execute a query and populate your extract struture.
    Once important peculiarity of this function module is that it is called several times, or as many times as the MAX parameter + 1. ie, once for each row fetched. Hence you will find a persistence method of using a CURSOR with HOLD property to retain the data between the function calls.
       The help in generic datasource explains the 3 modes,
    initialize, first call and the repeat call for the
    function module. The simple function module example actually provides the necessary logic to deal with these modes and the example uses the sflight table.
    Hope that is some information that could help u begin with.
    Anoop C M

  • Generic DataSource using function module

    Hello experts,
    I created a generic dataSource using copy of function module RSAX_BIW_GET_DATA. It is syntactilly correct. But when I execute  and debug associated generic DataSource in RSA3, this generic function module could not identify DataSource(i_isource) and update mode(i_updmode).
    Could you please answer what went wrong?
    I also created by using copy function module RSAX_BIW_GET_DATA_SIMPLE. I did not find above such problem. The generic DataSource is executed fine in this case.
    Thanks in advance,
    Zak.

    http://www.sdn.sap.com/irj/scn/index?rid=/library/uuid/c062a3a8-f44c-2c10-ccb8-9b88fbdcb008
    /people/p.renjithkumar/blog/2009/10/07/generic-datasource-creation-using-function-module

  • Can anybody explain me creating Generic Datasource using Function module?

    Hi,
    can anybody explain me creating Generic Datasource using Function module?
    Thax in advance,
    Ravi.

    Generic Extraction via Function Module
    /people/siegfried.szameitat/blog/2005/09/29/generic-extraction-via-function-module
    1. Create s structure with the fields that you need from the 4 tables . Activate.
    2. Goto SE 80 Select The Function Group , Copy , Select the Function module
    " RSAX_BIW_GET_DATA_SIMPLE " and Give a New name starting With
    Y or Z .
    3. SE37 ->Your Function module name -> Change , In table tab give your structure
    name by deleting the associated type given in " E_T_DATA " .
    4. Now select source code and Do the coding . Give Data source name in Coding .
    In your case you have to take data from more that 1 table .
    5. Activate the Function Group .
    6. In RSO2 Create the Data source , Give the Function Module Name , And Save.
    7. RSA3 -> Give data source name and Check for the Records .
    Creation of custom datasource. (Using function module)
    <b>is an example</b>
    1.Create a function group .
    2. Structure ZTEST123
    ZMATNR MATNR CHAR 18 0 Material Number
    ZMTART MTART CHAR 4 0 Material type
    ZMBRSH MBRSH CHAR 1 0 Industry sector
    ZMATKL MATKL CHAR 9 0 Material group
    ZBISMT BISMT CHAR 18 0 Old material number
    ZMAKTX MAKTX CHAR 40 0 Material description
    3. Create function module (i.e. ZTEST….) .
    FM - YMARA_DATA_TRNS
    FUNCTION YMARA_DATA_TRNS.
    ""Local Interface:
    *" IMPORTING
    *" VALUE(I_REQUNR) TYPE SRSC_S_IF_SIMPLE-REQUNR
    *" VALUE(I_DSOURCE) TYPE SRSC_S_IF_SIMPLE-DSOURCE OPTIONAL
    *" VALUE(I_MAXSIZE) TYPE SRSC_S_IF_SIMPLE-MAXSIZE OPTIONAL
    *" VALUE(I_INITFLAG) TYPE SRSC_S_IF_SIMPLE-INITFLAG OPTIONAL
    *" VALUE(I_READ_ONLY) TYPE SRSC_S_IF_SIMPLE-READONLY OPTIONAL
    *" TABLES
    *" I_T_SELECT TYPE SRSC_S_IF_SIMPLE-T_SELECT OPTIONAL
    *" I_T_FIELDS TYPE SRSC_S_IF_SIMPLE-T_FIELDS OPTIONAL
    *" E_T_DATA STRUCTURE ZTEST123 OPTIONAL
    *" EXCEPTIONS
    *" NO_MORE_DATA
    *" ERROR_PASSED_TO_MESS_HANDLER
    data : ZTEST123 type ZTEST123 occurs 0 with header line.
    Maximum number of lines for DB table
    STATICS: S_S_IF TYPE SRSC_S_IF_SIMPLE,
    S_COUNTER_DATAPAKID LIKE SY-TABIX.
    DATA: begin of t_mara occurs 0,
    ZMATNR type MATNR,
    ZMTART type MTART,
    ZMBRSH type MBRSH,
    ZMATKL type MATKL,
    ZBISMT type BISMT,
    end of t_mara.
    DATA: begin of t_makt occurs 0,
    ZMATNR type MATNR,
    ZMAKTX type MAKTX,
    end of t_makt.
    Initialization mode (first call by SAPI) or data transfer mode
    (following calls) ?
    IF I_INITFLAG = SBIWA_C_FLAG_ON.
    Check DataSource validity
    CASE I_DSOURCE.
    WHEN 'ZZMARA_DATA'.
    WHEN OTHERS.
    IF 1 = 2. MESSAGE E009(R3). ENDIF.
    this is a typical log call. Please write every error message like this
    LOG_WRITE 'E' "message type
    'R3' "message class
    '009' "message number
    I_DSOURCE "message variable 1
    ' '. "message variable 2
    RAISE ERROR_PASSED_TO_MESS_HANDLER.
    ENDCASE.
    Fill parameter buffer for data extraction calls
    S_S_IF-REQUNR = I_REQUNR.
    S_S_IF-DSOURCE = I_DSOURCE.
    S_S_IF-MAXSIZE = I_MAXSIZE.
    ELSE. "Initialization mode or data extraction ?
    Data transfer: First Call OPEN CURSOR + FETCH
    Following Calls FETCH only
    First data package -> OPEN CURSOR
    IF S_COUNTER_DATAPAKID = 0.
    Determine number of database records to be read per FETCH statement
    from input parameter I_MAXSIZE. If there is a one to one relation
    between DataSource table lines and database entries, this is trivial.
    In other cases, it may be impossible and some estimated value has to
    be determined.
    select MATNR
    MTART
    MBRSH
    MATKL
    BISMT
    from mara up to 10 rows
    into table t_mara.
    if not t_mara[] is initial.
    select MATNR
    maktx
    from makt
    into table t_makt
    for all entries in t_mara
    where matnr = t_mara-zmatnr.
    endif.
    loop at t_mara.
    read table t_makt with key zmatnr = t_mara-zmatnr.
    ZTEST123-zmatnr = t_mara-zmatnr.
    ZTEST123-ZMTART = t_mara-ZMTART.
    ZTEST123-ZBISMT = t_mara-ZBISMT.
    ZTEST123-ZMBRSH = t_mara-ZMBRSH.
    ZTEST123-ZMATKL = t_mara-ZMATKL.
    ZTEST123-zmaktx = t_makt-zmaktx.
    append ZTEST123.
    clear ZTEST123.
    endloop.
    clear E_T_DATA.
    refresh E_T_DATA.
    E_T_DATA[] = ZTEST123[].
    ENDIF.
    S_COUNTER_DATAPAKID = S_COUNTER_DATAPAKID + 1.
    ENDIF. "Initialization mode or data extractio
    ENDFUNCTION.
    3. Create the data source using transaction (RSO2).
    4. If structure exists for the table parameter of your function module then ok else create a structure for the table parameter ‘E_T_DATA’.
    5. Test the datasource in R/3 using transaction RSA3.
    6. Transfer the data source to BW –System and replicate it in the BW-System.

  • Creating a Generic Datasource using Function Module

    Hi Guru's
                  We are tryin to create a Generic datasource using function module, we have found few old how to guides for doing the same but it is not effective and need to be altered. Can anyone suggest me the latest step by step procedure to create the above, also if you have the how to guide kindly paste the link as it will be a great help at this point.
    Thanks in advance
    Regards
    Liquid

    Hi,
    Please goto the Following links  :-
                                                                          PDF
    1)         http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/c062a3a8-f44c-2c10-ccb8-9b88fbdcb008?quicklink=index&overridelayout=true
    2)        http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/a0f46157-e1c4-2910-27aa-e3f4a9c8df33?quicklink=index&overridelayout=true
                                                     SAP Forum
    3)        Re: DataSouce based on FM
    4)       http://forums.sdn.sap.com/post!reply.jspa?messageID=10050614
    5)       https://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/a0f46157-e1c4-2910-27aa-e3f4a9c8df33
    6)       Re: Generic datasource with functional module
    7)       Generic Extractor (FM based) - Delta Enabled
    Regards
    Obaid

  • Creating generic datasource using function module in R/3 4.6c

    Hi,
    I am not able to see the option (in TC RSO2) to create generic datasource using function module in R/3 4.6c. Is there any special plug in or some SAP Note to be applied to get the option ?
    Waiting for a quick response.
    Thanks and Regards,
    Deepak

    Hi Sat,
    Thanks for the reply.
    I know that creating generic datasource from function module is available in R/3 4.7.
    In 4.6c version there are only two options available. They are Extraction from DB View and Extraction from SAP Query.
    The third option i.e. Extraction from Function Module is not available in 4.6c. I wanted to know if there is any plugin that needs to be installed to get this option.
    Thanks and Regards,
    Deepak

  • Problem while creating generic DataSource using table

    Hello all,
    I am creating a generic DataSource using table EKBE. It is giving error " invalid extract structure template EKBE ". The reason is " The system tried to generate an extract structure with the template structure EKBE. This operation failed, because the template structure quantity fields or currency fields, for example, field MENGE refer to a different table (EKPO)".
    Could you suggest how to approach?
    Thanks,
    Zak.

    hi zahir,
    In your case the reference table used for quantity is ekko and the field is meins.
    and the reference table used for currency is ekpo and the field is waers.
    So you are not taking data from a single table. so you better create a view give the table name ekbe and select the corresponding fields you want.
    Add MEINS and WAERS and as well your required field in the view for example Zview and for Quantity field mention Zview as reference table and reference field as MEINS same for WAERS.
    try this if it doent work, tell me what error you are facing.
    with regards!
    ramesh

  • Generic DataSource using FM - Delta doubt

    Hi All,
    I have few doubts on Generic DataSource Delta.
    I am working on one HR requirement. where I need to pull the Mandatory courses information.
    to get this done, we have created one Generic DataSource using Function Module.
    FM has huge and complex logic, at present it is taking long time when I run in RSA3, if I continue with this to BI, daily running FULL load to BI is not suggestible, because it takes much time to load.
    I have planned to set the Delta, just want to know what would be the best option to set the delta option for this requirement? and how?  I have 2 dates (Course Start and End dates), Employee, Course Id, Course Type, Position, Job, etc in my DS structure.
    Please suggest someone so that I can do FULL load once in BI and continue with Delta without missing any delta records going forward. 
    Regards,
    Kiran

    Hi,
    In mystrucure used dates are not relating to aedat and erdat, they are CHAR type. here the requirement is little different.
    Regards,
    Kiran

  • How to Install 64-bit "Generic / Text Only" print driver on a 32-bit Windows 2003 Server?

    Hi All,
    In a nutshell, I need to Install the 64-bit Generic / Text Only print driver on a 32-bit Windows 2003 Server’s “Generic / Text Only 32-bit print queue.
    The problem is that there is no Driver-Disk to get the drivers. I’ve been able to isolate 14 files related to the 64 bit drivers from a Windows 7 x64 computer and copy them to a temp folder on the Windows 2003 x32 server. When I try to add the 64 bit driver
    to the Windows 2003 x32 server,  it wants a *.inf file, which I don’t have and can’t find.
    Because Microsoft will no longer support Windows XP, my client is replacing all of their Point-of-Sale Windows XP x32 systems with Windows 7 x64. They use Terminal Services (Remote Desktop) to connect to a Windows 2003 x32 server to use the POS system. The
    POS software redirects LPT1 back to the local Generic / Text Only printer. This works great for XP x32.
    When we use the Terminal Services POS software on the new Windows 7 x64 system, none of the labels print out because it’s redirected in 32-bit back to the local Windows 7 x64 Generic / Text Only 64-bit printer.
    This will be a huge issue for me if I can’t get this to work.
    Thanks in advance for any suggestions and help! -Rob

    those may be helpful...
    http://social.technet.microsoft.com/Forums/en-US/a129f49a-0216-41f0-b190-3efb46fbb8ac/generic-text-only-driver-on-windows-2008-server-r2?forum=winserverprint
    http://blogs.technet.com/b/yongrhee/archive/2009/09/14/how-to-add-64-bit-print-drivers-on-32-bit-windows-server-2003-or-windows-server-2008-print-server.aspx
    Best,
    Howtodo

  • Error  while creating Generic data source using FM

    Hi Experts,
    I try to create a generic data source using the Function Module via the  transaction RSO2. I got the following error messages.
    " Das Einheitenfeld CURR des Feldes ZPKZA1 der DataSource ZBWN_DS_POLPOSP ist ausgeblendet"
    " Das Einheitenfeld CURR des Feldes ZPKZA2 der DataSource ZBWN_DS_POLPOSP ist ausgeblendet"
    " Das Einheitenfeld CURR des Feldes ZPKZA10 der DataSource ZBWN_DS_POLPOSP ist ausgeblendet"
    "The unit field CURR of the field ZPKZA1 of the DATA SOURCE ZBWN_DS_POLPOSP is not visible/ stopped/ hide".
    for all 10  fields of type CURR.
    How shall i handle this issue..........any suggestions please........
    thanks in advance
    cheers
    sailekha

    Hi,
    Are your CURR fields refereded to a currency field of your structure?? Maybe the problem is that the field containing the currency is refered to other table/structure and it has to be one of your structure fields.
    Hope this helps,
    Regards,
    Carlos.

  • Creation of Generic Data source using function module based on the program which was used to created ABAP report

    Hi,
    We have a requirement to create a BI report based on plant maintenance report. The plant maintenance report is based on a ABAP program with complex logic. My question is i want create a Generic Datasource using Function module and can I include the logic(Abap Program) that is used for plant maintenance report in the function module? Please share your thoughts.
    Thanks,
    Ravi

    Hi,
    Step1-Create a table structure which you need to create same as the fields you require in you data source.
    Step 2-create a custom abap program and inside that call the Client abap program with the selections as required and save the result data in some table
    Step 3-create infoset query.In the infoset query give your table structure name and  program name which you developed.
    Step4-create data source on top of that query

  • Connection to text datasource fails with REP-4100

    I built a Report with text datasource; doing like the "how to" document tells:
    (set up the textpds.conf, attach text datasource to the report)
    I use the file:///&<p_file> user parameter to define the datasource file and location like described in this reports forum
    "Dynamic name for Text Pluggable Data Source".
    Using report builder everything works fine; I can change the location of text datasource via user parameter as I need.
    Porting the report to production environment (unix) and using the rwservlet the Report fails.
    REP-4100: Failed to execute data source
    java.lang.NullPointerException
    Has Anyone an idea how this can resolved?
    Thanks a lot
    Jost

    Just found the solution myself:
    I need to pass the &<p_file> parameter value without "file:///"
    only "C:/myhomedir/text.txt"
    or "/usr/home/myhomedir/x.txt" on unix platform.
    Parameter passing via URL also works.

Maybe you are looking for

  • Sharepoint Online Lookup as Document Property for Word Quick Parts

    I'm trying to use Word Quick Parts and the document properties determined by my Sharepoint metadata to automatically fill in portions of the document I'm creating.  Then, I have templates for my company's documents that I'd like to use Quick Parts to

  • Problem in capturing the edited data while the table is sorted

    hi, i am using the TableSorter class provided by the sun tutorials to add sorting capability for my JTable. i need to print on the screen, the value of the cell whenever it is updated. so i am using TableModelListener and its tableChanged() method fo

  • SVG Viewer 2.0 の同意文

    はじめまして.Masudaです. SVG を使ったアプリケーションの開発を行おうと思っているのですが. Viewer を 2.0 にしたところ.SVGのページが更新されるたびに同意文が表示されます. 文中に「登録フォーム」がどこかにあるとかかれているのですが.どこにあるかわかりません. どうにかしてこの同意文の表示を一回にする方法はないでしょうか?

  • Parsing date/time with extra characters

    I have a date/time that I would like to parse to make more readable. The original format is like so: 2009-04-26T19:39:00-04:00 This is the date, then 24hr time which is separated by a T, then the time zone. In this case, the time zone is EDT, -4 hour

  • Apple TV Take 2: No movies for Canadians

    So I got the update but there is absolutely no movie content for Canadians. What gives? It would have been great if Apple made this "important" information available weeks ago. I would never have purchased this thing. I am very unimpressed with the n