ABAP Program or Function Module to activate infospoke/openhub table

Hi,
Post migration to production, when i am trying to load the data in open hub table, its showing OH table is not active. i had tried to all aspect but i am unable to load the data.
is there any ABAP Program or Function Module to activate infospoke/openhub table
Thanks & Regards,
Pankaj Bansal

Hello Pankaj,
Please check whether you have access to TCode SE14 . If Yes , You can use this TCode to activate the Tables.
There are lot of  Posts talk about the procedure for activation through SE14. please refer the same
Thanks & regards,
Prasath

Similar Messages

  • Program or Function module to delete data from Open Hub Destination Table

    Hi All,
    Can anybody suggest me a Program or Function module to delete data from Open Hub Destination Table.
    Thanks & Regards,
    Vinay Kumar

    You can simply goto t-code SE14 mention the open hub destination table and Delete data by clicking on "Activate and Adjust database" with radio button "Delete Data".
    Regards,
    Arminder

  • Accessing internal table of main program inside function module...

    I have function module say ZFUNC and main program say ZMAIN and internal table defined as IT_TAB inside ZMAIN but not passed as parameter to Function module ZFUNC.
    If I want to access the field value of IT_TAB of  main program ZMAIN inside ZFUNC during debugging then, I simply put <b>(ZMAIN)IT_TAB-amount</b> in ABAP debugger and then change it when the debugger is inside ZFUNC.
    How can I write code to change the value of internal table of main program in function module ZFUNC instead of doing in debugger ? I guess I have to use some field symbols, but not sure. Please suggest.
    Regards,
    Rajesh.

    Yes, you do need to use a field symbol.  Say for example, you had a internal table called IMARC in your program and you want to access it later in a funciton module, you would do something like this.
      data: xmarc type marc.
      field-symbols: <imarc> type marc_upl_tt.
    * Assign an internal table
      field = '(ZPROGRAM_NAME)IMARC[]'.
      assign (field) to <imarc>.
      loop at <imarc> into xmarc.
        write: / xmarc-matnr, xmarc-werks.
      endloop.
    Regards,
    Rich Heilman

  • Is there a way to use business objects in the program or function module?

    Hi Experts,
    Is there a way to use business objects in the program or function module.
    Thanks in Advance.
    Naval bhatt

    Hi Naval,
    Ofcourse you can use business objects in your programms/ methods.
    You can use function modules or macros (available from include <cntn01>) for using business objects in your application.
    refere following two links for startup information
    http://www.sap-img.com/abap/reading-attribute-of-a-business-object-in-abap.htm
    http://www.jt77.com/business-warehouse/work-flow-12619.html
    Regards,
    Abhijit

  • ABAP Object or function module?

    Hello all!
    I have to create a reusable routine. This routine should be select data from Z table for to get data with a parameter ID. I will pass a ID and expect result a internal table with some parameter values.
    So, my question is: What i use for to do that? ABAP Object or function module?
    I think that so easy to use function module. Why i should to use ABAP objects? What is positive points in use object and not function module?
    For me, both do the same thing... i don't see any difference. Just object is more complicated.
    Please, tell me why should i use object??
    Edited by: Rodrigo Kenji Matsunaga on Dec 10, 2009 5:51 PM

    I would go with Class.
    Read through this discussion:
    Needing Evidence on the Advantages of ABAP OO
    Class would provide you a flexibility of inheritance. E.g. if you want to use the same data selection with little modification in your other applications, you can inherit some other class form this class. Redefine the method, call the Super's method and change the output before sending back to the caller.
    Regards,
    Naimesh Patel

  • Reg Standard programs and function modules

    Hi Could you please tell how to find the list of
    1.standard programs used
    2.standard tcode used
    3.function module used
    is there any table or function module to find the above
    Thanks in advance
    points will be rewarded

    hi,
    TADIR -  Tables
    TSTC  -  transactions
    TFDIR - Function modules.
    If you want to search for any table  ,
    Suppose if you want to search for a table which stores
    Country names then just
    GOTO SE11 and place the cursor on 'Database table'
    press F4,
    Click on 'Information system'
    then one window is displayed there give short description
    and search .
    You will get the tables list there you can fine the table which you want.
    For any other if you want to find out table which stores all the domain names then click F4 on 'DOMAIN' then search.
    to search function modules GOTO  SE37 there press F4 then give short description and search. Ok.
    Regards,
    Rajitha.

  • Function Module with RFC for accessing tables

    Hello All
    I am programming using ABAP in Solution Manager system. I have to take data from tables(T001W and T001K) from a R/3 Server. Is there a function module which extracts data from tables via RFC ?
    Thanks
    Tharani.

    Hi,
    Check thes FM's:
    RFC_GET_TABLE_ENTRIES
    TABLE_ENTRIES_GET_VIA_RFC
    GET_TABLE_RFC
    or develop a RFC enabled FM to get the required data in R/3 and call it from your program
    example :
    data: wtab type BDSEL_STAT occurs 0 with header line.
    data: tab type BDI_ENTRY occurs 0 with header line.
    name = T001W.
    CALL FUNCTION 'TABLE_ENTRIES_GET_VIA_RFC'
    destination dest
    EXPORTING
    LANGU = SY-LANGU
    TABNAME = name
    TABLES
    SEL_TAB = wtab
    NAMETAB =
    TABENTRY = tab
    EXCEPTIONS
    INTERNAL_ERROR = 1
    TABLE_HAS_NO_FIELDS = 2
    TABLE_NOT_ACTIV = 3
    NOT_AUTHORIZED = 4
    OTHERS = 5 .
    Regards
    Laxman
    Message was edited by: Laxmana Kumar

  • Reg:function module to retrive the ekko table data

    Hi all,
    Is there any function module to retrive the ekko table data for the given select-options and parametrs.
    could you provide that.
    Thanks & regards,
    S.chaitanya.

    dear chaitanya,
    may be you can use this function module ME_READ_EKKO_MULTIPLE which can be used to pass the select options to retrieve the desired EKKO data.
    OR the best way would be to do a SELECT Query which would retrieve the data faster and in an effective manner.
    Hope this helps you.
    Help Children of U.N World Food Program by rewarding and enocourage others to answer your queries
    Thanks
    Venugopal

  • Function Module for .xlsx to Internal table

    Hi Gurus,
    Please let me know if there is any function module for .xlsx to internal table.
    Kind regards,
    Varun

    Hi,
    try the below FM's
    ALSM_EXCEL_TO_INTERNAL_TABLE
    TEXT_CONVERT_XLS_TO_SAP
    Thanks,
    Vinayaka

  • Use of custom structure defined in the program in Function Module

    Hi,
    We have defined a structure in a program.
    We want to define a Tables parameter in a Function module having the same structure as in the program.
    Is there a way to do this without defining a standard structure?
    Thanks,
    Arun

    Copy the definition in a Type Group (SE11 - Uilities - Other Dictionary objects) in an Abap syntax, include the type group in function group and program top includes via a [TYPE-POOLS|http://help.sap.com/abapdocu_70/en/ABAPTYPE-POOLS.htm] statement (before Release 7.0, EhP2).
    Regards,
    Raymond

  • How to call the Report program into Function module

    Hi Experts,
    Actually I want to create the DataSource. But I have only the ALV report program. I need to create function module but I don’t know how to call the ALV report program using in function module  
    So could you please any one send the Document or step by step method?
    Advance Thanks,
    Sathis

    If the report is just based out of a table than create a Generic Extractor using View.
    If its an InfoSet query than create a Generic Extractor on that InfoSet.
    If its an ABAP report than create a Generic Extractor using FM
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/a0f46157-e1c4-2910-27aa-e3f4a9c8df33

  • Need an example program for function module

    Hi ,
    I am new to ABAP. Can you please give a simple example program to extract the data from a table using Function module.
    Thanks for your help in advace.
    Regards,
    Vishnu

    hi vishnu,
    See the following Sample Program;
    REPORT demo_mod_tech_fb_read_spfli.
    PARAMETERS carrier TYPE s_carr_id.
    DATA: jtab TYPE spfli_tab,
          wa   LIKE LINE OF jtab.
    CALL FUNCTION 'READ_SPFLI_INTO_TABLE'
         EXPORTING
              id        = carrier
         IMPORTING
              itab      = jtab
         EXCEPTIONS
              not_found = 1
              OTHERS    = 2.
    CASE sy-subrc.
      WHEN 1.
        MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno.
      WHEN 2.
        MESSAGE e888(sabapdocu) with 'Error in  function module'.
    ENDCASE.
    LOOP AT jtab INTO wa.
      WRITE: /  wa-carrid, wa-connid, wa-cityfrom, wa-cityto.
    ENDLOOP.
    Also you can find example programs for all in tcode ABAPDOCU in your SAP system itself, explore ABAPDOCU to find more sample programs....
    Regards
    Karthik D

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

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

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

  • ABAP Unit for Function Module(Function Group)

    Hi, Gurus:
    Can we use ABAP Unit to test Function Module(Function Group).
    If can, give me a simple example. how to create methods. Thanks.
    Regards,

    I'm a little unclear about your question, Yunfa.
    Do you want to single-test a SE37 function-module? This can be easily done, just hit the F8 button, and it takes you to a single-test environment.
    Do you want to test an FM using an ABAP-program? This too is easy to do. To code the FM-call, there's a button called Pattern, in the standard SE38 screen, where you can put in your FM name, and it inserts the relevant code in your program.
    Note that if you're testing BAPIs using the single-test environment, the actual document posting will not happen, because that requires a BAPI_COMMIT_WORK call. So, the way to test BAPIs which post documents would be to write an SE38 program, which also calls the commit-bapi.
    Hope this answers your question!

  • Function Module to activate objcts

    Hi,
    Is there any function module which will do a syntax check and activate objects, and return errors and status whether object was activated or not.
    Any help would be appreciated.
    Thanks in advance.
    Mick

    Activation is a little more complex I think.  Depending on the object, there would be different implementations of the actviation process. For example, there is a function RS_FUNCTION_ACTIVATE which appears to activate a function, in the underlying code you can see that it deals heavily with the INSERT REPORT statement, which writes the source code in an active state, this is basically the way that regular programs are activated as well.
    What object are you referring to specifically?
    Regards,
    Rich Heilman

Maybe you are looking for