Skip to Content
Author's profile photo Jerry Wang

How to debug Product initial upload in ERP and CRM system

As opposite to product initial Download, the product inital upload means the product to be synchronized exists now in CRM system ( instead of in ERP side in download case ) and then you trigger the upload of the CRM product so it is sent to ERP system and a corresponding material is created there.

  • CRM system: QDD/504
  • ERP system: Q7Q/504

In CRM product UI there is a button “Send to ERP”. Once clicked, a pop up window appears and you can maintain the necessary settings for product upload to ERP system. You have to specify some setting manually like the corresponding material type in ERP since it could not be automatically derived from CRM system.

/wp-content/uploads/2013/11/clipboard1_333626.png

If you could not see this button, please make sense you have enabled the product type as upload allowed in customizing.

/wp-content/uploads/2013/11/clipboard2_333627.png

/wp-content/uploads/2013/11/clipboard3_333628.png

The event handler for button “Start upload” is a good starting point for debugging:

/wp-content/uploads/2013/11/clipboard4_333629.png

Soon the wrapper function module below will be called:

/wp-content/uploads/2013/11/clipboard5_333630.png

Inside it the structure with CRM specific format will be converted to BAPI structure with Middleware format.

/wp-content/uploads/2013/11/clipboard6_333631.png

RFC call to ERP system is triggered here:

/wp-content/uploads/2013/11/clipboard7_333635.png

So we go to ERP system, open function module BAPI_MATERIAL_UPLOAD_SAVE and set breakpoint there. Since the FM in ERP system is executed with user CRMOLTP, so you have to explicitly specify that user in your debugger setting.

/wp-content/uploads/2013/11/clipboard8_333636.png

Now the function module in ERP is called, with execute user = CRMOLTP.

/wp-content/uploads/2013/11/clipboard9_333637.png

After execution in CRM system you should see one entry for uploaded product TEST1234 with green light in tcode SMW01.

/wp-content/uploads/2013/11/clipboard10_333641.png

/wp-content/uploads/2013/11/clipboard11_333642.png

Assigned Tags

      Be the first to leave a comment
      You must be Logged on to comment or reply to a post.