Refresh a report list after remote function call
Hi,
My customer has a report listing invoices. A non-SAP program calls a remote function creating an invoice with BAPI. My customer wants the list to be refreshed after the invoice is created via RFC or to refresh the list in specified time intervals.
Is there any way to accomplish that task?
thanks,
... or OO, integrate like this
DATA: ok_code LIKE sy-ucomm.
* CLASS lcl_event_handler DEFINITION
CLASS lcl_event_handler DEFINITION.
PUBLIC SECTION.
CLASS-METHODS: on_finished FOR EVENT finished OF cl_gui_timer.
ENDCLASS. "lcl_event_handler DEFINITION
CLASS lcl_event_handler IMPLEMENTATION.
METHOD on_finished.
* Start Timer again
gr_gui_timer->interval = pa_autow.
CALL METHOD gr_gui_timer->run.
* cause PAI
CALL METHOD cl_gui_cfw=>set_new_ok_code
EXPORTING
new_code = gc_cmd_refresh.
ENDMETHOD. "on_finished
DATA:
gr_gui_timer TYPE REF TO cl_gui_timer,
gr_event_handler TYPE REF TO lcl_event_handler,
gs_vtyp like ts_vtyp.
*======================================================================*
*= Selection screen =*
*======================================================================*
PARAMETERS:
pa_autow TYPE flag DEFAULT 'X'.
SELECTION-SCREEN END OF BLOCK date.
*& Form init_autorefresh
* Timer starten oder stoppen
FORM init_autorefresh .
IF pa_autow IS NOT INITIAL.
CREATE OBJECT gr_gui_timer.
SET HANDLER gr_event_handler->on_finished FOR gr_gui_timer.
gr_gui_timer->interval = pa_autow.
CALL METHOD gr_gui_timer->run.
ELSEIF gr_gui_timer IS BOUND.
gr_gui_timer->cancel( ).
ENDIF.
ENDFORM. " init_autorefresh
Regards,
Clemens
Similar Messages
-
Data error (invalid data type 17) in a Remote Function Call
Hi,
I am passing 2 select-option tables to RFC.
Tables have structures -
Table1 SIGN(C1)
OPTION(C2)
HIGH(C6)
LOW(C6)
Table2 SIGN(C1)
OPTION(C2)
HIGH(C20)
LOW(C20)
At the destination side, I have created two table types which have same structure.
But when I call the RFC , program terminates with error - "Data error (invalid data type 17) in a Remote Function Call"
Not able to understand the reason for this error. Please help.
Thanks,
SujeetHi,
check out this example
[LINK|http://abap.googlar.eu/viewtopic.php?f=5&t=28]
You have several ranges that you can use like RANGE_AUF.
Function example:
FUNCTION zexemple.
*"*"Interface local:
*" IMPORTING
*" REFERENCE(R_HORA) TYPE FLAG
*" REFERENCE(R_DIA_1) TYPE FLAG
*" REFERENCE(P_IDOC) TYPE FLAG
*" EXPORTING
*" REFERENCE(MSG) TYPE CHAR255
*" TABLES
*" T_OIFSPBL STRUCTURE OIFSPBL
*" SL_PBLNR STRUCTURE RANGE_PBLNR
*" SL_MATNR STRUCTURE RANGE_MATNR
*" SL_HORA STRUCTURE RANGE_UZEIT
*" T_ERROS STRUCTURE ZARSTRING
ENDFUNCTION.
Report:
SELECT-OPTIONS: sl_pblnr FOR oirbpblb-pblnr,
sl_matnr FOR a361-matnr.
~
Final question:
You are passing the values using TABLES and not IMPORTING right? -
An error occurred when executing a REMOTE FUNCTION CALL.
Dear all,
We have two syetms called DXD and GRD , we have a remote enabled function module in the DXD system , when i am trying to call this Function module from
GRD system it is going for the short dump, and giving the follwing error,
<b>Error analysis
An error occurred when executing a REMOTE FUNCTION CALL.
It was logged under the name "RFC_NO_AUTHORITY"
on the called page.</b>
But i do have the access for the DXD system also, i am really struggling to solve this problem, if any lights are there to help me , i will be thank full for then,
some body suggested for me that we need to maintain the Trusted system tables in the target system.
Thanks & regards
Satya.first u( user id ) have to get the Authorizations to use RFC ?
object will be like S_RFC or some thing like this.
when u get this kind of error just call /NSU53 then u will come to know which Authorization Object is missing from ur User Profile.
Regards
Prabhu -
CATCHABLE EXCEPTIONS in the remote function call (RFC)
Please tell me what are the CATCHABLE EXCEPTIONS in the remote function call (RFC) and to which exception class do they belong????
Thanks in advance.
Dinesh DhimanHI,
With external function calls, the EXCEPTIONS addition of the CALL FUNCTION command can be used to assign return values to the exceptions defined in the interface of the called function module. Class-based exceptions cannot be propagated to the caller from a remotely-called function module, and have the effect of an exception that cannot be handled.
As well as the exceptions defined in the interface of the called function module, an external function call can also have the following predefined exceptions:
The <b>SYSTEM_FAILURE</b> exception is the response to a runtime error that occurs when the remotely-called function module is executed.
The <b>COMMUNICATION_FA</b>ILURE exception occurs when the connection to the partner system cannot be established or if the connection is lost during communication.
Note
We strongly recommend that you assign a return value to both these exceptions for every RFC, and that you handle this return value, as otherwise a runtime error will occur in the exception situations in question.
Regards,
Sesh -
Hi,
I am very much new to RFC, Can anyone help me to suggest some ideas for the following scenario.
1. For the created PA30 screen using webdynpro, i have to create RFC.
2. BAsed on the input from the system and the screen i have to write RFC.
3. Through the RFC i have to update the Tables.
Thanks ,
Vijay
Moderator message : Spec dumping is not allowed, search for available information. Thread locked.
Edited by: Vinod Kumar on Aug 9, 2011 10:28 AMHi..,
CALL FUNCTION - RFC
Syntax Forms
Synchroner RFC
1. CALL FUNCTION func DESTINATION dest
parameter_list.
Asynchroner RFC
2. CALL FUNCTION func STARTING NEW TASK task
[DESTINATION {dest|{IN GROUP {group|DEFAULT}}}]
parameter_list
[{PERFORMING subr}|{CALLING meth} ON END OF TASK].
Transaktionaler RFC
3. CALL FUNCTION func IN BACKGROUND TASK
[DESTINATION dest]
parameter_list
[AS SEPARATE UNIT].
<b>The destination contains the connection parameters for remote function calls. It contains the connection type, the target system and the partner program. Connections that affect SAP systems exclusively can be agreed as trustedsystems. RFC destinations are managed using transaction code SM59. </b>
regards,
sai ramesh -
After a function call values in the system sy-msgty,sy-msgit and sy-msgno are getting empty. And the program dumped suddenly with showing a message_type_unknown message.
Here i wanted to know y these values are becoming empty
Pls help me out hereThe first Idoc has two line items and the second idoc has 7 line items. As the split is per 5 line item- the target has 3 Idocs.
Now the problem is that the header value in the target: REF_DOC_NO has to be created as per the number of line items and doesnt come from header record directly. -
Automatic remote login at remote function call
Hello,
we have three systems, development, testing and productiv. I want to do a remote function call on the repective other system. But I always get a login window where you have to insert your password for that system. Is there a possibility to do this automatically? Thanks.
Cheers, Lars.or else in SM59 double click on your destination server and in logon/security tab and give ur username and password and try
-
How to display success message after Remote service call
Hi ,
I am currently using Flex form for adding/updating user
personal details.On submit button click ,i am submitting details to
server by calling RPC remote service.For calling remote service i
am using penneframework. On penneframework, Remote service call
result are populated in RemoteResult object. It dont have any other
event method for handling result event.For errror handling, i have
defaultHandler for displaying error message.
Here i am having two requirements
1. I should be able to track RPC response, so that i can
display success message to user along with DB generated ID.
2. I need to reset all form field after receiving RPC
response.
Here my question is
1.How i can track server response, so that i can display
success or error message.
2. Is their any event or coding technique which i can use for
solving this issue.
Thanks
Kumaryou can do following way :
quote:
var token:AsyncToken =
YourRemoteClass.remoteMethod(param1,param2);
token.addResponder(new AsyncResponder(
function(data:Object, token:Object):void {
// tadaaa response
function(info:Object, token:Object):void {
//ooooo , noo, failure
token -
CALL_FUNCTION_REMOTE_ERROR when calling a remote function call through PI
Hello. Thanks in advance for your perspective on this.
We are developing an interface that runs in an R/3 system and is suppossed to perform a lookup in another R/3 system via a PI 7.0 system.
Here's what we are trying to do, let's call these systems "A", "B", "C" respectively.
R/3 -> PI -> R/3
The R/3 system (A) executes code, which calls this function module like this:
CALL FUNCTION 'Z_CHK_MAT' DESTINATION 'XI_RFCADAPTER'
EXPORTING
iv_region = lv_region
iv_matnr = ls_matnr-matnr
IMPORTING
ev_flg_is_purchased = e_flg_is_purchased.
This code, is set via the "DESTINATION" parameter to use the RFC destination 'XI_RFCADAPTER'. This destination, points to the PI (B) system above.
Anyhow, we're getting a short dump in the R/3 (A) system, which is like this:
CALL_FUNCTION_REMOTE_ERROR
"JCO.Server could not find server function 'Z_CHK_MAT'"
From my analysis, I believe this is because the remote function module Z_CHK_MAT does not exist, in the PI (B) system.
Our developer, believes this should just "pass through" the PI (B) system, and call the function module in the R/3 (C) system.
Any insight on this? In this scenario, does this Function Module need to exist in the PI abap side? Can you give perspective / guidance on this?
Thanks a lot
SteveNo need to exist in PI ABAP side.
Just make sure that:
1. as Michal said, you import it in Integration Repository (and use it in your configurations);
2. the RFC Destination type that points to XI is of type T, not 3;
3. both the RFC Destination & the Sender RFC Adapter (and only them) are using the same Program Id.
Regards,
Henrique. -
Refresh Webi reports automatically after BI data loads ?
Hello,
We are about to install BOE X.1 on top of BI 701.
The idea would be that the users would perform their WebI daily reporting, but obviously only after SAP BI night batch scheduling is finished, and the BI infoproviders filled.
I've read that BOE ofers you the ability to refresh the reports upfront.
We were wondering if there is a way to easily implement this logical dependance : to refresh the Webi Report only after the end of BI data loads.
There is off course, the possibility to use an external scheduler, but we have checked the licencing and it's quite expensive.
Is there another way to do so ?
Many thanks for your attention.
Best Regards.
RaoulHi Alan,
Thank you very much for your quick answer.
I would like to make sure that I understand you since I'm not very familliar with BOE :
First , we create an event in the CMC and connect it to a file location
Then we schedule the document and add the file event : do you mean schedule the webi report ?
Finally create the file as part of the Bex query refresh process : how exactly do we do that, in the BI process chains ?
Thank you very in advance for your help.
Best Regards.
Raoul -
Remote Function Call (RFC) within a BAdI in ECC to CRM
I've a remote enabled FM in a CRM system which I want to call within a BAdI implementation of a ECC system. As a result, the CRM system is the RFC server and the ECC system is the RFC client.
The FM in CRM simply gets the relevant rows of a Z table which, of course, only exists in CRM and passes these rows to the calling program as per parameter supplied by the calling program.
Now the BAdI in ECC is for changing 'Contracts' data in SAP (transactional data) before posting the contracts in the ECC database. The business uses a transaction where a large number of contracts are processed and documents posted in the system - and when this happens the system runs through (calls) the BAdI one contract at a time.
If I call the RFC enabled FM anywhere within this BAdI, it gets the data for one contract only so it reduces a great deal of performance in regards to memory consumption, network load etc. So I want to avoid this and call the RFC FM once instead, if possible.
Is it possible to call this RFC FM once only (to load the CRM Z table data for all contracts) and store it in a global table/area within the instantiated BAdI class (visibility public) so that when the BAdI is called the second time onwards it can read the global table/area by READ TABLE WITH KEY statement and avoid the RFC call for each BAdI call?
I was also thinking about may be using ABAP Shared Memory if this is a possibility in order to avoid the repeated RFC call? But this table on the RFC server changes frequently....so it might not be a good idea? or....??
I would greatly appreciate your inputs and thoughts regarding this; it would be great to hear if someone had had a similar experience.
Cheers,
Sougata.As the Z table is only updated via a particular program in CRM - we developed and called a RFC enabled FM in that report when its updating the Z table to update the Z table in ECC to keep it in sync.
Short term benefit but might be long term pain if the Z table in CRM is updated by another program/process/application in the future! Not to mention any table field changes in CRM has to be also made in ECC everytime which is again a pain.
This is a workaround and definitely not a full-proof solution - but I guess these days one has to shut up and deliver whatever the customer wants! -
AS3/BlazeDS remote function calls
We have a pure as3 - no flex - project which connects to server-side Java. The actionscript will, upon interaction from the user, invoke a Java function on the server side, which will then broadcast out a message to all users. This works when testing locally, but when we put the project onto a remote server, the actionscript code will no longer invoke the Java function.
We are unsure as to why this is: the service xml files are the same, and the files are in the correct locations. In the BlazeDS admin console, whenever we try to call that Java function, it is incrementing the InvocationFaultCount variable for the specified destination. Any suggestions why it won't work online, but will on the local machine?
thanksHello Case,
The approach in NCo for this purpose is to use RfcCustomDestination, as already recognized by you. Thus you can challenge the user for his personal password and set those credentials for the logon. Best variant is to provide a repository user and password in the configured destination so that metadata is then read with a user that is restricted to metadata lookup permissions only.
In case the infrastructure would issue a token for the logged on user, one could imagine that with such a token and trust between the ABAP system and the NCo application could do some kind of SSO. However, NCo runtime is not prepared so far to allow such a setup.
Best regards,
Markus -
Dear Experts,
Iu2019m using WS_DELIVERY_UPDATE to post goods issue against outgoing delivery. SE37 works fine.
RFC call from external program with the same parameters fails without returning any message.
It aborts during call and after that it becomes invalid.
Also calling BAPI_TRANSACTION_COMMIT does not help.
Any idea why SE37 works fine but RFC fails?
Anything I am missing?
Many thanks
Regards
JWThere could be many reasons, I'd suggest to get your Basis admin involved. Take a look at the ABAP dump (ST22), update termination (SM13) or RFC errors (SM58). Although I doubt you'll find something inside SAP, since it seems that RFC call itself fails.
This function is not a BAPI, so BAPI_TRANSACTION_COMMIT won't do any good. All it does is COMMIT WORK actually. -
Automatically refresh the report tabs after selecting the parameters in bip
Hello Everything!!
Is there a way to automatically refresh all the report tabs once we select the parameters? The report are not refreshed automatically in each tab and users have to either hit apply button or refresh button for each report tab . Is this a lacking feature in BI publisher. I am using 11.1.1.6.6.
Thanks,
UdayHello Everything!!
Is there a way to automatically refresh all the report tabs once we select the parameters? The report are not refreshed automatically in each tab and users have to either hit apply button or refresh button for each report tab . Is this a lacking feature in BI publisher. I am using 11.1.1.6.6.
Thanks,
Uday -
Submit reports in a remote function module
Hi friends,
Below is the sample code i wrote (on R/3 4.6C),
==============================================
SUBMIT ztest001 WITH p_noprt EQ 'X'
WITH p_datum EQ i_datum
WITH s_matnr IN rtab1
WITH s_prodh IN rtab2
WITH s_kunnr IN rtab3
AND RETURN.
==============================================
There are something wrong with the 'IN' statement, i can't use more than 1 selection criterion, or the results from report(ztest001) were incorrect.
Everything is fine with only 1 selection, or in a report context... Isn't it a bug?Hi Chen,
Do You have defined the Ranges correctly?
ranges: s_matnr for mara-matnr.
ranges: s_kunnr for kna1-kunnr.
ranges: s_prodh for mara-prodh.
s_matnr-sign = 'I'.
s_matnr-option = 'EQ'.
s_matnr-low = '4711000'
APPEND S_MATNR!
s_matnr-low = '4712000'
APPEND S_MATNR!
s_matnr-low = '4713000'
APPEND S_MATNR! .....
Do the same with s_kunnr and s_prodh.
If You do this in this way it works!
But be careful, if the number of lines of the Ranges
beconmes to large! (500 are ok).
Hope I could help You
BR
Michael
Maybe you are looking for
-
Loading Data to Multiple Targets in BI
Hi Experts, I have one doubt regarding data load to multiple targets in BI. I explain clearly- the scenario is to load the data coming from one source system to multiple Data Targets in BI. Like in BW, we will just create multiple update rules from I
-
MY CONTACTS ARE GONE on iMessage when I type in a name it will give me the contact, but if I go to my contact list there are none...help a sista out!
-
Dynamic text in looping movie clip
Hi, I am looping a movie clip which has a dynamic text box. I need to call data from XML and place the same in the Dynamic text box as per the duplicated movie clip. how do i do that. Thanks, Ayush
-
Where is the Network configuration file?
I have a G4 Laptop that connects readily to the University Hotspot as well as to my home wifi router. However the College would prefer I use the admin network which uses the same wifi hardware but is secure, unlike the hotspot network. The system is
-
Unable to start Tomcat using runtime class in windows 98
hi, I am using a runtime class which calls a batch file, that calls statup.bat for starting tomcat. This works perfectly in windows NT,2k. But on win 98, the tomcat window opens and closes within no sometime. In my class i call the first batch file s