Debugging ECC FM called via RFC
Hello experts,
From a CRM Function Module, we are trying to invoke a custom ECC FM. On debugging, the flow does not go to the ECC module for debugging (although it returns the values). We tried several options like adding RFC param in su01, Activate Remote Debugging in ECC, sm51, sm50 etc. But none of this helps.
Any suggestions on debugging would be most welcome.
Regards,
Nisha
You can follow these steps to indirectly debug your ECC FM.
1) Put an infinite loop in your ECC FM, say
DATA TEMP.
DO.
IF TEMP = 'X'.
EXIT.
ENDIF.
ENDDO.
2) Execute your CRM FM in which your ECC FM is being called.
3) Go to ECC, Transaction SM50 (Process Overview). You will see your FM's entry. Select your FM's entry then from the menu select Program/Session>Program>Debugging. This will open your ECC FM in debug mode. Put value of TEMP as 'X' and continue debugging.
Similar Messages
-
How to Debug Functional Module called via RFC?
Hi Experts,
Please, can someone explain to me how to debug functional module that is called via RFC? Thanks in advance.
Best Regards,
AleksandarHi Laxman,
First of all thank you very much for giving attention to my post. Ok, I am trying to debug function module in RM-CA (FICA), function module is called by CRM system (via RFC) and in addition all this chain is triggered by WebClient.
I have user that can login on the CRM as well as on RM-CA (ECC 6.0) system, but those users are different (unfortunately I do not have administration permission so I cant change profiles of my users but I can ask for it). I can without any problem debug calls that come from WebClient, so setting an external break point in CRM system I can catch whatever I want but when process comes to point where actually call to back-end (RM-CA) takes place I simply cant get into functional module, that resides on RM-CA side. Actually what happens is that processing continues as was chosen NEXT STEP (F6).
To resume, two systems and two different users. Where XCM user should be created? (on RM-CA system or CRM). Should I change something in Menu option Utilities -> Settings -> ABAP Editor tab -> Debugging tab, in field users? If you need any additional info please tell me.
Thanks again for your support.
Aleksandar -
Hi guys,
I have implemented a FM that calls a SAPscript and generates it in the application server.
when i execute it it creates the pdf correctly and no previsualizing pop_up window is shown because i have edited the itcpo table parameters correctly.
I have also implemented another FM which calls the first one ( those FM are on different systems and are called via RFC ), but now the pop_up windows is being displayed, instead the parameters of the itcpo are the same.
Any help
Best regards
Jon
Edited by: Jon Azkorra Olano on Jun 14, 2010 3:33 PMYou can find it by seeing the SUBMIT statement of the program..
SUBMIT <PROG> .. via <RFC Destination>
It indicates that we are calling that program through RFC...
Reward if helpful.... -
Hi all.
I am currently starting with WDA and facing some problems in calling BAPI via RFC.
We have a "plain" WAS without SD or other modules. Our data is distributed over multiple R/3 systems.
When I try to implement a Service Call to the BAPI BAPI_CUSTOMER_GETLIST via RFC I got the error message that this FM is not available in the current system (WAS).
Does anyone has experience in how to get this working?
What is the best practice here?
- Building wrapper on WAS which calls the FM via RFC on the other system?
- Installing missing modules on WAS ?
Any comment would be appreciated.
Cheers,
SaschaHi again.
To shorten development time we considered the following solution:
We are generating web service proxy classes on the WAS for the BAPIs of the R/3 system we want to use. Afterwards we are generating wrapper function modules which will use these proxies. So we do not have to import all missing structrues cause these are generated automatically during proxy generation.
I tested this already with BAPI_CUSTOMER_GETDETAIL2. Calling the wrapping fm which calls the service proxy works fine from se80. I do get a result via the service.
Then i generated a service call for my WEBDynpro component using the wizard in WDA.
Silly is that the generated code is not compilable cause of missing ,. Anyway after correcting I tried to run my webdynpro application and when the fm gets called via the generated service method I receive the following message:
CODE SOAP:111
ERRORTEXT Unallowed RFC-XML Tag (SOAP_EINVALDOC)
Any ideas?
Why is it working when i call the fm directly but not when calling it from my webdynpro app?
Thanks in advance
Sascha
Message was edited by: Sascha Dingeldey
Message was edited by: Sascha Dingeldey -
hi,
how to find out that a program is called directly i.e within the system <b>or</b> from an external system via <b>RFC</b>? Is there any function module or any other method to find out ?
thanks in advance.You can find it by seeing the SUBMIT statement of the program..
SUBMIT <PROG> .. via <RFC Destination>
It indicates that we are calling that program through RFC...
Reward if helpful.... -
Jobs not getting Scheduled when it is called from RFC
Hi Everyone,
I have Functional module in system1 which in turn creates a background Job, but when i call this Function module from System2 using RFC then the background job is not created. THought i debugged and the Function module on system1 is called successfully with right input parameters. M i missing anything ? Please advice
Regards,
Nikesh KumarHi Chen,
Thanks for the reply. Actually the main problem is not with how the Background job is getting executed. Actually my function module schedules are job in system1 , but if the same func module is called via RFC from other system, it gets called successfully with same inputs (checked in debugging), but the background job does not get created.
Regards,
Nikesh Kumar -
Ignoring MESSAGE while running via RFC
Hello everybody,
when I start a FM (or what ever) it will display an MESSAGE (Type: I) as Information. The User must quit the message, than the function goes to the end.
When I call this FM via RFC (from an other SAP) the MESSAGE would not display an the function goes automatically to the end.
How can I reach that the MESSAGE would be display by calling via RFC.
Thanks.
ThomasHi,
I dont think it is possible to display a message in RFC.
Messages are popped in the current system in RFC the system is changed
Sameena
Message was edited by: sameena attarwala -
Character conversion problems when calling FM via RFC from Unicode ECC 6.0?
Hi all,
I faced a Cyrillic character convertion problem while calling an RFC function from R/3 ECC 6.0 (initialized as Unicode system - c.p. 4103). My target system is R/3 4.6C with default c.p. 1500.
The parameter I used in my FM interface in target system is of type CHAR10 (single-byte, obviously).
I have defined rfc-connection (SM59) as an ABAP connection and further client/logon language/user/password are supplied.
The problem I faced is, that Cyrillic symbols are transferred as '#' in the target system ('#' is set as default symbol in RFC-destination definition in case character convertion error is met).
Checking convertions between c.p. 4103 and target c.p. 1500 in my source system using tools of transaction i18n shows no errors - means conversion passed O.K. It seems default character conversion executed by source system whithin the scope of RFC-destination definition is doing something wrong.
Further, I played with MDMP & Unicode settings whithin the RFC-destination definition with no successful result - perhaps due to lack of documentation for how to set and manage these parameters.
The question is: have someone any experience with any conversion between Unicode and non-Unicide systems via RFC-call (non-English target obligatory !!!), or can anyone share valuable information regarding this issue - what should be managed in the RFC-destination in order to get character conversion working? Is it acceptable to use any character parameter in the target function module interface at all?
Many thanks in advance.
Regards,
Ivaylo Mutafchiev
Senior SAP ABAP Consultanthey,
I had a similar experience. I was interfacing between 4.6 (RFC), PI and ECC 6.0 (ABAP Proxy). When data was passed from ECC to 4.6, RFC received them incorrectly. So i had to send trimmed strings from ECC and receive them as strings in RFC (esp for CURR and QUAN fields). Also the receiver communication channel in PI (between PI and RFC) had to be set as Non unicode. This helped a bit. But still I am getting 2 issues, truncation of values and some additional digits !! But the above changes resolved unwanted characters problem like "<" and "#". You can find a related post in my id. Hope this info helps.. -
Hello people,
How can I call a static method via RFC?
I am in SRM and would like to call a static method defined in ECC.
What is necessary to be configured in this class/method?
Thanks!!!You may need to write RFC in ECC and call it from SRM
and write following code in RFC for call a static method
reference_obj=>method_name
EXPORTING
a® -
JCO RFC Provider: "Bean not found" when calling EJB from ABAP via RFC
Hello,
I'm having trouble calling an EJB in a CE 7.1 system from ABAP via RFC. I'm trying to use the JCO RFC Provider service, which mean that I want to expose an EJB so that it can be called via Remote Function Call.
I have documented everything, including the code and the deployment descriptors I wrote, in this thread in the CE forum: Jco RFC Provider: Bean not found
If there's any chance you can help, please do me a favour and look into the problem.
Thanks a lot!
ThorstenHi Vladimir,
Thank you very much, your help was immensely valuable.
I just had to add the function declaration to the Home Component interface, everything else was correct, and now it works.
Cheers,
Thorsten -
Can TDMS Call a Custom Algorithm (via RFC) to Scramble a Value?
Hi,
Background: Our SAP is one of many systems in an integrated environment. We are looking at scrambling data across all systems for testing purposes. The implication is that if we scramble a field in a non-SAP system using a specific scrambling algorithm (provided by a non-SAP test data management tool) and that field also exists in the SAP system, then the same scrambling algorithm must be used in SAP as well.
Question: Does anyone know or have tried calling a low level scrambling algorithm (via RFC call) to scramble the value of a field? This scrambling algorithm is a C library routine. The vendor said they can wrap it into an RFC call.
Thank you in advance for any insights you can provide.
Luke Lau
IS Solutions Leader
Insurance Corporation of British ColumbiaAs far as I know calling an RFC from TDMS workbench is the same as calling an RFC from any abap program so as long as the destination is configured you shouldn't have any problems.
Check here:
http://help.sap.com/saphelp_nw04/helpdata/en/22/042537488911d189490000e829fbbd/content.htm
Bruno -
Hi All,
I'm trying to connect our SolMan development to the CEN. However when registering ccmsr within J2ee admin it gives the following errors.
Does anybody have an idea?
Output for : /usr/sap/DSM/SYS/exe/run/sapccmsr(-j2ee,-v,pf=/usr/sap/DSM/SYS/profile/DSM_DVEBMGS00_ijmdsm01)
CCMS version 20040229, 64 bit, multithreaded, Non-Unicode
compiled at Oct 28 2006 systemid 324 (IBM RS/6000 with AIX)
relno 7000
patch text patch collection 2006/4, OSS note 914721
patchno 83 intno 20050900
running on ijmdsm01 AIX 3 5 00C97C6E4C00
Logfile for : /usr/sap/DSM/SYS/exe/run/sapccmsr(-j2ee,-R,-f,/tmp/csm53771.conf,pf=/usr/sap/DSM/SYS/profile/DSM_DVEBMGS00_ijmdsm01) [Thr 01] Mon Mar 26 13:29:05 2007
INFO: CCMS agent sapccmsr working directory is /usr/sap/ccms/DSM_00/sapccmsr
INFO: CCMS agent sapccmsr config file is /usr/sap/ccms/DSM_00/sapccmsr/csmconf
INFO: Central Monitoring System is . (found in config file)
INFO: additional Central Monitoring System is . (found in config file)
INFO: found ini file /usr/sap/ccms/DSM_00/sapccmsr/sapccmsr.ini.
INFO: Checking Distributed Statistical Records Library dsrlib.o
INFO: checking version an Unicodeness of dsrlib.o
INFO: DSR: Dynamic Library dsrlib.o (version 22) successfully loaded.
INFO: DSR: Dynamic Library dsrlib successfully loaded.
INFO: DSR: Path /usr/sap/ccms/DSM_00/dsr for Distributed Statistical Records.
INFO: CCMS version 20040229, 64 bit, multithreaded, Non-Unicode compiled at Oct 28 2006 systemid 324 (IBM RS/6000 with AIX) relno 7000 patch text patch collection 2006/4, OSS note 914721 patchno 83 intno 20050900 running on ijmdsm01 AIX 3 5 00C97C6E4C00 pid 479452 profile /usr/sap/DSM/SYS/profile/DSM_DVEBMGS00_ijmdsm01
INFO: Attached to Shared Memory Key 73 (size 40000000), no pool used
INFO: Connected to Monitoring Segment segment status WARM_UP segment started at Thu Mar 22 08:58:40 2007 segment version 20040229
INFO: DSM:000:999999 connected to DSM, host ijmdsm01, System Nr. 00, traceflag
INFO: DSM release is 700 , (kernel release 700 )
ERROR: DSM:000:CSMREG calling SALS_MS_GET_LOCAL_MS_INFO via RFC failed, can not get version of DSM. RfcRc = 2, C_CALL_FAILED</b>
INFO: SLM:000:999999 connected to SLM, host rthuas50, System Nr. 10, traceflag
INFO: SLM release is 700 , (kernel release 700 )
INFO: SLM:000:CSMREG connected to SLM, host rthuas50, System Nr. 10, traceflag INFO: SLM release is 700 , (kernel release 700 ), CCMS version 20040229 INFO: RFC logon info for SLM:000:CSMREG can be updated at any time with -R option: sapccmsr -R INFO: Updated saprfc.ini in agent work directory /usr/sap/ccms/DSM_00/sapccmsr
ERROR: Registration failed: Can't get version of DSM. RfcRc = 2, C_CALL_FAILED RFC Error Info for SALS_MS_GET_LOCAL_MS_INFO message: status: EXCEPTION C_CALL_FAILED RAISED intstat: Mon Mar 26 13:29:10 2007 INFO: dsr: dsrlib unloaded.
...closing this logfile...
Registration of CCMS Customizing Destination
Error during registration of CCMS Customizing destination
Source system cannot be set to UnicodeHi,
Check these notes.
641339 - RZ20: CCMS monitoring context loses client assignment
558608 - Correction: Starting/stopping LDAP Connector via CCMS
827843 - Access Alert Analysis Methods that are Defined Locally
Feel free to revert back.
--Ragu -
Call to RFC via proxy...
I have a scenario where a Proxy is calling an RFC. My question is will the control return back to XI after the call or does it return after the complete processing of the RFC? Could someone please clarify?
hi siru,
if ur scenario is synch then xi wud call the rfc , the rfc will be executed and only after the execution is complete , xi will receive the result and send to the other system. thus the scenario "waits" for the rfc to execute. further processing in sender application is blocked.
while in asynch the scenario is complete as soon as xi calls the rfc. the applications here are loosely coupled.
if u r using BPM, many simultaneous branches can wrk and send/receive messages acc to the process design.
[reward if helpful]
regards,
latika. -
Calling Synchronous RFC Function Module in Background
Hi all,
Currently we are working on some requirement where in we have to retrieve data from one system(CRM) and update the same into another system(ECC). We have developed a RFC Function in CRM system and it is being called from ECC system as in synchronous mode via a batch program.
Now since all sychronous call to a RFC function will be dialog there is a constraint on the runtime which is being set by maximum run time for each dialog work process. So my question is there an option to call an RFC function synchronously in background (background task) so there is no runtime performance.
The standard TRFC, QRFC calls in background runs asynchronously and so I am trying to check with the SDN world as whether has anyone tried SRFC(Synchronous) call in background?
Thanks in advance,
JagathSo my question is there an option to call an RFC function synchronously in background (background task) so there is no runtime performance.
One solution would be to increase the value of the "time out" parameter defined the CRM system. This i feel is not a fool-proof solution as the run-times cannot be predicted. Check this thread: Re: RFC timeout profile parameter
For me a better solution would be to implement tRFC call instead of a synchronous call. Any reasons why you don't want to implement a tRFC ?
BR,
Suhas
Edited by: Suhas Saha on Jun 26, 2010 8:52 AM -
Whenever the material master is created in ECC RFCs are triggered and the data is transferred to GTS via RFCs
(no idocs are triggered)
Is there any way out to stop this transfer
how can can we know the mapping of what fields of ECC are mapped to which fields of the other system
please adviceHi,
let us say outbound is SAPLID server
and inbound is SAPLER server.
we need to following setting in order to generate idocs. You can see the generated IDOC in WE02 TCode.
Status code should be 03.
In SAPLID Server :
1. In the SALE transaction,
- Application Link Enabling (ALE) --> Sending and Receiving Systems --> Logical Sysems --> Define Logical Systems
- Click on 'New Entries'
- Enter 'Logical System' & 'Name'.
SAPLID Logical System for the server SAPLID
SAPLER Logical System for the server SAPLER
- Save it.
- Application Link Enabling (ALE) --> Sending and Receiving Systems --> Logical Sysems --> Assign Client to Logical System.
- Client : 800 Sending system
City : Hyderabad
Logical System : SAPLID
Std Currency : INR
client role : Demo
- Application Link Enabling (ALE) --> Sending and Receiving Systems --> Systems in Network --> Define Target Systems
for RFC calls.
- Select 'R/3 Connections' and click on 'Create' icon.
- RFC Destination : SAPLER
Connection type : 3
Descripiton : RFC for Destination Server SAPLER
Target host : SAPLER
System Number : 00
- Logon/Security
Language : EN
Client : 800
User : USER6
Password : RGSHYD
- Click on 'Test Connection'.
- Click on 'Remorte Logon'.
2. WE 81 Message type config (DEBMAS - Customer Master)
3. WE 30 Idoc type (DEBMAS06 - Customer Master data distribution)
4. WE 82 - Adding Message type to Idoc type.
DEBMAS ---> DEBMAS06
5. WE20 Partner Profile
Partner No : SAPLER
Par.Type : LS
Type : US
Agent : USER6
OUtbound Parameters :
Message type : DEBMAS
Receiver Port : Zbkpfport
Transfer Idoc Immediately
Basic type : DEBMAS06
6. BD64 MOdel View
- Select 'model view' and click on Create Model View.
- Technical Name : CUSTMODEL
- Place the cursor on 'CUSTMODEL' and click on 'Add message type'.
- Model View : CUSTMODEL
- Sender : SAPLID
- Receiver : SAPLER
- Message type : DEBMAS
- Save it
- Environment --> Generate Partner Profile
- Edit --> Modelview --> Distribute
7. XD01 Create Customer Master
- Create Customer Number : 0000000001
8. BD12 Sending Customer Data
- Customer : 0000000001
- OUtput type : DEBMAS
- Logical System : SAPLER
- Execute it
9. WE02 Idoc List
- Direction : 1
- Logical Message : DEBMAS
- Execute it.
in case if your IDOC is generated with errors (status would be red signal) get back me with status code.
Regards
Srikanth
Maybe you are looking for
-
Trex error: No embedded object found in document (Errorcode 14037)
Hi, we have following problem with our crawler: in the crawler 50 % of documents are returning the error "No embedded object found in document (Errorcode 14037)" and are not displayed in the trex monitor. All other documents are indexed correctly an
-
Why doesn't Wi-Fi turn OFF when USB Ethernet is connected?
When I get into the office, I connect my MacBook Air (2011/Lion) via USB Ethernet (we have Wi-Fi too). When connected through USB Ethernet, my Wi-Fi stays connected as well. Is it possible to have Wi-Fi turn off automatically when connected via USB E
-
Avoid popup dialog in smartforms
hi all, i'm facing a problem, i want to avoid popup dialog in smartforms. i have set structure SSFCTRLOP-no_dialog = 'X'. but it still show popup dialog. did i miss something?
-
DTD Creation using Java from XMLSchema
Dear Friends Can anybody solve my problem.See friends i have the Schema With the help of that schema i want to create DTD Using Java .If u peoples have any solution please forward me sample code or tell me where i can get the information.
-
Movement 201 consumption demand
HI all SAP Expert, I have a question about use movement 201. I create demand for some ROH material using strategy 10 in material master the aim is to planned demand for sales. this is no usal process. When I create demand for those ROH material the