Inbound RFC debugging

Hi All,
  I am using RFC for updating the table in the R/3 system. The tabel get updated in two steps.
1.In first scenario, I am using message split, one message is for file and other is for RFC. In this table gets updated correctly.
2. In one more scenario which is File to RFC in which i am calling same RFC for updating the table with some more data based on the condition.  XI it is showing successfull once the scenario is executed, but the table is not updated with the data.
But when I execute the RFC in the R/3 it is updating the fields based on the condition. How to trace the error.
I also following the Michal Blog for debugging.https:///people/michal.krawczyk2/blog/2006/01/17/xi-debugging-rfc-calls-from-the-xi-not-possible-who-said-that-
Is there any other way to solve the problem.
Regards
Prakash

Hi Prakash,
for analyzation I would modify the coding of the RFC. I would write the message snet into the LOG.
There are sample function modules where you can see how to write into the LOG.
The function modules are starting with BAL_LOG*
Use Se37 to find appropriate unction modules
Regards Mario

Similar Messages

  • Inbound RFC into ECC6.0

    Hi All,
       We have an inbound RFC from a C++ application into R/3.  Up until we upgraded our R/3 system to ECC6.0 the application was working fine.  After we upgraded to ECC6.0 we keep getting UserID/password incorrect.  I do understand the case-sensitiveness of the password in ECC6.0.  The issue I have is if the password on the R/3 system is changed to uppercase, the application is working fine.  However, if the password on the R/3 side is lower case, the application fails.  When I debug the code, the password is lowercase up until the RFC call.   I am not sure if we have to upgrade the RFC library or something. 
    Albert

    Is this RFC custom or standard?
    You should make sure that the domain behind that password field should allow lower case letters.
    Double click on the field it will take you to the data element , double click on the data element it will take you to the domain.
    Check the attribute  "Lowercase'. Unless this is checked, the field will always be treated as uppercase.
    If this field is a standard field, try to create you own field as changing standard filed domains is not advisable.

  • RFC Debugging

    Hi Experts,
    I have done GOOGLE for How to debug Remote FM. Have found many links and methods of doing so. But unfortunately none of them help me to debug Remote FM.
    Links Like :
    How to Debug SAP RFC , background job , update FM etc.. « SAP Ignite
    Remote ABAP Debugging
    **************** - Tips - Remote ABAP debugging
    http://www.sap-help.net/Page/abap-development-getting-started/abap-debugger-setup/abap-debugger-rfc-debugging/
    SAP Note 1004248.
    Regards,
    Sagar

    Hi Bhushan,
    Thanks for the prompt reply.
    I have done steps 1 to 3.
    Now for Step 4 do i need to click on Remote Logon button as shown in below screen shot?
    If yes, than i did but i have not got any popup or any other screen.
    After that i have follow Steps 5 to 7, but at break point it doesn't stop.
    Regards,
    Sagar

  • RFC Debugging and Cache Admin not available in PPM 5.0

    Hi Experts,
    RFC Debugging  and Cache Administration is not available  in PPM 5.0 as compared to RPM 4.5. Is it due to single ABAP stack model of PPM 5.0 ? Complete transformation from java to ABAP webdynpro components  ?  Any idea on this ?
    Best Regards,
    Siva

    Siva,
    Yes, you are right, As enerything is moved to ABAP stack in SAP PPM 5.0. RFC Debugging and Cache Administration is not required in SAP PPM 5.0.
    Cheers
    Amit

  • External RFC Debugging

    HI to all!
    I have a problem with RFC Debugging with External Debugging.
    I have set a Breakpoint at the call of an RFC FB when I Debug form SAP GUI (internal)
    I can go into this RFC FB with F5
    When I cam from Web Dynpro (external) I can go not into this RFC FB with F5.
    If i push button F5 the next code line is after the RFC FB call and not into this RFC FB.
    My question is what I have to do to get into this RFC FB by external Debugging
    Thanks'
    Hermann

    hi
    good
    go through this link,hope this ll give you the idea to solve your problem
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/0e9a9d90-0201-0010-478e-991dbea73a30
    thanks
    mrutyun^

  • Inbound RFC - Where to create connection?

    Hi all,
    I have an inbound RFC interface (XI -> R/3).
    Does an RFC connection need to be created?  If yes, does the connection get created in SM59 on the R/3 system or on the XI system?
    Thanks!

    Hi Daniel,
    You dont need to create RFC for inbound RFC.
    Specify the type of the RFC server. It can be an SAP System and that doest need any RFC connection to be created. It can be an External RFC Server. For this you need to create RFC connection that will register external system under a SAP gateway.
    Thanks
    Gaurav

  • Inbound proxy debug

    Hi Gurus,
    I am sending the XML message from PI to SAP ECC system using inbound proxy.
    I have to debug the inbound proxy at runtime.
    I mean when the message is sent to SAP ECC system I want to debug the proxy code.
    Is there any transaction to debug the proxy code.
    Any help appreciated.
    Thanks,
    Jay

    Hi,
    Follow this abstracts taken from one of the thread
    go to TCode: SPROXY in SAP system and find your Inbound Message interface from ur software component.
    double click on the ABAP interface and get into the execute_asynchrounous method. place a break point there or place a break point in the program which is used to update the table
    come back to the Inbound interface and press F8 or execute the interface. take the payload from SXMB_MONI in SAP system and paste the payalod. now investigate..
    regds
    Ramesh

  • Inbound RFC Adapter

    Hello,
        When we are making a "call function Zfunction destination dest" for R3 --> XI --> ..., what/where exactly this Zfunction is?
    My understanding is that it is the Inbound interface name defined in XI. i.e. the Sender system interface is Zfunction. Is this correct? If not please clarify me.
    Thanks,
    Ramesh B

    Hi Ramesh,
    Zfunction will be uploaded into the repository before. Its acting as an outbound-Interface. The RFC-Adapter translates your call from the R/3 into XML. The R/3-destination points to the RFC-Adapter.
    Regards Udo

  • RFC debug

    I have RFC in R/3. I am calling this RFC from APO. is it possible to debug the RFC in APO in Zprogram? How?

    Hi,
    in zprogram.
    add this code.
    clear sy-subrc.
    do.
    if sy-subrc = 4.
      exit.
    endif.
    enddo.
    Execute zprogram. Goto SM50 and select zprogram and select debug (on menu).
    Cheers.
    ...Reward if useful.

  • Inbound RFC Data / Duplicate Note Texts

    Hello,
    Question: Is there a way for me to view the contents which have already been passed to an RFC in CRM (5.0) from Portal?
    Background:  We are experiencing an issue with duplicate note texts when displaying opportunity notes in Portal.  Note texts are being populated by an RFC call which in turn calls BAPI_BUSPROCESSND_CHANGEMULTI.  We are not able to recreate the issue in any test enviorment.  We are only able to identify the issue after it has already occurred in PRD on almost a daily basis. 
    As this appears to be a random occurance, I am hoping to compare the data passed to the RFC for a successful & errored example to identify any discrepancies in the data passed to the RFC.
    One thing I have noticed is that the duplicate texts appear to be occuring when a date/time stamp is not included at then end of the TEXT field of STXH, but have not been able to determine why a date/time stamp is added in one instance and not another.
    Any input would be greatly appreciated.  Thanks!

    Hi Mats,
    I have the same problem. As I work-around, I added the following code to the transfer routine for 0TCTPRCSVAR in InfoSource 0TCTPRCSVAR_TEXT.
      DATA: l_str TYPE sobj_name.
      l_str = TRAN_STRUCTURE-objnm.
    * Begin Note 1134138 3/23/2008
    *  IF ( STRLEN( l_str )  > 30 ).
      IF ( STRLEN( l_str )  > 10 ).
    *  End  Note 1134138
        RESULT = TRAN_STRUCTURE-objnm+10(30).
      ELSE.
    * Multiple records with process variant type = LOADING and
    * blank process variant name caused duplicate record errors
    * during load. This code prevents the duplicate records by
    * forcing a delay and plugging a time stamp into the process
    * variant name.
        IF TRAN_STRUCTURE-TXTSH IS INITIAL.
          CALL FUNCTION 'RFC_PING_AND_WAIT'
            EXPORTING
              SECONDS      = 2.
          CONCATENATE 'DUP_RECORD_ERROR_' sy-timlo
            INTO RESULT.
        ENDIF.
      ENDIF.
    * returncode <> 0 means skip this record
      RETURNCODE = 0.
    * abort <> 0 means skip whole data package !!!
      ABORT = 0.
    It's not very elegant, but it seems to solve the duplicate record error. Periodically, I delete the 0TCTPRCSVAR master data that contains string "DUP_RECORD_ERROR.'
    Isn't SAP grand!!
    Hope this helps.
    Regards,
    D&C

  • RFC- XI- WebService / Trouble with Inbound of RFC

    Hi folks!
    i am in troubles!
    i have an rfc:
      CALL FUNCTION 'ZFI_AUSGLEICHMELDUNG_KISS'
        IN BACKGROUND TASK
        DESTINATION 'XD7_SEND_AUSGL_KISS'
        EXPORTING
          i_augkiss = wk_augkiss.
    the structure of wk_augikiss:
    EZDAT     DATUM          DATS     8
    AUGDT     DATUM          DATS     8
    AUGBL     AUGBL_KK     CHAR     12
    AUGRD     AUGRD_KK     CHAR     2
    OPBEL     OPBEL_KK     CHAR     12
    GPART     GPART_KK     CHAR     10
    VTREF     VTREF_KK     CHAR     20
    i fill the structure correctly. debug-session-view of wk_augkiss:
    1     EZDAT     D     8      20060712
    2     AUGDT     D     8      20060712
    3     AUGBL     C     12      000000012345
    4     AUGRD     C     2      02
    5     OPBEL     C     12      000000000123
    6     GPART     C     10      0000100013
    7     VTREF     C     20      00000000000000100013
    but in the SXMB_MONI the payload of the inbound-rfc-messege is:
      <?xml version="1.0" encoding="UTF-8" ?>
    - <rfc:ZFI_AUSGLEICHMELDUNG_KISS xmlns:rfc="urn:sap-com:document:sap:rfc:functions">
    - <I_AUGKISS>
      <EZDAT>2006-07-12</EZDAT>
      <AUGDT>0000-00-01</AUGDT>
      <AUGBL>000000012300</AUGBL>
      <AUGRD>00</AUGRD>
      <OPBEL>000000100013</OPBEL>
      <GPART />
      <VTREF />
      </I_AUGKISS>
      </rfc:ZFI_AUSGLEICHMELDUNG_KISS>
    there is a displacement of field-content. i tried to move the fields in the structure in to another place. nothing helped.
    can anybody help me? the scenario should run today :-((
    thank u for ur help!

    Hello Antonio,
    did you find a solution / reason for your issue with the misplaced payload?
    I have the same problem here and no idea.
    Currently we are working with a self developed hot fix on sender side because our problem is in the field order which requires now placing '9' s into the digits of this field which are not transported because empty .
    So order '000001234' is transported as '1234' and so all fields following are misplaced. With '999991234' it works!
    But....
    Any help is appreciated!
    Thank you in advance!
    Dirk

  • Debugging RFC - EBP and R/3

    Hello people,
    I´m debugging in EBP, and sometimes a function in R3 is called (a RFC function in R/3 system).
    I´m debugging with F5 (step by step) and I want to debug step-by-step inside the function called (in R3). In this moment, when the RFC function is called, the debug session acts as I had pressed F6 and the debug continues in EBP.
    I don´t know where I have to configure it! Do you have any tip?
    Thank you!

    Hi,
    Please check the following things
    1) Transaction SM59 --> check the entry you have maintained for your R/3 system.
    2) get in to details of the RFC destination ---> click on the tab Logon/security.
    3) You will find the following details
    Language        EN
    Client          ---> Client of the R/3
    User            ---> RFC user for R/3
    password     --> password of this user in R/3
    4) click on 'connection test' ---> system would take you to R/3 system. (this is just test to check the connection).
    5) Get in to details of this RFC user in R/3 ---> Transaction -->SU01 ---> User type should be dialog.
    6) then you should be able to do RFC debugging.

  • Send error text to PI when inbound asyncrhonous RFC raises an exception

    Hello,
    I've been developing a File 2 RFC asynchronous scenario. I'm an ABAP developer too so I'm who programmed the inbound RFC.
    This RFC is updating materials, so for example if the material is blocked by some user in the system the RFC raises an error and PI knows that something had happened because the RFC response to PI is like this:
    <SAP:Code area="RFC_ADAPTER">APPLICATION_ERROR</SAP:Code>
    If I go to the RFC imported definition at PI, I can see that the fault message structure has fields to add text and parameters like an standard message. I've tried to use this sentence to raise the message in the RFC instead of simple RAISE EXCEPTION:
        MESSAGE ID ls_return-id
              TYPE ls_return-type
            NUMBER ls_return-number
              WITH ls_return-message_v1 ls_return-message_v2
                   ls_return-message_v3 ls_return-message_v4
           RAISING EXCEPTION.
    But I still get only the APPLICATION_ERROR as fault response message in PI...
    How do I fill the fault message correctly?

    Hello,
    I've been developing a File 2 RFC asynchronous scenario. I'm an ABAP developer too so I'm who programmed the inbound RFC.
    This RFC is updating materials, so for example if the material is blocked by some user in the system the RFC raises an error and PI knows that something had happened because the RFC response to PI is like this:
    <SAP:Code area="RFC_ADAPTER">APPLICATION_ERROR</SAP:Code>
    If I go to the RFC imported definition at PI, I can see that the fault message structure has fields to add text and parameters like an standard message. I've tried to use this sentence to raise the message in the RFC instead of simple RAISE EXCEPTION:
        MESSAGE ID ls_return-id
              TYPE ls_return-type
            NUMBER ls_return-number
              WITH ls_return-message_v1 ls_return-message_v2
                   ls_return-message_v3 ls_return-message_v4
           RAISING EXCEPTION.
    But I still get only the APPLICATION_ERROR as fault response message in PI...
    How do I fill the fault message correctly?

  • How to debug for inbound mail in SAPconnect - ERMS

    Hi,
    How to debug from the point of receipt of an inbound mail in SAPconnect so that we can see the data being passed to the ERMS Workflow WS00200001.
    Regards,
    Deepak

    Hi Ashish,
    Thanks for your prompt reply. Let me explain the scenario in little bit details. If you want I can post the screen shots at flickr etc. for better understanding.
    In transaction SWI1: we are getting Error at Invoking Service Manager for Workflow WS00200001. The error is "ERMS support object: Could not find DOCUMENT - Message no. CRM_ERMS020.
    In transaction CRM_ERMS_LOGGING: We are getting error "Exception in method constructor (CL_CRM_ERMS_XPATH_TAG): Service CL_CRM_ERMS_ADD2FB_DOCUMENT failed. Cannot read email".
    On providing valid email document id or work item id in transaction CRM_ERMS_LOGGING the required action is executed and everything is ok.
    We tried to debug in SCOT by DBG+ but on receipt of inbound mail debug session does not start.
    Actually we want to understand, on receipt of email what data is passed to the workflow as method call CL_CRM_ERMS_CONVERTER->CONVERT_DOCUMENT does not return XSL content and the error message is raised. It is possible that the previous method call SERVICE_MANAGER->GET_EMAIL_ID() does not retrieve a value for doc_id, but we are not sure without being able to debug through from the SAP connect process.
    Regards,
    Deepak

  • Inbound queue error

    Hi Gurus,
    I am facing a problem with inbound RFC Queue,error message is logical system not defined in table smof_erpsh.
    i hav e cheked the table but not too sure about how to activate the queue.
    please help.
    Regards,
    Samarjit

    Sounds like you switched backends on the CRM system.  You can only have one ERP backend connected to a CRM system, in a normal typical landscape without special customizing.
    You may also had a system that was copied from the original backend that is now trying to send bdocs to your crm system.  Can you tell us a little more about your system landscape and we can then see what needs to be done?

Maybe you are looking for

  • Apple Mobile Device Support failed to install

    I just downloaded the latest version of iTunes, however, the Apple Mobile Device Support program will not download. I have removed iTunes and re-installed it numerous times. When I plug my phone or iTouch in to my computer, it does not recognize it a

  • AUC down payment hitting wrong GLS

    Dear Experts, We are using down payment for WIP, complete configuration in OBYR OAYB and assignment of down payment GL and down payment clearing GL are assigned in AO90. We prepare internal orders book all the expenses and will be settled to AUC in t

  • Cannot create TransactionParams of ConnectionFactory with WLST Offline

    Hello dear WL users and geeks, I'm trying to automate the creation of a weblogic domain using WLST Offline but I've got some problem with the configuration of a JMS ConnectionFactory : I don't know how to activate the XA-Connection factory setting. O

  • Compare date in QoQ

    Hi all, How can I compare a date in query of query? The date can be null in some records.       <cfquery name="qryData" dbtype="query">             select *             from qryTempData             where (datecompare(ppbe_id_expiration, dateFormat(no

  • OIM 11gR2 Request Validator Plugin and Axis based Web Service Client

    Hi, I am trying call a web service client generated using axis2 from a request validator plugin in OIM 11gR2 and I have all the axis related jar files under the plugin lib folder but it fails due to the axis reference issues. I tried putting the jar