Unable to write, type anything in source code of a function module.

Hi all,
We have a registered name space for our client called /ABCD/EFG.
I need to create a function module in the name space.
So first I created a Function Group called /ABCD/EFG_FG in /ABCD/EFG. I activated it in se80.
Then I created a Function Module called /ABCD/EFG_FM in /ABCD/EFG. I declared the import and export paramters and now I am trying to add the code in source code and the editor does not let me change the source code donu2019t know why.. and every thing is in grey color.
Can some one tell me what is going wrong? Cant we write any logic in the function module that we create in registered name spaces? When I created the same function module as a local object in $TMP package I dint have any problem. Similarly I created the function module in a Z package and I dint have any problem but if I try to create the same function module in a registered name space it is getting created but it doesnu2019t not let me type anything in the source code of the function module.
Did any body encounter this problem earlier? Kindly please help.
Regards,
Jessica Sam

Rich,
Thanks a lot, that worked. Now it lets me type and change the source code of the editor.
But while i was turing off the assistant it showed me 2-3 messages saying that "i cannot track the changes" and that "during upgrade i cant track the changes " etc.
So now i can type in source code and i am able to change in source code..but will the trurning of this assistant cause any problmes in future or during upgrade?
Regards,
Jessica Sam

Similar Messages

  • Can i get the source code of jvmti function?

    Is there any way to get the source code of jmvti function? or jni
    if you know. please tell me.. thank you.

    You could get the source for Mustang (Java 6)
    https://mustang.dev.java.net/

  • 3 generic data sources or only one function module

    Hi all,
    I have 3 custom tables
    1. ZCOUNTRY (giving the link between code entity and country)
    1. ZCURR (giving the link between code entity and currency)
    1. ZYTPE (giving the link between code entity and type entity)
    I shall  fill an info object which has as fields code entity, country,currency and type entity.
    I have 2 solutions i suppose:
    1. Create 3 generic data sources based on the 3 tables.
    2. Create a generic data source by using the function module.The function module will populate an extract extracture from data from these 3 tables.
    What is the best solution?What is the advantage of the chosen solution?
    Thks a lot.

    Hi,
    Generic Extractors are based on View/Table or Fn Module or Infoset Query i.e all the extractors created via RSO2. The extractors you create for the customers would generally be generic extractors only. SAP has some other extractors like your LIS, LO Cockpit which are based on different extraction method.
    Generic extractors are of 3 types:
    1. Based on table/view
    2. Based on Infoset Query
    3. Based on Function module
    The first 2 are straight forward extraction where you would either use a standard SAP or custom table/view or Infoset query to extract data.
    However if you have to get data from more than 1 table and also incorporate some logic then you would use a fn module extractor. It is like a program where you would code using ABAP and have all your logic incorporated.
    Check this blog for more info on fn module extractor:
    /people/siegfried.szameitat/blog/2005/09/29/generic-extraction-via-function-module
    Raj

  • How to insert a code for a function module into a Customer Exit Variable?

    I have two Key Figures viz., Net Prchs Rtl, and Net Prchs Unt. Both these Key figures have This Week (TW) and Last Week (LW). There is a variable for This week but there is no variable defined for Last week.
    I need to get data in the column LW (Last Week) for both the key figures.
    In function module EXIT_SAPLRRS0_001 one of the functions I have is:
    Get the previous Fiscal Week
              CALL FUNCTION 'DATE_TO_PERIOD_CONVERT'
    I need to create a new variable to get values in the Last week column for different key figures and use function “'DATE_TO_PERIOD_CONVERT'” in that variable.
    Can anyone please explain me the steps as to how to use a function module in a variable so that when the variable is used in a key figure it shows the output.
    In other words what I want to know is after creating a Customer exit variable of type Characteristic value how do I refer the above mentioned function moduel and insert the code for the function module into the Customer exit variable that I created.
    Thank you.
    TR.

    Hi Wond,
    Thanks a lot for your reply. I understand what you mean but I have never done this before so can you please explain it in a detailed manner. I have the following code:
    Get the previous Fiscal Week
              CALL FUNCTION 'DATE_TO_PERIOD_CONVERT'
                EXPORTING
                  i_date         = ld_date
                  i_periv        = lc_periv
                IMPORTING
                  e_buper        = ln_poper
                  e_gjahr        = ln_bdatj
                EXCEPTIONS
                  input_false    = 1
                  t009_notfound  = 2
                  t009b_notfound = 3
                  OTHERS         = 4.
              IF sy-subrc <> 0.
                MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
                WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
              ELSE.
                lc_poper = ln_poper.
                CONCATENATE ln_bdatj lc_poper+1(2) INTO wa_e_t_range-low.
                wa_e_t_range-sign = 'I'.
                wa_e_t_range-opt = 'EQ'.
                APPEND wa_e_t_range TO e_t_range.
              ENDIF.
            ENDIF.
          ENDIF.
        ENDIF.
    I believe I should now use the above code in my customer exit variable. If that's right can you please explain me the steps as to how should I do this so that the variable gets populated.
    Thank you.
    Regards,
    TR.

  • How to code a predifined function module in sap ,in se37.

    can any one tell me how to code a predifined function module in sap ,in se37.it's an immediate requirement.if u give a brief description it'll do.

    Hi Henry,
    There are two possible ways in which I can interpret your question.
    1. You want to create a new Function Module in SE37. you will have to refer to the <a href="http://help.sap.com/saphelp_47x200/helpdata/en/d1/801e9a454211d189710000e8322d00/frameset.htm">Function Builder</a> tutorial for that.
    2. You want to use an existing function module in your program. In the code of your program in SE38, click the button <i>Pattern</i>. On the pop-up, give the name of the function module that you wish to use in your program.
    Regards,
    Anand Mandalika.

  • Sql Developer - View source code of procedures, functions & packages in another schema

    Our developers need the ability to view procedures, function, packages etc. in the production database (using SQL DEVELOPER).  They don't have access to sign on as the owner of these
    objects in Production.  They must use their own limited access UserID for this purpose.
    This limited access UserID has been granted select privilege on DBA_SOURCE & DBA_OBJECTS.  The developers need the ability to view the source of these object via
    the tree view in SQL DEV.  They should be able to click on "other users" in the SQL DEV tree view and see a listing of the owner schema objects.  Then they should
    be able to select the desired object and view the source code.  These developers are used to using GUI interfaces.  Selecting from DBA_SOURCE would not be an
    option for them.
    I understand that if the limited user is granted SELECT ANY DICTIONARY or SELECT_CATALOG_ROLE then this functionality will work.  The problem is those
    privileges/roles  provide much more access than should be granted to these limited access users. Granting DBA to these users is also not an option.
    In TOAD and other end-user tools this functionality works when only select privilege on DBA_SOURCE & DBA_OBJECTS has been granted.  We need this same functionality
    in SQL DEV.
    While searching this forum and the internet, I see that other installations have this same issue.
    Please enhance SQL Developer with this functionality. 
    Thank you, ellen

    Just to double check that I'm interpreting the problem correctly, is the following true:
    select * from all_objects where object_name = 'DBA_SOURCE'
    returns nothing
    select * from dba_source where name = your PL/SQL module
    returns all the code

  • How are the source code in the functions? Blank?

    In my SAP the source code of the some functions are blank.
    Is this correct?
    Can you view in your Systems and put the result, please?
    Functions:
    LSO_COL_GET_ROOM_PRIVACYTYPES
    LSO_COL_GET_ROOMS
    So, when i will to test, the functions return System Failure
    Thanks for Help.

    Hi,
    In our system in blank too.
    This is a RFC it means that others systens connect into this FM and it means that the implementation must be in the FM not in the other system.
    The note 1316954 - Integration: Collaboration for SAP NetWeaver 7.01 talks about the FM LSO_COL_GET_ROOMS.
    Best regards,
    Caíque Escaler

  • Need code for a function module- Urgent

    Hi friends,
    I have a requirement where I am giving material description as an import parameter in the function module. ( Material description could be a wild search -- say - Mat* ) I want a sub routine in the function module which should get all the materials from the database ( mara or makt..not sure ) for the user entered Material description.
    I want this particular code to be written using a sub-routine using formal parameters inside this fm . Could any one send me the code for this.
    Thanks in advance,
    Vishnu.

    Hi Vishvanath,,
    Please find the below code.
    DATA : BEGIN OF itab OCCURS 0,
           matnr LIKE makt-MATNR,
           MAKTX LIKE makt-MAKTX,
           END OF itab.
    DATA : BEGIN OF itab1 OCCURS 0,
           matnr LIKE makt-MATNR,
           MAKTX LIKE makt-MAKTX,
           END OF itab1.
    data : a(5) type c value 'TEST'.
    perform mat_no using a.
    form mat_no  using    p_a.
    data : lv_temp(4) type c.
    select matnr maktx from makt into table itab.
    loop at itab.
    lv_temp = itab-maktx+0(4).
    if lv_temp = p_a.
      move itab to itab1.
      APPEND ITAB1.
    endif.
    endloop.
    loop at itab1.
    write :/ itab1.
    endloop.
    endform.                    " mat_no
    Thanks.
    Amjad.

  • Reg: code problem in Function module

    Hi Friends,
    I am facing problem while developing Function module.
    i declared following things in Import.
    ""Local Interface:
    *"  IMPORTING
    *"     VALUE(SOURCETABLETXT) TYPE  STRING
    *"     VALUE(SELECTTXT) TYPE  STRING
    *"     VALUE(SOURCEINFOOBJECT) TYPE  STRING
    *"     REFERENCE(ITAB_OUTTAB)
    *"     REFERENCE(ITAB_SOURCEPAK)
    In source code writen as,
    DATA DREF1 TYPE REF TO DATA.
    FIELD-SYMBOLS: <ITAB_SPACK> TYPE ANY TABLE,
                        <WA1> TYPE ANY,
    TYPES: BEGIN OF SOURCEIOJ,
            SOURCEINFOOBJECT(72) TYPE C ,
           END OF SOURCEIOJ.
    DATA: ITAB_SOURCEIOJ TYPE TABLE OF SOURCEIOJ.
    DATA: WA_SOURCEIOJ LIKE LINE OF ITAB_SOURCEIOJ.
    ASSIGN ITAB_SOURCEPAK->* TO <ITAB_SPACK>.
    CREATE DATA DREF1 LIKE LINE OF <ITAB_SPACK>.
    ASSIGN DREF1->* TO <WA1>.
    LOOP AT <ITAB_SPACK> assigning <WA1>.
    READ TABLE ITAB_SOURCEIOJ INTO WA_SOURCEIOJ WITH KEY SOURCEINFOOBJECT = <WA1>-SOURCEINFOOBJECT.
    IF SY-SUBRC <> 0.
    WA_SOURCEIOJ-SOURCEINFOOBJECT = <WA1>-SOURCEINFOOBJECT.
    INSERT WA_SOURCEIOJ INTO TABLE ITAB_SOURCEIOJ.
    ENDIF.
    ENDLOOP.
    While checking i am getting error as The data object "<WA1>" has no structure and therefore no componentcalled "SOURCEINFOOBJECT". called "SOURCEINFOOBJECT".
    SOURCEINFOOBJECT is not field in internal table which passing as reference and hence not in WA1.
    But the input field which i give to SOURCEINFOOBJECT while calling the FM, that input field is the part of the intenal table
    <ITAB_SPACK>, which ref of ITAB_SOURCEPAK passing to FM.
    Please give some idea how to handle this.
    Regards
    MRK

    Hey,
    you declared <wa> as field symbol, so it won't contain the field that you are trying to read. Go through the following; it may help you.
    Loop at <ITAB_SPACK> assigning <WA1>.
            do.
              assign component sy-index of structure <wa1> to <dyn_field>.
              if sy-subrc <> 0.
                exit.
              endif.
              if sy-index = 1.
                WA_SOURCEIOJ-SOURCEINFOOBJECT = <dyn_field>.
              else.
                WA_SOURCEIOJ-SOURCEINFOOBJECT = <dyn_field>.
              endif.
            enddo.
           endloop.
    with regards
    Mahesh

  • How to assign own Process code to a function module

    Hi,
      In we42.
      How to assign own Process code to a inbound idoc
    function module?
      Here function module name is not coming in the list.
    Ansar.

    Hi,
    USe transactn: WE42, define ur process code, double click and assign func module...
    To know all the transactions for ALE IDOC.. use
    WEDI.. Goto SAP easy screen there just type WEDI in command box and enter.
    Plz mark if useful..
    Regards
    Divaakr

  • Deriving 'company code' &'currency' with function module ????????

    Hi all,
    I created a function module to derive 'company code' and 'currency'and use a user EXIT variable for the CURRENCY. And it works.
    My issue is : <b>is there any solution that I can avoid to enter CURRENCY (system will pop up a screen and ask for it) when I enter planning data?????</b> I think that this is because CURRENCY (in the selection)is a dependence with my KF-amount. However, I still want to try if I can make it not show up. Thank you.
    J.

    John,
    Try putting the currency in the header of the layout and then hide it in the header characteristics screen.
    Thanks and regards.
    Rajendra Tewani

  • How to create Geniric data source using the SAP FUNCTION MODULE

    Hi,
    I want to create genric data source using function module
    MD_STOCK_REQUIREMENTS_LIST_API (delivered by sap)
    for this function module where I can find  Extract Structer
    or I have to create ?
    How can i use this ?
    Thanks in Advance

    Hi Shilpa,
                  Check here..........
    Using function module as the generic extractor
    Generic Delta Update using Function Module
    Document regarding R/3 extractors using function module/user exits
    Generic extractors using FM

  • How to write JMS provider independent source code

    As the subject says i need to write a client/server which is independent of the JMS provider.
    I dont know how to do that, can any 1 help me on this?
    or
    Is there any place where i can look for it.
    Thank you

    refer http://www-128.ibm.com/developerworks/java/library/j-jmsvendor/

  • Creating Java code for the function module

    Hi Colleagues,
    I have a fuction module in ABAP system. Now I want to Generate java code for the FM.
    I cam to know that we can achive that using AXIS, By getting the XML file for the fuction module and generate Java
    Class file using that XML file.
    Can any one tell me how to achive it.
    Or any other way to do that?
    Please provide you valid suggestions.
    Regards,
    Sathya

    Hi,
    You can integrate axis2 in eclipse. I think you have to find the plugin for that.
    After that you can let axis generate the jave code (stubs and proxies) for your web service via the wsdl file.
    Kind Regards,
    Robin

  • How to declare a param. of type RANGE OF in a method (or function module)?

    Hello,
    I've got a following problem.
    I want to pass a value of type RANGE OF to a method declared in
    an interface (the interface is built using Class Builder). I don't know
    how to do that and I did not manage to find a solution using both
    SAP help and google.
    Did anybody have the same problem before?
    Best regards
    Pawel

    Ok, I find a workaround. Maybe it will be useful for somebody in the future.
    Declare the parameter type as ANY TABLE and then cast it to the expected type
    in the body of the method.
    So for example.
    Parameter          Type        Typing Method        Associated Type     
    I_RNG_DATUM Importing Type                         ANY TABLE
    In the body of the method.
    TYPES:
        erdat_range TYPE RANGE OF erdat.
      FIELD-SYMBOLS:
        <l_fs_rng_erdat> TYPE erdat_range.
      DATA:
        l_ref_to_range TYPE REF TO data.
      GET REFERENCE OF i_rng_datum INTO l_ref_to_range.
      ASSIGN l_ref_to_range->* TO <l_fs_rng_erdat> CASTING.
    However, if somebody know how to pass type RANGE OF
    explicitely, the right answer is still welcome.
    Best regards
    Pawel

Maybe you are looking for

  • Displaying text in local web browser

    Hi, Been looking at a web forwarding program that accepts a GET request from a browser and goes off and gets the page from the remote server and then needs to feed that page back to the browser. I've got as far as getting the page back from the remot

  • ITunes for windows 7 (64 bit)

    I wanna install iTune for my ipod shuffle 2 GB.The operating system is windows 7 (64 bit)

  • Creative Suite 4 content?

    i got the package suite from my school and im having trouble installing the content disk with the extras.  everytime i insert it into my computer it just asks me to import photos.  how do i install it as it should be? any help is appreciated, thank y

  • SAP in a Oracle server

    Is it possible to apply and use a SAP as a layer on a Oracle Database. Should the DBA have the knowledge on SAP to perform this... ?

  • Iphoto - slideshow in trash freezing Iphoto

    I moved an iphoto slideshow to trash yesterday and now cannot empty the trash as any attempt to click on the slideshow or empy the trash brings up the  rainbow ball  and I have to force quit.  I have tried reorganising my itunes media files but they