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 tables 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
Similar Messages
-
Checking the contents of update function module log table
Dear experts,
I created several CALL FUNCTION ... IN UPDATE TASK lines and is curious about the contents of the update function module log table. How can I see its contents?
Thanks in advance.
Regards,
HarisHi Hari,
Use transaction SM13. This gives all the details
To view the details in SM13 switch on Update debugging before you call your update function module.
In debugger Settings --> Display / change Debugger settings --> Use the check box "Update Debugging" --> Press save button
So after COMMIT WORK statement, debugging will start with the update function module
During this time check the entries in SM13
Once the update is complete the entries will be removed from SM13 (Unless there is a failure)
I am not sure if there is option to view records in SM13 for which update is complete (No authorization to change settings in SM13). So i cannot check this
Regards
Rajvansh
Edited by: Rajvansh Ravi on Jul 24, 2011 3:52 PM -
Function module in table TADIR
Hi,
Table TADIR is a repository for all objects. However if I try to locate any function module(Object type = FUNC) in this table I dont get any entries. Why does this happen? Is there any other table which keeps a list of all function modules?
Thanks,
Saurabhhi,
check this table TFDIR...
<b>ENLFDIR</b> Additional Attributes for Function Modules -- this table contains FUNCTIONAL GROUP OF the particular function module..and other details
<b>reward points if it is useful..</b> -
Function module for table control
Hi experts,
I am creating the BDC program, In that I need to select the particular item from the table control say for example item 0010 or 0020 based on the input file and need to process from there.
Is there any function module to select the particular item by passing item no say 0010 or 0020.
Thanks in advance
saiHi
I suppose there is no function module for table control.
below solution might be useful to you.
1) Do BDC recording for the table control with each condition you would like to incorporate in your program.
2) copy the code of Table Control recording in your program and place the code in Loop of internal table.
3) based on the condition call the respective BDC recording of the table control
4) By the above steps you can manage the table control based on the condition.
Regards
Santosh Kumaar.M -
Function module get tables from view
Hello,
I am looking for a function module or something alike where I can find the tables used in a specific view.
I know how to get the data from the view, but I only want the table names.
Can anyone help?Hi,
Please try with the Function Module "VIEW_GET_TABLES" by passing the name of the View to the Importing Paramater "VIEWNAME" and tables parameter "VIEW_TABLES" will list the tables used in the VIEW.
Regards,
Srinivas -
Function modules for table operations
Hi!
I found the module "rfc_get_table_entries", can s.o. tell me some other standard function modules to work with database information?
rfc_get_table_entries returns a concatenated Database line, it would be better for me to get a table with the correct structure.
With best regards
Björn K.Björn,
how about RFC_READ_TABLE? you'll receive the structure in FIELDS and the content in DATA.
if you know the fields you want to receive, you can add them in the FIELDS table as input parameter.
kr, achim -
Using select option and function module in single view
Hi All,
I Have a requirment ,using service call i get a function module and bind to specified UI elements with low and high attributes to input fileds which i designed in my view . And i have to keep range for input values using select options for those input values and clicking on submit i have to display data in VC but it's going to dump
the bug is
Adapter error in INPUT_FIELD "SALEDOC_TXT" of view "ZSD_ORDERSTATUS.MAIN": Context binding of property VALUE cannot be resolved: Node COMPONENTCONTROLLER.1.ZSD_ORDER_STATUS.1.CHANGING.1.S_VBELN does not contain any elements
can any one get me out of this.
Thank U,
MadhanHi,
Call FM using CALL FUNCTION, if you want to pass selectoptions type values to FM..
Try like this...
DATA : delivery TYPE TABLE OF RVBELN,
wa_delivery TYPE RVBELN,
wa_delivery-sign = 'E'.
wa_delivery-option = 'BT'.
wa_delivery-low = lv_FROM_DELIVERYNO.
wa_delivery-high = lv_TO_DELIVERYNO.
APPEND wa_delivery to delivery.
CLEAR wa_delivery.
Pass Delivery to FM.
Cheers,
Kris. -
Function Module or table to read all EQUI for one KUNNR
Hello,
i need to read all Equipments for one specific KUNNR (endcustomer).
Is there a function module which could be used?
Or what is a good select for this?
Thanks a lot.
Kind regards
ManfredHi,
EQBS table will be getting updated based on the Delivery document or while creating equipment for Material & Serial no combination.
How you are maintaining End Customer in your Equipment Master?
You can maintain in Partner Function or Sort Field or through automatic equipment creation.
Based on that, you have to find the logic.
Regards,
Maheswaran. -
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 its populating the syntax error as
THE TYPE SRSC_S_IF_SIMPLE IS UNKOWN. (Though this is commented in program)
So pls suggest
Regards,
prafulhi 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 -
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.. -
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, PankajRich'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 -
Function Module for Table history
Hi,
We have requirement, to send changes to texts (Ex: Company Code texts) to the third party system. I need to write a program which will run periodically and send the changes to the external system.
What would be the best approach to do this?
Is there any function module which I can use to read the change history on any table?
Thanks
VVCheck the FMs:
CHANGEDOCUMENT_READ_HEADERS Change document: Read change document header
CHANGEDOCUMENT_READ_POSITIONS Change document: Read change document items
Regards,
ravi -
Need functional module or table for user type
Hi all,
I need table or a functional module for getting the user type. plz helpHi,
Can you explain your requirement in a bit more detail. You can also provide all the relevant information regarding this topic.
Hope this will help.
Thanks,
Samantak.
Maybe you are looking for
-
Can no longer network PhotoSmart 3210
I have a PlotoSmart 3210 printer. It was formerly networked so that I could access it from two computers. One is running Windows 7 and the other Windows 8.1. Recently there have developed problems with the 8.1 computer. I get print errors with that c
-
Has anyone had any success in downloading their phonebook to a Prius
I have a 04 Prius and I am wondering if anyone ever had any success in downloading their contacts/numbers to a Prius and if so how did they do it.
-
Elements 10 organizer stops working when started
Hi all, hope you had a good Chrimbo!!! I'm running Elements 10 under Vista SP2., when opening organizer it loads images then stops working. Error window says "elements as stopped working, Close the programme... etc etc.. Anyone know the cause and how
-
I have a question about the 4th gen
My brother was doin an update and it was goin slow so he turned off the ipod in the middle of the update. now the ipod will turn on but a blank black screen but it shows power. It wont bring up itunes either when plugged into a computer. So please he
-
Top Ten SQL Performance Trouble Clues
DB: Oracle Database 11g Enterprise Edition Release 11.1.0.7.0 - 64bit Production PL/SQL Release 11.1.0.7.0 - Production TNS for Linux: Version 11.1.0.7.0 - Production NLSRTL Version 11.1.0.7.0 - Production OS: Red Hat Enterprise Linux 5 At the risk o