Error while creating import parameters in RFC function module
Hi,
I am trying to create import parameter in RFC enabled function module and getting the following error "Reference parameters are not allowed with RFC". Am I doing something wrong.
Your earlier response is much appreciated
Regards
Kasi
There is a "Pass by Value" checkbox, just check that and you wont get the error. The basic reason behind is since an RFC is called by a different system the parameters have to be sent as values than as references.
hith
Sunil Achyut
Similar Messages
-
Error while creating a extractor based on Functional Module
Hi,
I am building an extactor based on afunction module.I created a DS and created a structure in Se11.When i am trying to put the extract structure in the Tables tab of the function module it gives me an error saying Tables parameters are obselete and doesnt allow me to activate or go back and front to other tabs.Can anyone please tell me what might be the reason?
Thanks,Hi,
Just try to reactivate the structure once again. And when you open the function module, if the problem still persists just try to press Return key several times. The message you are getting is just a warning message.
PS: I am not sure whether this is the correct way, but i personally resolved this by pressing the ENTER key 4 or 5 times. So just give a try.
Regards
Sunil -
Unable to retrieve parameters from RFC Function Module
Hi All,
I have created a model for the RFC Enabled function module BAPI_BUPA_CENTRAL_GETDETAIL within my webdynpro program. I am passing parameters to the function module BAPI_BUPA_CENTRAL_GETDETAIL and I have validated that this is being passed correctly by displaying the passed value from the node of the input parameters.
Code used to pass input parameters -
IWDMessageManager manager = wdComponentAPI.getMessageManager();
try
wdContext.currentBapi_Bupa_Central_Getdetail_InputElement().modelObject().execute();
size = wdContext.nodeCentraldataperson().size();
wdComponentAPI.getMessageManager().reportSuccess(Integer.toString(size));
wdContext.nodeOutput().invalidate();
catch(WDDynamicRFCExecuteException e)
manager.reportException(e.getMessage(), false);
I also see that it returns 1 record by using the code below:
IWDMessageManager manager = wdComponentAPI.getMessageManager();
try
wdContext.currentBapi_Bupa_Central_Getdetail_InputElement().modelObject().execute();
size = wdContext.nodeCentraldataperson().size();
wdComponentAPI.getMessageManager().reportSuccess(Integer.toString(size));
wdContext.nodeOutput().invalidate();
catch(WDDynamicRFCExecuteException e)
manager.reportException(e.getMessage(), false);
But, when I try to retrieve the value returned it does not fetch that value -
Bapi_Bupa_Central_Getdetail_Output getdata = wdContext.nodeBapi_Bupa_Central_Getdetail_Input().nodeOutput().currentOutputElement().modelObject();
Bapibus1006_Central_Person[] getres = new Bapibus1006_Central_Person[size];
for(int i=0; i<size; i++){
wdComponentAPI.getMessageManager().reportSuccess(Integer.toString(i));
getres<i> = getdata.getCentraldataperson();
//String fullname = wdContext.nodeBapi_Bupa_Central_Getdetail_Input().nodeOutput().nodeCentraldataperson().getElementAt(i).getAttributeValue("Fullname").toString();
String fullname = getres<i>.getFullname();
fullname += Integer.toString(i);
wdContext.currentContextElement().setFullname(fullname);
wdComponentAPI.getMessageManager().reportSuccess("fullname:" + fullname);
It always returns 0 or null. Can someone please help me with this issue. The BAPI returns values in structure format and not internal table and hence I dont see the issue there as well.
What can be the problem?
Thanks for all your help in advance.
Best regards,
DivyaNikhil / Srihari,
I changed my code and it now looks like - I am trying get the return value into the context fullname but i still cant get the value although the size of nodeCentraldataperson() is thrown as 1 and the input is being passed correctly as i have validated this in this line of code [wdContext.nodeBapi_Bupa_Central_Getdetail_Input().currentBapi_Bupa_Central_Getdetail_InputElement().getBusinesspartner();]
IWDMessageManager manager = wdComponentAPI.getMessageManager();
try
wdContext.currentBapi_Bupa_Central_Getdetail_InputElement().modelObject().execute();
size = wdContext.nodeCentraldataperson().size();
wdComponentAPI.getMessageManager().reportSuccess(Integer.toString(size));
wdContext.nodeCentraldataperson().invalidate();
catch(WDDynamicRFCExecuteException e)
manager.reportException(e.getMessage(), false);
for(int i=0; i <size; i++){
String name = "FullName: ";
wdContext.nodeBapi_Bupa_Central_Getdetail_Input().nodeOutput().nodeCentraldataperson().setLeadSelection(i);
name += wdContext.nodeBapi_Bupa_Central_Getdetail_Input().currentBapi_Bupa_Central_Getdetail_InputElement().getBusinesspartner();
name += wdContext.nodeBapi_Bupa_Central_Getdetail_Input().nodeOutput().nodeCentraldataperson().currentCentraldatapersonElement().getFullname();
wdContext.currentContextElement().setFullname(name);
Any idea what could be wrong?
Thanks,
Divya -
Help on Parameters in RFC Function Module
Hi,
I am creating a RFC function module. The requirement is:
In a report program, the user enters ABC and XYZ values on the selection screen. These 2 fields are select options so will have From-Value and To-Value. This report program will pass these values to my RFC FM and depending upon these values I have to read a DB table and pass the data back to the program.
My doubt is, how should I intake these select options value? i.e should I specify them in import tab or tables tab? What TYPE/LIKE should I use?
Please help me in this...
Rgds,
Nimma.Hi Anji,
What is 'WSELKUNNR'? Is it a user defined type?
I am doing as below in the IMPORT tab.
Parameter name/Type Spec/Associated Type
ABC/LIKE/
I am not sure what type I have to use here as the incoming values will be of type SELECT-OPTIONS. Is there any standard type to specify here? If not, what should I do?
Best Regards,
Nimma. -
Table type in import parameter in rfc function module
Hi we don't have the table type in our system which exist in the other system which is the import parameter of the rfc function module.so how can we pass the parameter. shell we create the same table type in our system also.it is a table type for a deep structure.
Hello,
I donot have access to CRM box I cannot view the FM. You can verify with the CRM counterpart what exactly is the TYPE for param DATA.
Else you can define a generic internal table (TYPE TABLE) & try calling the FM.
BR,
Suhas -
Error while generating Web Service from a function module.
Hi Experts,
I am trying to create a web service from function module by doing the steps as mentioned in the below document:
http://www.sdn.sap.com/irj/scn/index;jsessionid=(J2EE3417800)ID1146834250DB10778842957931285337End?rid=/library/uuid/80fa3dff-ce76-2a10-3f94-f3df8f2db5a2&overridelayout=true
When i save it as an local object instead of generating the Web Service it gives me the below error:
"Error during activation of Web Service"
Kindly let me know what needs to be done inorder to resolve this issue.
I have a feeling that this error may be with respect to some authorizations, in that case how do we resolve it
Helpful Inputs Awaited.!!!
Thanks
DhwaniHi Dhawani,
Hi Pavan,
Can you please elaborate...how this will help??
Thanks
Dhwani
I dont know the specific reason but internally there may some inconsistancy but i faced the same error and i tried with saving it in the package.
Thanks -
Error while passing a table to a function module
Hi Iam passing a table g_tab of length 376 flat structure to the function module..under TABLES section parameter.
Changedocument_read_headers.
iam getting a complile time error like the below displayed thing. Can u tell me how to solve this ?
In the function module interface, you can specify only
fields of a specific type and length under "I_CDHDR".
Although the currently specified field
"G_CDHDR_TAB" is the correct type, its length is incorrect.
Edited by: kiran kumar on Jul 7, 2008 8:53 AMprobably u making a mistake while declaring the table
declare it like this in the tables section:
S_JOB LIKE RNGE_OBJID
where s_job is the internal table name and RANGE_OBJID is a structure type and NOT an internal table type. -
Get Import Parameters of a Function Module
Hi,
Is there a way to find the import parameters and their Data Type of a Function Module in any Table??
For example, i know i can find the name and the include of the Funtion Module in TFDIR. Is there anywhere i can find the list of Import Parameters and their Data Types??
Thanks and Regards,
Kaeyuryou can use
Data: lv_type type c.
clear:lv_type.
DESCRIBE FIELD p_bukrs TYPE lv_type.
It will return C as its type C and p_bukrs is selection screen parameter.
hope this helps. -
How to default a longer value in import parameters of a function module?
I have to default a file name of some 50 characters in the file_name import parameter (RPGRAP-FILENAME) of a custom fucntion module.
I tried to set it under "Default Value" but it is taking some 15 or so charaters.
So.. how to do this?
Thanks
VenYou just closed a number of your older threads. Please remember that there is no need to add a comment if there is nothing new to add. It just brings old posts to the top.
And in addition to marking them as closed, you could assign po1nts to those who tried to help. It encourages people to answer.
Rob -
Getting Error while creating Genric Datasource
Hi,
I was try to create genric extracter where i was getting error
While creating view genric extracter where i am getting error "Entry A ZV_ZFRT does not exist in DD02L - check your entry".
My requirement is need to create extracter which is getting populated from three modules like SD,MM,FI/CO.From these three module i am using several tables and some of the tables don't have relation btween these tables as like foreign key and refrence key.
Which extracter i need to create as given scenario?
Does view will fullfill with my requirement or any other extracter.
Please some one can help me in this scenario.
Answer would be great appreciate.Hi,
Rather than writing a program write a function module. Create a structure and include all the necessary fields in the structure. Then in the function module write the logic to extract the values for those fields. While creating the datasource specify the function module and structure name.
Refer this link:
/people/siegfried.szameitat/blog/2005/09/29/generic-extraction-via-function-module
Hope this helps.
PB -
Error while creating project through import.wdl
Hi
We are having issues creating project using the import.wdl.
We are able to create content administration and merchandising projects though.
We are getting the following error while creating a programatic import project through import.wdl
[12/8/13 23:26:27:259 CST] 00000021 SystemErr R atg.workflow.WorkflowException: The inner project was not created. Check that your project workflow has been initialized by the workflow engine.
[12/8/13 23:26:27:260 CST] 00000021 SystemErr R at atg.epub.project.ProcessHomeMethods.initializeProcess(ProcessHomeMethods.java:450)
[12/8/13 23:26:27:260 CST] 00000021 SystemErr R at atg.epub.project._ProcessHome_Impl.initializeProcess(_ProcessHome_Impl.java:53)
[12/8/13 23:26:27:260 CST] 00000021 SystemErr R at atg.epub.project._ProcessHome_ReposImpl.initializeProcess(_ProcessHome_ReposImpl.java:3)
[12/8/13 23:26:27:260 CST] 00000021 SystemErr R at atg.epub.servlet.CreateProcessFormHandler.handleCreateProcess(CreateProcessFormHandler.java:380)
We have checked all the workflow manager settings. The workflowProcessManager.xml is properly pointing to the system name and drp port.
We had delete entries from
epub_wf_server_id
epub_coll_workflow
epub_workflow_info
dss_server_id
dsi_server_id
upon enabling the logdebugs of WorkFlowProcesManager, we are seeing the following debugs.
[12/8/13 23:31:08:101 CST] 00000020 SystemOut O /atg/epub/workflow/process/WorkflowProcessManager received message on port IndividualEvents message: ObjectMessage()
[12/8/13 23:31:08:101 CST] 00000020 SystemOut O /atg/epub/workflow/process/WorkflowProcessManager [message]: received an individual event message StartWorkflowMessage[messageId=96000003subjectId=prc272003,subjectType=process,processName=/Commerce/import.wdl,segmentName=main,user=user : admin null] of type atg.workflow.StartWorkflow
[12/8/13 23:31:08:101 CST] 00000020 SystemOut O /atg/epub/workflow/process/WorkflowProcessManager [message]: created individual execution context ProcessExecutionContextImpl[individual,subject=process:prc272003,messageType=atg.workflow.StartWorkflow,message=StartWorkflowMessage[messageId=96000003subjectId=prc272003,subjectType=process,processName=/Commerce/import.wdl,segmentName=main,user=user : admin null],sessionId=Tw-Yr5CQqqkADS3q8MadASz,parentSessionId=Tw-Yr5CQqqkADS3q8MadASz,request=atg.servlet.DynamoHttpServletRequest@1009990707,response=atg.servlet.DynamoHttpServletResponse@3c9e3c9e]
[12/8/13 23:31:08:103 CST] 00000020 SystemOut O /atg/epub/workflow/process/WorkflowProcessManager [message]: 0 individual instances found for subject process:prc272003
[12/8/13 23:31:08:103 CST] 00000020 SystemOut O /atg/epub/workflow/process/WorkflowProcessManager [message]: going through process segments registered for type atg.workflow.StartWorkflow for subject process:prc272003If you have a support contract with Orcale you can find out hoe to fix this error by checking out Knowledge Article 1038072.1 How to troubleshoot "atg.workflow.WorkflowException: The inner project was not created. Check that your project workflow has been initialized by the workflow engine."
The article says you should:
1.
delete from epub_wf_server_id
delete from epub_coll_workflow
delete from epub_workflow_info
restart server and retest
2. If problem exists check that you have configured the Workflow Process Editor Server correctly.
The problem is that probably the workflow has not been not been initialized correctly by the Workflow Editor Server. -
Problem while importing RFC function module in XI. Please Help!
Hi Experts,
When I try to import RFC function module in XI I get the following error:
**Ready for import**
Import started...
YCOP_VALIDATE_GR:
+ com.sap.aii.ibrep.sbeans.upload.RemoteUploadException: connection closed without message (CM_NO_DATA_RECEIVED)
Import failed with 1 error
Any idea why is this error? How to resolve this?
Thanks
GopalHi
The problem still persists.
This is what I have done:
1. My FM is RFC enabled. In the "Attribute" tab of the FM I have selected "Remote-enabled module" and "Start immed".
2.Activated and tested the FM.
3.Released the FM. In se37, Function Module -> Release ->Release.
4.Tried to import this FM in XI under "RFC". Get the same error.
I have some questions:
1. After releasing the FM do I have to activate it?
2. In release there is "Internal Release" Do I have to use that?
3.Do I have to do "Internal Release" first then "Release"?
4.The FM i am trying to import makes a call to another FM. Both the FMs are in the same system. Both are remote enabled. The second FM updates data in custom table. the first FM which I am importing validates the data and then calls the second FM for update. Do I have to import both FMs?
Please help me!
Thanks
Gopal -
Error while Create an JCo RFC provider in J2EE engine of portal system
Hi all:
I got the following error while Create an JCo RFC provider in J2EE engine of portal system:
Bundle can not be added YEPRI-EPD_EPD,
com.sap.mw.jco.JCO$Exception: (102) RFC_ERROR_COMMUNICATION: Connect to SAP gateway failed
Connect_PM TYPE=A ASHOST=YEPRI-DEV.domain.ext SYSNR=00 GWHOST=YEPRI-DEV.domain.ext GWSERV=sapgw00 PCS=1
LOCATION CPIC (TCP/IP) on local host with Unicode
ERROR hostname 'YEPRI-DEV.domain.ext' unknown
TIME Fri May 07 10:18:25 201
RELEASE 701
COMPONENT NI (network interface)
VERSION 38
RC -2
MODULE ninti.c
LINE 361
DETAIL NiPGetHostByName2: hostname 'YEPRI-DEV.domain.ext' not found
SYSTEM CALL gethostbyname_r
ERRNO 11004
ERRNO TEXT WSANO_DATA: Valid name, no data record of requested type
COUNTER 1
could you please tell me how solve it ?Hi,
Try the steps mentioned below.
com.sap.mw.jco.JCO$Exception: (102) RFC_ERROR_COMMUNICATION
Regards,
Koti Reddy -
Error while creating model classes, operation aborted in NWDS
Hi All,
When i select Adaptive rfc 2 model and then search for the RFC, when i select RFC and click on next i get an error while importing :
Error while creating model classes, operation aborted.
It is working fine in visual composer and i have activated function module, RFC but getting same error. It is also working in web service navigator also.
Can any one help me out??
Regards,
Pradeep kumar
Edited by: pradeep_546 on Feb 17, 2011 9:35 PM
Edited by: pradeep_546 on Feb 17, 2011 9:36 PM
Edited by: pradeep_546 on Feb 17, 2011 9:37 PMHai guys thanks for reply
Tushar,
I am using NWDS 7.2, ce7.2 server, ECC 6.0.
Amit,
I have tested the JCO destinations they are working fine and i created a new pair of JCO destinations but unable to import the Adaptive RFC2 Model gives same error but Adaptive webservices are working fine in my NWDS7.2
Deepak,
I am unable to create model in other projects also.
I have sufficient amount of memory in my drive.
I have imported the DC to other NWDS but it gives same error.
Thanks for all,
Regards,
Pradeep Kumar G
Edited by: pradeep_546 on Feb 18, 2011 3:05 PM -
Error while creating a new entity row for LoginPageEO.jbo.RowCreateExceptio
hi all, i am new to OAF i have created a login page and trying to validate to a custom table which had two columns username and password, i am calling function from controller class which is in AM and from AM in turn i am calling function in VOimpl.java file where i am executing my query with whereClause, i am passing two parametere username and password to this function.
if ((uname != null) && (!("".equals(uname.trim()))))
whereClause.append(" UNAME = :");
whereClause.append(bindCount++);
parameters.addElement(uname);
clauseCount++;
if ((pass!= null) && (!("".equals(pass.trim()))))
if (clauseCount > 0)
whereClause.append(" AND ");
whereClause.append(" PASSWORD = :");
whereClause.append(bindCount++);
parameters.addElement(pass);
clauseCount++;
setWhereClause(whereClause.toString());
if (bindCount > 0)
Object[] params = new Object[bindCount];
// the copyInto() is 1.1.8 compliant which is required by ARU
parameters.copyInto(params);
setWhereClauseParams(params);
//System.out.println(getQuery());
executeQuery();
//System.out.println(getRowCount())
when i call this from login page i am getting
Error - oracle.jbo.RowCreateException: JBO-25017: Error while creating a new entity row for LoginPageEO.
Can any one help me out.If your requirement is not to update any DB Table then don't use an EO. I would suggest the following for your requirement of validating the username and password.
- Create a VO that has the following query. Do not select any EO during the VO creation.
SELECT 'x'
FROM <CUSTOM TABLE>
WHERE <USERNAME COL> = :1
AND <PASSWORD COL> = :2
- Have the initQuery(..) Method in your VOImpl, that takes the username and password. Binds them to the VO and executes the query.
- Have a method in your AM to take the username and password as parameters. Make a call to the above VO::initQuery(..)
- In your controller's processFormRequest(..) call this AM Method upon the submit button action.
This should work smoothly.
The following is just for triaging the error that you have. The above steps, should help you achieve your requirement by itself, the below steps would not be required.
Coming back to your issue. Any custom table should have the standard WHO Columns.
- Modify the custom table to have these who columns.
- In the EO Wizard, synchronize the EO to reflect the DB Structure.
- Make sure the EO Attributes are marked updatable.
Cause of your issue: Through you are not creating EO rows programatically, whenever a VO is based on an EO, upon execution of the VO query, EO's are automatically created, based on the number of rows returned by the VO Query. So internally its failing to created the EO Rows. On of the common reason would be that it creates the EO row, but cannot set the attributes from the VO, because the EO Attribute is readonly.
Hope this clarifies.
Maybe you are looking for
-
Calling a method in backing bean whenever a page is loaded/reloaded
Hi, What is the best way to call a certain method in a backing bean whenever the jsp page is reloaded? I have a managed bean that provides the data for a form and the bean gets it's data from a SQL DB. I want the bean to reload the data from the DB w
-
I have not been able to open up Lightroom on my computer for over a year now. Whenever I double click on it, this comes up - can anyone help? Problem signature: Problem Event Name:APPCRASH Application Name:lightroom.exe Application Version:3.4.
-
How to capture non-work related time in SAP
Hi gurus, We are trying to implement a new system where by the shop floor person can enter his travelling time, break time and working time. Billing can only be done for working time. I know the regular way of entering time in CAT2 and transferring i
-
Color issue w/ Sony KDS50A2000
Shortly after replacing the bulb (original finally died) I noticed the color was "off". I have played with the settings for over a month now and tried matching them to those posted on the web by others. Still no fix. The blue and green is definite
-
Bean not found within scope error
I am getting the error "bean jspbean not found within scope error". I am using JBuilder 5.0. I thought that I had set up my paths and placed my code in the correct directories but it seems that I am missing something. I was developing in Visual Age f