Linking Function Module to R/3 table in Crystal Reports

Hi Experts,
I am creating a report wherin I am linking a function module to a R/3 table. When I try to preview this report, I am getting "Failed to retrieve data from database" and then"Invalid Argument Provided".
If I exclude either FM or Table from report, both return data to the report.
It is Crystal Reports 2008
SAPGUI 720
CRDB OpenSQL dll is 12.3.0.601
Thank you
IMS

Hi all,
This issue is apparently fixed by applying FP3.1.
Will do so and update the post here.
Cheers
IMS

Similar Messages

  • How to save function module in a custom table..

    hi experts,
    i need your help, how can i save a customize function module into a custom table?is this possible?
    i need your reply ASAP..
    thanks,
    mau

    Hi,
    pls chk this links:
    Generic extraction via function module blog siggi
    /people/siegfried.szameitat/blog/2005/09/29/generic-extraction-via-function-module
    Generic extraction via function module
    BW genenric delta not TABLE but VIEW
    http://help.sap.com/saphelp_nw2004s/helpdata/en/9f/db98fc35c111d1829f0000e829fbfe/frameset.htm
    http://help.sap.com/saphelp_nw2004s/helpdata/en/d1/801ee8454211d189710000e8322d00/frameset.htm
    Re: how to use a function module
    http://help.sap.com/saphelp_nw70/helpdata/en/2a/f9ff95493111d182b70000e829fbfe/frameset.htm
    **pls assign points,if link is useful*
    Regards
    CSM Reddy

  • Function Module: how to setting table import parameter

    hi, i'm developing a function module. i create a TABLES where it will allow multiple variables  IMPORT from user input to this function module. the tables i set as OPTIONAL and decribed as below.
    PSPID     PS_PSPID     CHAR     24
    POSID     PS_POSID     CHAR     24
    AUFNR     AUFNR     CHAR     12
    PSY     J_STATUS     CHAR     5
    PUS     J_STATUS     CHAR     5
    in my source code, i done a select statement to process the IMPORT input . the problems i face,for the PSY and PUS  input,  if the one or both input is BLANK, NO RESULT will display. What i'm try to do , if input one or both  is BLANK, it wil neglect the input and return as ALL RESULT (return result oir all status for input pspis / posid / aufnr)  . attached the select statement. thank you
    itparm[] = objparm[].
    select
        a~pspnr a~stspr a~objnr a~pspid
        b~psphi b~objnr as wobjnr b~posid
        c~aufnr c~objnr as nobjnr c~pspel
        d~objnr as jeobjnr d~inact d~stat
        e~objnr as jcobjnr e~udate e~usnam e~utime e~stat as jcstat e~inact as jcinact
        f~istat as syistat
        f~txt04 as sytxt04
        f~spras
        g~estat as usestat
        g~txt04 as ustxt04
        into corresponding fields of table itobj
        from proj as a
        inner join prps as b on a~pspnr = b~psphi
        inner join aufk as c on b~pspnr = c~pspel
        inner join jest as d on c~objnr = d~objnr
        inner join jcds as e on d~objnr = e~objnr
                             and d~stat = e~stat
        inner join tj02t as f on e~stat = f~istat
        inner join tj30t as g on a~stspr = g~stsma
        for all entries in itparm
        where ( a~pspid = itparm-pspid
        or b~posid = itparm-posid
        or c~aufnr = itparm-aufnr )
       and ( f~istat = itparm-PSY and g~estat = itparm-PUS ).

    Thanks for your quick reply. actually the data will be somehing like this. since i developed a function module, i keep the import parameter in a table.
    PSPID     PS_PSPID     CHAR     24
    POSID     PS_POSID     CHAR     24
    AUFNR     AUFNR         CHAR     12
    PSY       J_STATUS     CHAR     5
    PUS      J_STATUS     CHAR     5
    the example data will be in OTPARM internal table
    PSPID              POSID          AUFNR     PSY     PUS
    aa-aa-aa         a1                                  I001
    bb-bb-bb                              b1                        E009
    cc-cc-cc
    i'll store  this into an internal table. from the data. it can be seen there a BLANK input. so the blank input should not be included into WHERE connditions. that why in the previous solution, i use SELECT inside LOOP because every line of the IMPORT tables will be generated with different WHERE conditions. i tried to do something like this:
    PSPID         POSID     AUFNR     PSY     PUS        cond_syx
    aa-aa-aa     a1                           I001                  if proj~pspid = itparm-pspid and prps~posid = itparm~posid and ....
    bb-bb-bb                   b1                         E009     if proj~pspid = itparm-pspid and aufk~aufnr = itparm~paufnr and ....
    cc-cc-cc                                                             if proj~pspid = itparm-pspid
    and implement with FOR ALL ENTERIES, but at the WHERE conditions i failed to put the CONF_SYX. please comment and give opinions. Thanks you very much.

  • Function Module to read EDIDC table data.

    Dear All,
    I am retrieving data from EDIDC table depending upon the creation date and message type. But it is consuming a lot time and hence while going for more than one month data , it gives run time error.
      I found while going through debugger that maximum time is consumed  by the SELECT query in retrieving the EDIDC data.
    Is there any Function Module for retrieving EDIDC table data.
    If so kindly let me know.

    How can a fm replace this performance issue ? You have only two fields to be passed such as creation date and message type.
    For the table EDIDC there is a secondary index 3 for message type. Did you use that ? What is your query written ?
    If you look into the standard report RSEIDOC2, the field for creation date used is UPDDAT. It implies usage of secondary index 2
    Refer line no 114
    Regards
    Kesav

  • Function Module to modify MARC table

    Hi all,
    Is There any Function Module which modifys the table MARC.
    please suggest.
    regards,
    chandra.

    Hello Reddy,
    Check this sample code:
    *& Report  ZYTEST02                                                    *
    report  zytest02                      .
    parameters:matnr like bapimathead-material,
               maktx like bapi_makt-matl_desc     default 'Mat. autm. AE',
               werks like bapi_marc-plant,
               vkorg like bapi_mvke-sales_org,
               vtweg like bapi_mvke-distr_chan.
    start-of-selection.
      perform material_create using matnr
                                    maktx
                                    werks
                                    vkorg
                                    vtweg.
    *&      Form  material_create
    *       text
    *      -->P_MATERIAL  text
    form material_create using    value(p_matnr)
                                  value(p_maktx)
                                  value(p_werks)
                                  value(p_vkorg)
                                  value(p_vtweg).
      tables: mara.
    * shift p_matnr right deleting trailing space.
    * translate p_matnr using ' 0'.
      data: headdata    like bapimathead occurs 0 with header line.
      data: clientdata  like bapi_mara.
      data: clientdatax like bapi_marax.
      data: salesdata   like bapi_mvke.
      data: salesdatax  like bapi_mvkex.
      data: plantdata   like bapi_marc.
      data: plantdatax  like bapi_marcx.
      data: return         like bapiret2.
      data: taxclassifications like bapi_mlan   occurs 0 with header line.
      data: commitmessages like bapi_matreturn2 occurs 0 with header line.
      data: returnmessages like bapiret2        occurs 0 with header line.
      data: materialdescription like bapi_makt  occurs 0 with header line.
      data: charx value 'X'.
    * Kopfdaten
      headdata-material   = p_matnr.
      headdata-matl_type  = 'FERT'.
      headdata-ind_sector = 'M'.
    * Sichten die gepflegt werden sollen
      headdata-basic_view = charx.  "Sicht auf Grunddaten
      headdata-sales_view = charx.  "Sicht auf Vertriebsdaten
    * Daten für die Sicht GRUNDDATEN 1
      materialdescription-langu = sy-langu.
      materialdescription-matl_desc = p_maktx.
      append materialdescription.
    * Mandantenspezifische Materialdaten
      clientdata-base_uom  = 'ST'.
      clientdatax-base_uom = charx.
      clientdata-trans_grp  = '0001'.
      clientdatax-trans_grp  = charx.
    * Materialdaten auf Werksebene
      plantdata-plant = p_werks.
      plantdatax-plant = p_werks.
      plantdata-loadinggrp = '0001'.
      plantdatax-loadinggrp = charx.
    * Verkaufsdaten
      salesdata-sales_org = p_vkorg.
      salesdatax-sales_org = p_vkorg.
      salesdata-distr_chan = p_vtweg.
      salesdatax-distr_chan = p_vtweg.
    * Steuerklassifikation
      taxclassifications-depcountry = 'DE'.
      taxclassifications-tax_type_1 = 'MWST'.
      taxclassifications-taxclass_1 = '1'.
      append taxclassifications.
      call function 'BAPI_MATERIAL_SAVEDATA'
        exporting
          headdata                   = headdata
          clientdata                 = clientdata
          clientdatax                = clientdatax
          plantdata                  = plantdata
          plantdatax                 = plantdatax
    *   FORECASTPARAMETERS         =
    *   FORECASTPARAMETERSX        =
    *   PLANNINGDATA               =
    *   PLANNINGDATAX              =
    *   STORAGELOCATIONDATA        =
    *   STORAGELOCATIONDATAX       =
    *   VALUATIONDATA              =
    *   VALUATIONDATAX             =
    *   WAREHOUSENUMBERDATA        =
    *   WAREHOUSENUMBERDATAX       =
           salesdata                  = salesdata
           salesdatax                 = salesdatax
    *   STORAGETYPEDATA            =
    *   STORAGETYPEDATAX           =
        importing
          return                     = return
        tables
          materialdescription        = materialdescription
    *   UNITSOFMEASURE             =
    *   UNITSOFMEASUREX            =
    *   INTERNATIONALARTNOS        =
    *   MATERIALLONGTEXT           =
          taxclassifications         = taxclassifications
          returnmessages             = returnmessages
    *   PRTDATA                    =
    *   PRTDATAX                   =
    *   EXTENSIONIN                =
    *   EXTENSIONINX               =
      call function 'BAPI_TRANSACTION_COMMIT'
           exporting
                wait   = charx
           importing
                return = commitmessages.
    *  commit work and wait.
    * Für den Fall das es notwendig wird die Exclusive Sperre wegräumen
           CALL FUNCTION 'DEQUEUE_EMMARAE'
                EXPORTING
                    matnr = p_matnr.
    * if return-type ne 'S'.
        format color col_negative.
        loop at returnmessages.
          write: / returnmessages-message.
        endloop.
    * endif.
      loop at commitmessages.
        write: / commitmessages-message.
      endloop.
    endform.                    " material_create
    If useful reward.
    Vasanth

  • Is there any delivered BAPI or Functional modules available for MCHB table

    Hi Experts,
    I have a requirement where I have to pull inventory data from MCHB table without custom code. Is there any delivered BAPI or Functional modules available for MCHB table?
    Kindly help!
    Thanks
    Gopal

    Hi,
    Can you check using the Fun Modules
    MG_BATCH_CHECK_STOCK
    VB_READ_BATCH_WITHOUT_STOCK
    VB_BATCH_GET_ALL_STOCKS
    Regards,
    Anji

  • Storing the output of a function module into a custom table

    Hi Gurus,
    Is it possible to store the output of a function module into a custom table.How can this be done?Is it complex?

    hi,
    After u execute the FM and get values in the internal table ITAB_RESULT. Create a custom table having structure same as ITAB_RESULT call it ZRESULT.
    data :wa type ITAB_RESULT.
    call FM and get result it ITAB_RESULT
    loop at itab_result.
    move-corresponding itab_result to wa.
    insert wa to ZRESULT.
    endloop.
    Regards,
    Mansi.

  • How to find function modules used in maintenance table views

    Hi,
    How do I find the function modules used in maintenance table views?
    I'm using SM30 and trying to open the custom table but there is an error message saying CREATE DATA PROCESSING FUNCTION MODULE.
    Thanks.
    Kath

    hi
    in se80 select functon group and put your table function group name there and click display. it will show you the function modules used for that tables.
    Regards
    Madhu

  • Make CFL for user defined tables in Crystal Report 8.8 ?

    Hi Experts
    Use Follwing qry for CFL ( user defined tables) in Crystal Report But its not Show CFL after run the Report in SAP B1 8.8
    Period@Select T0.*  from @OICC T0
    Thanks & Regards
    Dinesh Lade

    Hi,
    As far as i know, SBO can't figure out in such instance what are you doing, try linking it to an original table.
    I usually use OADM for this purpose.
    Hope this helps.
    Regards,
    Daniel

  • Desgin a smple table in Crystal reports

    Hi,
    I am trying to design a simple table in crystal reports 2008. like this
    |__________________________|____________________________|
    |__________________________|____________________________|
    |__________________________|____________________________|
    |__________________________|____________________________|
    is there  a way to do it without trying to arange each field for hours?
    And when viewing in the crstyalviewer (winforms) (for VS2010) kills once again all formatting and looks terrible.
    Please help
    Edited by: sadenick on Feb 18, 2011 5:11 PM

    As I read this post, I see two queries.
    1) report design in CR 2008
    2) formatting issue when using the report in VS2010
    The former question shoud be posted to the [SAP Crystal Reports Design|SAP Crystal Reports, version for Visual Studio;
    For the latter; what version of CR are you using in VS2010?
    and
    "...formatting and looks terrible" does not tell me much. A picture is worth a thousand words and more in this case. Please provide a link to a screen shot of what you expect and what you get.
    Ludek
    Follow us on Twitter http://twitter.com/SAPCRNetSup
    Got Enhancement ideas? Try the [SAP Idea Place|https://ideas.sap.com/community/products_and_solutions/crystalreports]

  • How Do I Display HTML Formatted Text From A Data Table In Crystal Reports?

    I'm creating reports in Crystal XI.  The information being displayed in the reports comes from data tables where the text is formatted in HTML.
    I've worked with Crystal Reports enough to know that HTML text pulled from a data table doesn't appear in Crystal the same way it does in a web browser.  Crystal Reports ignores all the tags (...unless I'm missing something...) and just displays the text.
    Someone far more Crystal savy than I (...who I don't have access to...) came up with a Formula Field workaround that tricks Crystal Reports into displaying some basic HTML tags.  Here's that workaround:
    <!--
    stringVar TableName := ;
    TableName := Replace (TableName, "<ul>","<br> <br>");
    TableName := Replace (TableName, "<li>", "<br>   &bull; ");
    TableName := Replace (TableName, "</li>", "");
    TableName := Replace (TableName, "</ul>","<br> <br>");
    TableName := Replace (TableName, "<a", "<u><font color='blue'");
    TableName := Replace (TableName, "</a>", "</font></u>");
    TableName
    -->
    QUESTION - Does any similar workaround exist so I can display an HTML Table in Crystal Reports?  If not, is there any way to display HTML formatted text from a data table in Crystal Reports as it would appear in a web browser?

    Hi Steven,
    To display html text in Crystal Reports follows these steps.
    1. Right click on the field and select Paragraph tab.
    2. Under 'Text Interpretation' select 'HTML Text' and click OK.
    I have tried using the way,but it never works.So reply me if there is any way to solve the issue

  • Need help in creating table in crystal report for visual studio 2010

    Since there is no table support in crystal report,how can I create a table in crystal report for visual studio 2010?
    I have a datatable and I need to show that in crystal report in table structure.
    I have tried using lines and boxes to generate the table but it is not working perfectly.
    How can I export the report in excel format in read/write mode saving all the formatting in the report

    Hi,
    Check sample codes from following:
    http://wiki.sdn.sap.com/wiki/display/BOBJ/CrystalReportsSDKSampleApplications
    You can download the [Developer's Guide|http://help.sap.com/businessobject/product_guides/boexir31/en/crsdk_net_dg_12_en.chm] & [API Guide|http://help.sap.com/businessobject/product_guides/boexir31/en/crsdk_net_apiRef_12_en.chm]
    Thanks,
    Saurabh

  • Writing to a table using Crystal Reports

    I know there must be a way to write to a table after Crystal Reports collects the data.
    Can someone kindly go over the steps in doing so?  I'm using SQL Server.  Let's assume the data returned is one row.
    Thanks in advance,
    Zack H.

    Hi Zack,
    Use the export option and then chose ODBC. CR will create the table based on the fields in the report.
    Thank you
    Don

  • How to use function module together with tables in Crystal Report?

    Dear all expert,
    I have the following situation where I need to use a function module in my crystal report, But how can I link the FM with the tables so that I can pass out some value from the FM to the report?
    Thank You.

    Hi,
    Hope the following helps..
    1)
    LOOP AT IT_OUTPUT.
    Call the function module to get the tracking number and store the output in the
    variable V_TRACKINGNO.
      IT_OUTPUT-TRACKING_NO = V_TRACKINGNO.
      MODIFY IT_OUTPUT TRANSPORTING TRACKING_NO.
    ENDLOOP.
    2) Date conversion
    DATA: V_CHAR(10) VALUE '2006.11.17'.
    DATA: V_DATE       TYPE SYDATUM.
    CONCATENATE V_CHAR(4) V_CHAR5(2) V_CHAR8(2) INTO V_DATE.
    WRITE: V_DATE TO V_CHAR MM/DD/YYYY.
    WRITE: / 'MM/DD/YYY Format - ',  V_CHAR.
    Please make sure to reward points for helpful answers..
    Thanks,
    Naren

  • Is there any function module to lock t024 table

    is there lock object for t024 table?otherwise any fm for locking t024 table?

    Hi Naren,
    <b>Good ... check out the following documentation
    Lock objects are used to lock the database table while making the modifications on the database table.
    you can create your own lock objects using SE11.
    if you create lock objects on any table system will create two function modules.
    1.ENQUEUE....
    2.DEQUEUE.....
    first one is used to lock the table
    second one used to removing lock on the table.
    lock Table
    CALL FUNCTION 'ENQUEUE_E_TABLE'
    EXPORTING
    tabname = table_name
    EXCEPTIONS
    foreign_lock = 1
    system_failure = 2
    OTHERS = 3.
    Unlock Table
    CALL FUNCTION 'DEQUEUE_E_TABLE'
    EXPORTING
    tabname = table_name
    check this link :
    http://help.sap.com/saphelp_40b/helpdata/en/cf/21eea5446011d189700000e8322d00/content.htm
    _SCOPE = 1: The lock is not sent to the update program. The lock is removed when the transaction is ended.
    _SCOPE = 2: The lock is sent to the update program. The update program is responsible for removing the lock. The dialog program which requested the lock no longer has an influence on the lock behavior. This is the standard setting for the ENQUEUE function module.
    _SCOPE = 3: The lock
    Re: lock objects
    Managingin lock entries
    http://help.sap.com/saphelp_nw04/helpdata/en/37/a2e3ae344411d3acb00000e83539c3/frameset.htm
    http://help.sap.com/saphelp_nw04/helpdata/en/7b/f9813712f7434be10000009b38f8cf/frameset.htm
    http://help.sap.com/saphelp_nw04/helpdata/en/cb/168237d30d974be10000009b38f8cf/frameset.htm</b>
    Good Luck and thanks
    AK

Maybe you are looking for

  • IWeb and multiple users

    So i'm trying to see how i can set up a website in iweb and edit that website from multiple computers and it stay up-to-date. is there a way to do this?

  • Not able to sync it stops abruptly

    i am not able to sync after connecting to i tune it stops abruptly

  • Display Question - dead pixels?

    Hey guys... I just got my macbook about 5 days ago and I noticed in the screen there is this area of white/highlights, and then a small circle of what looks like dead pixels. They're always white, but hardly noticable unless you're watching a movie o

  • How to install the SAPlink plugins

    Hi, i executed the program ZSAPLINK and imported the file NUGG_WD_TIMESTAMP_VALUE_HELP_DEC2008.nugg ,but its showing "There is no installed SAPlink plugin for object type TABL There is no installed SAPlink plugin for object type TABL There is no inst

  • Forms 6i Group Query Issue

    I am populating two Combo Box's by means of a group query. The end user has the option to clear this form by pressing a button which does a CLEAR_FORM built in function. Everything seems to clear fine except for Combo Box's. For some reason, they ret