Table stores Function module's Import/Export/Table parameters
Hi,
Each function module will have Import, Export, Table.
Can you please tell me where these entries are stored.
Please tell me the table name.Orelse tell me the way to extract that.
Regards,
Ashok
Hi,
Can we change the default values in the table FUPARAREF and have the changed values transported to QA and Production Servers via Workbench/Customizing Requests.
If so, please tell me how.
Thanks in advance.
Similar Messages
-
How to know whether the tables in function module is importing or exporting parameter?
Hi guys,
Why the tables are used in function modules, I knw it transfers internal tables, but thing is that how would i know instantly that whether table is getting imported or exported to the funtion module? Do i need to go through program flow or can we know just by seeing the function module?Hi anjali,
Tables are like multi line containers ,which can act as both import and export parameters .
means,the data in the table can be used by the function module during its execution and the same table can be populated with result after the fm execution .
you can also refer :http://help.sap.com/saphelp_erp60_sp/helpdata/en/d1/801ece454211d189710000e8322d00/content.htm
Regards,
Krishna. -
Hi,
Tables in function module are only export parameters or import parameter also?
THANKSHello,
Tables in function module are both import and export parameters.
That means you can pass data to Function module through internal table (import parameter) and after
some calculation in the function module you can update the same internal table and this internal table can also be passed to your calling program( export parameter).
Regards
Arindam -
Function Module: how to setting table import parameter
hi, i'm developing a function module. i create a TABLES where it will allow multiple variables IMPORT from user input to this function module. the tables i set as OPTIONAL and decribed as below.
PSPID PS_PSPID CHAR 24
POSID PS_POSID CHAR 24
AUFNR AUFNR CHAR 12
PSY J_STATUS CHAR 5
PUS J_STATUS CHAR 5
in my source code, i done a select statement to process the IMPORT input . the problems i face,for the PSY and PUS input, if the one or both input is BLANK, NO RESULT will display. What i'm try to do , if input one or both is BLANK, it wil neglect the input and return as ALL RESULT (return result oir all status for input pspis / posid / aufnr) . attached the select statement. thank you
itparm[] = objparm[].
select
a~pspnr a~stspr a~objnr a~pspid
b~psphi b~objnr as wobjnr b~posid
c~aufnr c~objnr as nobjnr c~pspel
d~objnr as jeobjnr d~inact d~stat
e~objnr as jcobjnr e~udate e~usnam e~utime e~stat as jcstat e~inact as jcinact
f~istat as syistat
f~txt04 as sytxt04
f~spras
g~estat as usestat
g~txt04 as ustxt04
into corresponding fields of table itobj
from proj as a
inner join prps as b on a~pspnr = b~psphi
inner join aufk as c on b~pspnr = c~pspel
inner join jest as d on c~objnr = d~objnr
inner join jcds as e on d~objnr = e~objnr
and d~stat = e~stat
inner join tj02t as f on e~stat = f~istat
inner join tj30t as g on a~stspr = g~stsma
for all entries in itparm
where ( a~pspid = itparm-pspid
or b~posid = itparm-posid
or c~aufnr = itparm-aufnr )
and ( f~istat = itparm-PSY and g~estat = itparm-PUS ).Thanks for your quick reply. actually the data will be somehing like this. since i developed a function module, i keep the import parameter in a table.
PSPID PS_PSPID CHAR 24
POSID PS_POSID CHAR 24
AUFNR AUFNR CHAR 12
PSY J_STATUS CHAR 5
PUS J_STATUS CHAR 5
the example data will be in OTPARM internal table
PSPID POSID AUFNR PSY PUS
aa-aa-aa a1 I001
bb-bb-bb b1 E009
cc-cc-cc
i'll store this into an internal table. from the data. it can be seen there a BLANK input. so the blank input should not be included into WHERE connditions. that why in the previous solution, i use SELECT inside LOOP because every line of the IMPORT tables will be generated with different WHERE conditions. i tried to do something like this:
PSPID POSID AUFNR PSY PUS cond_syx
aa-aa-aa a1 I001 if proj~pspid = itparm-pspid and prps~posid = itparm~posid and ....
bb-bb-bb b1 E009 if proj~pspid = itparm-pspid and aufk~aufnr = itparm~paufnr and ....
cc-cc-cc if proj~pspid = itparm-pspid
and implement with FOR ALL ENTERIES, but at the WHERE conditions i failed to put the CONF_SYX. please comment and give opinions. Thanks you very much. -
Exporting Custom table through function module
<b>How can i Export Custom table through function module.</b> when we add some table in the function module table tab it asks for a ref. table which is some table in database .. but i want to add some custom table with some user defined column names..how can i do this
<b>n plz tell me how to loop thru select options</b>
i have to loop thru select option and assign all the values to a variable.
plz help me out
Message was edited by:
Karan ChopraHi Karan,
Do one thing, Just in the tables tab give the name of the table and don't write anything else. no TYPE and no ANY.
Hope it will resolve issue.
reward points if useful.
Regards,
Atish -
Getting Data from Structure and Store Data into Table using Function Module
Hello...
we are created a function module to import 2 structures in the systems and want to read the data from the structure into a customized table when the fucntion module is called. However, whenever the function module is run, we only managed to have one data into the customized table whereas the actual results is that there will be a few records in this customized table.Hi,
It should be something like this...
TABLES ZRESMORT.
DATA E_ZRESMORT TYPE STANDARD TABLE OF ZRESMORT WITH HEADER LINE.
SELECT * FROM ZRESMORT. <=====================
DELETE ZRESMORT. <================== It is deleting all the records in your Z table
ENDSELECT. <===============================
Loop at I_CKF_CONTRACT. " Assuming this is the Main Table
Read table I_CKF_PROCESS with key ." Here you will read this table to get the corresponding records of Table I_CKF_CONTRACT
E_ZRESMORT-MORT_FT_ID = I_CKF_CONTRACT-COMMON-CONTRACT_ID_EXT.
E_ZRESMORT-MORT_KDATE = I_CKF_PROCESS-TECHNICAL-KEY_DATE.
E_ZRESMORT-MORT_TSTAMP = I_CKF_PROCESS-TECHNICAL-TIMESTAMP.
E_ZRESMORT-MORT_FLAG = 1.
E_ZRESMORT-MORT_BUPA = I_CKF_CONTRACT-BUPA-BUSINESS_PARTNER_ID.
E_ZRESMORT-MORT_PORTFO = I_CKF_CONTRACT-BUPA-PORTFOLIO_CAT.
E_ZRESMORT-MORT_FT_ID_DUM = I_CKF_CONTRACT-COMMON-CONTRACT_ID.
INSERT INTO ZRESMORT VALUES E_ZRESMORT.
IF SY-SUBRC EQ 0.
ENDIF.
endloop. -
How to create function module to update z tables?
Hi,
I am new to ABAP. I checked the forum but did not find relevant solutions.
I have 2 z tables - ZFLIGHT and ZCUSTOMER. I have a few entries in each table.
I want to write a report to update the entries in the table using function modules. For that I have created a function module - zflight_fm and also a function group- zflight_fg and assigned the function group to the Fm. I do not know how to proceed further, what to put as import, export parameters, tables, changing etc. Further I want exceptions to handle the successful update of the entries.
Thanks and regards,
SmruthiSteps:
1) Changing --->a) Zflight TYPE ZFLIGHT(DDIC Ref) OR Zflight TYPE ANY TABLE
b) ZCustomer TYPE ZFLIGHT(DDIC Ref) OR ZCustomer TYPE ANY TABLE
2) Execptions:
a) Upload_failed_Flight
b) Upload_Failed_Customer
3) Exporting ---> a) Information what rows are uploaded
Source Code:
Insert Zflight from Zflight(changing parameter).
If insert failed
RAISE Upload_failed_Flight.
endif.
Insert ZCustomer from ZCustomer(changing parameter).
If insert failed
RAISE Upload_failed_Customer.
endif.
Regards,
Gurpreet -
Passing dynamic table to function module
Hi all,
actully i have to pass dynamic internal table from function module.
for that i use syntax
move <dyn_table> to data_tab.
but now my question is that in fm parameters what is the type spec & associated type for data_tab in fm parameters.
regards,
anujHi
Good
Here is a simple example of passing an internal table "itab" to a function module "REUSE_ALV_LIST_DISPALY".
It displays the internal table data into a list format.
data : itab like ztest213 occurs 0 with header line.
tables : ztest213 .
select * from ztest213 into table itab.
loop at itab.
call function 'REUSE_ALV_LIST_DISPLAY'
exporting
I_INTERFACE_CHECK = ' '
I_BYPASSING_BUFFER =
I_BUFFER_ACTIVE = ' '
I_CALLBACK_PROGRAM = ' '
I_CALLBACK_PF_STATUS_SET = ' '
I_CALLBACK_USER_COMMAND = ' '
i_structure_name = 'ztest213'
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
IR_SALV_LIST_ADAPTER =
IT_EXCEPT_QINFO =
I_SUPPRESS_EMPTY_DATA = ABAP_FALSE
IMPORTING
E_EXIT_CAUSED_BY_CALLER =
ES_EXIT_CAUSED_BY_USER =
tables
t_outtab = itab
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.
endloop.
Thanks
mrutyun^ -
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. -
Function Module to modify MARC table
Hi all,
Is There any Function Module which modifys the table MARC.
please suggest.
regards,
chandra.Hello Reddy,
Check this sample code:
*& Report ZYTEST02 *
report zytest02 .
parameters:matnr like bapimathead-material,
maktx like bapi_makt-matl_desc default 'Mat. autm. AE',
werks like bapi_marc-plant,
vkorg like bapi_mvke-sales_org,
vtweg like bapi_mvke-distr_chan.
start-of-selection.
perform material_create using matnr
maktx
werks
vkorg
vtweg.
*& Form material_create
* text
* -->P_MATERIAL text
form material_create using value(p_matnr)
value(p_maktx)
value(p_werks)
value(p_vkorg)
value(p_vtweg).
tables: mara.
* shift p_matnr right deleting trailing space.
* translate p_matnr using ' 0'.
data: headdata like bapimathead occurs 0 with header line.
data: clientdata like bapi_mara.
data: clientdatax like bapi_marax.
data: salesdata like bapi_mvke.
data: salesdatax like bapi_mvkex.
data: plantdata like bapi_marc.
data: plantdatax like bapi_marcx.
data: return like bapiret2.
data: taxclassifications like bapi_mlan occurs 0 with header line.
data: commitmessages like bapi_matreturn2 occurs 0 with header line.
data: returnmessages like bapiret2 occurs 0 with header line.
data: materialdescription like bapi_makt occurs 0 with header line.
data: charx value 'X'.
* Kopfdaten
headdata-material = p_matnr.
headdata-matl_type = 'FERT'.
headdata-ind_sector = 'M'.
* Sichten die gepflegt werden sollen
headdata-basic_view = charx. "Sicht auf Grunddaten
headdata-sales_view = charx. "Sicht auf Vertriebsdaten
* Daten für die Sicht GRUNDDATEN 1
materialdescription-langu = sy-langu.
materialdescription-matl_desc = p_maktx.
append materialdescription.
* Mandantenspezifische Materialdaten
clientdata-base_uom = 'ST'.
clientdatax-base_uom = charx.
clientdata-trans_grp = '0001'.
clientdatax-trans_grp = charx.
* Materialdaten auf Werksebene
plantdata-plant = p_werks.
plantdatax-plant = p_werks.
plantdata-loadinggrp = '0001'.
plantdatax-loadinggrp = charx.
* Verkaufsdaten
salesdata-sales_org = p_vkorg.
salesdatax-sales_org = p_vkorg.
salesdata-distr_chan = p_vtweg.
salesdatax-distr_chan = p_vtweg.
* Steuerklassifikation
taxclassifications-depcountry = 'DE'.
taxclassifications-tax_type_1 = 'MWST'.
taxclassifications-taxclass_1 = '1'.
append taxclassifications.
call function 'BAPI_MATERIAL_SAVEDATA'
exporting
headdata = headdata
clientdata = clientdata
clientdatax = clientdatax
plantdata = plantdata
plantdatax = plantdatax
* FORECASTPARAMETERS =
* FORECASTPARAMETERSX =
* PLANNINGDATA =
* PLANNINGDATAX =
* STORAGELOCATIONDATA =
* STORAGELOCATIONDATAX =
* VALUATIONDATA =
* VALUATIONDATAX =
* WAREHOUSENUMBERDATA =
* WAREHOUSENUMBERDATAX =
salesdata = salesdata
salesdatax = salesdatax
* STORAGETYPEDATA =
* STORAGETYPEDATAX =
importing
return = return
tables
materialdescription = materialdescription
* UNITSOFMEASURE =
* UNITSOFMEASUREX =
* INTERNATIONALARTNOS =
* MATERIALLONGTEXT =
taxclassifications = taxclassifications
returnmessages = returnmessages
* PRTDATA =
* PRTDATAX =
* EXTENSIONIN =
* EXTENSIONINX =
call function 'BAPI_TRANSACTION_COMMIT'
exporting
wait = charx
importing
return = commitmessages.
* commit work and wait.
* Für den Fall das es notwendig wird die Exclusive Sperre wegräumen
CALL FUNCTION 'DEQUEUE_EMMARAE'
EXPORTING
matnr = p_matnr.
* if return-type ne 'S'.
format color col_negative.
loop at returnmessages.
write: / returnmessages-message.
endloop.
* endif.
loop at commitmessages.
write: / commitmessages-message.
endloop.
endform. " material_create
If useful reward.
Vasanth -
Dynamic Table Selection function module
Dear Friends,
We have got critical requirement on Custom BAPI function module :
we have to pass one field name of table and table name : Eg (Matnr and MARC).
we have to get table contents w.r.t field name of table and table : Has to display MARC based on Matnr.
(It is something like we display table contents in SE11 and SE16, Our requirement is to get the data by giving random field name of table and table name ).
My View : Imports Tab of F.M of is static
Tables Tab of F.M could be dynamic....if so how to achieve or any other approach?
Note : Eg1 : Matnr and MARA (Input to F.M) -
> Get MARA contents (Table from F.M)
Eg2 : Matnr and MARC (Input to F.M) -
> Get MARC contents (Table from F.M)
Eg3 : Lifnr and LFA1 (Input to F.M) -
> Get LFA1 contents (Table from F.M)
Eg1 : Ebeln and EKKO (Input to F.M) -
> Get EKKO contents (Table from F.M)
Awaiting for positive and quick views.
Regards
SekharDear Sarcevic,
I have created zfunction module with imports and tables.
I'm able to manage import parameters as dynamical, but tables declaration gives fuzzy.
How do we make tables tab declaration in function module as dynamic? any other views?
Regards
Sekhar -
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 -
Storing the output of a function module into a custom table
Hi Gurus,
Is it possible to store the output of a function module into a custom table.How can this be done?Is it complex?hi,
After u execute the FM and get values in the internal table ITAB_RESULT. Create a custom table having structure same as ITAB_RESULT call it ZRESULT.
data :wa type ITAB_RESULT.
call FM and get result it ITAB_RESULT
loop at itab_result.
move-corresponding itab_result to wa.
insert wa to ZRESULT.
endloop.
Regards,
Mansi. -
Table or Function module to get Internal order planning and Cost element pl
Dear All,
Table or Function module to get Internal order planning and Cost element planning.
Internal order planning from T-code KO13.
Thanks in advance.
Regards,
Ravi
Edited by: Ravi Chandra on Sep 13, 2011 8:08 AMBPEJ, BPEG, BPEP
-
Vendor-Customer balances in group currency-table/structure/function module?
Hi All,
Which table/structure/function module can be used to get balances for vendors and customers in group currency? We just wnat to extract balances in group currency so FBL1N and FBL5N are not options. Is there any SAP report which can provide these balances for both vendors and customers?
Thanks and regards,
PinkyHi Pinky,
I came across one report S_ALR_87012079 - Transaction Figures: Account Balance, Program RFSRRCUA, which extracts Account Balances of Vendor. Once the report is executed, you can do Currency Translation from one currency to different currencies. In the output screen, in the Top Menu, select 'Settings -> Currency' and you can convert to another currency. I am not sure, if this helps you. If this helps, kindly update your comments here.
Thank you.
Suresh Jayanthi.
Maybe you are looking for
-
I have recently purchased a new computer and am trying to reload my copy of Photoshop Elements 10. Having started installation, I reached a certain point and received an error message: 2203 telling me I could not proceed as another process was locked
-
Hi, after installing CUPS 8.6.1.10000-34 in VMware Workstation 7.1.2 build-301548 and eventually rebooting the host, CUPS is not reachable via IP anymore, i.e. ping from physical NIC of the host to virtual NIC of the CUPS VM fails (Destination Host U
-
I have a form Item which contains RadioButtonGroup and a Repeater which dynamically loads up RadioButtons from model data: <mx:FormItem direction="horizontal"> <mx:Label text="Status:"/> <mx:RadioButtonGroup id="statusType" selectedValue="{model.sele
-
Strange SQLException : column not found
Hello All, I have seen many users facing the error : java.sql.SQLException : column not found. I have the same problem, although my case doesnot match with theirs. I have a Base DAO class which establishes the connection with database in MySQL.I have
-
The FormsCentral website isn't working.
The website isn't working. When I go to sign in, it takes me to a blank gray screen. What is going on?