Call program from function
Hallow I build a function in se37 ,and in the function I wont to delete file from server now I have a program
in se 80 that can do that (YHR_DELETE_FILE_FROM_SERVER)the program have just one parameters (the path of the file I wont to delete )
How I can call to this program in my function.
regards
did some one now about function that can delete file from server?
Hi antonio,
1.in se 80 that can do that (YHR_DELETE_FILE_FROM_SERVER)t
2. use like this in your FM
<b>SUBMIT YHR_DELETE_FILE_FROM_SERVER
WITH
parameter1 = myfilename.</b>
regards,
amit m.
Similar Messages
-
FM to pass one variant to another called program from a calling program
Hi Gurus,
Please let me know the name of the function module to pass one variant to another called program from a calling program without displaying the selection screen of the called program.you can use fm rs_variant_fetch to retrieve the variant info.
Check the abap help on the statement submit to get info on how to call a program with variables, or a variant
Kind regards, Rob Dielemans -
Call Program from another Program using varient
Hi...
How to call program from program with varient....?
i have used submit but how to pass varient dynamically.
Regards,
ChintanHi,
Use the FM SUBMIT_REPORT
OR
SUBMIT <Program Name> VIA SELECTION-SCREEN
USING SELECTION-SET <VARIANT>
AND RETURN. -
Call BEx from function modules.
Hi,
I'm trying to run BEx (Excel) from an abap Exit. Using the debugger I have observed that it is necessary to call the rsah_launch_excel function module passing some parameter (i.e. workbook id) but don't know if it is necessary to copy and modify the called program ( RRMX_START_EXCEL).
Any suggestion about the coding will be well appreciated.
Thanks in advance.
GiovanniUse SUBMIT Program statement ... i.e,
http://www.sts.tu-harburg.de/teaching/sap_r3/ABAP4/submit.htm -
Problem calling program unit function in Forms 6i
Hi,
I'm new to programming with Oracle Forms. I have a question that I cannot seem to figure out. In Forms 6i, I have created a program unit function that compiles correctly. The trouble I'm having is calling it and displaying the function's contents into a non-database display item I created. When I run my app, the display item it blank while my other fields populate.
I first tried to call it in a POST-QUERY trigger but I get an error stating "function cannot be called in SQL." Can you not call a function in a form's trigger? If so, what would be the correct syntax?
Then I tried to call it in the non-database item's Calculation => Formula (property) by just stating the function_name(parameter). This appears to compile fine too, but still no display at runtime.
What would be the best way to reference my function to display its contents properly? Does anyone have any examples? Any help would be greatly appreciated. Thank you.First, get rid of the
EXCEPTION WHEN NO_DATA_FOUND
in your function. Summary queries never raise no_data_found; They just return null.
Your ":history.consecutive_years := NumberOfYears(:student.id);" is the proper way to call the function. That is what I was trying to tell you with the example: ':Myblock.Item_x := function_name(some_parm);' code
If your post-query trigger only executes the function, then I think your problem is somewhere else:
'FRM-40735 POST-QUERY trigger raised unhandled exception' looks like a problem elsewhere.
Don't know of a good website. Just keep asking here -- somebody is bound to pop in and help you out.
One more thing: drop this into your form-level on-error trigger. It often helps to find problems:
-- On-error form-level trigger --*
DECLARE
Err_Code NUMBER(5) := ERROR_CODE;
Err_Text VARCHAR2(100) := ERROR_TEXT;
MSG VARCHAR2(150)
:= SUBSTR(' '||ERROR_TYPE||'-'||TO_CHAR(Err_Code)||': '
||Err_Text,1,150);
DBMS_TXT VARCHAR2(500);
BEGIN
IF Err_Code IN (40401,40405, --No changes to save/apply
40100,40352) THEN --at first/last record
MESSAGE(MSG,NO_ACKNOWLEDGE); -- Don't raise Form_Trigger_Failure
ELSE -- all other messages
-- check database error message --
DBMS_TXT := SUBSTR(DBMS_ERROR_TEXT,1,500);
if DBMS_TXT is not null
and substr(DBMS_TXT,5,5)
not in('00000',
'01403') then --1403=no data found
-- show entire msg, add new_line chars.
DBMS_TXT := replace(DBMS_TXT,'ORA-',chr(10)||'ORA-');
DBMS_TXT := replace(DBMS_TXT,' '||chr(10), chr(10));
-- show MSG and DBMS_TXT both as an alert --
--PLL_ALERT( ltrim(MSG) || DBMS_TXT );
Message(ltrim(MSG) || DBMS_TXT );
Message(' ',no_acknowledge);
Raise Form_Trigger_Failure;
else
Message(MSG);
Message(' ',no_acknowledge);
Raise Form_Trigger_Failure;
End if;
END IF;
END; -- end of on-error trigger -
Issue calling program from transaction with selection criteria
Hi Guys,
I ve a issue regarding calling a program from transaction.
There is a standard transaction calling a program using selection criteria no (say for eq 10 fields, just look at the eg below)
Submit <table-proname> and return using selection-set <table-varia>
With rbukrs = i_bkorm-burks Comp Code
with Revent = i_bkorm-event event
with rbelnr = ibkorm-belnr Doc no
with rgjahr = ibkorm-gjahr fiscal year
with ruzeit = ibkorm-ruzeit time
with rusnam = ibkorm-rusnam user name
And so on
Now, In my program selection screen i ve only three fields, (not all mentioned above)
Parameter:
Rbukrs type bukrs, comp code
Rbelnr type belnr, doc no
Rghar type gjahr. fiscal year
Now, i configure this transaction with this program i can able to run this program from transaction.
Is every thing go right, Pls give your sugg
Points & help awarded.
Thanks in advance.Hi,
you can call the program using 3 selection screen fields even though it is having 10 fileds, but before calling make sure that there is no mandatory fields (in rest of the 7 fields), then it will runs you report.
reward if needful.
Thanks,
Sreeram. -
Call Program from another Program using varient via Selection Screen
I am calling a standard report from my Z Program via Selection screen.
Is there any way to hide the Execute button that is seen when we see the called program selection screen?Hi Shyam,
Thanks for the quick reply.
But my requirement is to show the selection screen of called program as i need to make some values changes in the selection Screen.
However, the user can accidently click the execute button which i dont want thats why i need to hide the execute button.
My aim is to change values of selection screen but nto execute it.
Is it possible? -
Hi ,
i have a function that call to a layout.
my problem is that when i ran the function, the layout not get the parameters that i pass to her.
how can i pass a parameters from function?
thanks,
dana.Hi Sanjiv!
of course... but I don't remember now exactly the final code, but the problem was in the code lines:
i_program_name = sy-cprog
i_inclname = sy-cprog
I had to 'play' with this parameters to get the correct results because I had my report like an include... and then the parameters were different (I hope to explain it well!) -
Come back to calling program from Call Transaction
Hi,
From my program, i am calling a standard tcode :
Call Transaction - sy-calld is set in called transaction which deactivates some buttons there.
Leave To Trnasaction - sy-calld is not set , but then I am not able to come back to the calling program.
Please tell me how should this be achieved.
ThanksHi, shalaxy s
If you do mean calling the transaction and being able to go back !!
You can use the following
For Example : CALL TRANSACTION 'SE80' VIA SELECTION-SCREEN AND RETURN.
OR: CALL TRANSACTION 'SE80' AND SKIP FIRST SCREEN.
Best Reagrds, AlMaReD
Edited by: AlMaReD on Jun 12, 2010 9:47 AM -
Hi all,
How can i call another program from a plsql code.
For example opening a notepad in windows from plsql code.
Please give detailed explanation
Thanks
AkshatIf the purpose is scheduling external programs, the best way would be to use the Oracle Scheduler.
[url http://docs.oracle.com/cd/E11882_01/server.112/e25494/schedover.htm#i1106753]Chapter 28, [url http://docs.oracle.com/cd/E11882_01/server.112/e25494/scheduse.htm#i1033533]Chapter 29 and [url http://docs.oracle.com/cd/E11882_01/server.112/e25494/schedadmin.htm#i1007589]Chapter 30 in the Administrator's Guide.
Particularly [url http://docs.oracle.com/cd/E11882_01/server.112/e25494/scheduse002.htm#CIAJCFHE]Techniques for external jobs.
Scheduler jobs is the best way, because security is built into the system - you can use proper O/S credentials, grant rights, etc.
Manually calling external jobs from PL/SQL is not as easy. It is possible using for example some Java stored procedure, but it is more difficult to ensure security - it can too easily open up for your database users to execute too many possible O/S commands ;-)
Edit:
PS: Tim Hall shows some examples of Scheduler usage [url http://www.oracle-base.com/articles/10g/Scheduler10g.php]here - one of the examples is calling a shell script (unix lingo for batch job ;-) )
Edited by: Kim Berg Hansen on Nov 30, 2011 12:56 PM -
How to add PCI 7340 and UMI in my labview program from functions palette or how?
Am using PCI 7340 and UMI7764 for motion control of a stepper motor.
How to add the functions for PCI and UMI in my labVIEW program and how
do I use these further? I need to control the direction of stepper
motor rotation based on the pressure applied which we calculate as
either clock.anti clockwise. So which function palette should I use for
that.
We use a darlington pair driver unit. ? The output
from UMI are from the individual axis control whereas the driver input
is through a serial bus. So what kind of cable should we use to connect
the UMI with this and how do we connect this or should we use any other
driver unit? Please explain in detail.
Thank youThank you I ll see to it
-
Call Program from an other one
Hallo,
I wonder if it is possible to call a standard Programm from my Report without leaving it. I have created a docking container that docks itself on each new Dynpro. Now if i call an extra Programm i don't have the d.container any more. I would like to see the d.container on the Dynpros of the new Programm as well. Is it possible?
Thank you very much,
AntonHi,
SDBILLDL is the std program for transaction VF04. This program is being called by other program as mentioned in the below code.
submit sdbilldl via job jobname
number jobcount
with p_vkorg = vkor1
with s_vtweg in so_vtweg
with s_spart in so_spart
with s_vstel in so_vstel
with p_fkdat = fkdat
with p_fkdab = fkdab
with p_kunnr in kunnr_sel
with p_fkart in x_fkart
with p_lland in x_lland
with s_vbeln in x_vbeln
with p_sort in x_sortk
with p_allea = allea
with p_allel = allel
with p_alleb = alleb
with p_allei = allei
with p_allef = allef
with no_faksk = no_faksk
with p_pdstk = p_pdstk
with p_samml = 'X'
WITH P_ANZEI = ANZEI
WITH P_VARNR = GS_SD_ALV-variant
and return . -
Transfer control back to calling program from infotype screen
i've developed a module pool program that uses 'call transaction pa30'BDC to an custom infotype screen... after the 'save' button is pressed the control goes to the infotypes initial screen.
but i want the control to come back to the calling module pool program.. how do i do that??Hi Joseph,
have you considered using function module HR_INFOTYPE_OPERATION with parameter DIALOG_MODE = '2' instead of CALL TRANSACTION?
Regards,
Christian. -
is there a way to call or print the value returned by a function/dbExecute?
<database:dbSetParam name="n" value='<%=request.getParameter("n")%>' scope="page" />
<database:dbSetParam name="final" value="dann" scope="page" />
<database:dbExecute connId="conn" scope="page" output="yes" bindParams="final n">
begin ? := trunc(crbcis.p_session.open_session_from_nonce(?)/100000); end;
</database:dbExecute>No, this does not appear to be possible. Probably becuase the setParams is expecting an
in parameter, but the function return is an out. The only alternative I have is for your function to insert the result into a table, then use the dbQuery tag to retrive the result. Please let us know if you think this is worth creating an enhancement request to support this. -
How to detect caller of a function module
Hello,
how is it possible to detect who is calling a function module?
Thanks a lot,
Tanguy MezzanoHi, May i know why you need the caller name. If suppose you want to know currently who is executing the function. then you can check the sy-uname inside the calling program or function module that will have. If you want to know from another program then you need to pass some parameter id in side the function module and check your second program for the parameter id having any value.
Thanks.
Regards,
Jey
Maybe you are looking for
-
How to include security settings into InDesign PDF presets?
I have prepared an InDesign template for multiple users in my team. Ihave created a set of PDF presets for exporting PDFs to keepconsistency. I want to protect all the PDF files with password and haveto include the password protection in the PDF pres
-
hi, I m not able to figure out the sheet name which has to be included in the select statement.... i only the filename of xls which the user will be uploading but how shall i get the sheet names from that file?
-
Quality ? iPhoto Book vs. Koday Easyshare
Has anyone compared books from these two services? I've received prints from Easyshare (formerly Ofoto), and they've been excellent - no books yet. The one book I got from iPhoto was not so hot - but I have read about the resolution settings that one
-
I've configured a CAM and CAS as both L2 OOB and have enabled L3 support with Real IP. I have a remote site that uses Avaya 4610SW VoIP phones. Both the CAM and CAS reside locally with no CAS at the remote site. I'm able to get full functionality wit
-
Some how my home page reverted to Fire Fox start up page and lost my up to date book marks/ this is very bad. I had just finished uninstalling some tag along programs that installed even when I hit decline when installing a program I received with th