Developing your own function modules

In NW2004s SP20 WebAs 640C Under Unix
for Customizating CCMS alert messages paramaters does not working... so I have to create own function modules
Can anyone tell me how to create own function modules
Travis

refer this link:
http://help.sap.com/saphelp_nw70/helpdata/en/9f/db98fc35c111d1829f0000e829fbfe/content.htm
Regards,
Ravi

Similar Messages

  • Transaction BUS3 - Further checks - Own function module

    In order to create additional checks on BP Identification Numbers, we used tx BUS3 to add to view BUP520 under Further Checks our own function module.
    As a start we took a straight copy of BUP_BUPA_PAI_MISC, the SAP delivered function module.
    After the SAP FM, our Z-module gets called with parameter I_SICHT, identical to the
    parameters of the SAP FM. No other parameters nor tables get passed.
    How can we get hold of the same data as the SAP FM ? We want to check e.g. table
    GT_BUT0ID (identification numbers). It is filled in the SAP FM at the end of FORM bup520_pai, but is empty in the Z-module ?
    Thanks for your solution.

    Hi.
    We also validate the ident. numbers but on check or save event.
    Create and Add the new z.fm to the event DCHCK (appl = 'BUP') in tcode BUS7.
    We use some trick to get this data from memory [SAPLBUD0].
    You can try to use it for the PAI (the same f.group = BUD0)
    function z_gzp_but0id_get.
    ""Local interface:
    *"  TABLES
    *"      OT_BUT0ID STRUCTURE  ZGZP_ST_BUT0ID OPTIONAL
    *"      OT_MEM_BUT0ID STRUCTURE  VBUT0ID OPTIONAL
      data: lv_fname1(50) type c value '(SAPLBUD0)GT_BUT0ID[]'.
      data: lv_fname2(50) type c value '(SAPLBUD0)MEM_BUT0ID[]'.
    ***------ ID-NUMMERN -
         BEGIN OF GT_BUT0ID OCCURS 0.
           INCLUDE STRUCTURE XBUT0ID.
    **DATA:   XMARK     LIKE BOOLE-BOOLE,
           TEXT      LIKE TB039B-TEXT,
           ENTRYDATESTR TYPE BU_ENTRYDATESTR,
           DATEFROMSTR  TYPE BU_DATEFROMSTR_ID,
           DATETOSTR    TYPE BU_DATETOSTR_ID,
         END   OF GT_BUT0ID,
    ***------ ID-NUMMERN: ZUORDNUNGEN (ALTER STAND) -
         BEGIN OF GT_BUT0ID_OLD OCCURS 0.
           INCLUDE STRUCTURE XBUT0ID.
    **DATA: END OF GT_BUT0ID_OLD,
    corresponds to declaration of gt_but0id in include LBUD0TOP
      types: tp_s_but0id type zgzp_st_but0id.
      types: tp_t_but0id type standard table of zgzp_st_but0id.
      types: tp_s_mem_but0id type vbut0id.
      types: tp_t_mem_but0id type standard table of vbut0id.
      field-symbols: <fs1> type tp_t_but0id.
      field-symbols: <fs2> type tp_t_mem_but0id.
      data: ls_but0id1 type tp_s_but0id.
      data: ls_but0id2 type vbut0id.
      if ot_but0id is requested.
        assign (lv_fname1) to <fs1>.
        clear ot_but0id[].
        loop at <fs1> into ls_but0id1.
          ot_but0id = ls_but0id1.
          append ot_but0id.
        endloop.
      endif.
      if ot_mem_but0id is requested.
        assign (lv_fname2) to <fs2>.
        clear ot_mem_but0id[].
        loop at <fs2> into ls_but0id2.
          ot_mem_but0id = ls_but0id2.
          append ot_mem_but0id.
        endloop.
      endif.
    endfunction.
    I hope it helps.
    Regards, Robert

  • SQL Loader: using your own function

    Hi,
    Is it possible to include your own function in sql*loader? Would this be a correct syntax?
    LOAD DATA
    APPEND
    INTO TABLE MY_TABLE
    IDE "my_seq.nextval"
    CLIENT_NBR POSITION (1:10)          CHAR     
    CLIENT_TYP POSITION (11:12)     "MY_PACKAGE.MY_FUNCTION(:CLIENT_TYP)"
    )So the value of the data ( position 11:12) needs te be processed first by the function. The result of the function needs to be stored in the CLIENT_TYP column.
    Thank you
    Message was edited by:
    Ratjeuh

    still yes/yes after the edit?Yes :)

  • Function Module for REBDBU0012-BU Field Modification Criteria - Sample reqd

    We are using three distinct type of Business Entities to look after three types of business of client. For this we have defined three number ranges for each such BE. Now, we wish to use Transaction code "REBDBU0012-BU Field Modification Criteria " and wish to define the field status of based in BE number range criteria.
    I have discussed this in detail with my developer but he is unable to find any help/functional module. Is there any sample object available with in SAP library or if any member from SAP community could help us in it.
    Regards
    Rohit Goel

    Hi Rohit,
    function module that gets field status für BU in standard is REBU_REBU_EVENT_FMOD2.
    There is no such function module that fulfills your requirement available yet.
    For your requirement you have to develop your own function module with the same parameters and in the function module you have to insert the logic to determine the field status as you require it.
    You may use REBU_GET_BUSOBJ to get the data of the object and so you should have all necessary information. As I already mentioned you can use RERO_RERO_EVENT_FMOD2_USAGE as an example.
    Hope that helps.
    Regards, Franz

  • To know Function module

    Hi all,
    I want to know a FM which generates gatepass number automatically by giving 2 parameters as input.
    Expecting reply....

    Hi,
    I don't think any such function module exists.
    Looks like it is your client specific requirement.
    If the Gatepass number and its relavent data exists in the Database, then you can develop your own function module to get that details.
    If the Gatepass number and its relavent data does not exists in the Database, then you can develop your own function modules to generate/get that details.
    Thanks,
    Ramakrishna

  • What is function module?wn we use it in "generic extractor"

    hi  friends
    i dont know what is function module?wn we,and how we will creat it? whats tha use of it? send me notes with some real time examples
    i  will waiting for ur replays

    What is FM extractor and when we are using :
    Sometimes, if your application or requirement makes it necessary, you have to create your own function module to extract the data from whatever sap system to bw.
    Therefore you normally make a copy of the standard fm 'RSAX_BIW_GET_DATA_SIMPLE'. To make this new function work for you, you have to realize the following.
    Generic Extraction via Function Module
    Generic Extraction via Function Module
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/a0f46157-e1c4-2910-27aa-e3f4a9c8df33
    http://help.sap.com/saphelp_nw04/helpdata/en/86/1c8c3e94243446e10000000a114084/frameset.htm

  • Spell amount functional module

    hi guys,
             i want u guys to help me out here.i need a functional module which works exactly like SPELL_AMOUNT.The issue is that i want the amount 100,000 to be spelt as 1 lakh instead of one hundred thousand.

    hi Arup,
    If you look at the documentation of the Function Module, it tells you that the table T015Z has to be customized for your language if the default format of the spelled amounts is not acceptable.
    Unfortunately, the vales are stored only based on the language, and not on the currency. So If you configure the table for the English language, then all users who log on in English will get the same format (LAKHS, CRORES etc.,). This may not be acceptable for users in a country like US where the format preferred might be MILLIONS , BILLIONS etc.,
    Please exercise caution before going ahead with configuring the table.
    The only other alternative (to modifying the table) that I can think of will be to write your own function module!!
    or check the below program
    FUNCTION Z_FI_AMT_WRDS_CONVERT .
    ""Local interface:
    *" IMPORTING
    *" REFERENCE(AMT)
    *" EXPORTING
    *" REFERENCE(WORD) TYPE SPELL-WORD
    amt_c1 = amt.
    replace '.' with 'D' into amt_c1.
    SEARCH amt_c1 for 'D'.
    IF sy-subrc = 0.
    amt_wh1 = amt_c1+0(sy-fdpos).
    wrk_fdpos = sy-fdpos + 1.
    amt_dc1 = amt_c1+wrk_fdpos(2).
    ELSE.
    amt_wh1 = amt_c1.
    amt_dc1 = '00'.
    ENDIF.
    amtnmr = amt_wh1.
    amtdec = amt_dc1.
    CONCATENATE amtnmr amtdec INTO amount.
    CALL FUNCTION 'SPELL_AMOUNT'
    EXPORTING
    amount = amount
    currency = 'INR'
    filler = ' '
    language = 'E'
    IMPORTING
    in_words = amountrs.
    *WRITE: / 'amount in figures: ' ,'Rs.-->', AMTNMR,'.',AMTDEC.
    *WRITE: / 'Amount in WORDS.: ' ,' Rs.' ,AMOUNTRS-WORD,
    *'AND' ,AMOUNTRS-DECWORD ,'Paisa Only'.
    *SKIP.
    CLEAR: unit1,digit1,unit2,digit2,unit3,digit3,unit4,digit4,word1,word2,
    word3,word4,word.
    digit1 = amtnmr+14.
    unit1 = amtnmr+13.
    digit2 = amtnmr+12.
    unit2 = '0'.
    digit3 = amtnmr+11.
    unit3 = amtnmr+10.
    digit4 = amtnmr+9.
    unit4 = amtnmr+8.
    digit5 = amtnmr+7.
    unit5 = amtnmr+6.
    digit6 = amtnmr+5.
    unit6 = '0'.
    digit7 = amtnmr+4.
    unit7 = amtnmr+3.
    digit8 = amtnmr+2.
    unit8 = amtnmr+1.
    digit9 = amtnmr.
    unit9 = '0'.
    *WRITE:/ 'UNIT9 = ' , UNIT9, 'DIGIT9 = ', DIGIT9.
    IF ( unit1 NE '0' ) OR ( digit1 NE '0' ).
    SELECT SINGLE wort INTO word1 FROM t015z WHERE einh = unit1
    AND ziff = digit1 AND spras = 'E'.
    word1 = t015z-wort.
    REPLACE ';' WITH '' INTO word1.
    *write: / word1.
    ENDIF.
    IF unit2 NE '0' OR digit2 NE '0'.
    SELECT SINGLE * FROM t015z WHERE einh = unit2
    AND ziff = digit2 AND spras = 'E'.
    word2 = t015z-wort.
    REPLACE ';' WITH '' INTO word2.
    CONCATENATE word2 ' HUNDRED ' INTO word2.
    *REPLACE '(FEMININE)' WITH '' INTO WORD2.
    *write: / word2.
    ENDIF.
    IF unit3 NE '0' OR digit3 NE '0'.
    SELECT SINGLE * FROM t015z WHERE einh = unit3
    AND ziff = digit3 AND spras = 'E'.
    word3 = t015z-wort .
    CONCATENATE word3 ' THOUSAND ' INTO word3.
    REPLACE ';' WITH '' INTO word3.
    *write: / word3.
    ENDIF.
    IF unit4 NE '0' OR digit4 NE '0'.
    SELECT SINGLE * FROM t015z WHERE einh = unit4
    AND ziff = digit4 AND spras = 'E'.
    word4 = t015z-wort.
    REPLACE ';' WITH '' INTO word4.
    CONCATENATE word4 ' LAKH ' INTO word4.
    *WRITE: / WORD4.
    ENDIF.
    IF unit5 NE '0' OR digit5 NE '0'.
    SELECT SINGLE * FROM t015z WHERE einh = unit5
    AND ziff = digit5 AND spras = 'E'.
    word5 = t015z-wort.
    REPLACE ';' WITH '' INTO word5.
    *write: / word5.
    ENDIF.
    IF unit6 NE '0' OR digit6 NE '0'.
    *UNIT6 = 'H'.
    SELECT SINGLE * FROM t015z WHERE einh = unit6
    AND ziff = digit6 AND spras = 'E'.
    word6 = t015z-wort.
    REPLACE ';' WITH ' ' INTO word6.
    CONCATENATE word6 ' HUNDRED ' INTO word6.
    *REPLACE '(FEMININE)' WITH '' INTO WORD6.
    *write: / word6.
    ENDIF.
    IF unit7 NE '0' OR digit7 NE '0'.
    SELECT SINGLE * FROM t015z WHERE einh = unit7
    AND ziff = digit7 AND spras = 'E'.
    word7 = t015z-wort.
    REPLACE ';' WITH ' ' INTO word7.
    CONCATENATE word7 ' THOUSAND ' INTO word7.
    *write: / word7.
    ENDIF.
    IF unit8 NE '0' OR digit8 NE '0'.
    SELECT SINGLE * FROM t015z WHERE einh = unit8
    AND ziff = digit8 AND spras = 'E'.
    word8 = t015z-wort.
    REPLACE ';' WITH '' INTO word8.
    CONCATENATE word8 ' LAKHS ' INTO word8.
    *write: / word8.
    ENDIF.
    IF digit9 NE '0'.
    unit9 = '0'.
    SELECT SINGLE * FROM t015z WHERE einh = unit9
    AND ziff = digit9 AND spras = 'E'.
    word9 = t015z-wort.
    REPLACE ';' WITH ' ' INTO word9.
    *REPLACE '(FEMININE)' WITH ' ' INTO WORD9.
    CONCATENATE word9 ' HUNDRED ' INTO word9.
    ENDIF.
    CONCATENATE word9 word8 word7 word6 word5 ' CRORE ' INTO wordc
    SEPARATED BY space.
    *WRITE:/ 'Amount in Rs.------->'.
    IF amountrs-decword NE 'ZERO'.
    CONCATENATE ' AND PAISE ' amountrs-decword INTO dcwrd
    SEPARATED BY space.
    ENDIF.
    IF amtnmr > 9999999.
    *WRITE: / WORDC.
    *ENDIF.
    CONCATENATE 'RUPEES' wordc word4 word3 word2 word1 dcwrd 'ONLY'
    INTO word SEPARATED BY space.
    ELSE.
    CONCATENATE 'RUPEES'word4 word3 word2 word1 dcwrd 'ONLY'
    INTO word SEPARATED BY space.
    ENDIF.
    CLEAR dcwrd.
    *WRITE :/ WORD.
    *WRITE: 'AND' ,AMOUNTRS-DECWORD ,'Paise Only
    ENDFUNCTION.
    or try to use the below function module
    HR_IN_CHG_INR_WRDS
    if u find it useful just mark some points
    Regards,
    Naveen

  • SUP use own RFC Function module

    Hello there,
    I wanted to create my own RFC Function Module to get a list of purchase orders. So I could use my FM to create a MBO in Sybase WorkSpace. But I've got a problem, whenever I want to add a new MBO and start searching for my own FM, it can't find my Function Module....
    How can I use my FM in SUP workspace ?
    greetings,
    Amintah

    Hello,
    I have basically the same Problem.
    I developed a function module to retrieve maintenance orders from the SAP System.
    Therefore I created a package and assigned it to the PM (Plant Maintenance) application component.
    Now when I connect to the SAP Server in the SUP WorkPlace, there is only one folder called "Application Components". In its subfolder "Plant Maintenance" I can't find my own function modules.
    Do I have to search somewhere else or is there anything else I have to do first?
    Thank you for your help in advance!
    Regards,
    Daniel

  • How can I turn off the WLS 6.1 security in order to develop my own application-based security module?

    Dear Colleagues,
    I am currently developing a J2EE application using WLS 6.1.
    My team and I have to implement a security requirement to suit our company's needs.
    The security requirements are that, users' password need to be aged (30 days maximum) and we need to provided a GUI front-end (JSP) to allow users to change their password when these expire after 30 days.
    Our internal contacts in the company, have already taken the lead to find out about whether we will be able to use the WLS 6.1 platform to do this and the answer we got back, was.
    Now we need to develop our own security module.
    I have 2 questions:
    1. How can we turn off the WLS security in order develop our own application-based security module?
    2. How can we develop a security module that allows us to age users' password and provide them with facilities to change their passwords when these expire?
    At the moment, we are using the default BEA WebLogic login.jsp page and there some configuration in the web.xml for this. I will be grateful if you could advise me on how to turn this default security off so that we can write our own security module.

    hi,
    1.You can write your own realm in 61 which can plugged for your security
    calls.
    2. once you write your ownrealm.. you can access it through weblogic
    api/ur api..
    thanks
    kiran
    "Richard Koudry" <[email protected]> wrote in message
    news:3dd0d081$[email protected]..
    Dear Colleagues,
    I am currently developing a J2EE application using WLS 6.1.
    My team and I have to implement a security requirement to suit ourcompany's needs.
    >
    The security requirements are that, users' password need to be aged (30days maximum) and we need to provided a GUI front-end (JSP) to allow users
    to change their password when these expire after 30 days.
    >
    Our internal contacts in the company, have already taken the lead to findout about whether we will be able to use the WLS 6.1 platform to do this and
    the answer we got back, was.
    >
    Now we need to develop our own security module.
    I have 2 questions:
    1. How can we turn off the WLS security in order develop our ownapplication-based security module?
    >
    2. How can we develop a security module that allows us to age users'password and provide them with facilities to change their passwords when
    these expire?
    >
    At the moment, we are using the default BEA WebLogic login.jsp page andthere some configuration in the web.xml for this. I will be grateful if you
    could advise me on how to turn this default security off so that we can
    write our own security module.

  • Function module to copy INVOIC IDOC

    One of our customers use the IDOC message type INVOIC. When the IDOC are received and the proces has been started, we will like to make a copy of the IDOC with the status code 70.
    I know this functionality exist when we change the segment data using the transaction code BD87, and I have debugged this transaction, but the "copy" functionality are developed in the program SAPLEDI5 and not in a function module.
    I am looking for a function module to handle this functionality. Hope you can help me.
    Per Larsen

    To make a copy of idoc message type, you simply have to find the linked Function module of the Idoc. So for INVOIC, there would be a linked Function Module , you can copy the interface of the Function Module and build your own custom Function Module (Z function module) to attach it to the message type.
    So the steps to your problem would be:
    1. Copy the FM to attached mesaage type into a Z function module.
    2. Write the functionality you require in your Z function module.
    3. Attach the message type/ idoc type to this function module. The systematic steps to this can be simply carried out in the Transaction WEDI which is an area menu for EDI/IDOC . Depending on whether it is inbound/outbound, you can follow the steps.
    Cheers!
    Disha

  • Standard function modules to get birthday list etc.

    Dear all,
    I need to read the following information, it is nice to have standard function modules, do you know any?
    1. monthly birthday list
    2. anniversaries of people in a month
    3. Entries/Exits of people in a month
    4. reminder for other HR events like Performance Review and Expiry of Probation
    Thanks a lot.

    Alex
    goto t-code SE37 and do a wildcard search:
    type *birth* and hit the F4 key on keyboard
    the list of function modules to extract brithdates will list out.
    you will need to spend time to review if each of them fits your requirement
    likewise for other function, feel free to do the wildcard search using the keyword in Se37
    should you are not able to find any FM for your use, i am afraid you may need to develop your own FM
    Edited by: Gregg Chen on May 19, 2011 3:20 PM

  • BAPI Function Modules

    Hi Experts,
               Where can I find the Bapi Function Modules.
    Can u provide me the coding part of how to use BAPI in our program .
    Will be rewarded if helpful.
    Regards.

    Hi Raj,
    Foremost of all before you can search for a BAPI you should know the BAPI you are going to use depending on your need. Generally when you are in a project the Functional Consultant gives you the BAPI which you need to use unless you are developing your own BAPI.
    By going to the Transaction BAPI, you can search for the BAPI you need. This transaction takes you to the BAPI Explorer where all the BAPI’s are listed in two ways,
    •     Alphabetical Order
    •     Hierarchical Order
    When the BAPI you need is found you can get all the details regarding all the parameters that are used in the BAPI and also as to how they are declared. DOCUMENTATION is provided for all the BAPI parameters describing them. In the DOCUMENTATION for the BAPI you fill find how a particular BAPI can be used to perform different operations. For ex: the BAPI called BAPI_PROJECT_MAINTAIN can be used perform UPDATE or RELEASE operations.
    Some useful tips when using a Standard BAPI,
    •     Go through all the data declarations of the BAPI parameters and check if any Conversion Rules are used. This is helpful as you will need to declare variables for every parameter in BAPI that you would be used by you. And all these variables should be declared of the same data type as the BAPI parameters.
    •     Check to see if there any mandatory fields that need to be passed. Look for all the BAPI parameters that you would need and declare variables for them and map them correctly.
    •     Though RETURN (generally a table) is may not be mandatory it’s useful to use it as any messages regarding success or error while processing the BAPI are populated in it. In some cases the RETURN may be a structure and in such a case there would another table where messages are populated. These are useful to be used in the program.
    •     After processing BAPI, if successful then the Function Module BAPI_TRANSACTION_COMMIT is performed to save the changes. But if it’s not successful then the Function Module BAPI_TRANSACTION_ROLLBACK is performed to rollback any changes that would have occurred. 
    Sample Program,
    Note: 1. Here the BAPI called BAPI_PROJECT_MAINTAIN is used. This BAPI is used to
             “Edit project including networks”. It can be used perform operations like UPDATE
               or RELEASE and others. Here it’s used to perform UPDATE operation (Here
               ROFIT_CENTER is updated).
    2. Here a Function Module called “CONVERSION_EXIT_ALPHA_INPUT” is used
               to convert the profit center from the External Format(Format as in the program) to
               Internal Format (Format in the BAPI).
    (You can use this program to check out.)
    DATA: wk_i_project_definition TYPE bapi_project_definition,
          wa_i_method_project     TYPE bapi_method_project,
          wa_i_wbs_element_table  TYPE bapi_wbs_element,
          it_i_method_project     TYPE STANDARD TABLE OF bapi_method_project,
          it_i_wbs_element_table  TYPE STANDARD TABLE OF bapi_wbs_element.
    DATA: wk_i_project_definition_upd   TYPE bapi_project_definition_up,
          wk_return                     TYPE bapireturn1,
          wa_i_wbs_element_table_update TYPE bapi_wbs_element_update,
          wa_e_message_table            TYPE bapi_meth_message,
          it_i_wbs_element_table_update TYPE STANDARD TABLE OF bapi_wbs_element_update,
          it_e_message_table            TYPE STANDARD TABLE OF bapi_meth_message.
    CONSTANTS: _index(6)       TYPE c VALUE '000001',
               _wbselement(11) TYPE c VALUE 'WBS-ELEMENT',
               _update(6)      TYPE c VALUE 'UPDATE',
               _save(4)        TYPE c VALUE 'SAVE'.
    wk_i_project_definition-project_definition = 'M-1000000000'.
    wk_i_project_definition_upd-project_definition = 'X'.
    wa_i_method_project-refnumber  = _index.
    wa_i_method_project-objecttype = _wbselement.
    wa_i_method_project-method     = _update.
    wa_i_method_project-objectkey  = 'M-1000000000:00001-003'.
    APPEND wa_i_method_project TO it_i_method_project.
    CLEAR wa_i_method_project.
    wa_i_method_project-method = _save.
    APPEND wa_i_method_project TO it_i_method_project.
    wa_i_wbs_element_table-wbs_element = 'M-1000000000:00001-003'.
    wa_i_wbs_element_table-profit_ctr  = '65576'.
    CALL FUNCTION 'CONVERSION_EXIT_ALPHA_INPUT'
      EXPORTING
        input  = wa_i_wbs_element_table-profit_ctr
      IMPORTING
        output = wa_i_wbs_element_table-profit_ctr.
    APPEND wa_i_wbs_element_table TO it_i_wbs_element_table.
    wa_i_wbs_element_table_update-profit_ctr = 'X'.
    APPEND wa_i_wbs_element_table_update TO it_i_wbs_element_table_update.
    CALL FUNCTION 'BAPI_PROJECT_MAINTAIN'
      EXPORTING
        i_project_definition               = wk_i_project_definition
        i_project_definition_upd           = wk_i_project_definition_upd
      IMPORTING
        return                             = wk_return
      TABLES
        i_method_project                   = it_i_method_project
        i_wbs_element_table_update         = it_i_wbs_element_table_update
        i_wbs_element_table                = it_i_wbs_element_table
      I_WBS_MILESTONE_TABLE              =
      I_WBS_MILESTONE_TABLE_UPDATE       =
      I_WBS_HIERARCHIE_TABLE             =
      I_NETWORK                          =
      I_NETWORK_UPDATE                   =
      I_ACTIVITY                         =
      I_ACTIVITY_UPDATE                  =
      I_RELATION                         =
      I_RELATION_UPDATE                  =
        e_message_table                    = it_e_message_table
      I_ACTIVITY_ELEMENT                 =
      I_ACTIVITY_ELEMENT_UPDATE          =
      I_ACTIVITY_MILESTONE               =
      I_ACTIVITY_MILESTONE_UPDATE        =
    IF wk_return IS INITIAL.
      CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'
    EXPORTING
      WAIT          =
    IMPORTING
      RETURN        =
      LOOP AT it_e_message_table INTO wa_e_message_table.
        WRITE:/ wa_e_message_table-message_id, wa_e_message_table-message_number,
                wa_e_message_table-message_type, wa_e_message_table-message_text.
      ENDLOOP.
    ELSE.
      CALL FUNCTION 'BAPI_TRANSACTION_ROLLBACK'
              IMPORTING
                RETURN        =
      LOOP AT it_e_message_table INTO wa_e_message_table.
        WRITE:/ wa_e_message_table-message_id, wa_e_message_table-message_number,
                wa_e_message_table-message_type, wa_e_message_table-message_text.
      ENDLOOP.
    ENDIF.
    Regards,
    Raga Suman.

  • Assing the Function module

    hi,
    Good day experts,
    When can we assign the functionmodules in variants. i've developed the new fm in se37. i'd like to assign to variats. but this variant already f.m but its not working properly.
    plz give me solution
    regards,
    kk

    Hi,
       You can directly create a new process code and assign your custom function module name to the process code, to create process code the tcodes are WE41(For Outbound) & WE42 (For Inbound). When at the time of creation it is asking for function module name, there you can give your own custom module name.
    Rgds,
    Bujji

  • Problem with Call transaction method in function module

    Dear Frndz,
               I am converting its services into webdynpro.
               I developed a rfc[function module] for travel management [TRIP] . In that rfc i used call transaction method[BDC] to upload the data. The same rfc will be called from the frontend[portal].It is working fine in development for whome se37 execution authorization was assigned. It is not working for other users.  I hope it is something relevant to authorization .If suppose can i create a authorization  object for this rfc and assign it to the profile.
            Normally  users can be given authorization to run the tcode.
    similarly i want to give the authorization to be given users to execuste this funtion module.
    huv can i do it ?? any suggestion.
    Rgds.
    siva

    Use ST01 transaction to start authorization trace, you will then see what authorizations are missing (if your assumption is right of course, i.e. if it's really an authorization problem)

  • Any inbuilt Function Module available in CRM to create a Business Partner

    Hi All,
    I need to create a business partner in CRM not manually through GUI. I need to develop a function module that will create a Business Partner in CRM.
    Can some one tell me if there is an in-built BAPI/Function Module availabe in CRM to create a business partner in CRM.
    When i researched i found that there is a BAPI BAPI_BUPA_FS_CREATE_FROM_DATA2 which can create a business partner in CRM.
    I dont know how to use this BAPI, can some one help me with some sample code.
    Also will the development of a function module differ in CRM when compared to ECC?

    Hello,
    Standard CRM PC UI application offers three options when you push 'New' button: 'Person', 'Organization' and 'Group' (combobox appears). In your case, 'Person' should be selected.
    p.s. If you don't see combobox mentioned above, it could be security issue.
    Kirill

Maybe you are looking for

  • What do you like in an application.

    hey guys, I've been discussing with a couple of friends about what makes the games that we use addictive, and makes you want to use it in your spare time. so of use have some time, could you please describe what you like in an Application for iPhone/

  • Canon Utilities Camera Window DC has encountered a problem and needs to close

     I just purchased Powershot SX260 HS. I loaded the software and all works except the Camera Window. I keep getting the message encountered a problem and needs to close. I have tried uninstalling all of the software on my PC related to canon (this is

  • Withholding Tax - Rounding Off

    Hi, I have problems on my withholding tax setup, it automatically round off even if my settings in the currency is NO ROUNDING. My SAP is 8.8 patch 13. I have no problems on Vat, only on withholding tax amount. Kindly advise. Thanks, Harlene

  • Importing existing site made in another app into iWeb

    Hi, Is it possible to import to iWeb a site created in RapidWeaver? Or, at somehow have any new iWeb site I do, and keep the work I did the in RW online. I don't necessarily need to edit it, but I'd like to keep that RW site intact and available. Als

  • Positive Values

    I need to be able to enter only positive numbers in a field. How do I do this in Forms. I tried format mask 9999999. Do I need to write a when_validate_item trigger ??? I have the same type of item in different blocks..please suggest. Thanks