Skip to Content

How to debug BDocs from CRM to ECC during Customer creation?

Hi all,

I searched for forums but could not get the correct one with step by step or screen shots. Actually I know how to debug by stopping the Queue in SMQS. But since I need to debug without stopping the QUEUE. Can any one please let me know the step-by step procedure?



Add comment
10|10000 characters needed characters exceeded

  • Follow
  • Get RSS Feed

1 Answer

  • avatar image
    Former Member
    Feb 05, 2013 at 06:32 AM


    1. Create or modify a BP/Account in CRM that should be updated in the ECC system (as a Customer).
    2. You get an erroneous bdoc in SMW01 transaction with error message "Fill in all required entry fields".

    it is possible to debug the upload as follows, in order to identify the required field:

    1. Display the BDOC in SMW01
    2. Enter /h in the transaction code field
    3. Press the 'retry to process message' button.
    4. In the debugger - select the Settings button and 'In background task do not process' (Classical debugger)
    5. Enter F8
    6. Create a new session for the outbound queue (/osmq1) there will be an entry R3AUBUPA*** or CSA_BUPA**
    7. Double-Click on this queue entry twice and choose Debug for the CRM_UPLOAD_TRIGGER
    8. In the debugger, set a breakpoint at statement 'CALL TRANSACTION' and then press F8.
    9. At this statement double-click on the statement CALL_TRANSACTION and change the variable CALL_TRANSACTION_MODE from N to A, press the 'change field content' button and then press F8
    10. Now you will be in the R/3 System and you can see the batch input screen for this customer and you will then be prompted for the missing field in the BDOC.

    When the field has been identified, please maintain this field in CRM.

    Remark: In order to enter into debugging mode, you should ensure that the USER to connect to the R/3 system via RFC (txn SM59, Logon and Security tab), is set in your R/3 system as Dialog mode (txn SU01).


    Vaibhav Shah

    Add comment
    10|10000 characters needed characters exceeded

    • Vaibhav,

      Very very thanks for your prompt response. As I said, replication is happening correctly. But when the debugger stops at call transaction statement, then if I click F6 or F8( by keeping another breakpoint immediate next statement to call transation statement) it is coming to SAP Easy Access screen. I dont have any problems with mandatory fields.

      1. One more thing is.I remember you saying the RFC User has to be dialogue user.I cheked with Basis and made it as dialogue user and able to get into ECC.Also I am able to go into ECC in debug mode when the RFC User is not made as dialogue also.How come it could be possible.Could you please drop me any hint on this also?

      2. According to you, I followed another step also. I deregister the Queue in SMQS and tried to execute the Queue in SMQ1 in debug( by clicking LUW) but it is directly getting executed instead of going to RFC. Here the user is set to dialogue only. Am I missing anything else?

      Very very thanks,