Call Standard subroutine in Z-FM
Hi Experts,
I wanted to call one subrotine of standard program to my Z-function module. Can anybody will suggest me how I can achieve this requirement?
Thanks,
Neha
Edited by: neha gupta on Mar 9, 2009 5:58 AM
Hi,
Perfrom <Subroutine Name>(<Program name>) Table ...
using....
Changing...
Example..
PERFORM re510a_tartx(sapfhcmp)
USING tcs_masterdata_wa-molga
tcs_masterdata_wa-trfar
CHANGING tcs_masterdata_wa-trfar_text.
Edited by: Avinash Kodarapu on Mar 9, 2009 10:30 AM
Similar Messages
-
Calling a standard subroutine and setting global fields
Hallo ...
I am calling a subroutine in program A(standard program ) from a program B . there are a set of global fields in program A that i need to first set before i call this subroutine from Program B. is it posible to set these fields from program B. (since i cannot do much on the program A side as it is standard).?
Can some one suggest how can set these fields . some of these fields are flags and some normal fields. Not all the fields have parameterd ids. any idea how can i set thses fields from program B ?????
Help will be appriciated
ThanksHello,
there are two choices:
(1) You can add a form to program A, if the standard program lets you implement user-defined code. For example, in program SAPMV45A you use a certain include to implement user-defined forms. You can define a form which takes the actual values of the fields in program A which you want to change as parameter. The form then changes the fields (from within the form, the fields are visible and changable). You can call this form by using PERFORM your_form IN program_A.
(2) You can use a "dirty assign": Refer to the F1 help of the ASSIGN statement for more information about that. Sample may look like this (note the brackets and apostrophes):
ASSIGN ('(PROGRAM_A)GLOBAL_FIELD') to <fs_proga_global_field>.
However, the assign only works when program A has already been loaded into the internal mode during runtime. This means before doing the ASSIGN, any code of program A must have been executed in the current internal mode.
Hope this helps,
David -
How to call a subroutine in a script ?
Hi ,
How to call a subroutine in a script ?
bye,
Satya.Hello,
Syntax goes like this
/: PERFORM <form> IN PROGRAM <prog>
/: USING &INVAR1&
/: USING &INVAR2&
/: CHANGING &OUTVAR1&
/: CHANGING &OUTVAR2&
/: ENDPERFORM
INVAR1 and INVAR2 are variable symbols and may be of any of the four SAPscript symbol types.
OUTVAR1 and OUTVAR2 are local text symbols and must therefore be character strings.
Example:
In script form
/: PERFORM READ_TEXTS IN PROGRAM 'Z08M1_FORM_EKFORM1'
/: USING &EKKO-EKORG&
/: USING &EKPO-WERKS&
/: USING &EKKO-EKGRP&
/: USING &EKKO-BSTYP&
/: CHANGING &COMPNAME&
/: CHANGING &SENDADR&
/: CHANGING &INVCADR&
/: CHANGING &COMPADR&
/: CHANGING &COVERLTR&
/: CHANGING &SHIPADR&
/: CHANGING &REMINDER&
/: CHANGING &REJECTION&
/: CHANGING &POSTADR&
/: CHANGING &LOGO&
/: ENDPERFORM
In program
FORM Read_texts - To extract the standard texts from the table *
FORM READ_TEXTS TABLES IN_PAR STRUCTURE ITCSY
OUT_PAR STRUCTURE ITCSY.
DATA : L_EKORG TYPE EKORG,
L_WERKS TYPE WERKS_D,
L_BSTYP TYPE BSTYP,
L_EKGRP TYPE BKGRP.
READ TABLE IN_PAR WITH KEY 'EKKO-EKORG' .
CHECK SY-SUBRC = 0.
L_EKORG = IN_PAR-VALUE.
READ TABLE IN_PAR WITH KEY 'EKPO-WERKS' .
CHECK SY-SUBRC = 0.
L_WERKS = IN_PAR-VALUE.
READ TABLE IN_PAR WITH KEY 'EKKO-EKGRP' .
CHECK SY-SUBRC = 0.
L_EKGRP = IN_PAR-VALUE.
READ TABLE IN_PAR WITH KEY 'EKKO-BSTYP' .
CHECK SY-SUBRC = 0.
L_BSTYP = IN_PAR-VALUE.
CLEAR Z08M1_ORG_TEXTS.
SELECT SINGLE * FROM Z08M1_ORG_TEXTS WHERE EKORG = L_EKORG
AND WERKS = L_WERKS
AND EKGRP = L_EKGRP
AND BSTYP = L_BSTYP.
IF SY-SUBRC NE 0.
SELECT SINGLE * FROM Z08M1_ORG_TEXTS WHERE EKORG = L_EKORG
AND WERKS = L_WERKS
AND EKGRP = L_EKGRP
AND BSTYP = SPACE.
ENDIF.
READ TABLE OUT_PAR WITH KEY 'COMPNAME'.
OUT_PAR-VALUE = Z08M1_ORG_TEXTS-TXT_COMP.
MODIFY OUT_PAR INDEX SY-TABIX.
READ TABLE OUT_PAR WITH KEY 'SENDADR'.
OUT_PAR-VALUE = Z08M1_ORG_TEXTS-TXT_ADRS.
MODIFY OUT_PAR INDEX SY-TABIX.
READ TABLE OUT_PAR WITH KEY 'INVCADR'.
OUT_PAR-VALUE = Z08M1_ORG_TEXTS-TXT_INVC.
MODIFY OUT_PAR INDEX SY-TABIX.
READ TABLE OUT_PAR WITH KEY 'COMPADR'.
OUT_PAR-VALUE = Z08M1_ORG_TEXTS-TXT_CPAD.
MODIFY OUT_PAR INDEX SY-TABIX.
READ TABLE OUT_PAR WITH KEY 'COVERLTR'.
OUT_PAR-VALUE = Z08M1_ORG_TEXTS-TXT_COVR.
MODIFY OUT_PAR INDEX SY-TABIX.
READ TABLE OUT_PAR WITH KEY 'SHIPADR'.
OUT_PAR-VALUE = Z08M1_ORG_TEXTS-TXT_SHIP.
MODIFY OUT_PAR INDEX SY-TABIX.
READ TABLE OUT_PAR WITH KEY 'REMINDER'.
OUT_PAR-VALUE = Z08M1_ORG_TEXTS-TXT_RMDR.
MODIFY OUT_PAR INDEX SY-TABIX.
READ TABLE OUT_PAR WITH KEY 'REJECTION'.
OUT_PAR-VALUE = Z08M1_ORG_TEXTS-TXT_RJCT.
MODIFY OUT_PAR INDEX SY-TABIX.
READ TABLE OUT_PAR WITH KEY 'POSTADR'.
OUT_PAR-VALUE = Z08M1_ORG_TEXTS-TXT_POST.
MODIFY OUT_PAR INDEX SY-TABIX.
READ TABLE OUT_PAR WITH KEY 'LOGO'.
OUT_PAR-VALUE = Z08M1_ORG_TEXTS-TXT_LOGO.
MODIFY OUT_PAR INDEX SY-TABIX.
ENDFORM.
Hope this helps.
Regards -
Error while calling standard OAF page from custom Oracle Form
Hi,
I am calling standard OAF page from custom oracle form using the following code.
FND_FUNCTION.EXECUTE(FUNCTION_NAME=>'FUN_TRX_ENTRY_OUT_VIEW_BATCH',
OPEN_FLAG =>'Y',
SESSION_FLAG =>'N' ,
OTHER_PARAMS =>'&ViewBatchID = "' || NAME_IN('FUN_AGIS_LINE_D.BATCH_ID') ||
'&CallingFunction = "' || 'MANEXPINQ' ||'"');
But I am getting this error.
oracle.apps.fnd.framework.OAException: This request was not processed as the request URL %2FOA_HTML%2FOA.jsp%3Fpage%3D%2Foracle%2Fapps%2Ffun%2Ftransaction%2Fentry%2Fwebui%2FViewOutBatchPG%26OAPB%3DFUN_PRODUCT_BRAND%26OAHP%3DFUN_SSWA_MENU%26OASF%3DFUN_TRX_ENTRY_OUT_SEARCH%26_ti%3D1217029204%26language_code%3DUS%26%26ViewBatchID%20%3D%20%22203148%26CallingFunction%20%3D%20%22MANEXPINQ%22%26CallFromForm%3D%27Y%27%26oas%3DqZqg3tmdEdUNyw_HtskVow.. contained potentially illegal or un-encoded characters. Please try again by submitting a valid URL or contact your systems administrator for assistance.
Please let me know any thing I missed out here.
Any suggestion will highly appreciated.
Thanks & Regards,
SunitaI am using FND_FUNCTION.EXECUTE to call a OAF page from PLSQL in R12. I am getting following error"Error(9,23): PLS-00302: component 'EXECUTE' must be declared"
-
How to call Standard Iviews in Webdynpro application?
How to call STD iviews in the wwbdynpro application.
can any of friends give the codeUse this snippet to call standard iviews from your webdynpro code :
//use LinktoAction UI element
onActionClick (com.sap.tc.webdynpro.progmodel.api.IWDCustomEvent wdEvent)
WDPortalNavigation.navigateAbsolute("ROLES://portal_content/folders/X.Iview", WDPortalNavigationMode.SHOW_INPLACE, (String)null, (String)null, WDPortalNavigationHistoryMode.NO_DUPLICATIONS, "Called iView Name", (String)null, (String)null);
Hope this helps.
Rgds
Prabhakar -
How to call standard report with in zprogram?
Hi Sap experts,
How to call standard report with in zprogram.
For example if country is 'US' then call Zprogram(zprog_US).Inside zprogram call standard report(rhecm_change_proc_status).If country is 'CA' then call zprogram.Inside zprogram call standard report.For same othercountres like 'PR','GB','ES'.Actually HR_ECM_READ_FEATURE_CARGP will having the input as employee id and will return the CAREA(County like 'US','PR'......).Kindly help me what is the procedure?
Regards,
Sujan>
sujan T wrote:
> Thanks for your reply.
>
> What is the logic to call the standard report from zprogram?Inside the zpogram how to call standard report?
>
> Regards,
> Sujan
no special logic is required
If u want to use
RPUAUDOO IN THE ZREPORT.
Put the submit button where ever required
ex: In zreport after certain process reacedu want to call then use
submit rpuaudoo and return.
Regards
Sas -
How to call standard form from your custom forms
Hi,
I submits concurrent program(SRS) from custom form and then i would like to call view requests standard form rather navigating manually?
Please can anyone tell me how to do above?
Thanks
ESLHi Esl ;
Please check [this search|http://forums.oracle.com/forums/search.jspa?forumID=475&threadID=&q=call+standard+form+from+custom+forms&objID=c84&dateRange=all&userID=&numResults=15&rankBy=10001]
Please also check those and see helpful:
Forms Customization
Re: Enable Submit Button at User Level and Disable at Block Level
Forms Personalization Document
Re: Forms Personalization Document
Regard
Helios -
Call standard SAP transaction in BSP
Hi guys,
I am working in WAS 6.20.
We have separate server for WAS and records fetched from R/3 server.
Now the requirement is i have to call a standard SAP transaction and the output of the standard transaction should be displayed in the BSP output.
Is it possible to call a SAP standard transaction in WAS 6.20.
Is it possible to display the same output in the BSP screen.
Above to all, displayed output should be refreshed automatically for every 20 minutes.
I come with lot of doubts, expecting your reply.
Hopefully waiting for yours reply.
Saravanan. VHi,
Pls check threads like
calling STD SAP transaction in BSP
Calling R/3 Transaction from BSP
Calling standard R/3 transaction from BSP
Calling an SAP transaction from a BSP page
Calling ITS transaction from BSP
Can we call standard transaction from bsp
Eddy
Pimp up the S(D)N site and earn points. Check this <a href="/people/eddy.declercq/blog/2007/02/01/pimp-up-the-jam log</a> for details -
How to call standard ITS service from custom ITS service
Hi,
I have a requierement in ITS where I need to call standard ITS service(CATW) from custom service upon clicking on Accept button. how to achieve this?
Thanks in advance.Hi Sarada Nukala,
You can call the service url from first service button. To get this url, from SICF transaction, test service and a browser is opened.
Hope this helps,
Iván. -
How to call standard form in custom form
sir,
please help me .in calling standard form through custom form
Edited by: user11996389 on May 15, 2012 10:00 PMHi,
As far as I understand, you have a standard form, S and a custom form, C. You want to call S from C.
The API mentioned in my previous reply is the standard way to call one form from another in Oracle Apps. You may invoke this API from a trigger like WHEN-BUTTON-PRESSED. The API has a few mandatory parameters which you need to provide in order to successfully call the form. As mentioned, please refer to the Developer's Guide.
If you have any doubts or face any problems/errors, post the details here. Forums members will be reluctant to help if you do not put in some efforts of your own.
Regards,
Sujoy -
Dear All,
I have requiriment for standard report MMBE (stock related data) .How to call standard report in
web dynpro using abap.
Regards,
s.Ramakrishna.Hi Ramakrishna,
We usually use SUBMIT statement to call a report.
For example,
SUBMIT ztest WITH par1 = lv_par1 AND RETURN.
Here par1 is the parameter of the report. If there are no parameters, we can simply use
SUBMIT ztest AND RETURN.
Regards,
Manogna -
Calling standard printer driver program RVADOR01 from ALV report
I have ALV report (Sales order documents) and one of columns in report is icon type with print preview link (hotspot). When user press icon, I would like to call standard print program RVADOR01 (actually we have custom Z_RVADOR01 and custom smartform which are working fine when using Document -> Output in VA03) to display print preview. I don't know how to call (trigger) print driver routine and pass needed parameters to it (ex. SO number).
MarkoActually I did that. But then you are at least three clicks away from print preview screen. For testing purpose I've created custom smartform and run it from my report. It is working like I want. Now, instead of my procedure I want to run standard printer driver program with needed parameters. I believe that all it needs is document number (vbeln) and all the rest is already there, program, smatform... I just don't know how to use it (ex. pass parameters).
I know I maybe complicating too much but I am ABAP beginner and want to learn as much as possible. Thank you anyway! -
Calling ABAP Subroutines: PERFORM example
hi friends,
Can any one give me an example on Calling ABAP Subroutines: PERFORM or provide any links for that example already posted in sdn ...
points will be awarded
regards and thanks
Vijayahi
With the PERFORM statement, you can call subroutines which are coded in the same ABAP program (internal calls), or subroutines which are coded in other ABAP programs (external calls).
You can also specify the name of the subroutine dynamically at runtime, and call subroutines from a list.
Internal Subroutine Calls
To call a subroutine defined in the same program, you need only specify its name in the PERFORM statement:
PERFORM <subr> http://USING ... <pi>...
http://CHANGING... <pi>... .
The internal subroutine can access all of the global data of the calling program.
http://help.sap.com/saphelp_nw04/helpdata/en/9f/db978335c111d1829f0000e829fbfe/content.htm
reward point if helpful.
thanks -
Calling Standard Method of Object
Dear All,
I had requirement to call standard method 'CANCEL' of Object(MOVEINDOC) in abap program.But the problem is that the method is not released.How can i call this method in abap program.Thanks to all.
I found in Metalink that this is really NOT supported by Oracle Objects : http://metalink.oracle.com/metalink/plsql/ml2_documents.showDocument?p_database_id=FOR&p_id=189601.995
Zlatko, your solution is pretty but i am not sure it is usable for my wide object hierarchy (very wide) which i have to rewrite. -
Can i call Standard Subscreen into my custom transactioscreen or Subscreen?
Hi,
Please let me know, is it possible toi call Standard Subscreen into my custom transaction screen or Subscreen?
if you have a code ,help me please.
Thanks & regards
VishnuvardhanHi Vishnuvardhan,
You can call standard subscreen into your custom transaction Subscreen area.
Because when you are calling subscreen you have to mention subscreen number and program name . It may be a standard one or custom one
Regrds,
Raghava Channooru.
Maybe you are looking for
-
SORT gt_tabsum. DESCRIBE TABLE gt_tabsum LINES gv_tabsum_entries. MODIFY ztabsum FROM TABLE gt_tabsum. IF SY_SUBRC = 0. COMMIT WORK. ENDIF. Do i have any problem with my modify statement? The issue is - the number of entries in internal table gv_
-
HowTo Rename file based on message content?
Hi All, Newbie here. I have an message which i'm pushing out to a file via a File eWay. I need to name\rename the file based on the ID of the message. What is the best way to do this? Thanks, Ken
-
HI, IS THE DATA IS SAME IN R/3 AND CRM SYSTEMS. WHAT EVER FM'S AND BAPI'S AVAIABLE IN R/3 SYSTEM ARE ALL AVAILABLE IN CRM OR THERE MAY DIFFERENT IN CRM? THANKS IN ADVANCE..
-
my library opens, but when i click on the itunes store, i get an error message
-
Update MS Access Database table using ABAP
Hi All, I have a requirement wherein I have to update the existing records in MS Access database using ABAP Code. Can someone provide sample code through which I can achieve this. Thanks!!! Regards, Nitish Reddy. Edited by: Nitish Cherukupally on Mar