How to call function in FOX
In fox , can I use call function which developed by ABAP?
I want to use the call function to read table in FOX.
thanks
hi
u can use functions, but not complex.
the syntax is as follows
CALL FUNCTION UPC_FUNCEXEC_SAVE
EXPORTING
I_NO_TRANSACTION_DATA = FLAG
tx
srin
Similar Messages
-
How to call function in jar file?
First, I can't write english well.(I'm korean.. ) sorry about that.
I have known function in jar file.
but I don't know how to call function in jar file.
how can I this work?
My project and another project are respectively developing D-project with me and other man.
so i need it. or I can't do this work.
I will paste other's source code in my source code.
and then recomplie , build it.. but it is not my wish!
thanks for reading my sentence.If you have a jar file with a class that you wish to use, then you must add the jar file to your class path ($CLASSPATH on unix, linux, etc. and %CLASSPATH% on Windows).
Then you can use the class normally, just as you would if it were not in the jar.
If you meant something else, you'll need to explain what you meant. -
HOW TO CALL FUNCTION MODULE INSIDE SMARTFORM
PLEASE ANYONE TELL ME, ABOUT HOW TO CALL FUNCTION MODULE INSIDE SMARTFORM. IT IS VERY URGENT!!!!!!!!!1
Hi,
Under Global Definitions, we have 'Form Routines' tab. Under this tab, u can have a dynamic subroutine call. With in FORM and ENDFORM, you can call the Function Module.With in the Program Lines editor, u can define the subroutine........PERFORM.
If helpful, reward points.
Rgds,
CK -
How using ABAP function in fox formula ?
Hello,
I want to launch standard function :"RSW_CURRENCY_TRANSLATION" by Fox formula. I declare this function in SAP Table :rsplf_fdir, and I can call this function by fox, with all parameters.
But when I want to use it, I've a problem with the first parameter : "Formula error: Type RSR_CTTNM is not permitted"
What's the solution ?
Best regards,Hi Cyril,
I read the fact that you have chosen to use CURC instead of the Function Module.
Did you fix your exchange rate type in your CURC formula: For example:
CURC (LCAMT,12312008,EURP,LCUR,GCUR).
Or did you make into a variable, that can be chosen at run time?
I'm asking because I'm trying to make the 'exchange rate type' in this formula to be more dynamic (like a local variable).For example:
DATA EXRATE TYPE 0RTYPE.
DATA EXRATE_V TYPE 0RTYPE.
EXRATE_V = VARV(EXCHRATE).
{0AMOUNT,GCUR, GCTYPE,FYPERIOD,VERSION,COSTELM,INT_ORDER} = CURC (LCAMT,12312008,EXRATE_V,LCUR,GCUR).
But the system returns the error meesage that it doesn't recognise 'EXRATE_V' even though i have declared it earlier on. So I have a fear that the system is expecting me to enter a fixed exchnage rate type that exists in RSCUR, in this formula..!! Is that true??
I don't want it to be fixed in the formula, it should be chosen at time of planning. How do you have yours right now? Do you know why I get this error message, and what I need to do to in the FOX formula, to make sure it can be populated at run time?
Thanks for your help and information in advance. -
How to call Function Module in Selection Screen
Hi All,
I have developed one HR Report (Qualification Overview Report: To display all active employees and their Qualifications along with their Proficiency).
Already it has 3 selection fields on selection screen and now I want one more field on selection screen like Qualification Id.
But when the end user press F4 it should display the Popup which comes in TCode: PA30 at the time of Creating Qualification.
I have debugged the Standard Code and searched the Function Module: 'RH_OBJID_REQUEST' which shows Popup which I wanted to show at Selection screen for newly added field.
So I have to define new field like 'Qualification Id' and want to attach above Function Module so that it will cater my requirement.
If anybody has worked on this type of requirement then please let me know.
Thanks,
Jay.Hi Raymond,
I have written following code:
s_quali is used in selection screen for Qualification Id.
SELECT-OPTIONS : s_quali FOR hrp1000-objid NO INTERVALS.
AT SELECTION-SCREEN ON VALUE-REQUEST FOR s_quali-low.
CALL FUNCTION 'RH_OBJID_REQUEST'
EXPORTING
plvar = '01'
otype = 'Q'
seark = '*'
seark_begda = '18000101'
seark_endda = '99991231'
set_mode = 'X'
TABLES
sel_objects = git_objects.
LOOP AT git_objects INTO wa_objects. " Logic is to fill up the Selection screen field
s_quali-low = wa_objects-objid.
APPEND s_quali TO s_quali.
CLEAR : s_quali, wa_objects.
ENDLOOP.
Now problem is that, its not populating all values in selection screen which I select from Popup screen (Choose Qualification).
I checked that the first value in the internal Table is over written by second records in the internal table
For e.g.: If I select 001,002,003,004 from Popup screen then I am able to see only 002,003,004 in the Multiple selection view of that field though it is available in the internal table s_quali (because I am filling up the table using Loop-Endloop)
Please advise me how to overcome this issue. (How to fill up selection screen)
Thanks,
Jay. -
HANA Server site JavaScript how to call functions in another .js file? thanks
In HANA Studio, I have created a .js file and a server site javaScript .xsjs file. The .js file and .xsjs file are in the same path .I create function F1() in js file. Then I want to call function F1 in xsjs file. But it always through an error “f1 was used before it was defined”. Any suggestion? Thanks very much
.js file:
.xsjs file:Hi Jim,
Now I have found the method how to use external library. If we want to outsource some of xsjs functions to an external library, XSEngine provides a special format for this, called “.xsjslib”. Then in xsjslib file, we define functions need to be outsourced.
In .xsjs file, we can import a library using the following code:
$.import("<Package_Library_was_deployed>","xsjslib File Name");
The Package_Library_was_deployed please refer to:
Access functions inside library by this path:
$.Package_Library_was_deployed.xsjsFileName.FunctionName(); -
Call Function in FOX - 'DATE_TO_PERIOD_CONVERT'
Hi,
I have added the FM in 'DATE_TO_PERIOD_CONVERT' in RSPLF_FDIR.
There are 2 Date fields which the user enters based on which I need to populate another field- 'No. of Months'.
I need to convert the dates into months before I calculate the number of months.(difference of the two periods).
When I tried to pass the parameters to the FM, Im gettin an error as below:
Types of parameter I_DATE () and variable CHA_ZSTCTDT(D) are inconsistent
When I checked the domain of both the fields, both are of the same type DATS of length 8.
Im not able to figure out what went wrong..
Sample Code:
DATA CHA_ZSTCTDT TYPE ZSTCTDT.
DATA CHA_ZEDCTDT TYPE ZEDCTDT.
DATA CHA_FISCPER3 TYPE 0FISCPER3.
DATA CHA_FISCYEAR TYPE 0FISCYEAR.
CALL FUNCTION 'DATE_TO_PERIOD_CONVERT'
EXPORTING
I_DATE = CHA_ZSTCTDT
I_MONMIT = 00
I_PERIV = 'K4'
IMPORTING
E_BUPER = CHA_FISCPER3
E_GJAHR = CHA_FISCYEAR .
Rgds
ShyamWhen I defined as String:
Types of parameter I_DATE () and variable CHA_ZSTCTDT(C) are inconsistent.
But again Bindu,
as per Marcs document on FOX:
Restriction on types for parameters
F, I, D, or STRING
Types of characteristics and attributes
No structures or tables..
I tried all those, but stills ame error
Rgds
Shyam -
How to call functions defined and packed in a .dll file
hi,
my client have provided me with a .dll file which implements all functions tasks.
earlier we created a applications in vb that accessed functions from the .dll file provided by client.
now he wants java implementation of the same application written in vb.
now how to access functions in .dll file provided by the client from java source code.
regards,
s.mohamed asifFor this you should write JNI wrappers for the native functions, that is you create class with the native function prototypes as native methods, implement these methods with native functions in JNI module, each JNI function calls a native function from your DLL.
I know that JNI coding is a greate pain. That is why I am developing Java Platform Invoke which is a paradigm of .NET Platform Invoke. See my demo at
http://www.sharewareplaza.com/Java-Platform-Invoke-API-Demo-version-download_49212.html -
How to call function module/ class method of another system.
Suppose now i am working in System A. And i need to check the system Status of System B, System C, System D....
my design is to provide an interface. and each system realize the interface individually.now my question is how cani call the interface, because they are in different systems.
of course i know about the host name, port and logon information over these systems.
who can give my some suggestions or other solutions.
thanks in advance.
Johnney.Hello,
If u want to call a FM of the other system then that FM should be a RFC enable on one.
<b>CALL FUNCTION func DESTINATION dest.</b>
Effect
Executes the function module from an external source (as a Remote Function Call or RFC); dest can be a literal or a variable.
Depending on the specified destination, the function module is executed in another R/3 or R/2 System. Externally callable function modules must be flagged as such in the Function Builder (of the target system).
Since each destination defines its own program context, further calls to the same or different function modules with the same destination can access the local memory (global data) of these function modules.
To maintain existing destinations, choose Tools -> Administration, Administration -> Network -> RFC destinations
Note
Under certain circumstances, an RFC may trigger a database commit. For this reason, RFCs must not be used between pairs of SQL statements that open and close a database cursor (such as SELECT... ENDSELECT).
Vasanth -
How to call function module from IP
Hi
I need to trigger the process chain from the input ready queries in Bex analyzer. I figured out that I need to call RSPC_API_CHAIN_START.
How do we go about in calling the above function module in IP.
Thanks in advance
IHi Matt
Thanks for your response, it was very productive at the right time as we saw our process chain running indefinetly. With selecting all chars to be changed, it ran just once with no errors.
what is TA ? I know rsplan- transaction code for the planning modeler.
Can you tell me how can we call function module in custom exit planning function.
Where should I embed the code
CALL FUNCTION 'RSPC_API_CHAIN_START'
EXPORTING
I_CHAIN = 'ZPC_CCATOPCA'.
I_T_VARIABLES =
I_SYNCHRONOUS =
I_SIMULATE =
I_NOPLAN =
IMPORTING
E_LOGID =
EXCEPTIONS
FAILED = 1
OTHERS = 2
thanks in advance -
How to call function which return and out
My function specifcation is
FUNCTION GetGoogleScholarActivation (
pi_clnt_id IN google_scholar_status.clnt_id%TYPE,
pi_status_type IN ci_status_type_tab_type,
po_status OUT ci_status_tab_type,
po_date OUT ci_date_tab_type
RETURN NUMBER ;
where type is
TYPE ci_status_type_tab_type IS TABLE OF VARCHAR2 (1) INDEX BY BINARY_INTEGER;
TYPE ci_status_tab_type IS TABLE OF VARCHAR2 (10) INDEX BY BINARY_INTEGER;
TYPE ci_date_tab_type IS TABLE OF VARCHAR2 (8) INDEX BY BINARY_INTEGER;
I am trying to call function in SQL PLUS for testing as
declare
var number ( 10);
TYPE p_st1 IS TABLE OF VARCHAR2 (1) INDEX BY BINARY_INTEGER;
p_st p_st1 ;
type p_status1 IS TABLE OF VARCHAR2 (1) INDEX BY BINARY_INTEGER;
p_status p_status1 ;
TYPE p_date1 IS TABLE OF VARCHAR2 (8) INDEX BY BINARY_INTEGER;
p_date p_date1 ;
Begin
p_st(0) := 'A';
var := PQDKGOSH.GetGoogleScholarActivation(11920 , p_st, p_status ,p_date );
dbms_output.put_line ('Activation_status '|| p_status(0) );
dbms_output.put_line ('Activation_date '|| p_date(0) );
dbms_output.put_line ('Retun Value'|| var );
End;
but getting error PLS-00306: wrong number or types of arguments in call to
'GETGOOGLESCHOLARACTIVATION'
so how to test from SQL PlusHI
I tried to execute below like this
declare
var number ( 10);
p_st ci_status_type_tab_type ;
p_status ci_status_tab_type;
p_date ci_date_tab_type;
Begin
p_st(0) := 'A';
var := PQDKGOSH.GetGoogleScholarActivation(11920 , p_st, p_status ,p_date );
dbms_output.put_line ('Activation_status '|| p_status(0) );
dbms_output.put_line ('Activation_date '|| p_date(0) );
dbms_output.put_line ('Retun Value'|| var );
End;
still iget error
PLS-00201: identifier 'CI_STATUS_TYPE_TAB_TYPE' must be declared
becuse this declareation i did in package specification .
and i am trying to execute the function . -
How to call functions in windows or Solaris in servlet?
Hello,
Does anyone know if there is a way for servlets to call functions in windows or solaris shell command????
Thanks :)Checkout the Runtime.exec family of methods.
I would think carefully if calling a shell script or batch file from a J2EE web component is something you really want to do though. -
HOW TO CALL FUNCTION MODULE FROM ABAP4 EDITOR
HI !
friends
I want to call function module from abap 4 editor.
is there any shortcut key from edit menu through which if give a function module name then it calls the function automatically?
points will be awarded.
Cheers
troycommand will be like this
<b> call function 'YW2_GET_MNW_PERIOD'
exporting
w_budat = v_datum
importing
w_period = i_date-period
w_period_desc = i_date-p_desc.</b>
Regards
prabhu -
How to call function BAPI_GOODSMVT_CREATE ?
Hi all,
I want to create a material document by calling the function BAPI_GOODSMVT_CREATE
I don't know what to pass although I know I have to export something (GOODSMVT_HEADER and GOODSMVT_CODE) in my ABAP. But what should I actually pass to the function?
Thanks.Hi,
Try with this
data : gt_header like bapi2017_gm_head_01 ,
gt_code like bapi2017_gm_code,
gt_item like bapi2017_gm_item_create occurs 0,
gt_sno like bapi2017_gm_serialnumber occurs 0.
gt_code-gm_code ='03'. "goods issue
In the header pass the posting date, header text etc...
and in the line item populate material, plant, storage location, movement type.....
IF necessary pass the serial number in the gt_sno table
call function 'BAPI_GOODSMVT_CREATE'
exporting
goodsmvt_header = gt_header
goodsmvt_code = gt_code
tables
goodsmvt_item = gt_item
goodsmvt_serialnumber = gt_sno
return = gt_return.
Cheers
Sasi -
How to Call Function from SAPSCRIPT
I want to Call a function from my SAPSCRIPT to get some data and print the same in the form , Can I get an example for this
Hi Nandan,
U cannot directly call function from SAPScript... For that u have to create one include in which u need to write the code. Using Perform... EndPerform u can call the same from SAPScript. See the below example
u need to write this code in SAPScript
PERFORM formname IN PROGRAM includename
USING &field1&
USING &field2&
CHANGING &field3&
ENDPERFORM
Here includename is your include type program.
u need to write this code in your include type program..
FORM formname TABLES in_par STRUCTURE itcsy
out_par STRUCTURE itcsy.
data : var1 like field1,
var2 like field2,
var3 like field3.
READ TABLE in_par WITH KEY 'field1'.
CHECK sy-subrc = 0.
var1 = in_par-value.
READ TABLE in_par WITH KEY 'field2'.
CHECK sy-subrc = 0.
var2 = in_par-value.
now u can call corresponding function using local VAR1 and VAR2. Here u can pass N no of USING parameters.
After processing on VAR3...
READ TABLE out_par WITH KEY 'field3'.
out_par-value = VAR3.
MODIFY out_par INDEX sy-tabix.
EndForm.
Here in_par and out_par are the structures which will be used to communicate with SAPScript. And this is the only way as per my view.
I m sure this code will work fine. Here i have used dummy variables that u need to change as per your requirement. If u have more queries write me back.
And yes if this works than dont forget to give the points.
Regards,
Sagar
Maybe you are looking for
-
Recording a stream and using it on the fly
Hi, I'm trying to upload a video stream from a flash client and convert the video stream on the fly (from an external converter like ffmpeg or vlc). Since I don't manage to send the stream directly to the converter, a solution I have found is to publ
-
Formatting Numeric Only with Variable Decimal Places
Acrobat Pro 9, Windows XP I'm creating a form that has a number of text box form fields that are to be numeric only per the form requestor. However, for any given field of this type the number of decimal places that can be entered can vary from 0-3 a
-
Hi Gurus, I have to create PO with PRICE Rs.25000.But during creation it takes upto 10,000. Pl. give details regarding above issue. Regards, Devendra
-
How do I target Air 2.5 from Flash CS5?
Ok, how do I target Air 2.5 from Flash CS5? I'd kill to have the enhanced css support right now... Thanks! -Ted
-
Brocade Switches, ISE compatibility
I have a customer with ISE just updated to 1.3.0 version. Reading the Network Component Compatibilty notes we found some kind of compatibility with Brocade switches is indicated, basically AAA (802.1X, MAB, VLAN assignment, dACL), and some limited pr