SE37, Function module test, copy & paste table values ?!?!

Hi all,
if i run a function module test with se37 and want to fill the table values from the clipboard, nothing happens.
There is a button in the Status line called "Insert Data" with the clipboard symbol but it seems not to work...
Anyone here who knows how to solve this ? By the way are there any new transactions for testing function modules, where ALV Grid is used for parameter transfer for the tables ?
Thx....

Hi,
If you check that properly it is for INSERT DATE not data so it may be used to insert Dates in date fields i guess.
As it is only for testing FM's, you cannot expect all functionalities there, otherwise you have to write a sample program to check the FM using CALL Function.
Regards
Karthik D

Similar Messages

  • Function Module To Copy Abap tables with data

    Hi,
    Is there an easy way to copy abap tables with the data to another destination table using function modules or sample codes?

    What do you mean for "destination"? Another SAP system e.g. an RFC destination?
    And what kind of table do you need to copy? Ztables? Standard Tables?
    If you mean Standard Tables, your task isn't a  safe procedure.

  • Call an executable program inside function module and pass the table values

    Hi,
           i'm pretty new to HR Abap programming. I have a requirement like "calling an executable program within a function module and the output of the program data(Stored in internal tables) should be passed to the function module tables".
    I've some idea about SUBMIT keyword and i used it in the function module..
    Please do the needful to solve this.
    Regards,
    Selvi.

    Hi,
    Thanks for all your reply.
      I've used Option 3 as per dsouzajovito suggestion. Now i'm getting data in function module tables using import/ export table to memory concept.
    Again a small issue arises, while i'm executing function module it fetches all pernr available in the server and displays the details of last pernr. GET pernr statement is used in the Z report and submit statement is used like this as follows.
      SUBMIT ZHR_RFC_PAYSLIP   WITH  PERNR-PERNR EQ EMPCODE
                                          WITH PYBEGDA EQ FDATE
                                          WITH PYENDDA EQ LDATE
                                          AND RETURN.
    Pls suggest if there is any corrections in the code.
    If i give a pernr as input in the function module, then it should fetch the details related only to that pernr.
    FYI, No selection screen is used here as per requirement.
    Regards,
    Selvi.

  • How to make use of SE37- Function Module & how to find out the table?

    Hi ,
    1.Could anyone help me what's this SE37-Function module is all about,How to make use of this?
    For Eg,If i want to delete a BOM permanently from the system then I have to use the Function module CM_DB_DEL_FROM_ROOT_BOM.
    But after giving the particular name what should i do?
    Please help me.
    2.How to find out the respective table for a particular field sya for T code-COGI, T code MFBF,where its values are getting populated.,Please help in this issue.
    Thanks in adavnce for spending some time
    Raj.S

    Hi Raj
    Function Modules
    Function modules are procedures that are defined in special ABAP programs only, so-called function groups, but can be called from all ABAP programs. Function groups act as containers for function modules that logically belong together. You create function groups and function modules in the ABAP Workbench using the Function Builder.
    Function modules allow you to encapsulate and reuse global functions in the SAP System. They are managed in a central function library. The SAP System contains several predefined functions modules that can be called from any ABAP program. Function modules also play an important role during updating  and in interaction between different SAP systems, or between SAP systems and remote systems through remote communications.
    Unlike subroutines, you do not define function modules in the source code of your program. Instead, you use the Function Builder. The actual ABAP interface definition remains hidden from the programmer. You can define the input parameters of a function module as optional. You can also assign default values to them. Function modules also support exception handling. This allows you to catch certain errors while the function module is running. You can test function modules without having to include them in a program using the Function Builder.
    The Function Builder  also has a release process for function modules. This ensures that incompatible changes cannot be made to any function modules that have already been released. This applies particularly to the interface. Programs that use a released function module will not cease to work if the function module is changed.
    Check this link
    http://help.sap.com/saphelp_nw2004s/helpdata/en/9f/db988735c111d1829f0000e829fbfe/content.htm
    You can execute function module in SE37ie you can perform the activiites defined in the function module by executing it.
    By deleting BOM you mention the FM name in se37 and execute. In some function module it will ask input parameters as developed in the program , you have to give the input parameters and execute.

  • Any function module to read all the values in Tcode-PPQD?

    Hi all
    Is there any function module to read all the values in Tcode-PPQD (Display Qualifiaction Catalog).
    and any idea what tables are involved to get these values like parent and child relationship?
    Thanks in advance.
    Murali.

    Murali,
    you can use the following..
    data: w_sobid type sobid, "Qualification ID
          w_objid type objid. "Qualification Catalog
    select objid  into w_objid
                  up to 1 rows
                  from HRP1001
                 where otype = 'QK'
                   and plvar = '01'
                   and istat = 1
                   and risgn = 'B'
                   and relat = '030'
                   and endda ge sy-datum
                   and begda le sy-datum
                   and sclas = 'Q'
                   and sobid = w_sobid.
    endselect.
    if sy-subrc eq 0.
    write: / w_objid,w_sobid.
    endif.
    Regards,
    Suresh Datti

  • 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

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

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

  • Is there any RFC function module to read domain fixed value

    Hi,
    Is there any RFC function module to read domain fixed value from remote system in basis layer?
    As we cannot simply wrap DD_DOMVALUES_GET with a new RFC module,because remote system will not install our component, our wrap function module is not there.
    We may need a RFC fm from basis layer.

    HI,
    Try using Function Module:
    DD_DOMA_GET , If it is RFC enabled it can be used for reading the domain,
    Kindlly go through this link below:
    How to get "Fixed Domain Values" from other system by RFC-Call?
    Hope it helps,
    Regards
    Mansi

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

  • Remote enabled function module to copy a variant

    Hi
    Kindly let me know whether there is any remote enable function module to copy a variant  and save a  variant.
    Thanks and Regards
    neeta

    HI,
    Use the Function moduels
    <b>RS_VARIANT_CLIENTCOPY 
    RS_VARIANT_COPY   </b>    
    Regards
    Sudheer

  • Why can't I copy/paste tables correctly? (CS6)

    Sorry for having to ask such a basic question. I am new to ID.
    I am following this tutorial:
    http://tastytuts.com/video/managing-formatting-text-tables-in-adobe-indesign
    At 25:10, he creates a 2x16 table into which he pastes a table from iWork Pages. He does this by:
    - Selecting the entire table in Pages
    - Selecting every cell in the blank ID table
    - Copying the Pages table and hitting paste in ID
    The Pages table is mapped, cell for cell, to the ID table.
    However, when I try this method, only the lefthand side of the ID table is populated. Every Pages cell ends up in the left hand column (the number of rows increases to accommodate them) and the right hand side is left empty.
    What am I doing wrong? Is this the standard way of copying/pasting tables? Is there a better method?

    Arghh. As far as I can tell, I'm doing all that. It just won't paste properly.
    Here's what I do:
    Using type tool, I click on the destination frame.
    I insert the 2x16 table.
    I select all the cells in Pages and copy them.
    Using type tool, I select all the cells in ID.
    I hit paste.
    The only thing I can think of it that ID is expecting the table in one format, and Pages is copying the table to the clipboard in another format. 

  • Any function module to round of a value to two decimal places?

    Hi gurus,
    Any function module to round of a value to two decimal places?

    Hi,
    you can use FM 'ROUND'.
    Thanks.

  • 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

Maybe you are looking for

  • Good NTSC Monitor?

    Greetings, Can anyone recommend a good affordable NTSC Monitor? Thanks!

  • Iweb picture gallery commands

    When a photo is clicked on to view in gallery , words "previous" and "next" appear below the enlarged photo in grey. Above are words "back to album" and "download". I dont like the grey color of the text, it disappears into my background--the value i

  • How can I sync new songs when 6th generation ipod says syncing is complete but new songs added on itunes are not synced to ipod

    my new 6th generation synced fine the first time I added my cd's to itunes.  Thereafter, I added additional cd's which are on itunes but the message I receive is syncing is complete but they do not appear on my ipod.  Only the original cd's are still

  • Request for cookbook on Mobile SERVICE Application

    Hi, I've been trying to get some technical docs for Mobile SERVICE, but I couldn't. I'm new to Mobile Service CRM, and have just started to support CRM mobile client SERVICE application. I have downloaded some related documents from SAP, but if you h

  • Troublw with Batch Capture

    I am currently reimporting a sequence I originally edited in ProRes Proxy from AVCHD camera originals. I have made an off line copy of the sequence in media manager with 1 sec handles. When I batch capture the new sequence log and transfer finds all