Program making a RFC call to Function Module not working in background
Hi All,
I have an ABAP Program which is used to do a reconciliation check between the R/3 and BI system for Invoice Data. Please find below the details of the program flow:
1. Program counts the number of records in the DSO table and aggregates the Net_Value based on the date range (passed as parameters)
2. Program calls a Function Module (RFC Call) which counts the number of records in the R/3 table and aggregates the Net_Value for the same date range
3. Function Module Passes back the count values and aggregated Net_Value to the program
4. Program compares the count and aggregated Net_Value from EDWH and MSP systems and sends an email mentioning whether the counts match or not
However we are facing an issue.
Whenever, we execute the program in dialog mode, it works fine and fetches results within 5-6 minutes. However if we schedule the program to run in background (parameters through a variant), it gives no results even after running for over 3-4 hours. We tried figuring it out yesterday but could not come to any conclusion. Since there is a RFC call being to the function module, we were wondering if we need to specify some other parameter as well.
Thanks & Regards
Dharmendra
RFC Call is a procedure for executing remote enables function modules. It is done via the 'Remote Enabled' radio button on the function module's attribute screen.
Similar Messages
-
Function Module not working for old Role
Dears
Function Module not working for old Role
Function Module: /VIRSA/BAPI_AE_USERS_FOR_ROLES
Before EHP4 upgrade this functional module working fine, but after updated users are not visible.
We have chekced if the users are assigned directly users are visible but indirect (Position Based) assignment users are not apprearing.
Pl check the fucntion module with given roles below and identify the root cause,
EP_TRVL_ALL_CAB - Old Role
EP_TRN_TRVL_DRGC_V2 - New Role
Regards
Krishna Mohan CH
9704500717Krishna,
I do not think this BAPI is meant to be called by anyone but the application using it, and its functionality may therefore change without notice.
What are you trying to achieve? Maybe there's a better way to do that...
Frank. -
Function module not executing in background due to Transactional RFC error in SM58
Hi Team,
I am executing a report which calls a function module in background.This in turn creates a LUW which should eventually get cleared once the processing is completed through commit statement.
However LUW is going for an error whenever it gets executed through commit statement.
The error message in SM58 is
Error msg : Conversation
<init> not found / CPIC-CALL: 'ThSA PCMRCV' : cmRc=19 thRc=
However when I try to excecute the function module in foreground, it works correctly as expected.
Please note that the same report is being used for various clients and the function module is working fine in all others.Hence, I am expecting that thers is no issue with the code.
Is there some settings which we are missing here.
Please provide me your valuable inputs.Hi Divy,
It appears to network issue. please use below SAP note to perform network analysis using NIPING.
SAP note 500235 - Network diagnosis with NIPING
Hope this helps.
Regards,
Deepak Kori -
Service call to function module not fetching data
Hello Experts,
Today, I have started facing one more weird issue of the similar kind, I faced few weeks back.
Once my web dynpro application is loaded, on the click of button I make a service call to function module which brings me some data and that is being shown on the UI.
After doing few more service calls on the click of other buttons, when I click on the button initially clicked, service call is being made but no data is being returned.
I already debugged the code, made sure the parameters is being passed correctly to function module.
Regards,
HarshHello Katrice,
I debugged to the hilt and found that standard function module 'ME_REL_ACTIVE' was returning sy-subrc non zero.
I cleared one variable after identifying it. Below is the code snippet:
ld_read_t16fg = '(SAPLEBNF)READ_T16FG'.
ASSIGN (ld_read_t16fg) TO <lst_read_t16fg>.
IF <lst_read_t16fg> IS ASSIGNED AND <lst_read_t16fg> IS NOT INITIAL.
CLEAR <lst_read_t16fg>.
ENDIF.
UNASSIGN <lst_read_t16fg>.
Regards,
Harsh -
Calling a ztransaction from function module not working
Hi experts,
I have made a ztransaction through SE93 called Z_TRANS.When I am calling this transaction from a program in SE38, it is giving the screen corresponding to the transaction. But when same
Call Transaction 'z_TRANS' is used in SE37 in a function module, program is abending.
Please help...Hi ,
Also check the 3 check boxes for GUI support.
Regards. -
Function module not working when used with 'In Background Task'
hi,
this is my code
call function 'Z_IBD_FILL_ZINETACT'
in background task
destination 'SAPD220125'
tables
it_net1 = it_net1
it_net2 = it_net2
it_net3 = it_net3 .
when this code is executed i am not getting any data in my internal tables i.e it_net1, it_net2, and it_net3
but i changed this code see the below code
call function 'Z_IBD_FILL_ZINETACT'
in background task (THIS IS COMMENTED)
destination 'SAPD220125'
tables
it_net1 = it_net1
it_net2 = it_net2
it_net3 = it_net3 .
now i am getting data into my internal tables
can any one tell me what can be the problem and how to solve it in my case
its very urgentHi,
Pls. go through the docu..
CALL FUNCTION
Variant 5
CALL FUNCTION func IN BACKGROUND TASK.
Additions:
1. ... AS SEPARATE UNIT
2. ... DESTINATION dest
3. ... EXPORTING p1 = f1 ... pn = fn
4. ... TABLES p1 = itab1 ... pn = itabn
Effect
Flags the function module func to be run asynchronously. It is not executed at once, but the data passed with EXPORTING or TABLES is placed in a database table and the next COMMIT WORK executes it in another work process.
Note
This variant applies only as of Release 3.0, so both the client system and the server system must be Release 3.0 or higher.
Note
qRFC with Outbound Queue
This is an extension of tRFC. The tRFC is serialized using queues, ensuring that the sequence of LUWs required by the application is observed when the calls are sent.
For further information about qRFC, refer to the Serialized RFC: qRFC With Outbound Queue section of the SAP Library.
Addition 1
... AS SEPARATE UNIT
Effect
Executes the function module in a separate LUW under a new transaction ID.
Addition 2
... DESTINATION dest
Effect
Executes the function module externally as a Remote Function Call (RFC); dest can be a literal or a variable.
Depending on the specified destination, the function module is executed either in another R/3 System or as a C-implemented function module. 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.
Note
Note that a database commit occurs at each Remote Function Call (RFC). Consequently, you may not use Remote Function Calls between pairs of statements that open and close a database cursor (such as SELECT ... ENDSELECT).
Addition 3
... EXPORTING p1 = f1 ... pn = fn
Effect
EXPORTING passes values of fields and field strings from the calling program to the function module. In the function module, formal parameters are defined as import parameters. Default values must be assigned to all import parameters of the function module in the interface definition.
Addition 4
... TABLES p1 = itab1 ... pn = itabn
Effect
TABLES passes references to internal tables. All table parameters of the function module must contain values.
Notes
If several function module calls with the same destination are specified before COMMIT WORK, these normally form an LUW in the target system. Calls with the addition 1 are an exception to this rule - they each have their own LUW.
You cannot specify type 2 destinations (R/3 - R/2 connections).
(See Technical details and Administration transaction.)
Example
REPORT RS41503F.
/* This program performs a transactional RFC.
TABLES: SCUSTOM.
SELECT-OPTIONS: CUSTID FOR SCUSTOM-ID DEFAULT 1 TO 2.
PARAMETERS: DEST LIKE RFCDES-RFCDEST DEFAULT 'NONE',
MODE DEFAULT 'N',
TIME LIKE SY-UZEIT DEFAULT SY-UZEIT.
DATA: CUSTITAB TYPE TABLE OF CUST415,
TAMESS TYPE TABLE OF T100,
WA_CUSTITAB TYPE CUST415.
SELECT ID NAME TELEPHONE INTO CORRESPONDING FIELDS OF TABLE CUSTITAB
FROM SCUSTOM WHERE ID IN CUSTID ORDER BY ID.
PERFORM READ_CUSTITAB.
EDITOR-CALL FOR CUSTITAB TITLE 'Editor for table CUSTITAB'.
PERFORM READ_CUSTITAB.
CALL FUNCTION 'TRAIN415_RFC_CALLTRANSACTION'
IN BACKGROUND TASK
DESTINATION DEST
EXPORTING
TAMODE = MODE
TABLES
CUSTTAB = CUSTITAB.
CALL FUNCTION 'START_OF_BACKGROUNDTASK'
EXPORTING
STARTDATE = SY-DATUM
STARTTIME = TIME
EXCEPTIONS
OTHERS = 1.
IF SY-SUBRC = 1.
EXIT.
ENDIF.
COMMIT WORK.
CALL TRANSACTION 'SM58'.
FORM READ_CUSTITAB *
FORM READ_CUSTITAB.
WRITE: / 'System ID:', SY-SYSID.
SKIP.
LOOP AT CUSTITAB into WA_CUSTITAB
WRITE: / WA_CUSTITAB-ID, WA_CUSTITAB-NAME,
WA_CUSTITAB-TELEPHONE.
ENDLOOP.
ULINE.
ENDFORM.
Pls. reward if useful.... -
Function Module not working as required
Hi,
I am currently using a function module HR_FBN_GENERATE_SEND_EMAIL which sends mail to external sources from a standard SAP screen.
The fm seems to be working fine if its run from within a report program, but isnt executing when is run from within a PAI module.(code same in both).
Could anyone throw some light on a solution to this issue.
Also,this module doesnt seem to allow sending of mails on a specified date. How can i incorporate that or alternatively is there an existing fn module which will send mails out on a specified date with specified content?
Will def shell out loads of points to solutions that help...
Cheers,
Preethi...HI,
Here is the code to send the mail from ABAP
*& Report ZSENDEMAIL *
*& Example of sending external email via SAPCONNECT *
REPORT zsendemail .
PARAMETERS: psubject(40) type c default 'Hello',
p_email(40) type c default '[email protected]' .
data: it_packing_list like sopcklsti1 occurs 0 with header line,
it_contents like solisti1 occurs 0 with header line,
it_receivers like somlreci1 occurs 0 with header line,
it_attachment like solisti1 occurs 0 with header line,
gd_cnt type i,
gd_sent_all(1) type c,
gd_doc_data like sodocchgi1,
gd_error type sy-subrc.
data: it_message type standard table of SOLISTI1 initial size 0
with header line.
*START-OF-SELECTION.
START-OF-SELECTION.
Perform populate_message_table.
*Send email message, although is not sent from SAP until mail send
*program has been executed(rsconn01)
PERFORM send_email_message.
*Instructs mail send program for SAPCONNECT to send email(rsconn01)
perform initiate_mail_execute_program.
*& Form POPULATE_MESSAGE_TABLE
* Adds text to email text table
form populate_message_table.
Append 'Email line 1' to it_message.
Append 'Email line 2' to it_message.
Append 'Email line 3' to it_message.
Append 'Email line 4' to it_message.
endform. " POPULATE_MESSAGE_TABLE
*& Form SEND_EMAIL_MESSAGE
* Send email message
form send_email_message.
* Fill the document data.
gd_doc_data-doc_size = 1.
* Populate the subject/generic message attributes
gd_doc_data-obj_langu = sy-langu.
gd_doc_data-obj_name = 'SAPRPT'.
gd_doc_data-obj_descr = psubject.
gd_doc_data-sensitivty = 'F'.
* Describe the body of the message
clear it_packing_list.
refresh it_packing_list.
it_packing_list-transf_bin = space.
it_packing_list-head_start = 1.
it_packing_list-head_num = 0.
it_packing_list-body_start = 1.
describe table it_message lines it_packing_list-body_num.
it_packing_list-doc_type = 'RAW'.
append it_packing_list.
* Add the recipients email address
clear it_receivers.
refresh it_receivers.
it_receivers-receiver = p_email.
it_receivers-rec_type = 'U'.
it_receivers-com_type = 'INT'.
it_receivers-notif_del = 'X'.
it_receivers-notif_ndel = 'X'.
append it_receivers.
* Call the FM to post the message to SAPMAIL
call function 'SO_NEW_DOCUMENT_ATT_SEND_API1'
exporting
document_data = gd_doc_data
put_in_outbox = 'X'
importing
sent_to_all = gd_sent_all
tables
packing_list = it_packing_list
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.
* Store function module return code
gd_error = sy-subrc.
* Get it_receivers return code
loop at it_receivers.
endloop.
endform. " SEND_EMAIL_MESSAGE
*& Form INITIATE_MAIL_EXECUTE_PROGRAM
* Instructs mail send program for SAPCONNECT to send email.
form initiate_mail_execute_program.
wait up to 2 seconds.
if gd_error eq 0.
submit rsconn01 with mode = 'INT'
with output = 'X'
and return.
endif.
endform. " INITIATE_MAIL_EXECUTE_PROGRAM
If you look at the function module, you will get the field to pass the date also
Regards
Sudheer -
Hi All,
I have created a function module it is working fine by executing it self,when I am calling it into any program it is not working it means it is not fetching data from table I passed correct parameters I don't know what was the problem any one can help me in this.
Thanks®ds,
Sree.There is no leading zeros here I am giving my funtion module code.
*function zmm_vendor.
""Local Interface:
*" IMPORTING
*" REFERENCE(P_VENDOR) TYPE LFA1-LIFNR
*" TABLES
*" P_VENDOR_DATA STRUCTURE ZVENDOR_DATA
tables : lfa1,lfm1.
data flag(1) type c.
types : begin of ty_lfm1,
lifnr like lfm1-lifnr,
"ekorg LIKE lfm1-ekorg,
"erdat LIKE lfm1-erdat,
ernam like lfm1-ernam,
lfabc like lfm1-lfabc,
waers like lfm1-waers,
minbw like lfm1-minbw,
webre like lfm1-webre,
kalsk like lfm1-kalsk,
ekgrp like lfm1-ekgrp,
lipre like lfm1-lipre,
end of ty_lfm1.
types : begin of ty_lfa1,
lifnr like lfa1-lifnr,
name1 like lfa1-name1,
ort01 like lfa1-ort01,
ort02 like lfa1-ort02,
adrnr like lfa1-adrnr,
end of ty_lfa1.
types : begin of ty_adr6,
addrnumber like adr6-addrnumber,
smtp_addr like adr6-smtp_addr,
end of ty_adr6.
types : begin of ty_lfb1,
akont like lfb1-akont,
zwels like lfb1-zwels,
zterm like lfb1-zterm,
fdgrv like lfb1-fdgrv,
reprf like lfb1-reprf,
end of ty_lfb1.
types : begin of ty_display,
sel,
lifnr like lfm1-lifnr,
ekorg like lfm1-ekorg,
erdat like lfm1-erdat,
ernam like lfm1-ernam,
lfabc like lfm1-lfabc,
smtp_addr like adr6-smtp_addr,
waers like lfm1-waers,
minbw like lfm1-minbw,
webre like lfm1-webre,
kalsk like lfm1-kalsk,
ekgrp like lfm1-ekgrp,
lipre like lfm1-lipre,
name1 like lfa1-name1,
ort01 like lfa1-ort01,
ort02 like lfa1-ort02,
akont like lfb1-akont,
zwels like lfb1-zwels,
zterm like lfb1-zterm,
fdgrv like lfb1-fdgrv,
reprf like lfb1-reprf,
end of ty_display.
INTERNAL TABLES DECLARATION
data: t_lfm1 type standard table of ty_lfm1 with header line,
t_lfa1 type standard table of ty_lfa1 with header line,
t_display type standard table of ty_display with header line,
t_lfb1 type standard table of ty_lfb1 with header line,
t_adr6 type standard table of ty_adr6 with header line.
WORK AREAS DECLARATION
data: wa_lfm1 type ty_lfm1,
wa_lfa1 type ty_lfa1,
wa_adr6 type ty_adr6,
wa_lfb1 type ty_lfb1,
wa_display type ty_display.
select lifnr
ekorg
erdat
ernam
lfabc
waers
minbw
webre
kalsk
ekgrp
lipre from lfm1
into corresponding fields of table t_lfm1
where lifnr = p_vendor.
if t_lfm1[] is not initial.
select lifnr
name1
ort01
ort02
adrnr from lfa1
into corresponding fields of table t_lfa1
for all entries in t_lfm1
where lifnr = t_lfm1-lifnr.
endif.
if t_lfm1[] is not initial.
select addrnumber smtp_addr from adr6
into table t_adr6
for all entries in t_lfa1
where addrnumber = t_lfa1-adrnr.
endif.
if t_lfm1[] is not initial.
select akont
zwels
zterm
fdgrv
reprf from lfb1
into table t_lfb1
for all entries in t_lfm1
where lifnr = t_lfm1-lifnr.
endif.
loop at t_lfm1 into wa_lfm1.
move wa_lfm1-lifnr to t_display-lifnr.
"move wa_lfm1-ekorg to wa_display-ekorg.
" move wa_lfm1-erdat to wa_display-erdat.
move wa_lfm1-lfabc to t_display-lfabc.
move wa_lfm1-waers to t_display-waers.
move wa_lfm1-minbw to t_display-minbw.
move wa_lfm1-webre to t_display-webre.
move wa_lfm1-kalsk to t_display-kalsk.
move wa_lfm1-ekgrp to t_display-ekgrp.
move wa_lfm1-lipre to t_display-lipre.
"append wa_display to t_display.
read table t_lfa1 into wa_lfa1 index 1 .
if sy-subrc = 0.
move wa_lfa1-name1 to t_display-name1.
move wa_lfa1-ort01 to t_display-ort01.
move wa_lfa1-ort02 to t_display-ort02.
endif.
read table t_adr6 into wa_adr6 index 1 .
if sy-subrc = 0.
move wa_adr6-smtp_addr to t_display-smtp_addr.
endif.
read table t_lfb1 into wa_lfb1 index 1 .
if sy-subrc = 0.
move wa_lfb1-akont to t_display-akont.
move wa_lfb1-zwels to t_display-zwels.
move wa_lfb1-zterm to t_display-zterm.
move wa_lfb1-fdgrv to t_display-fdgrv.
move wa_lfb1-reprf to t_display-reprf.
endif.
append t_display.
exit.
"clear wa_display.
"clear t_display.
endloop.
delete adjacent duplicates from t_display comparing lifnr.
move t_display-lifnr to p_vendor_data-lifnr.
"move t_display-ekorg to P_VENDOR_DATA-ekorg.
" move t_display-erdat to P_VENDOR_DATA-erdat.
move t_display-lfabc to p_vendor_data-lfabc.
move t_display-waers to p_vendor_data-waers.
move t_display-minbw to p_vendor_data-minbw.
move t_display-webre to p_vendor_data-webre.
move t_display-kalsk to p_vendor_data-kalsk.
move t_display-ekgrp to p_vendor_data-ekgrp.
move t_display-lipre to p_vendor_data-lipre.
move t_display-name1 to p_vendor_data-name1.
move t_display-ort01 to p_vendor_data-ort01.
move t_display-ort02 to p_vendor_data-ort02.
move t_display-smtp_addr to p_vendor_data-smtp_addr.
move t_display-akont to p_vendor_data-akont.
move t_display-zwels to p_vendor_data-zwels.
move t_display-zterm to p_vendor_data-zterm.
move t_display-fdgrv to p_vendor_data-fdgrv.
move t_display-reprf to p_vendor_data-reprf.
append p_vendor_data.
endfunction.*
but after calling this into my program it is not working here is my program.
report ZTEST.
parameters : zvendor like lfm1-lifnr.
data : begin of ty_display occurs 0,
lifnr like lfm1-lifnr,
ekorg like lfm1-ekorg,
erdat like lfm1-erdat,
ernam like lfm1-ernam,
lfabc like lfm1-lfabc,
smtp_addr like adr6-smtp_addr,
waers like lfm1-waers,
minbw like lfm1-minbw,
webre like lfm1-webre,
kalsk like lfm1-kalsk,
ekgrp like lfm1-ekgrp,
lipre like lfm1-lipre,
name1 like lfa1-name1,
ort01 like lfa1-ort01,
ort02 like lfa1-ort02,
akont like lfb1-akont,
zwels like lfb1-zwels,
zterm like lfb1-zterm,
fdgrv like lfb1-fdgrv,
reprf like lfb1-reprf,
end of ty_display.
CALL FUNCTION 'ZMM_VENDOR'
EXPORTING
p_vendor = zvendor
tables
p_vendor_data = ty_display
loop at ty_display.
write : / ty_display-ort01.
endloop.
Thanks and Regds,
Sree. -
Passing arrays with Call Library Function does not work after application builder
Calling a DLL with Call Library Function which requires an array of data works correctly in Labview, but after building an exe with application builder, the call no longer works. Dereferecing the pointer in the DLL retuns all 0s and not the actual values.
Solved!
Go to Solution.
Attachments:
TEST.zip 28 KBI did not run your code because it is a little unclear to me what it does.
Two things:
First, is the DLL you are calling the DLL-ified version of PopUpNames.vi? Then the problem is likely that the panel is not being built into the DLL.
When LabView builds an application / dll, it strips the front panel and block diagram from all VIs that it doesn't think need to show a panel at run time. This reduces file size and increases code security. The App Builder's panel inclusion logic can be overridden by Build Specifications -> Source File Settings -> Remove front panel. A better method is to put a property node on a control in a window you want to show marking it "visible"; this is sufficient to tell the App Builder it should keep the panel.
Currently Source File Settings shows "no dependencies" (clearly incorrect---another evil side effect of Express VIs I guess) but if you change the settings as shown below to keep ALL panels, one might hope the App Builder can figure it to keep the panel when it deconstructs the Express VI. (Alternatively convert the Express VI into a regular one.)
A second comment: I am a bit flummoxed at the larger goal here. You are calling LabView DLL from LabView, which doesn't make a lot of sense, so I assume your larger goal is to call LabView from C or vice-versa. In that case be aware that your DLL is x86 (32-bit) but you are passing 64-bit ints as your pointers. In this case it is 32-bit LabView with 32-bit pointers in embedeed in 64-bit containers calling 32-bit LabView with 32-bit pointers in embedeed in 64-bit containers, so it all works, but if your going to call this from C or whatnot you're going to have to follow that same design.
When calling C code the LabView Call Library Function does have a "unsigned pointer-sized integer" data type that always appears to be 64 bits in the dev env but which actually passes a 64 or 32-bit int to the DLL depending on the environment. The "pointer sized int" has to be 64 bits in the "LabView" part of the code because LabView's strong typing requires the data type to be determined at compile time. Casting all pointers to the largest data type in LabView makes it possible to write platform-independent code, but down at the Call Library level you still have to put the right number of bytes on the stack. -
Function Module not working through VC
Hi Experts
I am facing one strange issue while working on VC model with function module as data service.
This FM is to writes data to bcak end BI master data table which is working fine through BI. When i pass the values through VC, New values are not reflecting in BI table. I tried passing values through form / table but still its not working. Also we have system generated message which show success / failure of FM & the changed values as output after execution of FM. Which i am getting success message every time i pass values.
Currently i am working on VC 7.01 & SP6 with Flash compiler.
Please guide me if you have face this issue.
Thanks
SandeepHi Sandeep,
Try to put a breakpoint in your FM and check whether you are sending correct values and the values saving or not.
Thanks,
Pradeep -
Enhanced function module not working
Hi guys,
There's a requirement in my project to add new fields to the standard ESS > Personal Data iView and as well as add in additional validations along with the standard validations. I've thus asked an ABAP developer to
- add in the new fields to Hcmt_Bsp_Pa_xx_R0002 and
- make a duplicate of function module Hrxss_Per_Modify_P0002_xx to Z_Hrxss_Per_Modify_P0002_xx where my developer has coded in additional validations.
Then, I
- Import these into the Model classes
- Remapped the context nodes (ModifyInfoype) of FcPerPersonalxx to map to Z_Hrxss_Per_Modify_P0002_xx
- Did code change to method modifyRecord() in FcPerPersonalxx.
Result: The new fields are reflected. However, the additional validations don't work. The standard validations are working. Is there any filtering at Webdyn pro Java side that filters only certain msgs? Can anyone help pls?
Edited by: zhenmin wang on Jul 25, 2008 5:49 AMHi Zhenmin,
If I understood your problem correctly, you are getting framework validation messages instead of custom developed validation messages. The reason is this
Web Dynpro validations are of two types.
1. Framework handled 2. Custom developed.
Framework handled validations get more priority than the custom developed validations.
Regards,
Siva -
DOWNLOAD function module not working in Portal
Hello,
We are in 4.6C. I have a piece of code that downloads an internal table to the presentation server using function module DOWNLOAD. This works fine in SAPGui. The function module DOWNLOAD does not work in the EP6 portal environment (the part where a popup is presented to the user to select the directory/file name to save the file in). Instead a screen is shown which says "This screen exists for technical reasons....".
I have been looking for options and have tried the GUI_DOWNLOAD method which does not work in the portal either.
Anyone face this issue? Please advice possible resolutions.
Thanks!Correct, but the following thread got me started:
Adobe Acrobat Reader and MIME-DOWNLOAD
Rob -
DOWLOAD function module not working in Portal
Hello,
We are in 4.6C. I have a piece of code that downloads an internal table to the presentation server using function module DOWNLOAD. This works fine in SAPGui. The function module DOWNLOAD does not work in the EP6 portal environment (the part where a popup is presented to the user to select the directory/file name to save the file in). Instead a screen is shown which says "This screen exists for technical reasons....".
I have been looking for options and have tried the GUI_DOWNLOAD method which does not work in the portal either.
Anyone face this issue? Please advice possible resolutions.
Thanks!check the following thread where your issue is discussed before
Re: webgui - unwanted msg screens during save of local file
you should use GUI_DOWNLOAD - this FM will work both in SAP gui environment and ITS environment.
Regards
Raja -
How to call a function module from debugger?
Hi all,
i just wanted to know whether we can call a function module from a debugger ,
if yes how ?Hi Laxmikanth,
How ur going to call a function module which is not present in program???
In debugging mode u can change the values of variables,put break points and watch points,but i thnk its not possible to call a function module(not present in program) while debugging .
Please share with us if u have any solution...
Regards,
lakshman. -
Calling a function module from APO Macro
Hi,
Can I call a function module from a macro directly without going through the user exit? If so, how should I pass the parameters to the function module? I don't have to get the results back to macro.
RegardsHi Asokan - you can call a function module directly from a macro providing it is designed to be called from a macro. For example if you are in the Macrobuilder and use the menu path Edit -> Edit User Function then you will get a list of existing function modules that you can call directly by inserting a Operator/function into your macro. If you want to call a function module not listed in the User Function drop down list then you will either need the user exit or create a custom function module as a wrapper and register the wrapper function module in the Edit User Function menu path. Calling a function module will always return a value - but you can choose to ignore that value depending on how you build your macro.
Regards
Andy
Maybe you are looking for
-
FB50: Trading Partner error
Hello Gurus- In testing, when the user enters line items, 2 of which a trading partner was entered. We left the other 2 entries blank inb trading partner. When the transaction is posted, all 4 line items have a trading partner which is not what we
-
Calculate excise for purchase order line items ( for import only)
Dear all, please help me to calculate excise duty form ( imports only) purchase order for its line item. i can calculate for domestics PO using "BADI_TAX_CONDITION" .\ But I need to calaculate custom duty also . so this BADI does not work . So, pl
-
I've got a document , some 70 pages long that was made back in the late '80's with Pagemaker on an SEII mac. The docs are on 2 floppies, but I can't open them, because I can't find any application that can read the files. I've got other documents tha
-
Version PDF with date/time
I need to archive my completed forms with a date/time stamp. How do I do that in Workbench? I'm using the Write Document service. In the Input I put the name/location of the pdf in the Pathname Pattern and check Make Unique. When I try to use Xpa
-
G5 Dual won't boot past Apple logo
PMG5 Dual 2.0gHz/2.5gb/23-inch ACD Been using this m/c since late 2005 without problems. It's usually left on 24/7 (auto sleep, power save etc) except for a restart once a week. This morning the machine was still showing the screen saver (had not sle