Calling Subroutine of a Function Module
Hi friends,
I need to call a routine which exists in a function module from anopther function module.
The routine is in a include program (ie type I).
is there any way....
PERFORM add_relations in program L2012F03.
Similar Messages
-
Is it possible to call custom designed RFC function module, apart from BAPI
Hi Friends,
1. Is it possible to call custom designed RFC function module, apart from BAPI.
2. Why we call it Adaptive RFC layer, Since every time the JCO layer updated with SAP, Why cant be dynamic.
Thanx for Ur time.
Cheers,
SamAlso check <a href="http://help.sap.com/saphelp_nw04/helpdata/en/41/38bc8f813719488ddc9d9b21251ec3/frameset.htm">here</a> for more information on aRFC. Here you can find why it is called adaptive.
Regards,
Christophe -
Calling a report from function module
Hi Friends,
I have requirement for Function Module i.e. we will add the button to the standard T-code and ( Function added in config ) then
Function to be called from Customizing
Program A called from customizing function
CalculationPDFFunction is called from program A.
So can any one help me the logic for "calling a report from function module ".
Thanks in Advance.
Regards,
OSReddy.
Edited by: OSReddy on Sep 23, 2011 7:31 AMHi Jaya,
Yes. It is possible to call ur custom program using SUBMIT statement.
1. If u have data to pass then build table type RSPARAMS and use below statement.
data:
rspar_tab TYPE TABLE OF rsparams,
rspar_line LIKE LINE OF rspar_tab,
SUBMIT report1 WITH SELECTION-TABLE rspar_tab
AND RETURN.
1. If u want to create variant to the program and use that. use the below statement .
SUBMIT report1 USING SELECTION-SET 'VAR1' "variant
AND RETURN.
Regards,
Venkat.O -
How to call Custom RFC enabled Function Module in R/3 From XI
Hi Experts,
I want to call custom RFC enabled Function Module by sending some input parameters from XI.
How to do this
Thnx
RAMSHi RAMS,
1. Under the SWCV Go to the Imported Objects.
2. Right click on the RFC and click on the Import of SAP object.
3. Give the logon server name, system number the user name and pasword.
4. Select the RFC u want to import.
5. Execute the import and the RFC is imported under the SWCV.
Now u can use this Imported RFC in the scenarios of that SWCV.
Regards
Santhosh
Remember to set the thread to solved when you have received a solution -
Calling and executing a function module in the Portal iview development
Hello Portal development gurus...
I am very new to portal iview development and am learning a lot of stuff.. I now have a requirement to do the following:
1. I need to use the NWDS to create java code in developing an iview
2. I need to call and execute a function module and display the parameters pulled in from the function module onto a Jsp.
3. I need to create an iview based on this deployed component.
Could anybody please explain me how to do the coding on this front?
I appreciate if anybody can share documentation about this kind of a development.
As always, points galore for useful and helpful suggestions.
Regards,
~~~LBHi,
Firstly Have you searched in SDN for the same, anyhow please go through the link to work on the requirement
[/docs/DOC-8061#15|/docs/DOC-8061#15]
Go through the thread which will talk in detail
[https://forums.sdn.sap.com/click.jspa?searchID=19551584&messageID=6348955|https://forums.sdn.sap.com/click.jspa?searchID=19551584&messageID=6348955]
Hope this helps.
Cheers-
Pramod -
How to call a remote capable function module?
Hi all,
I want to call a bapi from a R/3 that is not available in the current system were i have my WebDynpro Abap application.
So, i called the wizard "Service Call".
In the Select Service step i have to input the destination and Function Module and
Before i specified an RFC destination .
The wizard cannot find the function.
I read the Note:
The function module must exist in the current system! The wizard does not support to call a remote capable function module that does not exist in the current system.
The question is :
How can i call remote capable function module?
Thanks,
AriHi,
this link might help you : <a href="http://help.sap.com/saphelp_erp2005vp/helpdata/en/22/0424ba488911d189490000e829fbbd/frameset.htm">rfc in abap</a>
grtz
Koen -
Calling a remote enabled function module which does not exist in caller sys
Hi,
I have a a system ABC from which I am trying call a rfc enabled fm(Test) present in system XYZ.
The fm(Test) does not exist in the system ABC so I am getting generation errors and dumps.
Is there a way for me to call these remote enabled function modules which does not exist in the caller system without the obvious errors etc.
Is there any special way.
ThanksHi,
please check this sample:
REPORT zcallfm .
DATA: xv_return TYPE sysubrc.
CALL FUNCTION 'DOESNOTEXIST'
DESTINATION 'NOWHERE'
EXPORTING caller = sy-sysid
IMPORTING return = xv_return
EXCEPTIONS system_failure = 1
communication_failure = 2
OTHERS = 4.
It shouldn't throw any generation errors in your system!
Regards,
Klaus -
Calling Web Service from Function Module
dear all
i am new to SAP.
i have a web Service developed with .net and C#.
i want to call this web Service from inside a function module.
how can i do this ?
thanks,Hi Ramzy,
Please browse through chrome or sdn , there is a lot of documents and discussions, any how find the below URL, which might be helpful.
Create an SAP Web Service Consumer (calling External Web Service from ABAP)
Create a Function Module and full the below Code :
Sample code :
DATA: http_client TYPE REF TO if_http_client,
host_str TYPE string VALUE 'www.myservice.in',
service_str TYPE string,
path TYPE string VALUE 'my path',
errortext TYPE string. "used for error handling
DATA : wf_string1 TYPE string,
lw_inputs TYPE string,
error_text type string,
subrc TYPE SY-SUBRC,
lw_outputs TYPE string.
CALL METHOD cl_http_client=>create_by_url
EXPORTING
url = 'myurl'
IMPORTING
client = http_client
EXCEPTIONS
argument_not_found = 1
plugin_not_active = 2
internal_error = 3
OTHERS = 4.
IF sy-subrc <> 0.
* MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
* WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
ENDIF.
CALL METHOD http_client->request->set_header_field
EXPORTING
name = '~request_method'
value = 'POST'.
CALL METHOD http_client->request->set_header_field
EXPORTING
name = '~server_protocol'
value = 'HTTP/1.1'.
CALL METHOD http_client->request->set_header_field
EXPORTING
name = '~request_uri'
value = 'mypath'.
CALL METHOD http_client->request->set_header_field
EXPORTING
name = 'Content-Type'
value = 'application/soap+xml; charset=utf-8'."'text/xml; charset=utf-8'.
CALL METHOD http_client->request->set_header_field
EXPORTING
name = 'Content-Length'
value = '19000'."txlen.
CALL METHOD http_client->request->set_header_field
EXPORTING
name = 'SOAPAction'
value = 'myURL'.
concatenate 'data u need sned' into wf_string
CALL METHOD http_client->request->set_cdata
EXPORTING
data = wf_string1
offset = 0
length = '19000'.
Regards,
Lokeswar. -
CALL TRANSACTION in Update Function module
Hi all
AFIK, it is not possible to trigger a CALL TRANSACTION for BDC update in an update function module. Yet, i jus wanna to confirm it with the xperts. what are other options for posting a BDC data in an update function module?
thkx
PrabhuHi,
Try this..
Create a new RFC function module and in the function module do all the coding for the BDC and CALL TRANSACTION..
Inside the update module call the RFC function module IN BACKGROUND TASK.
I believe this should work..
Thanks
Naren -
Problem with Call transaction method in function module
Dear Frndz,
I am converting its services into webdynpro.
I developed a rfc[function module] for travel management [TRIP] . In that rfc i used call transaction method[BDC] to upload the data. The same rfc will be called from the frontend[portal].It is working fine in development for whome se37 execution authorization was assigned. It is not working for other users. I hope it is something relevant to authorization .If suppose can i create a authorization object for this rfc and assign it to the profile.
Normally users can be given authorization to run the tcode.
similarly i want to give the authorization to be given users to execuste this funtion module.
huv can i do it ?? any suggestion.
Rgds.
sivaUse ST01 transaction to start authorization trace, you will then see what authorizations are missing (if your assumption is right of course, i.e. if it's really an authorization problem)
-
Calling subroutine in another function group
Hi all,
I want to include a call to subroutine TKKA1000_FUELLEN in function group kkag in my custom program. Can I do that? I come from a C/JAVA baclground in which I could INCLUDE the class or set of programs with a simple statement. can i do the smae here?
regards,
MatHI,
Check the below code....
<b>PERFORM form IN PROGRAM prog.</b>
Additions:
1. ... USING p1 p2 p3 ...
2. ... CHANGING p1 p2 p3 ...
3. ... TABLES itab1 itab2 ...
4. ... IF FOUND
In an ABAP Objects context, a more severe syntaxcheck is performed that in other ABAP areas. See Passsing SY-REPID not allowedand Receiving SY-SUBRC not allowed.
Effect
This variant is similar to variant 2 (externalperform). However, here you can specify the names of both thesubroutine and the program in which it occurs dynamically at runtime.If you do this, you should place the variables form and prog in parentheses. The names in form and prog must beentered in uppercase, otherwise a runtime error occurs. If you do notspecify any additions (such as USING) you do not need to specifythe program after IN PROGRAM. In this case, the system looks forthe subroutine in the current program.
Example
DATA: RNAME(30) VALUE 'WRITE_STATISTIC', "Form and program
"names must
PNAME(8) VALUE 'ZYX_STAT'. "be written in
"upper case
PERFORM (RNAME) IN PROGRAM ZYX_STAT.
PERFORM WRITE_STATISTIC IN PROGRAM (PNAME).
PERFORM (RNAME) IN PROGRAM (PNAME).
All three PERFORM statements have the same effect, that is,they call the subroutine 'WRITE_STATISTIC', which is defined inthe program 'ZYX_STAT'.
Notes
Dynamic PERFORM statements require more CPU time, since the system has to locate the subroutine each time.
Regards,
Vara -
How to call a RFC-enabled function module
Hi All,
We have 2 systems; system 1 (client 420) and system 2 (client 600).
I just want to know that how can a RFC-enabled function module be called from one system (420) whereas the RFC-enabled functio nmodule exists in the other system (600).
Also, as per my understanding any RFC-enabled function module is a BAPI. Please confirm.
Please help.
Thanks & Regards,
NamrataHi,
RFC enabled FM can be called from anther system:
From 420 we can call RFC FM residing in 600, through RFC destination cretaed in SM59 tcode in 420 client.In sm59, maintain the entries of destination system i.e 600.and test the connection whether it is succesful or not/ through remote logon.
suppose in 420 client , in sm59 u have cretaed with destination DEST600 say.
In 420, u can code as below..
Call 'RSSDK_LOGSYS_REMOTE_CHECK' destination DEST600
exporting
I_QSYSTEMNAME =
tables
E_T_MSG =
there exist difference between BAPI/RFC.
BAPI always return messages / RFC doen't.
BAPI follows ceratin naiming convetions while defineing the parameter structures ( ex BAPI_..)
In bapi , no dialog screens can be called.
In bapi, statements liek COmmit work/Call Transaction/Submit...shouldn't exit.
Bapi's are implemented as FM's and are stored as methods in Business Object repository.
another Ex for RFC
RSAN_LOGSYS_DETERMINE
Revert back if any issues,
Reagrds,
Naveen
Edited by: Naveen Deva on Feb 18, 2009 9:54 AM -
How to call a ECC 6 Function module from BI 7 process chain
Hi BI Gurus
I wann to push the data from infocube to ECC 6 ( Tcurr) table on a daily basis, and we have a function module written in ABAP and this FM is in ECC 6 sytem and we need to call this function module from BI inorder to update the TCURR table.
I used ABAP programm in Process chain but i failed as i dint see any functionality for FM. i could see only abap programm.
I need any you advise on this.
thanks in advanceHi,
If you are able to see the ABAP report of ECC 6, this ABAP report will inturn call this function module.
Call the report in process chain. -
Calling syntactically incorrect remote function module triggers short dump
Hi,
I have some Z Function modules in ABC system and i need to call them remotely from XYZ.
There are some syntax errors in the FM's of ABC system so in the call of XYZ I am getting dump.
Can I know how to capture if there is any syntax error in the remote FM of ABC system from XYZ.
I have got FUNCTION_EXISTS to check the existence.
Can I have like that some other function to check the syntax?
Thanks,
Sham Sundher.Hi,
Check if this link can be of any help.
[FM for Syntax Check of function modules]
Regards,
Vik -
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.
Maybe you are looking for
-
Can't download OS update file ...
Ok ... New iPad 32GB WiFi only ... Trying to update to the newest OS and keep getting file corrupted message. Any help would be appreciated. Wifi works fine but can't seem to download the OS update file. Takes about 30 minutes or more, looks like its
-
anyone able to decipher this,....? panic(cpu 0): Uncorrectable machine check: pc = 0000000011D58C80, msr = 0000000000141000, dsisr = 40000000, dar = 0000000025190004 AsyncSrc = 0000000000000000, CoreFIR = 0000000000000000 L2FIR = 0000000000000000, Bu
-
Return statement inside a catch block???
If you put a return statement inside of a catch block, what statements will be executed next? I.e., what happens to the flow of control?
-
Hello, I'm trying to create an applet that include a few swing classes. From what I have read, the client needs to download the rt.jar file for the applet to access the swing classes. I'm trying to figure out how to include this jar file in the apple
-
Help on BUPA_BANK_EXPORT
Hi everybody, can any one please let me know where can i find documentation regarding the BAdI -> BUPA_BANK_EXPORT. thanks in abvance, regards, mounika.