CALL 2 RFCS FROM ONE SYSTEM...
One of my function module FUNCTION_Y on the system Y is calling a RFC FUNCTION_X to a system X. Once the call is over. it returns to the system Y data needed to generate a program, Function module FUNCTION_Y generates then the program within the one it calls an RFC to the same system X
The problem is that it prompt the user twice for a user and a password. And as between the two calls there is no user dialog. The user does not notice that he is prompt a second time for his user and pass...
If you have any suggestions? How can I may be do so the user is only asked once ? Maybe can I retain User and password and then call a function module to create the connection ?
Thank you
Hi Stephen,
I assumed you know that you can control in SM59 the login id and password of you RFC destination system. Your requirement is to prompt user login for the first RFC call but not the second.
If this is the case, you might want to create another RFC destination for the same system you are having. In the second RFC destination, populate the user id and password. Then in your program, the first RFC call, you use the first RFC destination which prompted you for id and password. For the second RFC call, use the second RFC destination.
Similar Messages
-
How to call RFC from external System to get HR Data
According to the requirement the "HR" Workflow has to be able to view the employee details from external system Using the standard Microsoft connectors.
So, my job is to create an RFC where i need to fetch the HR data from the infotypes P0001 and P0002. And they will call this RFC by requesting employees surname, ID number and/or Employee number.
Do i need to simply write OPEN SQL statements in RFC or
do i need to call any BAPI's?
Setting up RFC's(Creation of Destinations) is not our job.
Someone Please help me in this regard with some valuable input. Thanks in Advance.
Ram.Hi Ram,
to get the information from HR sytem you could call the BAPI
BAPI_EMPLOYEE_GETDATA
Regards
Bernd -
Export or transport all the RFC destination from one system to another syst
Hi
Is there any method to Export or transport all the RFC destination from one system to another systemHi,
the information is stored in table rfcdes.But there are also some other RFC*-tables which have some relations. Nevertheless the RFC-connectons will possibly not work anymore in the new system(depending on the release your systems are), as the passwords are stored in the Sec store with system-dependent keys.
b.rgds, Bernhard -
Can anyone give me step by step for calling FM from one SAP to another SAP
can anyone give me step by step for calling FM from one SAP to another SAP
points will be rewarded,
thank you,
Regards,
Jagrut BharatKumar Shukla*& Report RFC_FOR_CUSTOMER_LIST
*& RFC to a Fn. module from another system which implements BAPI
REPORT rfc_for_customer_list.
DATA:
fl_status TYPE i.
DATA:
fs_message TYPE bapiret2.
DATA:
BEGIN OF fs_customers,
id TYPE s_customer,
name TYPE s_custname,
END OF fs_customers.
DATA:
t_customers LIKE
STANDARD TABLE
OF fs_customers.
CALL FUNCTION 'Z_BAPI_GET_CUSTOMER_LIST' DESTINATION 'R3N'
IMPORTING
return = fs_message
TABLES
customerlist = t_customers.
IF sy-subrc EQ 0.
fl_status = 1.
LOOP AT t_customers INTO fs_customers.
WRITE:
/10 fs_customers-id,
30 fs_customers-name.
AT LAST.
WRITE:
/,/5 'No of customers in R3N = ', sy-tabix.
ENDAT.
ENDLOOP.
ELSE.
MESSAGE 'RFC failed' TYPE 'S'.
EXIT.
ENDIF.
TOP-OF-PAGE EVENT *
TOP-OF-PAGE.
IF fl_status NE 0.
WRITE:
/12 'ID' COLOR 6,
32 'NAME' COLOR 6.
SKIP.
ENDIF.
This is one small example...
Regards,
Pavan -
Call RFC from DELPHI Windows Services Program
Hi all,
Are there any way to call RFC from DELPHI Windows Services Program?
Best regards.
Munur EBCIOGLUHi again Bhagat,
1. Yes, it's included on 7.4 ABAP Stack (SAP NetWeaver 7.4 SP8 - Optimized for SAP HANA, Cloud and Mobile - Service Release 2 available now!). In a recent customer, SAP licences GW by user but there are other license model like session licensing: https://store.sap.com/sap/cp/ui/resources/store/html/SolutionDetails.html?pid=0000009470&catID=&pcntry=US&sap-language=EN&_cp_id=id-1385059687642-0
2. You could install as an AddOn on your 7.3 system, there are many options depending on your desired infrastructure: SAP Gateway deployment options in a nutshell For example our customer have deployed Central Hub Gateway in a standalone stack ABAP to act as an standalone oData bridge between ABAP/nonAbap systems.
3. You could deploy SAPUI5 apps in 7.x, Java Web Servers or HTTP Web Servers. You must consider your SSO scenario:
- SSO Logon Tickets. You will need to configurate SSO Logon Tickets between SAP NW Portal & SAP NW Gateway & your backend (ECC, etc). In order to pass SAP session cookie you will need setup SAP Web Dispacther and access portal & gateway throught SAP WD with the same domain.
- SAML2 Tickets. This scenario lets you provide portal & gateway on different domains enabling SSO. You could configure SAP NW Portal as an Identity Provider and other systems must trust SAP Portal as IdP.
Cheers -
Getting error in file transfer from one system to another system
Hi All
One of my client (User) wants to transfer his file from SAP R/3 System SAP XI system. He is using a customize t-code ZFIR0325 (Trial balance report transfer to Hyperian System). When user execute the program he is getting error "File Transfer Failed due to Network chk with Admin"
I checked with Network team but they said it is okay from their side. We also check for authorization but there is no issue regarding authorization.
Name of File Path of Aplication Server, XI destinaion and XI directory entered by user is correct.
We also put authorization trace in XI System to RFC User (In file transfer from one system to another system this RFC User is geeing Used) but no authorization issue was found.
Please help me to resolve this problem. I any detail require I will provide the same.Guruprasad Wrote:
He is using a customize t-code ZFIR0325 (Trial balance report transfer to Hyperian System).
We also put authorization trace in XI System to RFC User (In file transfer from one system to another system this RFC User is geeing Used) but no authorization issue was found.
Firstly, no one in the community can answer on how a custom transcation code and a program associated with it behaves.
If there are no authorization issues in the system, you have to look at the exact error message. Look if your XI system is allowed to receive files from the SAP system.
Unfortunately, you should do some more home work before putting your question here. If everything is fine and configured correctly, then the issue might be with the program.
Regards,
Raghu -
Send PO from one system and create a SO in another system
Hello Gurus
ii am learning ALE IDOC and would like to do a complete hands on practice. I have been doing some basic scenarios and so far i am progressing well.
What i am planning to do:
Now i would like to do an end to end scenairo of sending a PO idoc from one system and this should create a SO in the other system.
Steps i am planning to do:
1). Configure the sending system for a outbound PO idoc
2). Configure the receiving system for a Inbound SO idoc
3). Maintain VOE2(EDPAR) and VOE4(EDSDC) tables for partner information and organization information respectively.
Questions:
1). Am i missing any steps?
2). I am confused on what to maintain in VOE2 and VOE4. Which information of PO should i maintin in VOE2 and VOE4 in the receiving system?
~SureshHi Suresh,
this might be of some help.
ALE IDOC
Sending System(Outbound ALE Process)
Tcode SALE - for
a) Define Logical System
b) Assign Client to Logical System
Tcode SM59-RFC Destination
Tcode BD64 - Create Model View
Tcode BD82 - Generate partner Profiles & Create Ports
Tcode BD64 - Distribute the Model view
Message Type MATMAS
Tcode BD10 - Send Material Data
Tcode WE05 - Idoc List for watching any Errors
Receiving System(Inbound ALE )
Tcode SALE - for
a) Define Logical System
b) Assign Client to Logical System
Tcode SM59-RFC Destination
Tcode BD64 - Check for Model view whether it has distributed or not
Tcode BD82 -- Generate partner Profiles & Create Ports
Tcode BD11 Getting Material Data
Tcode WE05 - Idoc List for inbound status codes
ALE IDOC Steps
Sending System(Outbound ALE Process)
Tcode SALE ?3 for
a) Define Logical System
b) Assign Client to Logical System
Tcode SM59-RFC Destination
Tcode BD64 - Create Model View
Tcode BD82 - Generate partner Profiles & Create Ports
Tcode BD64 - Distribute the Model view
This is Receiving system Settings
Receiving System(Inbound ALE )
Tcode SALE - for
a) Define Logical System
b) Assign Client to Logical System
Tcode SM59-RFC Destination
Tcode BD64 - Check for Model view whether it has distributed or not
Tcode BD82 -- Generate partner Profiles & Create Ports
Tcode BD11 Getting Material Data
Tcode WE05 - Idoc List for inbound status codes
Message Type MATMAS
Tcode BD10 - Send Material Data
Tcode WE05 - Idoc List for watching any Errors
1)a Goto Tcode SALE
Click on Sending & Receiving Systems-->Select Logical Systems
Here Define Logical Systems---> Click on Execute Button
go for new entries
1) System Name : ERP000
Description : Sending System
2) System Name : ERP800
Description : Receiving System
press Enter & Save
it will ask Request
if you want new request create new Request orpress continue for transfering the objects
B) goto Tcode SALE
Select Assign Client to Logical Systems-->Execute
000--> Double click on this
Give the following Information
Client : ERP 000
City :
Logical System
Currency
Client role
Save this Data
Step 2) For RFC Creation
Goto Tcode SM59-->Select R/3 Connects
Click on Create Button
RFC Destination Name should be same as partner's logical system name and case sensitive to create the ports automatically while generating the partner profiles
give the information for required fields
RFC Destination : ERP800
Connection type: 3
Description
Target Host : ERP000
System No:000
lan : EN
Client : 800
User : Login User Name
Password:
save this & Test it & RemortLogin
3)
Goto Tcode BD64 -- click on Change mode button
click on create moduleview
short text : xxxxxxxxxxxxxx
Technical Neme : MODEL_ALV
save this & Press ok
select your just created modelview Name :'MODEL_ALV'.
goto add message type
Model Name : MODEL_ALV
sender : ERP000
Receiver : ERP800
Message type :MATMAS
save & Press Enter
4) Goto Tcode BD82
Give Model View : MODEL_ALV
Partner system : ERP800
execute this by press F8 Button
it will gives you sending system port No :A000000015(Like)
5) Goto Tcode BD64
seelct the modelview
goto >edit>modelview-->distribute
press ok & Press enter
6)goto Tcode : BD10 for Material sending
Material : mat_001
Message Type : MATMAS
Logical System : ERP800
and Execute
7)goto Tcode : BD11 for Material Receiving
Material : mat_001
Message Type : MATMAS
and Execute --> 1 request idoc created for message type Matmas
press enter
Here Master Idoc set for Messge type MATMAS-->press Enter
1 Communication Idoc generated for Message Type
this is your IDOC
Change Pointers
I know how to change the description of a material using ALE Change Pointers.
I will give the following few steps
1) Tcode BD61---> check the change pointers activated check box
save and goback.
2) Tcode BD50---> check the MATMAS check box save and comeback.
3) Tcode BD51---> goto IDOC_INPUT_MATMAS01 select the checkbox save and comeback.
4) Tcode BD52---> give message type : matmas press ok button.
select all what ever you want and delete remaining fields.
save & come back.
5) 5) go to Tcode MM02 select one material and try to change the description and save it
it will effects the target systems material desciption will also changes
6) goto Tcode SE38 give program Name is : RBDMIDOC and Execute
give Message type : MATMAS and Executte
ALE/IDOC Status Codes/Messages
01 Error --> Idoc Added
30 Error --> Idoc ready for dispatch(ALE Service)
then goto SE38 --> Execute the Program RBDMIDOC
29 Error --> ALE Service Layer
then goto SE38 --> Execute the Program RSEOUT00
03 Error --> Data Passed to Port ok
then goto SE38 --> Execute the Program RBDMOIND
12 Error --> Dispatch ok
Inbound Status Codes
50 Error --> It will go for ALE Service Layer
56 Error --> Idoc with Errors added
51 Error --> Application Document not posted
65 Error --> Error in ALE Service Layer
for 51 or 56 Errors do the following steps
goto WE19 > give the IDOC Number and Execute>
Press on Inbound function Module
for 65 Error --> goto SE38 --> Execute the Program RBDAPP01 then your getting 51 Error
kindly reward if helpful.
cheers,
Hema. -
Calling RFC from custom connector
Hi,
I am developing a custom connector for UWL to get tasks from 3rd party system.
I need to call a RFC from backend SAP system to complete Input data for this 3rd party provider.
I assume that I have to make an RFC call from getItems() method of connector.
Any idea how to call a RFC from UWL custom connector code?
Please help.
Thanks & Regards,
AmeyHello Karri,
Yes, I am aware of two ways of calling RFCs from Java code.
Normally, I use following approach to call RFCs from my other Portal Components (JSPDynpages): -
IPortalComponentRequest request = (IPortalComponentRequest) this.getRequest();
IPortalComponentContext myContext = request.getComponentContext();
IPortalComponentProfile myProfile = myContext.getProfile();
String sapSystem = myProfile.getProperty("SystemIdentifier");
ISystemLandscapeWrapper landscapeWrapper = (ISystemLandscapeWrapper) UMFactory.getSystemLandscapeWrappers().get(0);
ISystemLandscapeObject systemLandscapeObject = landscapeWrapper.getSystemByAlias(sapSystem);
IJCOClientService clientService = (IJCOClientService) PortalRuntime.
getRuntimeResources().getService(JCO_CLIENT);
request.getNode().putValue(LOCALE_NODE_KEY, Locale.ENGLISH);
IJCOClientPoolEntry poolEntry = clientService.getJCOClientPoolEntry(sapSystem,request);
JCO.Client client = poolEntry.getJCOClient();
client.connect();
IRepository repository = JCO.createRepository("repository", client);
IFunctionTemplate functionTemplate = repository.getFunctionTemplate(Z_BAPI_EMP_GBU_GET);
JCO.Function function = new JCO.Function(functionTemplate);
JCO.ParameterList importList = function.getImportParameterList();
importList.setValue("US", "OBJTYP");
importList.setValue(request.getUser().getUniqueName(), "USRID");
client.execute(function);
JCO.ParameterList outputList = function.getExportParameterList();
gbuCountryBean.setGbu(outputList.getString("GBU"));
gbuCountryBean.setCountry(outputList.getString("COUNTRYCODE"));
gbuCountryBean.setPersArea(outputList.getString("PERS_AREA"));
gbuCountryBean.setCompanyCode(outputList.getString("COMPANYCODE"));
When I tried implementing same in UWL custom connector, I am not able to get instance of 'request' object.
Any hints/ideas on this?
Hence as an temporary alternative, I wrote following to successfully execute RFC.
mConnection = JCO.createClient(sapclient, sapuser,
sappassword, "EN", saphost, sapsysnumber);
mConnection.connect();
mRepository = new JCO.Repository("GetLeaveRequestFlag", mConnection );
IFunctionTemplate ftemplate = mRepository.getFunctionTemplate(Z_BAPI_CHECK_LR_TO_APPROVE);
myFunction = new JCO.Function(ftemplate);
JCO.Field OBJECT_TYPE = myFunction.getImportParameterList().getField("OBJECT_TYPE");
OBJECT_TYPE.setValue("US");
JCO.Field USERID = myFunction.getImportParameterList().getField("USERID");
OBJECT_TYPE.setValue(p_userID);
mConnection.execute(myFunction);
JCO.Field leaveRequestFlag = myFunction.getExportParameterList().getField("FLAG_LEAVE_REQUEST_RECORD");
mConnection.disconnect();
But only catch here is that I need to create & maintain SAP logon credentials for a particular user manually.
It is not possible to single sign on connector user into SAP system (like its done above).
Any thoughts on this?
Thanks & Regards,
Amey -
Customer master data updation from one system to another system
HI Experts,
I have an issue with customer master data updation from one system to another system. And here only one field is not updating properly from one system to another system. and we found this is through idoc , but we don't find field in any segment.
and the field is called ADDR1_DATA-HOME_CITY.
and this will displayed as different city in address column.
but as per the notes given in help , it is by program , form through only passing. but not able to trace and as per my analysis ADRC table , ADRNR had this field HOME CITY.
And this is for some customers updating wrong one from one system to another system , and for some customers field itself not updating in address column.
please can you suggest any one. here are screenshot for your reference.that is not enough, it was enough in times before 40b release, but this was in the last century
Please read OSS note 384462 - Master data and addresses
it explains what you have to do for ALE -
How to transfer data from one system to another by datamart please give de
how to transfer data from one system to another by datamart please give details
Hi Deba,
Find the below SAP help doc which may help u...
http://help.sap.com/saphelp_nw70/helpdata/en/12/43074208ae2a38e10000000a1550b0/frameset.htm
Also find the below threads...
Loading data from one cube to another cube.
data copy from infocube to infocube in two different BW systems
Delta when loading from ODS to ODS
reg datamart
Data mart flag
Regards,
KK. -
Migration of Work Items from one system to another
Dear Experts,
We are migrating an application from one system to other and it involves BI, Webdynpro, BSP and workflow. This is mainly a portal application which involves BI as the backend. While migrating the application with the existing data we also require to migrate the open Work items of the Users.
Can anyone help us in migrating the Work Items or the possibilities of doing the same.
Useful suggestions will be appreciated.
Thanks,
Prabhakar MHi All,
Am opening this thread again.
Using Transaction SWW_SARA I have Archived the Completed and Cancelled workitems in one Production system(For Ref, P1) and it got stored as a File in the Application Server.
But while I tried to view the archived workitems via the same Transaction I can see only the header of the Workitem and not the detailed information of the same.
Is this the only method to view the archived Workitem or any other way is available to view the detailed Information. Also is it possible to transfer the archived file to another Production system and view the workitems?
Please help me in finding the solution for above scenario.
Regards,
Prabhakar -
How to call RFC from Power Builder
Hi,
I am using Power Builder Tools and I want to know how can i call RFC from Power Builder
Thanks for ur replyHi,
Although I have not worked with Powerbuilder, I am sure if you have a certain level of proficiency with it, you will be able to code your logic that will call your wrappers written in VB/C/.NET etc. Check out the wonderful weblog by Thomas Jung on integrating ActiveX controls with ABAP Control Framework at https://www.sdn.sap.com/sdn/weblogs.sdn?blog=/pub/wlg/995. [original link is broken] [original link is broken] [original link is broken] [original link is broken] [original link is broken] [original link is broken] [original link is broken] [original link is broken] [original link is broken]
Do get back if you have further queries.
Regards
Message was edited by: Shehryar Khan -
Brachive takes long time to copy from one system to another
HI TO ALL,
I AM USING IBM BLADE SERVER AND CONNET TO SAN WHEN I SHEDULE BRARCIVE / BRBACKUP ON ANOTHER SERVER (ANY SERVER ) IT TAKES LONG TIME TO COPY ARCHIVE FROM ONE SYSTEM TO OTHER SYSTEM.
I AM USING DB ORACLE 9i and SAP 4.7 EXT 1.1
REGARDS,
VIKAS NAGAR- how big are the files you copy?
- are both machines connected in the same network segment?
Markus -
Manual transfering of Report Painter from one system to other
Hi!
I need to do manual transfering of Report Painter from one system to other.
No transport request is available, that is why it is manual transfering.
How to do it?
For example I have this information:
Object file name: <b>Y_P04_99000009</b>
Object description: <b>"Report Painter LEI-411 (library 8A2)"</b>
Will reward,
MindaugasI hope you can export from one client and import to other client.
Already Ferry Mentioned GR22 Transaction.
Use GR22->utilities -> export ( Keep it as one .txt file)
Login into other system ,
Use GR22 -> Utilities->Import ( Use .txt file here)
Thanks
Seshu -
Transport system objects i.e. contents of table t100 from one system to ano
hello all,
how do i transport contents of table t100 from one system to another...
tried creating a transport request... but when i got an error when used r3tr tabu t100... i got a pop up saying
"System objects cannot be transported directly"
know abt restore... any other way of doing it...
Regards, JatinHello all,
Thanks for the support so far...
to clarify the problem in more detail...
when i add R3TR TABU T100... and hit enter... i get the error message at the bottom of the screen...
" System objects cannot be transported directly (e.g. T100, TRDIR, TFDIR..) "
When i double click the error message, i get a pop up, detailing the "KINDS" of tables which cannot be
transported. (like in my case is t100)...
The only help which i get at the bottom of the popup is...
"Direct transport of these table entries is only allowed for special tools, such as the client copy program."
Any other way of doin it...
Regards, Jatin
Maybe you are looking for
-
How to update a register in an ODS and in a cube
Hi: I have a regsiter in my ODS, but when his status change in r/3 i have to update the register. When i load the delta it send's me a mistake that i have duplicate registers. How can I avoid thsi mistake instead to update the status, and how do i ma
-
Can't install 3.0 from Cool Edit 2k
I've been with this program ever since Adobe bought Cool Edit 2000 and renamed it Audition. Adobe offered CE2k registered users a special upgrade price so I paid the fee and received in the mail Audition 1.0 on a CD and a nice thick, real user manua
-
Adobe LiveCycle ES4 add new and update Access Database, Non-Null failure
I am using adobe livecycle es4 and I am trying to add a new record and then update it to an Access database. However, when i press update the error tells me that i cannot have Null values and it displays a check box field name. How can i allow a null
-
I have been investigating the ADF Faces components, and some of them write a fairly substantial block of HTML to the browser. The inputText, for example, renders an HTML table containing, among other things, an input, required field indicator, and a
-
Hello to all and thankyou in advance for any help with this. This is my first time visiting this forum and I hope posting a question like this is acceptable behaviour. I am preparing my first website and I can not get the rollovers to load for the so