Biw function module creation in se37 / unable to tranposrt to production

hi,
i need data of a BW table to be transported to R/3.
For this A RFC function module is exsisting in our BIW DEV server.
that FM is as follows
under TABLES
DATA LIKE /BIC/AZGVDTL00 ODS Object ZGVDTL : Active Records
UNDER SOURCE CODE
FUNCTION ZGV_DATA.
""Local Interface:
*" TABLES
*" DATA STRUCTURE /BIC/AZGVDTL00
SELECT * FROM /BIC/AZGVDTL00 INTO TABLE DATA.
ENDFUNCTION.
THE PLAN IS
if a program is scheduled everyday in R3 System
This program will call the above FM, which is in BIW using RFC and populate data in R3 tables.
BUT THE PROBLEM IS
when i transport the FM from BW QAL to BW PROD the req is transported but the FM is not present in BIW PROD..
why is that FM not getting transported from BIW qal to BIW prod??????????/
when i check the FM
tables tab
DATA LIKE /BIC/AZGVDTL00
i double clicked on /BIC/AZGVDTL00
the package is $TMP..Temporary Objects (never transportd)
is this the probnlem?

the problem is not FM not being present in my req...
my req has FM....
but when i transport the req the FM doesnt appear in my PROD...
also earlier i had one single req which only had function group...
that req when tried to transport gave error with return code 8...
the error said,syntax error in FM ,FM not present...(however when checked in PROD the function group is transported but not the FM.)
so the BW guy has transported the table into PROD...(it shows that table is $TMP)
now i created a req for FM exclusively ...
this req when transported doesnt give error but the FM doesnt come to PROD!!!!!!!!
the only descrepancy i feel is the table used in the FM is present in $TMP package...
also when tried in DEV it doesnt allow to change the package in DEV..

Similar Messages

  • Function module for calculating planned and actual cost of production order

    Hi ,
    Do we have any standard function module for calculating planned and actual cost for production order?
    i need to implement this in a Z-report.
    Thanks
    Srini

    Hi,
    try below function module
    CRMCO_GET_PLAN_ACTUAL_COSTS
    CO_IH_GET_PLANNED_COSTS_TOTAL
    Regards,
    Sankaran

  • Function module creation for IDOC processing...

    hi Experts,
                 i want to create a function module for idoc processing..
    message type: zashpmnt
    idoc type : shpmnt05
    plz tell me which standard FM is used... and tell me what changes i want to do in it....
    Tnx in Advance..

    Hello,
             If you are trying to process an Outbound IDoc for the SHIPMNT05 IDoc Type with an Extension, you can use the IDOC_OUTPUT_SHPMNT Function Module which is assigned to SHPM Process Code.
           In Addition, since you have an IDoc Extension, you are required to populate the Custom Segment / Fields. For this, there is a Customer Function / Exit called EXIT_SAPLV56K_002 which you can use it for adding your Custom Segments to the IDoc ZSHPMNT05.
           If you are writing code in this exit, make sure to create a Project in CMOD.
           Also, ensure that you've made the assignment in WE82 with the Message Type , IDoc Type & the Extension.
           For Inbound, if you would like to Create a Custom Function Module, you can follow the Naming Convention Z_IDOC_INPUT_SHPMNT for which you are required follow the below Steps.
    1. Register the FM as Inbound FM in BD51 T-Code.
    2. Assign the FM to IDoc Type & Extension in WE57.
    3. You'll need to Create a Custom Process Code in WE42 in which you are required to make add your FM.
    4. Maintain Partner Profiles in WE20.
    5. Have the Process Code Migrated to the Testing Environment as creation of Custom Process Code is a Customizing Activity and it requires a Customizing Request to be created / Migrated.
    6. Define the Parameters as defined in the Standard Inbound Function Modules such as IDOC_INPUT_ORDERS , IDOC_INPUT_DELVRY etc.
    Thanks and Regards,
    Venkat Phani Prasad K

  • FUNCTION MODULE CREATION FOR GENERIC DATA SOURCE

    Hi BI gurus,
    I am creating function module for generic datasource. For that I followed below mentioned steps
    Steps
    1.     Created s structure with the fields that needed.
    2. Created FM by copying the standard Function module
    " RSAX_BIW_GET_DATA_SIMPLE " and Give a New name starting With
    Y or Z .
    3. IN SE37 ->Your Function module name -> Change, In table tab given structure
    name by deleting the associated type given in “E_T_DATA “.
    And inserted the required code given below
          PROGRAM 'ZHU_BALANCE'.
    *& Report  ZHU_BALANCE
    TABLES: VEKP, VEPO.
    DATA: BEGIN OF T_DISPLAY,
          DATE   LIKE SY-DATUM,
          EXIDV  LIKE VEKP-EXIDV,
          LGORT  LIKE VEPO-LGORT,
          WERKS  LIKE VEKP-WERKS,
          END OF T_DISPLAY.
    DATA: ITAB_DISPLAY LIKE TABLE OF T_DISPLAY.
    DATA: WA_ITAB_DISPLAY LIKE LINE OF ITAB_DISPLAY.
    SELECT VEKPEXIDV VEPOLGORT VEPO~WERKS
           INTO CORRESPONDING FIELDS OF TABLE ITAB_DISPLAY
           FROM VEKP AS VEKP INNER JOIN VEPO AS VEPO
             ON  VEKPVENUM = VEPOVENUM
             AND VEKPWERKS = VEPOWERKS
           WHERE VEKP~VSTEL = SPACE
             AND VEKP~VEGR1 = '401'
             AND VEKP~VPOBJ = '12'
             AND VEKP~STATUS = '0020'
             AND VEPO~VEPOS = '000001'.
    LOOP AT ITAB_DISPLAY INTO WA_ITAB_DISPLAY.
    WA_ITAB_DISPLAY-DATE = SY-DATUM.
    MODIFY ITAB_DISPLAY FROM WA_ITAB_DISPLAY TRANSPORTING DATE.
    ENDLOOP.
    WRITE:/ 'DATE', 20 'EXIDV', 40 'LGORT', 60 'WERKS'.
    ULINE.
    LOOP AT ITAB_DISPLAY INTO WA_ITAB_DISPLAY.
    WRITE:/ WA_ITAB_DISPLAY-DATE, 20 WA_ITAB_DISPLAY-EXIDV , 40 WA_ITAB_DISPLAY-LGORT, 60 WA_ITAB_DISPLAY-WERKS.
    ENDLOOP.
    While checking the function module it’s populating the syntax error as
    THE TYPE “SRSC_S_IF_SIMPLE” IS UNKOWN. (Though this is commented in program)
    So pls suggest
    Regards,
    praful

    hi indira,
    thanx for ur reply we have created the funcion module successfuly it is also showing the output correct. But when we put that function module in the generic data source and try to extract data in RSA3 it shows the correct output of function module but with the msg ' 0 entries found in customer enhancement' and therfore zero records in the display list.
    is there any correction or steps to be followed in data extraction
    pls suggest
    regards,
    praful

  • BAPI creation versus function module creation...

    Hi,
    I know the difference between BAPI and simple function  module. I have also created custom function module.
    But I have not worked on creation of Custom BAPIs.
    Is there a much differece in creation of function module and BAPI?
    If there is please throw some light on main differences or stepwise differences when I create BAPI versus function module ?
    Thanks.
    Regards,
    Tushar.

    Hai Tushar
    what is BAPI?
    BAPI stands for Business API(Application Program Interface).
    I have answered this question before..
    A BAPI is remotely enabled function module ie it can be invoked from remote programs like standalone JAVA programs, web interface etc..
    You can make your function module remotely enabled in attributes of Function module but
    A BAPI are standard SAP function modules provided by SAP for remote access. Also they are part of Businees Objest Repository(BOR).
    Please check out this thread..
    Re: bapi
    Also refer to the following links..
    www.sappoint.com/abap/bapiintro.pdf
    www.sap-img.com/bapi.htm
    www.sap-img.com/abap/bapi-conventions.htm
    www.planetsap.com/Bapi_main_page.htm
    www.sapgenie.com/abap/bapi/index.htm
    Checkout !!
    http://searchsap.techtarget.com/originalContent/0,289142,sid21_gci948835,00.html
    http://techrepublic.com.com/5100-6329-1051160.html#
    http://www.sap-img.com/bapi.htm
    http://www.sap-img.com/abap/bapi-conventions.htm
    http://www.sappoint.com/abap/bapiintro.pdf
    Java Connector(JCO) can call not only BAPI's but also the function modules which are remotely enabled..
    BAPI's as i said earlier are remotely enabled function modules..
    Hence, JCO can call also BAPI's(n not only BAPI's as u mentioned).
    Thanks & regards
    Sreeni

  • Application server File renaming function module creation - sample code

    I want to rename a file from application server using function module.
    Can somebody tell me is there is any such sap provided function module
    is there?If not please tell me what should be abap routine to create such
    a function module.
    Thanks in advance....

    You need to create a logical file name using FILE transaction. Then create a logical path and assign the physical path (actual path on app. server) to the logical path. While defining the physical filne name you have the option of selecting from the list of 'reserved word' available. For e.g. <DATE>, <TIME> etc.
    Steps are:
    1) Execute transaction 'FILE'.
    2) Create a logical file path.
    3) Assign Syntax Grp (Operating Systems) to above logical file path. You need to create the syntax group to identify the physical path in the application server. This step actually assigns the physical path to the logical path.
    4) Create a logical file.
    5) Assign the physical file name to the logical file. You have lots of system reserved word to choose from to suffix your file name with date and time etc.
    The physical file name is used by the function module FILE_GET_NAME at runtime to compose a complete platform-specific file name.
    For more information, see [renaming a file on the application server;.
    Regards.

  • In function module creation,table, view is better or structure is better  ?

    I am creating a new z function module.
    Under tables parameter, I need to create 'Profit_Center_Table'  which should contain combination of ztable and cepc fields.
    as
    Tables
    •     Profit_Center_Table – should contain List of ztable and cepc fields
    Is it okay, if I create a view with the combination of ztable and cepc fields
    And use the view under table’s tab page in my zfunction module ?
    Or it is better to create a structure with the combination of ztable and cepc fields

    hi,
    better to create structure or internal table with all the required fields.
    we can export and import  internal tables to function module by using TABLES parameter interface.
    if you create View, how can you pass to the function module.
    as per my knowledge no parameter interface is availabe to pass views to function module.
    for more information follow this link.
    http://help.sap.com/saphelp_nw2004s/helpdata/en/d1/801ef5454211d189710000e8322d00/frameset.htm
    regards,
    Ashokreddy
    Message was edited by:
            Ashok Reddy

  • Function Module creation in 4.6C

    Hi techies,
    I am not an ABAPer, but just copying Function Module code from 3.1 R/3 to 4.6C R/3.
    In 3.1, for the Table Parameter "E_DATA", there are two columns 'Reference Structure' and 'Reference type'. Since I am using the structure 'ZBFNEW', it looks following:
    <u>Table parameters   Ref. structure     Reference Type</u>     E_DATA                ZBFNEW    -                                                         Now same thing I wanted to do in 4.6C, but there under table parameter tab, there are no field called 'Ref Structure. The column are: Parameter Name, Type Specification and Reference type.
    So the question is How do I assign Structure in FM for Table parameter. In coulmn, i tried with all the options (Type, LIKE and TYPE Ref To), but it gives error "Only table types may be used as the reference type for a table parameter"
    Any suggestion guys???
    Regards, Pankaj

    Rich's suggestion should work for you.  The message you are receiving
    is in regards to a new feature in 4.6 that did not exist in 3.1.  Using SE11,
    you can define an internal table definition in the Dictionary. 
    Put the new table definition name next to structures.  Hit create and you
    will be asked about what you are creating.  Pick the Table Type option. For example,
    you could create a table type definition called Z_T_ZBFNEW, based on
    structure ZBFNEW.  Then you would use the TYPE setting for your table,
    setting it to TYPE Z_T_ZBFNEW.
    As an aside, the TABLE parameter tab is considered to be
    obsolete in 4.6.  You can now pass tables using the
    EXPORTING, IMPORTING and CHANGING parameters.  So if/when you start
    coding new Function Modules, I suggest you stop using the
    TABLE parameter tab.
    Just curious, how does a non-ABAPer get assigned the task to copy
    Function Modules?  Keep smiling and good luck!
    Message was edited by: Charles Folwell

  • Types Does not Exist Error in Function Module creation

    Hi Guys
    I am trying to replicate the functionality of the below program using a function module. However when I enter the following in the changing tab of the fn mod, I get  error TYPE IT_VBRP does not exist.
    Parameter name p_it_vbrp like it_vbrp
    <removed by moderator>
    Moderator message: please post only relevant code parts, your posts must contain less than 5000 characters to preserve readable formatting.
    Edited by: Thomas Zloch on Sep 11, 2011 3:55 PM

    Hi
    The reference type of a parameter of the interace of function module has to be defined in dictionary, if you need to use a particular type, you need to create an your own custom type pool or try to looking for a type defined like yours,
    For example if you need a table based on vbrp, you can use the table type TAB_VBRP
    Max

  • SE37, Function module test, copy & paste table values ?!?!

    Hi all,
    if i run a function module test with se37 and want to fill the table values from the clipboard, nothing happens.
    There is a button in the Status line called "Insert Data" with the clipboard symbol but it seems not to work...
    Anyone here who knows how to solve this ? By the way are there any new transactions for testing function modules, where ALV Grid is used for parameter transfer for the tables ?
    Thx....

    Hi,
    If you check that properly it is for INSERT DATE not data so it may be used to insert Dates in date fields i guess.
    As it is only for testing FM's, you cannot expect all functionalities there, otherwise you have to write a sample program to check the FM using CALL Function.
    Regards
    Karthik D

  • Doubt in  export, import and table para when creating Function Module

    Dear fellow ABAPers,
    I have a doubt in defining export, import and table parameter while creating a function module.
    I am calling a function module inside a user exit. Now in the user exit the SAP fills an internal table called i_lfa1 with all the data user has eneterd.
    Now I want to pass this whole internal table to function module and the perform some checks on the values of internal table.
    After that function module fills an error structure with values depending on some check.
    1)
    How do I pass this internal table to function module ? 
    When I am creating function module in se37 where do I define this iternal table type ? Is it in Import or Table parameter during function module creation?
    2)
    Where do I define error structure type (which is returned by function module to main program)? Is it in Export or table parameter during function module creation?
    Please clear my doubt..
    Relevant points will be awarded.
    Regards,
    Tushar.

    Hi Tushar,
    1. How do I pass this internal table to function module ?
       I assume u are creating your own Y/Z FM.
       Pass it thru TABLES parameter.
    2. When I am creating function module in se37 where do I define this iternal table type
       Define this in TABLES interface.
       What Type ?
       THE SAME TYPE WHICH HAS BEEN DEFINED
        WHILE PASSING IN THE USER-EXIT FUNCTION MODULE.
       IF U SEE THE FM OF THE USER-EXIT,
       U WILL COME TO KNOW.
    3.
    Where do I define error structure type (which is returned by function module to main program)? Is it in Export or table parameter during function module creation?
    Define it in TABLES interace. (not in export, import)
      (Since what u are going to return is an internal table)
      U can take for eg. BDCMSGCOLL.
      OR u can create your own Y/Z structure
    for the same purpose.
      (or u can use the structure type T100)
    I hope it helps.
    Regards,
    Amit M.

  • SXMB_GET_MESSAGE_PAYLOAD Function Module

    HI Everybody,
    I was trying to test function module SXMB_GET_MESSAGE_PAYLOAD in SE37.
    I input message id from sxmb_moni. It is unable to get the payload of message for me..
    Any help ?
    Does anyone have existing program for it ?
    I also want input parameters to SXMB_SELECT_MESSAGES function module.
    Regards
    Inder

    I am able to get the payload from function module now.
    The output looks like:
    3C3F786D6C2076657273696F6E3D22312E302220656E636F64696E673D225554462D3822203F3E3C4F524445525330353E3C49444F4320424547494E3D2231223E3C4544495F44433430205345474D454E543D2231223E3C5441424E414D3E4544495F44
    How can i convert this data to proper readable format ? any other function module ?

  • Returning Exeptions of a function module in webServices

    Hi,
    I defined a webService for a rfc with the following parameters:
    FUNCTION J_3S_F_RJEDSN.
    ""Lokale Schnittstelle:
    *"  IMPORTING
    *"     VALUE(ABAP) TYPE  J_3SREPORT
    *"     VALUE(VARNAME) TYPE  STRING DEFAULT '?'
    *"  EXPORTING
    *"     VALUE(DSN) TYPE  J_3SDSN
    *"     VALUE(GENERAT) TYPE  J_3SANZ
    *"     VALUE(CPAGE) TYPE  J_3SRJECP
    *"     VALUE(CPOLD) TYPE  CPCODEPAGE
    *"     VALUE(CPNEW) TYPE  CPCODEPAGE
    *"     VALUE(DESTIN) TYPE  TEXT40
    *"     VALUE(CMD) TYPE  TEXT50
    *"     VALUE(FILEFORMAT) TYPE  J_3S_FILEFORMAT
    *"     VALUE(TARGET_SYS) TYPE  SYSYSID
    *"     VALUE(JOBNAME) TYPE  J_3SSYMNAM
    *"  EXCEPTIONS
    *"      NOT_FOUND
    *"      NO_FILE
    *"      NO_GAPS_ALLOWED
    *"      PHYSICALLY_LOCKED
    I tested the webService using transaction wsadmin.
    In case of failure I do not get the declared exception.
    If I test the function module using transaction se37 the exception is returned.

    Hi Saurabh,
    Can you explain your scenario in detail with tcode and function module and all.
    Regards,
    kamalapriya

  • Any example to import and export itab to function module

    hi all,
    as the table parameter in function module is obsolete, please advise an example on how to pass in an internal table
    and return back the result in an internal table as well.
    for example, i have itab1 and itab2. By using table parameters i got the following code. Please advise alternative way by using import and export.
    ""Local Interface:
    *"  TABLES
    *"      itab1 STRUCTURE  Zitab1
    *"      itab2 STRUCTURE  Zitab2
    loop at itab1 into wa_itab.
    **do some logic here to assign value to itab2 and return.
      wa_itab2-a = xxx .
      wa_itab2-b = xxx.
    append wa_itab2 to itab2.
    endloop.
    thank you.

    hi,
    suppose you have two structure name struc1 and struc2.
    create table type zitab1 & 2 for both.
    please do the following:
    ""Local Interface:
    *"  IMPORTING
    *"     VALUE(itab1) TYPE  Zitab1
    *"  EXPORTING
    *"     VALUE(itab2) TYPE  Zitab2
    you can avoid to use the obsolete table parameters as well as LIKE in function module creation.
    cheers

  • Usage of function module Material_Read

    hi
    Can anybody explain me how to use function module Material_Read with various necessary parameters .
    You can also mail me on  [email protected]
    Thanx n Regards
    Jitesh

    You check the function module by checking the function module help in SE37.
    The following is the details of Function Module Material_Read
    Call
      CALL FUNCTION 'MATERIAL_READ'
          EXPORTING  SCHLUESSEL = MTCOM
          IMPORTING  MATDATEN   = View table
                     RETURN     = MTCOR
          TABLES     SEQMAT01   = Internal table
        ( EXCEPTIONS Material_not_found = 4
                     Plant_not_found    = 8 .  )
          Exceptions statement useful only for required tables (see below).
    Required tables
    If a table flagged as a required table does not exist, the function module terminates at this point and issues an error message. The error message can be suppressed with the exceptions statement, in which case a return code in SY-SUBRC is given instead. In both cases (with or without EXCEPTIONS), the function module does not return any data in the event of an error. You can inactivate all required tables for the view dynamically (as a whole, not individually) by setting the flag MTCOM-NOMUS.
    Return codes
    If the function module ends without an error message, a return code flag can be interrogated for each table in structure MTCOR; for example, MTCOR-RMARD = X means that the function module tried to read table MARD, but did not succeed. If the flag is not set, the table was read successfully or the function module did not try to read table MARD at all (because the table is not contained in the view or because no storage location was specified).
    MTCOR-LVORM
    This flag is set if the object is flagged for deletion.
    MTCOR-PSTAT/MTCOR-FSTAT
    If you specify a maintenance status in MTCOM, for example, MTCOM-PSTAT = BDE, the system checks whether the object has been maintained by the user departments Accounting (B), Material Requirements Planning (D), and Purchasing (E). As a result:
    Field MTCOR-PSTAT contains the user departments that have maintained the object; for example, MTCOR-PSTAT = B means that the object has been maintained by Accounting, but not by MRP or Purchasing.
    Field MTCOR-FSTAT contains the user departments that have not maintained the object, but that could have maintained it; that is, the system checks whether the user department is allowed by the material type.
    Note
    This check takes time (performance). If it is not required, the function module should always be called with MTCOM-PSTAT = space.
    MTCOM-NOVOR
    If a plant has been specified, but no valuation level or sales organization, the function module automatically adopts (for the plant specified) the corresponding values for the valuation level and sales organization in table T001W. You can inactivate this function by setting the flag MTCOM-NOVOR.
    Locking materials
    If materials are locked by function module MATERIAL_READ, MATERIAL_READ_MAKF, or by other function modules of function groups MATL or MAKF, the information on which materials were already locked is buffered for performance reasons. This buffer is reset or ignored if the two indicators (MTCOM-)KZSPR and (MTCOM-)KZRFB are set. You can also use function module MATERIAL_RESET_ENQ_BUFFER or MATERIAL_RESET_ENQ_BUFFER_MAKF to completely reset this buffer. This can, for example, be necessary if function module DEQUEUE_ALL has been executed.
    Parameters
    SCHLUESSEL
    MATDATEN
    RETURN
    MATPER
    SEQMAT01
    Exceptions
    ACCOUNT_NOT_FOUND
    BATCH_NOT_FOUND
    FORECAST_NOT_FOUND
    LOCK_ON_ACCOUNT
    LOCK_ON_MATERIAL
    LOCK_ON_PLANT
    LOCK_ON_SALES
    LOCK_ON_SLOC
    LOCK_ON_BATCH
    LOCK_SYSTEM_ERROR
    MATERIAL_NOT_FOUND
    PLANT_NOT_FOUND
    SALES_NOT_FOUND
    SLOC_NOT_FOUND
    SLOCNUMBER_NOT_FOUND
    SLOCTYPE_NOT_FOUND
    TEXT_NOT_FOUND
    UNIT_NOT_FOUND
    INVALID_MCH1_MATNR
    INVALID_MTCOM
    SA_MATERIAL
    WV_MATERIAL
    WAART_ERROR
    T134M_NOT_FOUND
    Reward Points if useful.

Maybe you are looking for

  • Update routine to populate value for field ZDOCCATG(Document category)

    Hi Experts,    I need to populate  data for field ZDOCCATG(Document Category) based on the value of the below  two fields, 1. 0deb_cre_lc(Debit / credit Amount) 2. 0ac_doc_typ(Belegart) The logic is as follows: if 0deb_cre_lc > '0'.      if 0ac_doc_t

  • 10.5.7 and Macbook Pro won't reboot!!

    I've updated to 10.5.7 this morning and my system is just sitting here rebooting over and over. It brings up the Apple logo without the spinning wheel, sits for 5 minutes, then reboots again... just does it over and over again. Can anyone tell me wha

  • HOW TO CONVERT DATE INTO NUMBERS

    HI, what the syntax for converting date into No. Ex from the first date of the month till current date how many days are there, this No of days needs to be divided by the net sale of the month. i have searched in formulas fields but i am not able to

  • Is the statement in JDK 1.4 Doc is misleading ??

    hi all, I read the following information in standard JDK 1.4 Doc public interface Cloneable A class implements the Cloneable interface to indicate to the Object.clone() method that it is legal for that method to make a field-for-field copy of instanc

  • Dual External Displays?

    Is there anyway to get dual external LCD's working with the macbook? If so please let me know, thanks.