Function module change mode?

Hi,
I created a new function module in namespace created by colleague, I cant edit the source code in created FM. It is showing only in Grey font display in change mode. I can edit other parameters but not the source code.
Can anyone help me this out?
Regards
Giri

Dear Giri,
There must be a Insert Button, through which you can add your codes.
BTW ... What's the name of the Function Module ????
Regards,
Abir
Don't forget to award Points *

Similar Messages

  • Table for Function modules - Changed date & Changed by.

    Hi Experts,
    Help me to get Function module changed date & changed by.
    For programs we can get the mentained information in TABLE : TADIR.

    Function Modules change history can be retrieved from table TRDIR.
    Function Module stores a program Include in table TRDIR.
    The details of the Function Module can be found in Attributes-->general data tab in the Function Module.
    You need to pass the Include which correponds the FM.
    Hence you can find the Log changes.
    Hope this helps.
    Regards
    Vinayak

  • Regarding Function module: function module change numeric to text

    Hi ,
    can any help me what is the function module used for : function module change numeric to text
    suppose:
    if i give :
    Input: 11/12/2007
    Output: 11 December 2007
    What is the FM used for same?
    Plz help me out

    I'm not sure if there is a FM that will directly change Your date to the right format but You can write simple code to do this:
    DATA: lv_subrc LIKE sy-subrc,
          lt_month TYPE TABLE OF t247,
          ls_month TYPE t247,
          lv_odate TYPE string,
          lv_ndate TYPE string,
          lv_char1 TYPE char1.
    lv_odate = '11/12/2007'.
    CALL FUNCTION 'MONTH_NAMES_GET'
      EXPORTING
        language              = sy-langu
      IMPORTING
        return_code           = lv_subrc
      TABLES
        month_names           = lt_month
      EXCEPTIONS
        month_names_not_found = 1
        OTHERS                = 2.
    IF sy-subrc = 0.
      LOOP AT lt_month INTO ls_month WHERE mnr = lv_odate+3(2).
        CONCATENATE lv_odate(2) ls_month-ltx lv_odate+6(4) INTO lv_ndate SEPARATED BY lv_char1.
      ENDLOOP.
    ELSE.
    * MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
    *         WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.

  • Function Module Changing Status of ECR

    Hello,
    Is there any function module/ BAPI to change the status of ECR?
    If i take the transaction cc32, click on status button.
    A user has options to do the following Actions
    Check ECR                     
    ECR Checked                 
    Approve ECR                  
    Convert ECR
    Close ECO
    Release ECO
    Reject ECR
    Withdraw Approval
    Order Incomplete
    Order Complete
    Are there any BAPI/FM for Convert ECR/Clode ECO/Release ECO?
    Please help.
    Regards,
    Remi

    Wrote a BDC program that runs cc32n and release ECR

  • Function Module Changed - Selection Screen still has old values

    Hi All,
    Our data source uses a function module while extraction. (generic)
    We have changed the Text Symbols in our function module.
    In the function module we fill one particular field (master data) as per the logic.
    The changes done are reflected in the dataloads and data is fine in BW.
    our problem is the selection screen in BW and in the reports, it shows the older values as well for that particular field.
    Can anyone help us in this regard?
    thanks
    Sudeepti

    Sudeepti,
    run program
    rsdds_aggregates_maintain for the relevant infoobjects and see if the change is carried over..
    Also check if the text tables for the same refer to the older values...
    Arun
    Assign points if useful

  • Function module change from 4.6 c to 6.0

    hi all,
    plz tell me the new functiom module in ecc6.0  for
    CALL FUNCTION 'PROFILE_GET' in ECC4.6c 
    Right answers wil b awarded points
    Thanks in advance
    Sandeep
    Edited by: Sandeep Reddy on Mar 5, 2008 11:25 AM

    hi,
    Use CL_GUI_FRONTEND_SERVICES=>
    METHOD GET_DESKTOP_DIRECTORY.
    METHOD DIRECTORY_GET_CURRENT .
    METHOD GET_TEMP_DIRECTORY.
    I feel that the methods REGISTRY_GET_DWORD_VALUE, REGISTRY_GET_VALUE could be useful.
    Hope this helps.

  • Generic DataSource - Function Module Changed

    I endup changing a FM that is feeding the Generic DataSrc.
    The BW side is a ODS with data loaded from multiple requests using the Generic DS.
    What are my implications after the change; Do I need to have a full load or Init or ...
    Thanks.

    Hi Gopi,
    it depends on what you are looking for. If the new addition fields are not needed for the history, then the current one should n't cause any issue.
    But if you are looking for the history of the new fields, then you should consider having the full load.
    Secondly, as you have changed the EXTRACT on R/3, it could give you an error like version on BW is old or something like that. For this, Replicate the DS and hence execute this program "RS_TRANSTRU_ACTIVATE_ALL" to activate the trans structure.
    Regards
    GPK.

  • Issues in IDOC_XML_FILE function module in ECC5.0

    Hi,
    I used the function module IDOC_XML_FILE to upload and convert XML file from the application server to idoc. It was working fine in 4.6C. Howeverm when we recently upgraded to ECC5.0, the version of this function module changed. And we are facing issues with this.
    - The FM is not reading the XML file correctly (There are some blank spaces while reading the file using the method, call method l_conv->read(  importing data = g_xml_string ) and
    - The parsing method is throwing error (CALL METHOD l_mini_parser->parse_string)
    Can anybody tell whether any SAP notes available for the corrections.
    Regards,
    Hari

    Question rephrased and asked again to improve clarity

  • Function Groups and Function Modules

    Hi,
    Can anyone give me the detail steps for creating Function Group and then from that function group creation of function module with example?
    Regards,
    Chandru

    Hi,
    Function Group creation -
           A function group is a program that contains function modules. With each R/3 system, SAP supplies more than 5,000 pre-existing function groups.
         In total, they contain more than 30,000 function modules. If the functionality you require is not already covered by these SAP-supplied function modules, you can also create your own function groups and function modules.
          We can put all the relevant function modules under one function group and all the global variables can be declared in this FG.
    FG Creation:
    1)     Function group can be created in SE80. There choose the 'Function Group' from the list of objects.
    2)    Then give a name for ur function group (starts with Y or Z) and press ENTER.
    3)   The click 'YES' in the create object dialog box and give a short desc. for this FG and save.
    Function Module:
                 A function module is the last of the four main ABAP/4 modularization units. It is very similar to an external subroutine in these ways:
    Both exist within an external program.
    Both enable parameters to be passed and returned.
    Parameters can be passed by value, by value and result, or by reference.
    The major differences between function modules and external subroutines are the following:
    Function modules have a special screen used for defining parameters-parameters are not defined via ABAP/4 statements.
    tables work areas are not shared between the function module and the calling program.
    Different syntax is used to call a function module than to call a subroutine.
    Leaving a function module is accomplished via the raise statement instead of check, exit, or stop.
    A function module name has a practical minimum length of three characters and a maximum length of 30 characters. Customer function modules must begin with Y_ or Z_. The name of each function module is unique within the entire R/3 system.
    Defining Data within a Function Module
    Data definitions within function modules are similar to those of subroutines.
    Within a function module, use the data statement to define local variables that are reinitialized each time the function module is called. Use the statics statement to define local variables that are allocated the first time the function module is called. The value of a static variable is remembered between calls.
    Define parameters within the function module interface to create local definitions of variables that are passed into the function module and returned from it (see the next section).
    You cannot use the local statement within a function module. Instead, globalized interface parameters serve the same purpose. See the following section on defining global data to learn about local and global interface parameters.
    Defining the Function Module Interface
    To pass parameters to a function module, you must define a function module interface. The function module interface is the description of the parameters that are passed to and received from the function module. It is also simply known as the interface. In the remainder of this chapter, I will refer to the function module interface simply as the interface.
    To define parameters, you must go to one of two parameter definition screens:
    1) Import/Export Parameter Interface
    2) Table Parameters/Exceptions Interface
    Then in the FM interface screen, give the following
    1) Import parameters
    2) Export parameters
    3) Changing parameters
    Then give
    1) Define internal table parameters
    2) Document exceptions
    You enter the name of the parameter in the first column and the attributes of the parameter in the remaining columns. Enter one parameter per row.
    Import parameters are variables or field strings that contain values passed into the function module from the calling program. These values originate outside of the function module and they are imported into it.
    Export parameters are variables or field strings that contain values returned from the function module. These values originate within the function module and they are exported out of it.
    Changing parameters are variables or field strings that contain values that are passed into the function module, changed by the code within the function module, and then returned. These values originate outside the function module. They are passed into it, changed, and passed back.
    Table parameters are internal tables that are passed to the function module, changed within it, and returned. The internal tables must be defined in the calling program.
    An exception is a name for an error that occurs within a function module. Exceptions are described in detail in the following section.
    Syntax for the call function Statement
    The following is the syntax for the call function statement.
    call function 'F'
        [exporting   p1 = v1 ... ]
        [importing   p2 = v2 ... ]
        [changing    p3 = v3 ... ]
        [tables      p4 = it ... ]
        [exceptions  x1 = n [others = n]].
    where:
    F is the function module name.
    p1 through p4 are parameter names defined in the function module interface.
    v1 through v3 are variable or field string names defined within the calling program.
    it is an internal table defined within the calling program.
    n is any integer literal; n cannot be a variable.
    x1 is an exception name raised within the function module.
    The following points apply:
    All additions are optional.
    call function is a single statement. Do not place periods or commas after parameters or exception names.
    The function module name must be coded in uppercase. If it is coded in lowercase, the function will not be found and a short dump will result.
    Use the call function statement to transfer control to a function module and specify parameters. Figure 19.9 illustrates how parameters are passed to and received from the function module.
    sample FM
    CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
    EXPORTING
      I_INTERFACE_CHECK                 = ' '
      I_BYPASSING_BUFFER                = ' '
      I_BUFFER_ACTIVE                   = ' '
      I_CALLBACK_PROGRAM                = ' '
      I_CALLBACK_PF_STATUS_SET          = ' '
      I_CALLBACK_USER_COMMAND           = ' '
      I_CALLBACK_TOP_OF_PAGE            = ' '
      I_CALLBACK_HTML_TOP_OF_PAGE       = ' '
      I_CALLBACK_HTML_END_OF_LIST       = ' '
      I_STRUCTURE_NAME                  =
      I_BACKGROUND_ID                   = ' '
      I_GRID_TITLE                      =
      I_GRID_SETTINGS                   =
      IS_LAYOUT                         =
      IT_FIELDCAT                       =
      IT_EXCLUDING                      =
      IT_SPECIAL_GROUPS                 =
      IT_SORT                           =
      IT_FILTER                         =
      IS_SEL_HIDE                       =
      I_DEFAULT                         = 'X'
      I_SAVE                            = ' '
      IS_VARIANT                        =
      IT_EVENTS                         =
      IT_EVENT_EXIT                     =
      IS_PRINT                          =
      IS_REPREP_ID                      =
      I_SCREEN_START_COLUMN             = 0
      I_SCREEN_START_LINE               = 0
      I_SCREEN_END_COLUMN               = 0
      I_SCREEN_END_LINE                 = 0
      I_HTML_HEIGHT_TOP                 = 0
      I_HTML_HEIGHT_END                 = 0
      IT_ALV_GRAPHICS                   =
      IT_HYPERLINK                      =
      IT_ADD_FIELDCAT                   =
      IT_EXCEPT_QINFO                   =
      IR_SALV_FULLSCREEN_ADAPTER        =
    IMPORTING
      E_EXIT_CAUSED_BY_CALLER           =
      ES_EXIT_CAUSED_BY_USER            =
      TABLES
        t_outtab                          =
    EXCEPTIONS
      PROGRAM_ERROR                     = 1
      OTHERS                            = 2
    IF sy-subrc <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
            WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.
    Example
    1  report ztx1905.
    2  parameters: op1 type i default 2,   "operand 1
    3              op2 type i default 3.   "operand 2
    4  data rslt type p decimals 2.        "result
    5
    6  call function 'Z_TX_DIV'
    7       exporting
    8            p1      = op1
    9            p2      = op2
    10      importing
    11           p3      = rslt.
    12
    13 write: / op1, '/', op2, '=', rslt.
    Regards,
    Shanthi.P
    Reward points if useful ****
    Edited by: shanthi ps on Jan 26, 2008 12:03 PM

  • Any function module to change the mode in Planning board

    Hi guys,
    Is there any function module to change the mode in Planning board?
    I would like to call a custom screen to to chagne the mode since the strandard function cannot show enough info.
    Thanks.

    Thanks Bhanu for ur quick reply.
    Is that enough to change the technical name in the table RSZCOMPDIR.
    Let me give some more information, idea is to change the technical name of all the queries present in a system based on a new naming conventions.
    Eg.
    Change all the technical name of queries ZQSAP to ZQXYZ.
    If there is function module which allows to change the technical name of the queries that not only updates the table RSZCOMPDIR but also all the interlinked tables.

  • I Need Function Module to export data in the CHANGE MODE.

    Hi guys,
    Scenario: I uploaded employee details in a ZEMP_TBL.
    In need a Function Module
    it has to ask Employee Id after  entering the EMP_ID, and Execute the FM , it has to  show related record of the Employee( name, address, qualification, etc...) in 'Change Mode'
    Then  I do changes in the Employee Record  ( name, address, qualification, etc...) i.e. like changing address and Execute, it has to update in the database(ZEMP_TBL.).
    I appreciate if any one help me.
    Regards,
    Surjith Kumar P
    [email protected]

    Hi!
    Welcome here!
    There are no standard function elements for modifying a customer table (ZEMP_TBL) the way you wanted it.
    You might manually maintain your table using transaction SM30.
    If it is not good, you have to program the function element in the SE37 transaction.
    Best wishes
    Tamá

  • How to DEBUG a function module running in background mode? Please help!

    Hi Experts,
       I am calling a function module in my ABAP code in background module using the following syntax:
      CALL FUNCTION 'YBBC2_CREATE_SNAPSHOT' IN BACKGROUND TASK
              TABLES
                itab_std_format_inv = itab_std_format_inv
                itab_snapshot_inv = itab_snapshot_inv.
            COMMIT WORK.
    If I put the breakpoint in the CALL FUNCTION line and execute the program, the debugger does not take me to the valled function module. This may be because I am running the function module as background task.
    I cannot comment this  "IN BACKGROUND TASK" statement as well since i am debugging in Quality system where I don't have change access.
    So how to DEBUG a function module running in background mode? Please help!
    Thanks
    Gopal

    Hi,
    You could try to use the following trick:
    (1) Put an endless loop into the coding of your function module where you want to start debugging, e.g.
      DATA:
        lx_exit_loop(1)     TYPE c.
      lx_exit_loop = ' '.
      DO.
        IF ( lx_exit_loop = 'X' ).
          EXIT.
        ENDIF.
      ENDDO.
    (2) Call your function module in background task
    (3) Call transaction SM50 and search for the background process.
    (3) Choose from menu Program/Mode -> Program -> Debugging
    Now you the debugger should bring you right to your endless loop. Set lx_loop_exit = 'X' in the debugger and continue (F5 or F6).
    <b>Reward points</b>
    Regards

  • Update Mode of Function Module

    Hi all,
         The detailed knowledge of SAP techniques is so much ........
    Nowadays I encountered one,which is the 'Update Mode' attribute of a function module.when we create
    a function ,we will find the attribute is set as 'Start Immed' by default. But actualy I don't know the meaning
    of this attribute. According to some material info.,I learnt that it can be classified into two:v1 & v2.
         Would you tell me the true meaning of 'Update MOde' and the distinction between V1 and V2.
        Thanks a lot.

    Hi
    V1 modules describe critical or primary changes; these affect objects that have a controlling function in the SAP System, for example order creation or changes to material stock.
    V2 modules describe less critical secondary changes. These are pure statistical updates, for example, such as result calculations.
    The V1 modules are processed consecutively in a single update work process on the same application server. This means that they belong to the same database LUW and can be reversed. Furthermore, V1 updates are carried out under the SAP locks of the transaction that creates the update (see  The SAP Lock Concept). This ensures that the data remains consistent; simultaneous changes to the objects to be updated are not possible.
    All V2 updates are carried out in a separate LUW and not under the locks of the transaction that creates them. If your SAP System contains a work process for V2 updates, these are only carried out in this work process. If this is not the case, the V2 components are processed by a V1 update process.
    All V1 modules of an update must be processed before the V2 modules.
    U can also refer these links:
    http://www.erpgenie.com/abaptips/content/view/498/62/
    http://www.allinterview.com/showanswers/5513.html
    Regarding  v1 and v2 update and some other concepts.....
    Thanks
    Vasudha

  • How to change a function module ??

    Hi, I am using the FM L_TO_CREATE_DN but i am having a problem. When the batch number doesn't exist the program should keep the text with the error in an internal table and should continue running with other deliveries. The problem is that the error is not in the list of exceptions, the problem occurs inside the function module, so I don't know how control it. I think I should change anything inside the function but I don't know how to do it, or maybe I could control before. Does anybody how to do it??

    Hi amcaletrio,
                         As it is a Standard Function module,it is not possible for us to change. It is better to debug the code, not complete Function module.
    In debugging first reach to the desired point by using break points.
    1.  In debugging mode, in the MENU bar you can see Breakpoints --->
    Breakpoint at -
    > statement(click here) .
    2. Here type " MESSAGE".
    3.Press F8
    4.Stop here, the that u r looking is found or not
    5.If not, again press F8
    At one place you can get ur desired message.
    Copy that FM only as user copy. Here instead calling the Standard FM call this
    copied FM.Here in this Change message type from "E" to "W".
    So that, you can get desired functionality.
    Hope, the above desc. make you understand crystal clear.
    If there is any doubts regarding this, You are welcome.
    Reward,if helps.
    Regards,
    V.Raghavender.

  • Function Modules / Classes to change cProject item

    Hello,
    I'am searching for function modules or classes to change the cProject item.
    Ich want to change some fields in the task of cProject. Can everbody help me?
    Kind regards Axel

    Dear Thomas,
    I've following requirements:
    - Automated Creation of a cFolders folder structure/hierarchy from a structured uploaded from an excel file
      from R/3 ABAP program
    - Search for a particular document in cFolders using R/3 ABAP program
    Would it be possible to do the above tasks using the BAPIs mentioned in your post.
    Thanks.

Maybe you are looking for

  • How can I share a folder between two users on the same mac?

    Hi all, I would like to share a folder between multiple users on the same macbook without having to transfer the folder to the Public/Shared folder. Is there not a way, using the the folders shared permissions, to allow shared folders from one user t

  • Firefox 4 seems to action on some html tags that are included within a html comment tag which it should not.

    Consider the following html code where I open a textarea and include a comment tag within the textarea. Within the comment tag (which Firefox 4 should ignore) I've included a close textarea tag. Firefox 4 (unlike FF3 and IE) closes the textarea. The

  • Frm-40010 in forms 10g

    Hi. I'm configuring Oracle Application Server Forms and Reports Services. I want to place form files in a directory different form $ORACLE_HOME/forms. If i place the files in another directory I get frm-40010. I already changed the default.env file f

  • Multiple Instances of Preview running

    I've noticed on my iMac G5 that when I double click a PDF file it launches Preview, but instead of opening using the icon already in my Dock, another Preview icon appears. If I click to open the one already in my Dock, I have two copies of Preview ru

  • Separate Accounts?

    Is it possible to have 2 separate iTunes accounts, with different libraries for different iPods, and different Apple ID's all on the same computer and billed to same account?