Brief explanation on function module mentioned...

Hello Every one,
Please explain me about SWE_EVENT_MAIL and SWW_WI_CREATE_VIA_EVENT_IBF function modules with its parameters.

Hi,
SWE_EVENT_MAIL    Whenever a mail needs to be sent to a user when a particular event has raised then this function module can be used.

Similar Messages

  • How to release a transport request with warnings using a function module?

    Hi,
    I want to release a transport request(which has some warnings) using some function module .
    The warnign that i get when i try to release the Transport Request manually is "not all objects could be locked..."
    Which function module can I use so i can release such a transport request?
    I am currently using TR_RELEASE_REQUEST but I am unable to release the TR, it throws an exception.
    Also i wouls assume that the function module mentioned would take care of releasing all the unreleased task
    under the request.
    Regards,
    Bikash.

    Hello Bikash
    As an alternative (to cope with the warnings) you may use TRINT_RELEASE_REQUEST.
    However, since this fm offers only a single task/request as IMPORTING parameter you need to take care about unreleased tasks yourself. Looking at SE09/SE10 even there you do not have the option the release a request including all its tasks.
    Regards
      Uwe

  • Function Module to send email

    Hi All,
    Is there a Function Module in R/3 that can send external emails?
    Thanks!
    Roman D.

    I usually use the following function module.  I believe that it eventually calls the function module mentioned in the previous post.  Here is a sample program.
    report zrich_0003 .
    data: maildata type sodocchgi1.
    data: mailtxt  type table of solisti1 with header line.
    data: mailrec  type table of somlrec90 with header line.
    start-of-selection.
      clear:    maildata, mailtxt,  mailrec.
      refresh:  mailtxt, mailrec.
      maildata-obj_name = 'TEST'.
      maildata-obj_descr = 'Test'.
      maildata-obj_langu = sy-langu.
      mailtxt-line = 'This is a test'.
      append mailtxt.
      mailrec-receiver = '[email protected]'.
      mailrec-rec_type  = 'U'.
      append mailrec.
      call function 'SO_NEW_DOCUMENT_SEND_API1'
           exporting
                document_data              = maildata
                document_type              = 'RAW'
                put_in_outbox              = 'X'
           tables
                object_header              = mailtxt
                object_content             = mailtxt
                receivers                  = mailrec
           exceptions
                too_many_receivers         = 1
                document_not_sent          = 2
                document_type_not_exist    = 3
                operation_no_authorization = 4
                parameter_error            = 5
                x_error                    = 6
                enqueue_error              = 7
                others                     = 8.
      if sy-subrc <> 0.
    * MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
    *         WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
      endif.
    Regards,
    Rich Heilman

  • Triggering of Function modules in FILASYST

    Hi,
    Can any please let me know when does the function modules mentioned in FILASYST config get triggered.
    I am trying to create a service contract from CRMD_ORDER and trying to check if the function modules listed in FILASYST gets triggered on save of the service contract as i need to add a custom function module to add some entries in custom FICA table on saving the contract.
    Thanks,
    Ruby J.

    Hi,
    You can create a service call and specify the function module name you want to use. This will create a Controller Method which actually uses the FM.
    Tell me if you need the detail steps.
    Achyut

  • Use of  BILDSEQUENZ_IDENTIFY Function module

    Hi Friends,
    what is the use of  BILDSEQUENZ_IDENTIFY Function module.. and when we use ???
    Regards,

    ITS_DOWNLOAD is used when trying to download a file via the ITS.  For example you have created an ABAP program with the ability to download the file.  You then make that program available through the WEBGui or other ITS Service.  The function modules mentioned above do a check whether the user is logged in through the ITS or the SAPGui.  If it is the ITS, then this function module is called.
    I am not sure of the exact issues, but the normal download from SAP Gui does not work through the ITS.
    Regards,
    Chris

  • Function Module SAP_CONVERT_TO_TEX_FORMAT

    Dear ABAPers,
    I find function SAP_CONVERT_TO_TEX_FORMAT module really useful to concatenate fields in internal table into one text delimited with character. But somehow I found that this function module delete space in the data. For example if I have text 'Convert      to     text', automatically the result is 'Convert to text' (only single space between 2 character). Does anybody know the solution for this issue?
    This function module has importing parameters:
    I_FIELD_SEPERATOR
    I_LINE_HEADER
    I_FILENAME
    I_APPL_KEEP
    I only use importing parameter I_FIELD_SEPERATOR to set delimited character. I don't know the function of other parameters and I can't find any documentation for it. Probably one of this parameter can prevent space deletion. Are there anybody can confirm about it? Or should I find another function module?
    Kindly need any help on this issue.
    Thanks
    Regards
    Hadi

    Hi Hadi,
    <li>I have gone through the function module mentioned. They are condensing extra spaces.  You can check with below code.
    CONDENSE <F_SOURCE>.
    <li>If you dont want the way function module works, You can copy to ZSAP_CONVERT_TO_TEX_FORMAT, Remove CONDENSE statement in the code.
    Regards,
    Venkat.O

  • Function Module to read Info cube data

    Hi Guys,
              Is there any function module which is used to read the data in the info cube and collect the data to an internal table?
    Thanks
    Kumar

    Reading data from ODS is the best choice provided (1) you have full key, (2) there is an index on ODS for the search fields, or (3) ODS doesn't have too many records.
    If performance starts becoming an issue (due to the lack of one of the three conditions mentioned above), you have no other choice but to read from the cube and only reliable way to query a cube is to use the function module mentioned earlier.

  • Function module to read error message provided message class and mssg no.

    Hi experts,
    I am trying to populate my database table with the error message.
    The error message as comming form standard code in an ITAB.
    I am getting the error class and message number.
    Can any body please tell me any function module to read the error.
    Or is there any way to populate the database table with the error message.
    Regards,
    Sandipan.

    Hi,
        You can use the Function module mentioned below.
    call transaction 'VA42' using bdcdata  mode  w_mode
                                        update  w_synch
                                      messages into it_mesgtab.
        loop at it_mesgtab into wa_mesgtab where msgtyp ca 'EA'.
        endloop.
        if sy-subrc <> 0.
          read table it_mesgtab into wa_mesgtab index 1.
        endif.
        call function 'MESSAGE_TEXT_BUILD'
          exporting
            msgid               = wa_mesgtab-msgid          "Messg class
            msgnr               = wa_mesgtab-msgnr          "Messg No.
            msgv1               = wa_mesgtab-msgv1
            msgv2               = wa_mesgtab-msgv2
            msgv3               = wa_mesgtab-msgv3
            msgv4               = wa_mesgtab-msgv4
          importing
            message_text_output = it_err-sapmessage.
       Append it_err.
    Regards,
         Srinivas

  • What are function modules used in alv,and its explanation

    what are function modules used in alv,and its explanation

    hi..
    The important function modules are
    Reuse_alv_fieldcatalog_merge
    Reuse_alv_list_display
    Reuse_alv_events_get
    Reuse_alv_grid_display
    Reuse_alv_commentary_write.
    <b>REUSE_ALV_FIELDCATALOG_MERGE</b>
          This function module is used to populate a field catalog which is essential to display the data in ALV.
          If the output data is from a single dictionary table and all the columns are selected, then we need not exclusively create the field catalog. Its enough to mention the table name as a parameter (I_structure_name) in the REUSE_ALV_LIST_DISPLAY. But in other cases we need to create it.
    Note : Fieldcatalog can be filled manually also by filling up all the required details into the internal table     
    The important parameters are:
       1. Export:
            a. I_program_name     : report id
            b. I_internal_tabname     : the internal output table     
            c. I_inclname     : include or the report name where all  
                                                 the dynamic forms are handled.
        2. Changing
           ct_fieldcat     :    an internal table with the type 
                                      SLIS_T_FIELDCAT_ALV which is declared in the
                                      type pool SLIS.
    <b>REUSE_ALV_LIST_DISPLAY</b>
    This is the function module which prints the data.
    The important parameters are:
    1. Export:
          I_callback_program            : report id
          I_bypassing_buffer             : ‘X’
          I_buffer_active                    : ‘ ‘
          I_callback_pf_status_set     : routine where a user can set
                                                             his own pf status or change the
                                                             functionality of the existing pf status.
          I_callback_user_command : routine where the function codes are
                                                               handled.
          I_structure name     : name of the dictionary table
          Is_Layout          : structure to set the layout of the report
          It_fieldcat          : internal table with the list of all fields and their
                                                 attributes which are to be printed (this table
                                                 can be populated automatically by the function
                                                 REUSE_ALV_FIELDCATALOG_MERGE
          It_events          : internal table with a list of all possible events
                                                 of ALV and their corresponding form names.
    2.  Tables:
         a. t_outtab     : internal table with the data to be output
    <b>REUSE_ALV_EVENTS_GET: </b>
          Returns table of possible events for a a list type
    1. Import:
          Et_Events      :
          The event table is returned with all possible CALLBACK events for the specified list type (column ‘NAME’). For events to be processed by the Callback, their ‘FORM’ field must be filled. If the field is initialized, the event is ignored. The entry can be read from the event table, the field ‘FORM’ filled and the entry modified using constants from the type pool SLIS.
    2. Export:
        I_list_type:
              0 = simple list REUSE_ALV_LIST_DISPLAY
              1 = hierarchical-sequential list                                           
                    REUSE_ALV_HIERSEQ_LIST_DISPLAY
              2 = simple block list                                                        REUSE_ALV_BLOCK_LIST_APPEND
              3 = hierarchical-sequential block list
                    REUSE_ALV_BLOCK_LIST_HS_APPEND
    <b>REUSE_ALV_GRID_DISPLAY</b>
      A new function from 4.6 version, to display the results in grid rather than a
      preview.
      Parameters : same as reuse_alv_list_display
    <b>REUSE_ALV_COMMENTARY_WRITE</b>
    This is used in the Top-of-page event  to print the headings and other
    comments for the list.
    It_list_commentary : Internal table with the headings of the type
                                             slis_t_listheader.
        This internal table has three fields:
        Typ : ‘H’ - header, ‘S’ - selection, ‘A’ - action
        Key : only when typ is ‘S’.
        Info : the text to be printed
    <b>plz reward pts if helpful.</b>
    regards
    vijay.

  • How to use the function module which i mentioned, to store the pdf files

    hi,
    SO_NEW_DOCUMENT_ATT_SEND_API1
    I am using above function module to send employ details through mail in pdf format, if i want to store that pdf files in a local computer too, then how should i catch hold off those individual pdf files of all employees, plz help me out with a sample code

    hey iam from functional side can u be little bit clear of that feature
    thanks
    sikindar

  • Definition/Explanation for "obsolete" (for function modules) / unicode?

    Hi,
    I did not find any definition from SAP regarding obsolete function modules, what does SAP mean with obsolete in this context? Is this only relevant for customers which are also switching to unicode enabled systems? Do I have to replace this fm's when we are not switching to unicode during the upgrade?
    Thanks&regards, Dietmar Unger
    Edited by: Dietmar Unger on Mar 10, 2008 4:03 PM
    Edited by: Dietmar Unger on Mar 10, 2008 4:03 PM

    Hello Dietmar,
    my understanding of obsolete function modules is, that they
    - are not supported by SAP any longer
    - no new functionality will be implemented
    - somtimes doesn't work (I've used a function module, that becomes obsolete with a hot package upgrade, which causes a dump, to inform the user of this fm, that it has become obsolete)
    We're in an upgrade from 4.6B to ECC6.0 and we have identified some function modules, marked as obsolete. Until know we have not decided, how to proceed with them, but I think, we will replace them by newer ones (even, if it's not mandatory to replace them, when it works, as expected).
    Best regards
    Stephan

  • Difference between a programe&function module in R/3 & BW

    Hi Gurus
                    i would like to know differenece between programe and function module in R/3
    and BW, so can some one give me  a brief idea about it cheers thanks .....

    Hi,
    Function modules are ABAP routines that are administered in a central function library. They apply across applications and are available throughout the system. You must assign function modules to a function pool that is called a function group. A function group is nothing but a container for the function modules. Now create a function group and then a function module.
    it is  a kind of standrad program where u can use it in differnt local programes .
    take an example  standrad function module "REUSE_ALV_CHECKBOX_SET"  suppose u want to create a checkbox in output screen u dont need to write a program for that u can use above mentioned function module in ur programe.
    hope this information helps u
    Regards,
    Gurudatt Bellary

  • Enhance sorce code in Function module option

    Dear Expets ,
              Please let me the advantage of the button - enhance source code in the menu bar of the standard function module.
              Can i write my own logic there .
              I am planning to modify the function module - CK_F_INTERNAL_ACTIVITY_VAL - based on certain condition.
    Thanks,
    Dev

    Hi,
    The option mentioned is a part of the enhancement framework provided by SAP to write Implict enhancements
    Search for Keyword "Implict enhancements" in SDN and elsewhere to get a brief idea
    Using this we can write codes in specific areas of the code as indicated by SAP.
    To view these locations -> click on the " enhance source code " button and then go to EDIT->Enhancement Operations -> show Implicit Enhancements ...SAP will highlight the areas where code can be written.
    Right Click on the area required->Enhancement Impelemtation -> Create
    It asks for a "Enhancement Implementation" as  a table control pop-up -> Creata a new one using the "create Icon" and give a suitable name .Your enhancement code will be save under this.
    In case you plan to undo the changes,go to the spot created Right Click ->Enhancement Impelemtation -> Undo
    Always use the "Where -used list" to analyse the impact of the changes when the function module code is changed and use this "Implict enhancement" only as the last option to edit source code.Implicit options may not always be available for all source codes and at all locations desired.
    Hope it helps!
    Regards
    Byju

  • Function Module to Release Scheduled Jobs

    Dear All,
    I have a requirement to create all the background jobs in SCHEDULED status, this is achieved by using the function modules JOB_OPEN, JOB_SUBMIT and JOB_CLOSE.
    Now at a later point of time, i want to release only a few jobs, which were created using the above mentioned procedure. Insead of doing it manually, is there any way to automate this step ??
    Regards,
    kartik

    Dear Mr. Parupalli,
    That solved my problem. Thank you.
    Regards,
    kartik

  • Call RFC Function Module and return 1000 records at a time

    I would like to call a Remote Enabled Function Module from a non SAP system.  This function module will select data from the database and return it to the calling program.
    Suppose there are 100,000 records that need to be returned, but the calling module would like the data in chunks of 1000 records.  Therefore the calling program would call the FM 100 times. 
    How do I code the function module to know on each subsequent call to grab the next chunk of 1000 records? 
    Let me know if additional information is needed.
    Thanks,
    Aaron

    Hello,
    Here is how you can go for this issue:
    1. Create one RFC function module with following parameter. These parameters are with respective of chunking logic.
         Import: Package Size
         Export: Total number of records
         Changing: chunk count
    Implement following logic:
    1. First of you need to know how many chunks you need to fetch for that get the count of total number of records. This is one  
        time activity so you better maintain one flag import parameter will be set to 'X' only first call.
    2. Get the number of chunk using total number of records / chunk size for e.g. 1000 / 100 so chunk count = 10.
    3. Define internal chunk counter in function module which will be used to locate the correct chunk depending on the chunk
        counter value sent from calling program.
    4. Send first call with package size 100 and chunk count = 1, execute select statement and increment internal
        chunk count check if chunk count = internal chunk count in current case chunk count = 1 so exit select statement and return
        with first chunk.
    5. Send second call with package size 100 and chunk count = 2. Execute select statement and check chunk count with internal
        chunk counter, in current case it will be 1 so skip that data and go for next chunk of 100 records increment internal chunk  
        counter. In this case it will match with external chunk count = 2. load output table with that data and return to calling program.
    6. Repeat step 4 until you reach last chunk.
    You need to use SELECT...ENDSELECT with PACKAGE SIZE addition so for every loop it will return number of records mentioned in package size.
    Hope this helps.
    Thanks,
    Augustin.

Maybe you are looking for

  • Added Spry menu in CS3, site is entirely blank in IE 6 or 7, fine in FF, mac

    I've about had it. Built a site, posted here with some issues with a P7 menu adding blue bar. I deleted all the P7 code...page was back to normal, but without a navigation bar. So, I added one of the new Spry bars in DW, set it all up, tested it on m

  • Mapping of XML tags with column

    My xml structure is : <PARAMS> <ROWSET> <ROW NUM="1"> <SID>man123</SID> <PO> <PO>OBJ1</PO> <PI> <PI>PARENTOBJ1 INSTANCE</PI> </PI> </PO> </ROW> </params> My table structure is : CREATE TABLE TEMP(SID VARCHAR2(20),PO POBJECT_T) where Object types are:

  • How to Import a XSD into a ESB.

    Hai, Can anyone make me clear how to import XSD file(PurchaseOrder) into the ESB using File Adapter. If this is BPEL we can simply change the Input message type by invoking XSD while creating the project. In ESB FileAdapter's Define Schema for Native

  • Apple TV and Pioneer 50in Plasma

    Hi All This is my first time posting here. I just purchased an Apple TV and have tried to connect it up. I have a pioneer set top box, pioneer DVD player and recorder and pioneer Receiver. I can see an HDMI plug on the receiver but when I connect it

  • IPad 2 hosed after trying to load 5

    JUst tried loading 5 on iPad. It said I had to restore, Idid that and now its hosed. iTunes won't see it and the iPad itself is stuck on the apple screen. Anyone have a clue how to get this working?