Re: regarding import parameters in rfc
Hi,
I have to pass some import parameters to bapi
BAPI_ACC_INVOICE_RECEIPT_POST. This is for tcode f-43.
But it was giving error that there is a error in the header. Actually for the tcode f-43 sap is creating internal number automatically for document number. If iwant to pass a document number to the rfc, Can i pass the number by my own or is there any procedure.
rgds
p.kp
Hi,
Leave the Document Header Empty Since when we r supplying Document Type there is no need to supply documnet header (Since Document type will have Internal number assigned ,reference no can be passed instead of document header...)
Regards,
Sridhar Reddy
Similar Messages
-
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
KasiThere 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 -
Importing parameters RFC from SAP
Hi,
I read that is possible call a RFC from SAP using 'call fm destination xx in background'. But, how can i get importing parameters if the fm is asynchronous?
I'll apreciated any helps! thanks,
Alexandre!
Message was edited by: Reiner Hille-Doering (marked as question)Hi Alexandre,
I guess you should use the refernce fields when you indicate them ref. you can access the parameters, These will extra memory so it is better if you include whenever they are necessary
Regards
ram -
VBA and RFC - How to deal with tables in export/import parameters
Hi,
maybe one of you can support me...
I have a couple of vba modules reading and writing data to SAP by means of function modules. As usual, they use export and import parameters as well as tables (in the table section). They work very well.
Now, I want to execute some newer function modules and they don't use tables in the table section (because they're obsolete nowadays), instead they expect the tables as export resp. import parameters. I tried it in a couple of ways, without any success.
Has anybody tried this before? And if so, do you mind share some snippets?
Best regards, ThomasHello Thomas,
I think we discussed the same problem here, but unfortunately without any result. Please, take a look at this post and let us know.
Cheers
Stefan -
RFC importing parameters values
Hi guys,
One doubt, I've implemented an RFC with a table and an importing parameter of the the type char.
I've done the mapping on the IR and everything is ok.
When I test the scenario, I've introduced a breakpoint on the R/3 side to check if the values are coming right on the rfc, and I'm not getting any values on the table or on the char parameter.
What is the "catch" that I'm missing...?
Thanks in advance.Hi Naveen,
I've been trying to see if there was any other problem but I can't get anything...
On the R/3 side I now have two importing parameters, two tables and in the exporting parameters I have one char.
"are u testing end to end , that is from xi to r3 or just testign your rfc on the abap side??"
>> The scenario is an end to end, XI calling R/3, sending the xml file with a structure expected (theoretically) by R/3.
"also if you were testing from xi, do u see testing data in sxmb_moni??"
>> Yes, I see my XML file one the sending data.
did you make any changes to the rfc after you imported the rfc into XI??
>> No, the RFC is rightly imported...
When I test the scenario, when the RFC is called, on the breakpoint I don't get any of the tables filled...
Do you have any suggestions why isn't XI filling the tables? -
Are Import parameters compressed in external JCo RFC calls?
I would like to send XML data from a Java program to an SAP ABAP System running on NW 7.02.
The connection is done by Java Connector 3.0. The XML file should be passed as a parameter of an RFC function module.
In older versions the data would have been passed as a TABLES parameter and would be compressed automatically if the payload exceeds 8kb or the connection would be marked as a slow connection. (see also Note 977407).
Now I would like to use the basXML RFC protocol. There it is advised to use Table Types in Import parameters instead of TABLES parameters for table data. Now will the data be compressed if I send them as Table data in an Import parameter? And will they also be compressed when I send them as an Import parameter as STRING or XSTRING instead of a table?
Unfortunately the help documentation is incomplete on these topics and I did not find any details for this scenario.Yes it is possible
SAP JCo can be implemented with Desktop applications and with Web server applications.
SAP JCo is used as an integrated component in the following applications:
● SAP Business Connector, for communication with external Java applications
● in the Application Server, for connecting the integrated J2EE server with the ABAP environment.
SAP JCo can also be implemented as a standalone component, for example to establish communication with the SAP system for individual online (web) applications.
http://help.sap.com/saphelp_erp2005vp/helpdata/en/09/a4a9e1d51d11d6b2c200508b5d5c51/frameset.htm -
All,
Can anyone tell me how to use a table import parameters in a jco call
ThanksOne Example using Sap Enterprise Connector with JCO:
RFC: BAPI_FLIGHT_GETLIST
EnterpriseConectorTest connector = null;
try {
connector = new EnterpriseConectorTest();
connector.client = JCO.getClient(POOL_NAME);
System.out.println("Client: " + connector.client.getAttributes());
Bapi_Flight_Getlist_Input input = new Bapi_Flight_Getlist_Input();
BAPI_FLIGHT_GETLIST_PortType proxy = new BAPI_FLIGHT_GETLIST_PortType();
proxy.messageSpecifier.setJcoClient(connector.client);
//BapisfldatType datType = new BapisfldatType();
//datType.setAirline("AA");
//Bapi0002_1Type types = new Bapi0002_1Type();
//types.setComp_Code("AA");
input.setAirline("AA");
Bapi_Flight_Getlist_Output output = proxy.bapi_Flight_Getlist(input);
BapisfldatType[] list = output.getFlight_List();
System.out.println("Size: " + list.length);
for (int i = 0; i < list.length; i++) {
BapisfldatType type = list<i>;
System.out.println(type.getAirline() + " - " + type.getCityfrom());
} catch (Exception e) {
e.printStackTrace();
Regards
Marcos -
Hi all,
I have a user defined function which contains 32 importing parameters to pass to RFC for RFC lookup.
But in UDF editor its allowing only 20 importing parameters to enter.
Can any one help me out in this?
please suggest me a best way to proceed.
Thanks in advance,
Sri.
Message was edited by:
sri kanthHi sri,
make two UDFs:
The first write 20 parameters in an arrayList and writes it to the global container element
The second read the global container element and the remaining parameters.
Regards Mario -
Validating import parameters in Functin module
Hi Eveyone,
Anybody let me know how to validate import parameters to Function module,
if the sy-subrc not equal to 0, what i have to do.Hi Madhavi,
When you pass some parameters to any Function Module , i.e. Import Parameters, First thing we do is validation.
Check for the respective data lements and validate them, If sy-subrc fails, then throw an exception, or raise an error message, by using standard procedure of structure type BAPIRET2 (For RFC's) or throw any respective error message.
Hope this will resolve your Query.
Reward alll the helpful answers.
Regards
Nagaraj T -
View profile parameters through RFC
Hi,
Do you know any RFC FM that allows you to view profile (start, instance, default) profiles' content?
I would like to receive a table, similar to the output of RSPARAM.
cheers,
Ivan.Hi,
Sorry for intervention. I have just tried "test"-ing the FM PFL_MODIFY_PARAMETER. When you test(F8) it, in the following screen you will have "import parameters" and "Tables" sections.
In the tables section you have PAR_VALUE_TAB, PAR_COMMENT_TAB, PAR_TAB.You can double click on the PAR_VALUE_TAB and in the next screen it will ask Profile name and the parameter you want to change.
Hope this is what you're looking for.
Regards,
Srihari -
How does one pass import parameters to a report within a method?
Hello all,
Well how does one pass import parameters to a report which is within a method ...end method.
for example :
method 123
SUBMIT reportname using selection '1000'
endmethod .
Here we need to pass values into the selection screen and run the report for those values.
The values are say 'ABC' ( tablename "DEF" and field name "HIJ" ).
I hope the question is clear, awaiting your response
Thanks and Regards,
Sandeep.Go to SE24
Parameters: Give the Parameter name, Typing method is "Type" is the domain type that u are selecting, say for e.g : Parameter is "P_CONT" , its associated type "CHAR32" etc
For Select Options: Parameter name say "S_CUST", Type"importing". For this you need to give an associated type which must be created as "TABLE TYPE " in SE11. That table type needs to have a "LINE TYPE" .
LINE TYPE is a Structure created with components "SIGN, OPTION, LOW & HIGH" for select-Options.
NOTE: for a Table type related to Customer data fields "say KUNNR", the line type created must have the Component Type and data Type corresponding to the Data Element associated with "KUNNR" ;i.e: "CHAR" etc.
See if this is clear to you or revert back in case of any Confusion. -
Error while importing a Adaptive RFC Model
Experts,
I am trying to import an Adaptive RFC Model. Before importing I need to speciy the connection parameters in the import wizard. I am using the single server method to connect and have specified all the parameters correctly. I have not specified a SAP router as I am using a test system. when I click next on the Model import wizard I get an error.
The trace shows-
[code]ConnectionFailed Exception : com.sap.mw.jco.JCO$Exception: (102) RFC_ERROR_COMMUNICATION: SAP_CMINIT3 : rc=20 > Connect to SAP gateway failed
Connect_PM GWHOST=test833, GWSERV=sapgw00, ASHOST=test833, SYSNR=00
LOCATION CPIC (TCP/IP) on local host
ERROR partner not reached (host 10.3.82.177, service 3300)
TIME Fri Jun 29 08:54:18 2007
RELEASE 640
COMPONENT NI (network interface)
VERSION 37
RC -10
MODULE nixxi_r.cpp
LINE 8715
DETAIL NiPConnect2
SYSTEM CALL SiPeekPendConn
ERRNO 10061
ERRNO TEXT WSAECONNREFUSED: Connection refused
COUN
at com.sap.ide.jcb.core.service.connection.internal.ConnectionManager.connect(ConnectionManager.java:220)
at com.sap.ide.jcb.core.service.connection.internal.ConnectionManager.connectToSingleServer(ConnectionManager.java:206)
at com.sap.ide.jcb.core.wizardpages.SAPLogonPage.internalConnectToServer(SAPLogonPage.java:1769)
at com.sap.ide.jcb.core.wizardpages.SAPLogonPage.access$2300(SAPLogonPage.java:46)
at com.sap.ide.jcb.core.wizardpages.SAPLogonPage$9.run(SAPLogonPage.java:1730)
at org.eclipse.swt.widgets.RunnableLock.run(RunnableLock.java:35)
at org.eclipse.swt.widgets.Synchronizer.runAsyncMessages(Synchronizer.java:98)
at org.eclipse.swt.widgets.Display.runAsyncMessages(Display.java:1999)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:1733)
at org.eclipse.jface.operation.ModalContext$ModalContextThread.block(ModalContext.java:136)
at org.eclipse.jface.operation.ModalContext.run(ModalContext.java:261)
at org.eclipse.jface.wizard.WizardDialog.run(WizardDialog.java:758)
at com.sap.ide.jcb.core.wizardpages.SAPLogonPage.connectToServer(SAPLogonPage.java:1699)
at com.sap.ide.jcb.core.wizardpages.SAPLogonPage.performFinish(SAPLogonPage.java:1805)
at com.sap.ide.webdynpro.modeleditor.wizards.model.creation.ModelWizard.initializeReimporter(ModelWizard.java:1410)
at com.sap.ide.webdynpro.modeleditor.wizards.model.creation.ModelWizard.performPostSapLogonPageForReimport(ModelWizard.java:1433)
at com.sap.ide.webdynpro.modeleditor.wizards.model.creation.ModelDialog.nextPressed(ModelDialog.java:85)
at org.eclipse.jface.wizard.WizardDialog.buttonPressed(WizardDialog.java:316)
at org.eclipse.jface.dialogs.Dialog$1.widgetSelected(Dialog.java:423)
at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:89)
at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:81)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:840)
at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:2022)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:1729)
at org.eclipse.jface.window.Window.runEventLoop(Window.java:583)
at org.eclipse.jface.window.Window.open(Window.java:563)
at com.sap.ide.webdynpro.modeleditor.ModelEditorCallback.reimportModel(ModelEditorCallback.java:218)
at com.sap.ide.webdynpro.service.modeleditor.ModelService.reImportModel(ModelService.java:207)
at com.sap.ide.webdynpro.service.modeleditor.ServiceWithUI.reImportModel(ServiceWithUI.java:120)
at com.sap.ide.webdynpro.tsmodel.application.actions.ReimportModelAction.run(ReimportModelAction.java:11)
at com.sap.ide.webdynpro.projectbrowser.actions.PBReimportModelAction.run(PBReimportModelAction.java:77)
at com.sap.ide.webdynpro.projectbrowser.actions.PBDevelopmentObjectAction.runInternal(PBDevelopmentObjectAction.java:80)
at com.sap.ide.webdynpro.projectbrowser.actions.PBDevelopmentObjectAction.run(PBDevelopmentObjectAction.java:61)
at com.tssap.selena.model.extension.action.SelenaActionCollector$GenericElementActionWrapper.run(SelenaActionCollector.java:224)
at com.tssap.util.ui.menu.MenuFactory$MuSiAction.saveRunAction(MenuFactory.java:1425)
at com.tssap.util.ui.menu.MenuFactory$MuSiAction.run(MenuFactory.java:1407)
at com.tssap.util.ui.menu.MenuFactory$DelegateAction.processInternal(MenuFactory.java:616)
at com.tssap.util.ui.menu.MenuFactory$DelegateAction.access$100(MenuFactory.java:586)
at com.tssap.util.ui.menu.MenuFactory$DelegateAction$BusyProcessWorker.run(MenuFactory.java:716)
at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator.java:69)
at com.tssap.util.ui.menu.MenuFactory$DelegateAction.process(MenuFactory.java:610)
at com.tssap.util.ui.menu.internal.MenuListenerFactory$ProcessAdapter.widgetSelected(MenuListenerFactory.java:172)
at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:89)
at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:81)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:840)
at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:2022)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:1729)
at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:1402)
at org.eclipse.ui.internal.Workbench.run(Workbench.java:1385)
at com.tssap.util.startup.WBLauncher.run(WBLauncher.java:79)
at org.eclipse.core.internal.boot.InternalBootLoader.run(InternalBootLoader.java:858)
at org.eclipse.core.boot.BootLoader.run(BootLoader.java:461)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at com.sap.ide.eclipse.startup.Main.basicRun(Main.java:291)
at com.sap.ide.eclipse.startup.Main.run(Main.java:789)
at com.sap.ide.eclipse.startup.Main.main(Main.java:607)
Caused by: com.sap.mw.jco.JCO$Exception: (102) RFC_ERROR_COMMUNICATION: SAP_CMINIT3 : rc=20 > Connect to SAP gateway failed
Connect_PM GWHOST=test833, GWSERV=sapgw00, ASHOST=test833, SYSNR=00
LOCATION CPIC (TCP/IP) on local host
ERROR partner not reached (host 10.3.82.177, service 3300)
TIME Fri Jun 29 08:54:18 2007
RELEASE 640
COMPONENT NI (network interface)
VERSION 37
RC -10
MODULE nixxi_r.cpp
LINE 8715
DETAIL NiPConnect2
SYSTEM CALL SiPeekPendConn
ERRNO 10061
ERRNO TEXT WSAECONNREFUSED: Connection refused
COUN
at com.sap.mw.jco.rfc.MiddlewareRFC$Client.nativeConnect(Native Method)
at com.sap.mw.jco.rfc.MiddlewareRFC$Client.connect(MiddlewareRFC.java:1125)
at com.sap.mw.jco.JCO$Client.connect(JCO.java:3138)
at com.sap.ide.jcb.core.service.connection.internal.ConnectionManager.connect(ConnectionManager.java:216)[/code]
Can someone tell me problem..
Thanks in advance,
VineethIn service file if entry is not there... give the enty like
<b>sapgw<Inst.No> 33<Inst.No>/tcp
sapgw<Inst.No>s 48<Inst.No>/tcp</b>
where <Inst.No> = System Number of your R/3 system(00 or 01...)
In host file....
ip of the server name of the server.... -
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. -
Importing parameters in Function Module SD_VBFA_ARRAY_READ_VBELV
Hi All,
Please let me know the use of importing parameters in the Function Module SD_VBFA_ARRAY_READ_VBELV.
The importing parameters are,
I_BYPASSING_BUFFER
I_REFRESH_BUFFER
I'm having problem of memory overflow in the function module so I thought these importing parameters may help me.
Kindly explainn me the use of these importing parameters and tell me whether they help m out to avoid memory overflow problem.
Thanks a lot in advance,
Rama KrishnaHello Rama
If you bypass the buffer the fm will always read directly from the DB.
And if you refresh the buffer the buffer is cleared and will be filled again with every call of the fm.
Regards
Uwe -
Selection for up to 3 import parameters
Hi,
I am creating a FM for a BAPI that has to select data based on the following prerequisites:
2 tables are to be used:
table_h:
salesman_no key BusinessPartner
record last changed DATS
table_i
Salesman_no key BusinessPartner
ProductID
ProductPrice
A bapi has to be generated from a FM that has these import parameters:
I_Salesman_no1
I_Salesman_no2
I_Salesman_no3
The user who requests the data can ask for 1 to 3, but at least 1. That gives the 3 possible combination of searched:
Salesman_no1 only (mandatory for search)
Salesman_no1 and Salesman_no2
Salesman_no1 and Salesman_no2 and Salesman_no3
The search has to find productprices for either 1, 2 or 3 salesmen and return the data to an output table within the FM.
What puzzles me is: How to handle the various numbers of import parameters / selections in the source code for the FM ?You can create a range and fillup the values in the range and use that range in the selection.
Like:
DATA: R_KUNNR TYPE RANGE OF KNA1-KUNNR,
LA_KUNNR LIKE LINE OF R_KUNNR.
IF I_IMPORT_1 IS NOT INITIAL.
LA_KUNNR-SIGN = 'I'.
LA_KUNNR-OPTION = 'EQ'
LA_KUNNR-LOW = I_IMPORT_1.
APPEND LA_KUNNR TO R_KUNNR.
CLEAR LA_KUNNR.
ENDIF.
IF I_IMPORT_2 IS NOT INITIAL.
LA_KUNNR-SIGN = 'I'.
LA_KUNNR-OPTION = 'EQ'
LA_KUNNR-LOW = I_IMPORT_2.
APPEND LA_KUNNR TO R_KUNNR.
CLEAR LA_KUNNR.
ENDIF.
IF I_IMPORT_3 IS NOT INITIAL.
LA_KUNNR-SIGN = 'I'.
LA_KUNNR-OPTION = 'EQ'
LA_KUNNR-LOW = I_IMPORT_3.
APPEND LA_KUNNR TO R_KUNNR.
CLEAR LA_KUNNR.
ENDIF.
SELECT KUNNR
INTO IT_KNA1
FROM KNA1
WHERE KUNNR IN R_KUNNR.
Regards,
Naimesh Patel
Maybe you are looking for
-
How do I sync my tab groups onto another computer?
I have many tab groups and many tabs within each one. I want to copy or sync the tab groups onto a second computer. Can this be done on a Mac? If so, how?
-
How do I get the opacity slider to appear in iPhoto?
How do I get the opacity slider to appear in iPhoto on a page in book?
-
Hello. I need using POD (Proof of delivery), but when the customer confirm below quantity than delivery, i have a problem in cost because the good movement impute for all quantity in the same cost center but i need to impute in others cost center th
-
Not able to deploy windows kernel driver on target machine from visual studio
I have created windows kernel driver, and signed it with production certificate. Now I could install this driver on my target machine manually(copying inf, cat and sys). I want to make use of the visual studio 2013's deployment facility to deploy th
-
Connecting iPhone through USB hub
I have a weird problem. When I connect the iPhone through a USB hub, nothing happens. It doesn't synchronize, it doesn't charge. When I connect the iPhone directly to the computer, with the same cable, it works as supposed. The weird thing is, I have