Problem calling function in FireFox
Anything wrong with this code? It works for IE but FireFox throws: "thisMovie("Untitled-2").playF is not a function" error
function thisMovie(movieName) {
if (navigator.appName.indexOf("Microsoft") != -1) {
return window[movieName];
} else {
return document[movieName];
function sendToActionScript(archivo) {
thisMovie("Untitled-2").playF(archivo);
EDIT: this is JS code in an HTML file
Fixed it, the HTML code generated by flash was not working. I republished and used the newly generated HTML file (wish it was not that big and filled with comented stuff) But it's now working on FF as well.
EDIT: Heh, I keep editing my own stuff. Problem with firefox was having a separate AC_RunActiveContent.js file with most of the code originally generated in the HTML site upon publishing. Worked ok in IE but FF didn't like to have all the js code in a separate file. Strange cause it worked fine on FF too when files were on kglad's server. Server security issue most likely.
Similar Messages
-
Hi,
i have creted a function module which read stock quantity using BAPI_MATERIAL_AVAILABILITY.
Import - MFRPN
Export - QNTY
If i execute function module from SAP the result it's OK but when i call function from PHP it does not output nothing.
$sap = new saprfc(array(
"logindata"=>array(
"ASHOST"=>"192.168.3.1" // application server
,"SYSNR"=>"00" // system number
,"CLIENT"=>"200" // client
,"USER"=>"rfc" // user
,"PASSWD"=>"123456789" // password
,"show_errors"=>true // let class printout errors
,"debug"=>false)) ; // detailed debugging information
// Call-Function
// Call-Function
$result=$sap->callFunction("Z_READ_QNTY",
array(
array("IMPORT","MFRPN",$_POST['cod']),
array("EXPORT","QNTY",$quantity),
// Call successfull?
if ($sap->getStatus() == SAPRFC_OK)
echo $quantity;
else
// No, print long Version of last Error
$sap->printStatus();
// or print your own error-message with the strings received from
// $sap->getStatusText() or $sap->getStatusTextLong()
Please someone help me.
Thank you.hi Dan,
i will send you an working code sample. The Fuba ZGET_MAKTX is easy MATNR as import parameter and MAKTX as export parameter.
you will receive the material short description.
hope this will help you a little bit.
in your code i thing you forgot to fill the $quantity like this $quantity = saprfc_export($fce,"QNTY"); before echo $quantity;
regards
Tony
<?php
//Login to SAP R/3
$login = array ("ASHOST"=>"vsap3", "SYSNR"=>"2", "CLIENT"=>"200","USER"=>"vsrfc", "PASSWD"=>"********", "CODEPAGE"=>"1100");
$rfc = saprfc_open($login);
if (!$rfc) {
echo "RFC connection failed";
exit;
$fce = saprfc_function_discover($rfc,"ZGET_MAKTX");
if (!$fce) {
echo "Discovering interface of function module failed";
exit;
saprfc_import($fce,"MATNR","200200");
$rc = saprfc_call_and_receive ($fce);
if ($rfc_rc != SAPRFC_OK) { if ($rfc == SAPRFC_EXCEPTION ) echo ("Exception raised: ".saprfc_exception($fce)); else echo (saprfc_error($fce)); exit; }
$maktx = saprfc_export($fce,"MAKTX");
echo $maktx;
saprfc_function_free($fce);
saprfc_close($rfc);
?>
Edited by: Tony Wienhold on Oct 7, 2008 11:19 AM
Edited by: Tony Wienhold on Oct 7, 2008 11:22 AM -
Problem calling function inside a procedure
I have a procedure that simply calls a function, but I'm not sure how to declare it.
When I run my script oracle returns an error:
CREATE OR REPLACE PROCEDURE pr_entrada_close(
var_id_entrada int)
AS
BEGIN
fn_criaJobAnalise(var_id_entrada);
END;
ERROR at line 5: PL/SQL: Statement ignored3. AS
4. BEGIN
5. fn_criaJobAnalise(var_id_entrada);
6. END;As far as I know, that structure worked in at least 8.0 and possibly earlier. I actually saw something similar in production code on that version of Oracle. The actual function took several parameters, and using those paramters did a series of statements along the lines of:
BEGIN
SELECT 1 INTO l_var
FROM table1
WHERE <predicates>
EXCEPTION
WHEN NO_DATA_FOUND THEN
RAISE APPLICATION_ERROR (-20001, 'Error');
WHEN TOO_MANY_ROWS THEN
RAISE APPLICATION_ERROR (-20002, 'Error');
END;
BEGIN
SELECT 1 INTO l_var
FROM table2
WHERE <predicates>
EXCEPTION
WHEN NO_DATA_FOUND THEN
RAISE APPLICATION_ERROR (-20003, 'Error');
WHEN TOO_MANY_ROWS THEN
RAISE APPLICATION_ERROR (-20004, 'Error');
END;
-- About 4 or 5 more tables checked
RETURN 1;and the caller looked kind of like:
DECLARE
NO_ROWS_TABLE1 EXCEPTION;
DUP_ROWS_TABLE1 EXCEPTION;
NO_ROWS_TABLE2 EXCEPTION;
DUP_ROWS_TABLE2 EXCEPTION;
PRAGMA EXCEPTION_INIT (NO_ROWS_TABLE1, -20001);
PRAGMA EXCEPTION_INIT (DUP_ROWS_TABLE1, -20002);
PRAGMA EXCEPTION_INIT (NO_ROWS_TABLE2, -20003);
PRAGMA EXCEPTION_INIT (DUP_ROWS_TABLE2, -20004);
l_v NUMBER;
BEGIN
BEGIN
l_v := test_tables(<parameters>);
EXCEPTION
WHEN NO_ROWS_TABLE1 THEN
<do something about it>
WHEN DUP_ROWS_TABLE1 THEN
<do something about it>
WHEN NO_ROWS_TABLE2 THEN
<do something about it>
WHEN DUP_ROWS_TABLE2 THEN
<do something about it>
END;
<Continue normal processing>
END;and, yes, <Continue normal processing> occasionally failed for mysterious reasons when more than one of the checks would have failed had the function got to them, and l_v was never ever used.
This was one of the clevererbits of code in that app.
John -
Problem calling function in attached movie
In my main timeline I'm attaching a movieclip from the
library & then trying to call a function defined in frame one
of the attached movieclip - however it does not run ? Can anyone
see what is wrong with this code...
var mcRef:MovieClip = _root.target5.attachMovie("menuBar",
"MenuBar" + nDepth, nDepth);
(mcRef has the following value - _level0.target5.MenuBar0)
mcRef.createButtons(mcTgt, sPath, nButtons);the code in frame 1 of mcRef does not complete execution
until the code in the frame that contains your attachMovie()
statement completes execution. you are, therefore, trying to use a
function before it's defined.
to remedy, you can wait any measurable (in flash) amount of
time before executing mcRef.createButtons(). for example,
setInterval() can be used with any time delay. -
Problem calling function module via rfc
Hello,
i have imported an adaptive rfc model.
When i use it on a view, giving the import parameters over a textview and showing the results in a table everthing works fine.
But when i set the input-parameter programmatically with a line like this:
wdThis
.wdGetCompController()
.wdGetContext()
.currentZ_FUNCTION_MODULE()
.setMyAttribute(parameter);
it does not work and i do get no errors - what can it be?
Thanks for help,
AndréHi Andre,
As you told, When you passing the value from the screen it works perfectly.So, there is no problem in initializing Model.
You have to write following code in view and context of this view should be mapped with controller.
wdContext.currentZ_FUNCTION_MODULEElement().setMyAttribute(<value>);
Write this statement before executing your model.
Regards,
Bhavik -
Problem with call function close_form
Hello ,
I have a problem with function module close_form.I dont know if I am doing something wrong but please help me.
the issue is
declarations:
data: gt_itcpp type table of itcpp,
gt_otfdat type table of itcoo.
CALL FUNCTION 'CLOSE_FORM
EXPORTING
RESULT = gt_itcpp
TABLES
otfdata = gt_otfdat
EXCEPTIONS
OTHERS = 1.
DUMP: FUNCTION PARAMETER RESULT IS UNKNOWN.
THANKSMy point was that there are actually two problems with the original code: the one that you pointed out and the one that abapuser pointed out.
Although both were very helpful individually, I don't think either one actually solved the problem.
It would be misleading to anyone searching the forum looking for posts that solved a problem similar to theirs and only implemented half the solution.
In fact abapuser's answer is the one that answers the question that was actually asked.
Rob -
hey my iphone 4 has a problem regarding carrier. Its always showing searching mode and wifi-address N/A and Bluetooth address 00:00:00:00:00 and call function is disable. Please help me. I have tried every thing ..like restore from DFU mode with out sucess.
Refer to Note 98458 - SAPMSSY1, CALL_FUNCTION_NOT_FOUND
-
Hello
I'm calling a remote function:
CALL FUNCTION 'Z_RFC_TEST' DESTINATION i_rfc-host
At first it worked. But now I always get the error: "FUNCTION MODULE Z_RFC_TEST not found.
Any idea what this could be?
Greets.Hi,
You have to check out two main things as follows:
1. Check whether the function module exists in the remote system or not. If it exists just go the properties and check whether the remote enabled option have selected or not.If the function module is not exist just create it as a remote enabled function module. Also there might be some problem with the function group where the function module is resided. So just activate the function group.
2. Just check out the RFC destination name. I think you are passing the RFC destination name to the variable as i_rfc-host.
Just make sure the destination name.
Regards,
Sankar. -
Problems calling virtual functions
Hi,
We have code running in a shared library that appears to be incorrectly changing registers that contain function parameters before the called (virtual) function acceses the registers containing its parameters.
Has anyone seen a similar problem ? If so does
anyone knaw what the solution is ?
Compiler:
SunAMD:tbucken@win64bld 247>>> CC -V
CC: Sun C++ 5.7 2005/01/07
SunAMD:tbucken@win64bld 248>>> uname -a
SunOS win64bld 5.10 Generic i86pc i386 i86pc
solaris is running on an HP DL585 (4 cpu's)
calling function code (We are setting up a vitual function call):
tempdatabase->CostModel->GetCompareSelectivity
(_lhs_base, rhsbase, rhsconverted, op, &sel_est,
&_value_distrib );
/ Line 922
movq -144(%rbp), %r8
movq 352(%r8), %r8
movq 0(%r8), %r14
movq -144(%rbp), %r13
movq -8(%rbp), %r12
movq -8(%rbp), %r11
movq -8(%rbp), %r10
movq -8(%rbp), %r8
movzbl 120(%r8), %eax
movq -8(%rbp), %r9
movq -8(%rbp), %r8
leaq 192(%r8), %r8
movq %r8, 0(%rsp)
leaq 40(%r9), %r9
movl %eax, %r8d
movq 168(%r10), %rcx
movq 152(%r11), %rdx
movq 144(%r12), %rsi
movq 352(%r13), %rdi
movq 48(%r14), %r10
movl $0, %eax
call *%r10
the function called:
p_expr is a pointer:
a_relation is an unsigned char
The last 2 arguments are pointers.
void CostModel::GetCompareSelectivity(
p_expr colexpr,
p_expr expr2,
p_expr expr2_converted,
a_relation reln,
SelectivityEstimate *est,
IHistogram **hist )
My uderstading of register usage during a function call on opteron (from
http://www.x86-64.org/documentation/abi-0.96.pdf)
%rdi - first argument - this pointer
%rsi - second argument - colexpr
%rdx - third argument - expr2
%rcx - fourth argument - expr2_converted
%r8 - fifth argument - reln
%r9 - sixth argument - est
%rcx and %r8 are being setup correctly by the calling function but they are changed by the code that is executed by the call psudo-op that
calculates that virtual function address.
setting up the function call
t@7 (l@7) stopped in dfp_Compares::ComputeSelectivity at line 922 in file "dfp_compares.cpp"
922 tempdatabase->CostModel->GetCompareSelectivity
t@7 stepi
t@7 (l@7) stopped in dfp_Compares::ComputeSelectivity at 0xfffffd7ffe85dcbd
0xfffffd7ffe85dcbd: ComputeSelectivity+0x038d: movq 0x0000000000000160(%r8),%r8
t@7 stepi
t@7 (l@7) stopped in dfp_Compares::ComputeSelectivity at 0xfffffd7ffe85dcc4
0xfffffd7ffe85dcc4: ComputeSelectivity+0x0394: movq 0x0000000000000000(%r8),%r14
t@7 stepi
t@7 (l@7) stopped in dfp_Compares::ComputeSelectivity at 0xfffffd7ffe85dcc8
0xfffffd7ffe85dcc8: ComputeSelectivity+0x0398: movq 0xffffffffffffff70(%rbp),%r13
t@7 stepi
t@7 (l@7) stopped in dfp_Compares::ComputeSelectivity at 0xfffffd7ffe85dccf
0xfffffd7ffe85dccf: ComputeSelectivity+0x039f: movq 0xfffffffffffffff8(%rbp),%r12
t@7 stepi
t@7 (l@7) stopped in dfp_Compares::ComputeSelectivity at 0xfffffd7ffe85dcd3
0xfffffd7ffe85dcd3: ComputeSelectivity+0x03a3: movq 0xfffffffffffffff8(%rbp),%r11
t@7 stepi
t@7 (l@7) stopped in dfp_Compares::ComputeSelectivity at 0xfffffd7ffe85dcd7
0xfffffd7ffe85dcd7: ComputeSelectivity+0x03a7: movq 0xfffffffffffffff8(%rbp),%r10
t@7 stepi
t@7 (l@7) stopped in dfp_Compares::ComputeSelectivity at 0xfffffd7ffe85dcdb
0xfffffd7ffe85dcdb: ComputeSelectivity+0x03ab: movq 0xfffffffffffffff8(%rbp),%r8
t@7 stepi
t@7 (l@7) stopped in dfp_Compares::ComputeSelectivity at 0xfffffd7ffe85dcdf
0xfffffd7ffe85dcdf: ComputeSelectivity+0x03af: movzbl 0x0000000000000078(%r8),%eax
t@7 stepi
t@7 (l@7) stopped in dfp_Compares::ComputeSelectivity at 0xfffffd7ffe85dce4
0xfffffd7ffe85dce4: ComputeSelectivity+0x03b4: movq 0xfffffffffffffff8(%rbp),%r9
t@7 stepi
t@7 (l@7) stopped in dfp_Compares::ComputeSelectivity at 0xfffffd7ffe85dce8
0xfffffd7ffe85dce8: ComputeSelectivity+0x03b8: movq 0xfffffffffffffff8(%rbp),%r8
t@7 stepi
t@7 (l@7) stopped in dfp_Compares::ComputeSelectivity at 0xfffffd7ffe85dcec
0xfffffd7ffe85dcec: ComputeSelectivity+0x03bc: leaq 0x00000000000000c0(%r8),%r8
t@7 stepi
t@7 (l@7) stopped in dfp_Compares::ComputeSelectivity at 0xfffffd7ffe85dcf3
0xfffffd7ffe85dcf3: ComputeSelectivity+0x03c3: movq %r8,0x0000000000000000(%rsp)
t@7 stepi
t@7 (l@7) stopped in dfp_Compares::ComputeSelectivity at 0xfffffd7ffe85dcf8
0xfffffd7ffe85dcf8: ComputeSelectivity+0x03c8: leaq 0x0000000000000028(%r9),%r9
t@7 stepi
t@7 (l@7) stopped in dfp_Compares::ComputeSelectivity at 0xfffffd7ffe85dcfc
0xfffffd7ffe85dcfc: ComputeSelectivity+0x03cc: movl %eax,%r8d
t@7 stepi
t@7 (l@7) stopped in dfp_Compares::ComputeSelectivity at 0xfffffd7ffe85dcff
0xfffffd7ffe85dcff: ComputeSelectivity+0x03cf: movq 0x00000000000000a8(%r10),%rcx
t@7 stepi
t@7 (l@7) stopped in dfp_Compares::ComputeSelectivity at 0xfffffd7ffe85dd06
0xfffffd7ffe85dd06: ComputeSelectivity+0x03d6: movq 0x0000000000000098(%r11),%rdx
t@7 stepi
t@7 (l@7) stopped in dfp_Compares::ComputeSelectivity at 0xfffffd7ffe85dd0d
0xfffffd7ffe85dd0d: ComputeSelectivity+0x03dd: movq 0x0000000000000090(%r12),%rsi
t@7 stepi
t@7 (l@7) stopped in dfp_Compares::ComputeSelectivity at 0xfffffd7ffe85dd15
0xfffffd7ffe85dd15: ComputeSelectivity+0x03e5: movq 0x0000000000000160(%r13),%rdi
t@7 stepi
t@7 (l@7) stopped in dfp_Compares::ComputeSelectivity at 0xfffffd7ffe85dd1c
0xfffffd7ffe85dd1c: ComputeSelectivity+0x03ec: movq 0x0000000000000030(%r14),%r10
t@7 stepi
t@7 (l@7) stopped in dfp_Compares::ComputeSelectivity at 0xfffffd7ffe85dd20
0xfffffd7ffe85dd20: ComputeSelectivity+0x03f0: movl $0x0000000000000000,%eax
t@7 stepi
t@7 (l@7) stopped in dfp_Compares::ComputeSelectivity at 0xfffffd7ffe85dd25
0xfffffd7ffe85dd25: ComputeSelectivity+0x03f5: call *%r10d
t@7 regs
current frame: [1]
r15 0x0000000000000000
r14 0xfffffd7ffee61d60
r13 0xfffffd7fed3f3890
r12 0xfffffd7fed4573c0
r11 0xfffffd7fed4573c0
r10 0xfffffd7ffeaa3b20
r9 0xfffffd7fed4573e8
r8 0x0000000000000002
rdi 0xfffffd7fed3ff1a8
rsi 0x0000000000000000
rbp 0xfffffd7ffdbfa730
rbx 0xfffffd7ffdee1400
rdx 0x0000000000000000
rcx 0x0000000000000000
rax 0x0000000000000000
trapno 0x0000000000000001
err 0x0000000000000000
rip 0xfffffd7ffe85dd25:ComputeSelectivity+0x3f5 call *%r10d
cs 0x000000000000004b
eflags 0x0000000000000286
rsp 0xfffffd7ffdbfa600
ss 0x0000000000000043
fs 0x00000000000001bb
gs 0x0000000000000000
es 0x0000000000000000
ds 0x0000000000000000
fsbase 0xfffffd7ffdee1400
gsbase 0xffffffff80000000
t@7
%rcx contains 0 which is the correct value for expr2_converted
%r8 contains 2 which is the correct value for reln
step through the code generated by the call psudo-op
t@7 stepi
t@7 (l@7) stopped in __SLIP.THUNK__E at 0xfffffd7ffeaa3b20
0xfffffd7ffeaa3b20: __SLIP.THUNK__E : pushq %rbp
t@7 stepi
t@7 (l@7) stopped in __SLIP.THUNK__E at 0xfffffd7ffeaa3b21
0xfffffd7ffeaa3b21: __SLIP.THUNK__E+0x0001: movq %rsp,%rbp
t@7 stepi
t@7 (l@7) stopped in __SLIP.THUNK__E at 0xfffffd7ffeaa3b24
0xfffffd7ffeaa3b24: __SLIP.THUNK__E+0x0004: subq $0x0000000000000010,%rsp
t@7 stepi
t@7 (l@7) stopped in __SLIP.THUNK__E at 0xfffffd7ffeaa3b28
0xfffffd7ffeaa3b28: __SLIP.THUNK__E+0x0008: movq %rdi,0xfffffffffffffff8(%rbp)
t@7 stepi
%r8 is changed here:
t@7 (l@7) stopped in __SLIP.THUNK__E at 0xfffffd7ffeaa3b2c
0xfffffd7ffeaa3b2c: __SLIP.THUNK__E+0x000c: movq 0xfffffffffffffff8(%rbp),%r8
t@7 p -fx $r8
dbx: warning: The format '0x%x' is not suitable for type long long, will use 'llx' instead
$r8 = 0x2
t@7 stepi
t@7 (l@7) stopped in __SLIP.THUNK__E at 0xfffffd7ffeaa3b30
0xfffffd7ffeaa3b30: __SLIP.THUNK__E+0x0010: leaq 0xfffffffffffffff8(%r8),%r8
t@7 p -fx $r8
dbx: warning: The format '0x%x' is not suitable for type long long, will use 'llx' instead
$r8 = 0xfffffd7fed3ff1a8
t@7 stepi
t@7 (l@7) stopped in __SLIP.THUNK__E at 0xfffffd7ffeaa3b34
0xfffffd7ffeaa3b34: __SLIP.THUNK__E+0x0014: movq %r8,0xfffffffffffffff8(%rbp)
t@7 stepi
t@7 (l@7) stopped in __SLIP.THUNK__E at 0xfffffd7ffeaa3b38
0xfffffd7ffeaa3b38: __SLIP.THUNK__E+0x0018: movq 0xfffffffffffffff8(%rbp),%rdi
t@7 stepi
%rcx is chaged here:
t@7 (l@7) stopped in __SLIP.THUNK__E at 0xfffffd7ffeaa3b3c
0xfffffd7ffeaa3b3c: __SLIP.THUNK__E+0x001c: movq 0x000000000035d08d [ 0x35d08d ],%rcx
t@7 p -fx $rcx
dbx: warning: The format '0x%x' is not suitable for type long long, will use 'llx' instead
$rcx = 0x0
t@7 stepi
t@7 (l@7) stopped in __SLIP.THUNK__E at 0xfffffd7ffeaa3b43
0xfffffd7ffeaa3b43: __SLIP.THUNK__E+0x0023: leave
t@7 p -fx $rcx
dbx: warning: The format '0x%x' is not suitable for type long long, will use 'llx' instead
$rcx = 0xfffffd7ffeaa8aa0
t@7 stepi
t@7 (l@7) stopped in __SLIP.THUNK__E at 0xfffffd7ffeaa3b44
0xfffffd7ffeaa3b44: __SLIP.THUNK__E+0x0024: jmp *%ecx
t@7 stepi
t@7 (l@7) stopped in CostModel::GetCompareSelectivity at 0xfffffd7ffeaa8aa0
0xfffffd7ffeaa8aa0: GetCompareSelectivity : pushq %rbp
t@7 regs
current thread: t@7
current frame: [1]
r15 0x0000000000000000
r14 0xfffffd7ffee61d60
r13 0xfffffd7fed3f3890
r12 0xfffffd7fed4573c0
r11 0xfffffd7fed4573c0
r10 0xfffffd7ffeaa3b20
r9 0xfffffd7fed4573e8
r8 0xfffffd7fed3ff1a0
rdi 0xfffffd7fed3ff1a0
rsi 0x0000000000000000
rbp 0xfffffd7ffdbfa730
rbx 0xfffffd7ffdee1400
rdx 0x0000000000000000
rcx 0xfffffd7ffeaa8aa0
rax 0x0000000000000000
trapno 0x0000000000000001
err 0x0000000000000000
rip 0xfffffd7ffeaa8aa0:GetCompareSelectivity pushq %rbp
cs 0x000000000000004b
eflags 0x0000000000000282
rsp 0xfffffd7ffdbfa5f8
ss 0x0000000000000043
fs 0x00000000000001bb
gs 0x0000000000000000
es 0x0000000000000000
ds 0x0000000000000000
fsbase 0xfffffd7ffdee1400
gsbase 0xffffffff80000000
step through the function prolog:
t@7 stepi
t@7 (l@7) stopped in CostModel::GetCompareSelectivity at 0xfffffd7ffeaa8aa1
0xfffffd7ffeaa8aa1: GetCompareSelectivity+0x0001: movq %rsp,%rbp
t@7 stepi
t@7 (l@7) stopped in CostModel::GetCompareSelectivity at 0xfffffd7ffeaa8aa4
0xfffffd7ffeaa8aa4: GetCompareSelectivity+0x0004: subq $0x0000000000000190,%rsp
t@7 stepi
t@7 (l@7) stopped in CostModel::GetCompareSelectivity at 0xfffffd7ffeaa8aab
0xfffffd7ffeaa8aab: GetCompareSelectivity+0x000b: movq %rbx,0xfffffffffffffea8(%rbp)
t@7 stepi
t@7 (l@7) stopped in CostModel::GetCompareSelectivity at 0xfffffd7ffeaa8ab2
0xfffffd7ffeaa8ab2: GetCompareSelectivity+0x0012: movq %r12,0xfffffffffffffea0(%rbp)
t@7 stepi
t@7 (l@7) stopped in CostModel::GetCompareSelectivity at 0xfffffd7ffeaa8ab9
0xfffffd7ffeaa8ab9: GetCompareSelectivity+0x0019: movq %r13,0xfffffffffffffe98(%rbp)
t@7 stepi
t@7 (l@7) stopped in CostModel::GetCompareSelectivity at 0xfffffd7ffeaa8ac0
0xfffffd7ffeaa8ac0: GetCompareSelectivity+0x0020: movq %r14,0xfffffffffffffe90(%rbp)
t@7 stepi
t@7 (l@7) stopped in CostModel::GetCompareSelectivity at 0xfffffd7ffeaa8ac7
0xfffffd7ffeaa8ac7: GetCompareSelectivity+0x0027: movq %r15,0xfffffffffffffe88(%rbp)
t@7 stepi
t@7 (l@7) stopped in CostModel::GetCompareSelectivity at 0xfffffd7ffeaa8ace
0xfffffd7ffeaa8ace: GetCompareSelectivity+0x002e: movq %rdi,0xfffffffffffffff8(%rbp)
t@7 stepi
t@7 (l@7) stopped in CostModel::GetCompareSelectivity at 0xfffffd7ffeaa8ad2
0xfffffd7ffeaa8ad2: GetCompareSelectivity+0x0032: movq %rsi,0xfffffffffffffff0(%rbp)
t@7 stepi
t@7 (l@7) stopped in CostModel::GetCompareSelectivity at 0xfffffd7ffeaa8ad6
0xfffffd7ffeaa8ad6: GetCompareSelectivity+0x0036: movq %rdx,0xffffffffffffffe8(%rbp)
t@7 stepi
t@7 (l@7) stopped in CostModel::GetCompareSelectivity at 0xfffffd7ffeaa8ada
0xfffffd7ffeaa8ada: GetCompareSelectivity+0x003a: movq %rcx,0xffffffffffffffe0(%rbp)
t@7 stepi
t@7 (l@7) stopped in CostModel::GetCompareSelectivity at 0xfffffd7ffeaa8ade
0xfffffd7ffeaa8ade: GetCompareSelectivity+0x003e: movl %r8d,0xffffffffffffffdc(%rbp)
t@7 stepi
t@7 (l@7) stopped in CostModel::GetCompareSelectivity at 0xfffffd7ffeaa8ae2
0xfffffd7ffeaa8ae2: GetCompareSelectivity+0x0042: movq %r9,0xffffffffffffffd0(%rbp)
t@7 stepi
t@7 (l@7) stopped in CostModel::GetCompareSelectivity at 0xfffffd7ffeaa8ae6
0xfffffd7ffeaa8ae6: GetCompareSelectivity+0x0046: movl $0x0000000000000000,0xfffffffffffffeb0(%rbp)
check the values of expr2_converted and reln
t@7 p expr2_converted
expr2_converted = 0xfffffd7ffeaa8aa0
t@7 p reln
reln = ' '
t@7 p -fx reln
reln = 0xa0
and both values are incorrect because the values in registers %rcx and %r8
have changed.sus
TomThe original release of Sun Studio 10 had problems with saving and restoring registers in some cases on AMD64. Please visit the Sun Studio patch page at
http://developers.sun.com/prodtech/cc/downloads/patches/index.html
Download the current patches for
C++ Compiler
x86 compiler backend
C++ shared library patch for your Solaris version. -
Call function with select options problem
Hi there dear SDN community members.
I have got an strange ABAP problem wich function call.
Code1
CLEAR ls_selec .
ls_selec-iobjnm = '9AMATNR' .
ls_selec-sign = 'I' .
ls_selec-option = 'EQ' .
ls_selec-low = '0000000000000000000000000000000000017714' .
APPEND ls_selec TO lt_selec .
CLEAR ls_selec .
ls_selec-iobjnm = '9AMATNR' .
ls_selec-sign = 'I' .
ls_selec-option = 'EQ' .
ls_selec-low = '0000000000000000000000000000000010079409' .
APPEND ls_selec TO lt_selec .
CALL FUNCTION '/SAPAPO/TS_PLOB_LIST_GET'
EXPORTING
iv_bas_plobid = 'Z_DP_POS'
it_selection = lt_selec
it_group_by = lt_group
IMPORTING
et_plob_values = lt_plobs .
Function returns data in lt_plobs itab only for the last product which was appended to the selection table lt_selec.
Whilst
Code2
CLEAR ls_selec .
ls_selec-iobjnm = '9AMATNR' .
ls_selec-sign = 'I' .
ls_selec-option = 'BT' .
ls_selec-low = '0000000000000000000000000000000000017714' .
ls_selec-high = '0000000000000000000000000000000010079409' .
APPEND ls_selec TO lt_selec .
Returns data in lt_plobs for all products included in selection tab lt_selec.
What am I doing wrong in case of Code1? Why function does not return data for both products included in selection tab lt_selec?
Will be thankful for help. Regards. P.I am very sorry to take your time unnecessarily.
The problem was caused by data inconsistency in our sandbox system I was developing in.
Be understanding, please.
Kind regards. P.
Ps.
Vinod Nair
The 'Loop' solution has slowed the performance down very much. -
Facing problem in call function starting new task taskname
Hi all,
when i call a function module using starting new task, it is failing with sy-subrc 3. can anyone guide me in this.
see the code :
DATA lv_taskname(7) TYPE c VALUE 'PEM_EXE'.
CALL FUNCTION 'PEM_SCHEDULE' STARTING NEW TASK lv_taskname
EXPORTING
iv_packid = gv_packid
iv_pebid = ls_alv_out-peb_id
EXCEPTIONS
invalid_state_request = 1
database_error = 2
OTHERS = 3.
Thanks in advance.
Best Regards,
Prashantwhen i change the function module from normal to remote, it gives me a error that the "generic types are not allowed in RFC", but i have not given any generic type in the parameters.
see the signature of the function module.
*" IMPORTING
*" VALUE(IV_PACKID) TYPE CNVMBTPACK-PACKID
*" VALUE(IV_PEBID) TYPE CNVMBTPEB-PEB_ID
*" EXPORTING
*" VALUE(EV_ERROR_DETECTED) TYPE C
*" VALUE(EV_STOP) TYPE C
*" EXCEPTIONS
*" INVALID_STATE_REQUEST
*" DATABASE_ERROR
*" FORIEGN_LOCK
Can u please check it and find out the problem
Thanks,
Prasanth -
Problem with sender name CALL FUNCTION 'SO_DOCUMENT_SEND_API1'
Hi All ,
I am using below function module to send a mail to external email Id's , Everything is working perfectly .
But in the sender address I have passed text as 'infomation ' , In email which i am recieving sender address is like text and '@xyz.com' .
Any idea from where this @xyz.com is picking ? .
CALL FUNCTION 'SO_DOCUMENT_SEND_API1'
EXPORTING
document_data = gd_doc_data
put_in_outbox = 'X'
sender_address = 'Information'
sender_address_type = 'INT'
commit_work = 'X'
IMPORTING
sent_to_all = gd_sent_all
TABLES
packing_list = it_packing_list
contents_bin = it_attachment
contents_txt = it_message
receivers = it_receivers
EXCEPTIONS
too_many_receivers = 1
document_not_sent = 2
document_type_not_exist = 3
operation_no_authorization = 4
parameter_error = 5
x_error = 6
enqueue_error = 7
OTHERS = 8.Hi All ,
I am using below function module to send a mail to external email Id's , Everything is working perfectly .
But in the sender address I have passed text as 'infomation ' , In email which i am recieving sender address is like text and '@xyz.com' .
Any idea from where this @xyz.com is picking ? .
CALL FUNCTION 'SO_DOCUMENT_SEND_API1'
EXPORTING
document_data = gd_doc_data
put_in_outbox = 'X'
sender_address = 'Information'
sender_address_type = 'INT'
commit_work = 'X'
IMPORTING
sent_to_all = gd_sent_all
TABLES
packing_list = it_packing_list
contents_bin = it_attachment
contents_txt = it_message
receivers = it_receivers
EXCEPTIONS
too_many_receivers = 1
document_not_sent = 2
document_type_not_exist = 3
operation_no_authorization = 4
parameter_error = 5
x_error = 6
enqueue_error = 7
OTHERS = 8. -
Problem in CALL FUNCTION 'GET_JOB_RUNTIME_INFO'
While working in PDF attachment I am using
Function 'GET_JOB_RUNTIME_INFO' as bellow
CALL FUNCTION 'GET_JOB_RUNTIME_INFO'
IMPORTING
eventid = gd_eventid
eventparm = gd_eventparm
external_program_active = gd_external_program_active
jobcount = gd_jobcount
jobname = gd_jobname
stepcount = gd_stepcount
EXCEPTIONS
no_runtime_info = 1
OTHERS = 2.
But I am getting gd_jobname, gd_jobcount,gd_stepcount blanck
So please help...Try this.....
PARAMETERS: V_EVTID LIKE TBTCM-EVENTID,
V_EVTPRM LIKE TBTCM-EVENTPARM,
V_JOBNAM LIKE TBTCM-JOBNAME.
CALL FUNCTION 'GET_JOB_RUNTIME_INFO'
IMPORTING
EVENTID = V_EVTID
EVENTPARM = V_EVTPRM
JOBNAME = V_JOBNAM
EXCEPTIONS
NO_RUNTIME_INFO = 1
OTHERS = 2.
IF SY-SUBRC NE 0.
WRITE:/'ERROR IN FUNCTION'.
ELSE.
WRITE:/ 'JOB', V_JOBNAM, 'STARTED WITH EVENT', V_EVTID, 'AND PARAMETER', V_EVTPRM.
ENDIF.
Regards
Ajit -
Problem in Call function .. starting new task
Hi,
I want to execute a dialog program in background. I am trying to use call function starting new task.
I am facing some syntax issue. Can any one guide me how to use call function starting new task. The function module is RFC FM. Do we need to define task some where before use please guide.
Thanks in advance. A sample program will be gr8.Hi,
Incase you want to call a RFC FM in background you can call ity like this.
call function 'Y_L_TO_CREATE_HUPAST' in background task
exporting
venum = y_v_venum
backg = 'X'
buser = y_lv_uname
langu = sy-langu
objky = y_lv_objky
printer = y_lv_printer.
Here Y_L_TO_CREATE_HUPAST is a RFC FM.
Regards,
Ankur Parab -
Problem with function module calling
Hi,
I have two questions here
i have a function moduel 'Z_GET_MATL_BALANCE'
in my code it called in the below said way
CALL FUNCTION 'Z_GET_MATL_BALANCE'
DESTINATION 'NONE'
STARTING NEW TASK 'A'
PERFORMING f_back ON END OF TASK
EXPORTING
ref_dte = s_datum-low
str_dte = s_datum-high
end_dte = s_datum-high
i_werks = p_werks
i_past = 'X'
i_future = 'X'
verselem = p_mrpver
plscn = p_scenar
r_outrec = r_outrec
supstk = p_supstk
days_ahead = w_days_ahead
shipnt = p_shipnt
TABLES
mat_bals = w_zmat_bals_a
i_zdatum = i_datum
mat_movmts = w_mat_movmts_a
mat_ship = i_mat_ship_a.
IF sy-subrc NE 0.
MESSAGE e005(ZMIM) WITH
text-009 text-166 text-054 sy-subrc.
ENDIF.
FORM f_back USING task.
CASE task.
WHEN 'A' .
RECEIVE RESULTS FROM FUNCTION 'Z_GET_MATL_BALANCE'
TABLES
mat_bals = w_zmat_bals_a
mat_movmts = w_mat_movmts_a
mat_ship = i_mat_ship_a
EXCEPTIONS
call_material_lesen_fail = 1
call_t450n_fail = 2
call_t399d_fail = 3
call_aufbauen_mdpsx_fail = 4
call_mdezx_aufbauen_fail = 5
call_t001w_fail = 6
call_zmrpelem_failed = 7
call_aufbauen_mdpsx_sim_fail = 8
OTHERS = 9.
IF SY-SUBRC NE 0.
RET_CODE1 = SY-SUBRC.
ENDIF.
now my first question is what is the difference between function modules calling normally and in the above said way
and the second question is
under tables parameter i have four internal tables defined where as while calling the same function module using recive results i have three internal tables. is this correct?
i am asking this because i am getting an error message while using this funciton module
please do not give generic answers, all the helpful answers will get a def rewardCall function starting new task is used to make Asynchronus RFC Call. In this case your function module will be called in a NEW SESSION and it will exceute independently from the Main program which is calling the FM. Also, the main program will continue its own processing and it will not wait for the RFC FM to complete.
Its not mandatory to have all the TABLES parameters in the RETURN Perform (..Receive results from ...)
Maybe you are looking for
-
I put music from my friends computer and my setting had already been to dont juat use one computer and when i con ected it to my computer it didnt let me it said it would have to delete the music i already have one there is there a way i can change t
-
HI there I'm currently logged in with Firefox, which recognises my log-in information perfectly. But Safari constantly refuses to accept the same information. HOw can I fix this TIA
-
A parameter that filters and also 'Select ALL' at the same time
Hi All, I have a situation 1. I have a parameter @Param1 that accepts multiple values 2. I have to display data based on selected values of @Param1 Here comes the tricky part. 3. I have to aggregate on all the available values of the @Param1 Can any
-
Sharepoint Returns a blank Page on clicking "Create" Link
I have Installed Sharepoint 2010 on windows 8.1. Its working fine except when I clicked on "Create" link in viewlsts.aspx page, popup opens with blank page hence I am not able to create any list or library in my site. Any help?
-
FWIW Front Row is included in the install DVD, and probably ships on the MP as well. You can use this --> http://www.keyspan.com/products/usb/errf1/homepage.spml or this -->http://www.keyspan.com/products/usb/urm15t/homepage.spml to control Front Row