cancel
Showing results for 
Search instead for 
Did you mean: 

How to debug RFC Function in GTS?

Former Member
0 Kudos

Dear experts:

   I would like to debug a function moduel in GTS which is called by RFC in ECC. I am wondering how I can input the importing parameter for this function testing as there are too many parameters to manually maintain them in GTS. May I know if there is any better way to input these parameters for testing this function in GTS?

Thanks


Accepted Solutions (1)

Accepted Solutions (1)

thomasrausch
Active Participant
0 Kudos

Hello hl wan,

on ECC side go to function module /SAPSLL/CD_SD0C_R3 and search for api6800_csd_synchronize. Here you have the field lv_rfc_mode = gc_rfc_mode-asynchronously, Switch the value of the field lv_rfc_code to 'S'. Make sure that the used CPIC User on the GTS side has User Type DIALOG.

When you process your invoice the System will stop at

data : lv_rfc_mode type c.

   lv_rfc_mode = gc_rfc_mode-asynchronously.           <---- HERE IS YOUR BREAK POINT

Further with F5 and you are in the GTS System.

Hope that helps

Regards,

Thomas

lozanov-a
Participant
0 Kudos

HI Thomas,

could you explain the same on the Inbound side (indound delivery and GR)?

thanks

Assen

thomasrausch
Active Participant
0 Kudos

Hi Assen,

I am only responsible for the outbound side. Can you tell me briefly what kind of process do you mean ( documentes participated Systems)?

Regards,

Thomas

lozanov-a
Participant
0 Kudos

Hi Thomas,

GTS transfers Inbound delivery to create a Transit declaration in GTS (inbound shipment) (Customs).

and Goods receipt material documents to create a Customs declaration in GTS.

these two i am interested in.

thanks

Assen

lozanov-a
Participant
0 Kudos

Hi

sorry.

ECC transfers Inbound delivery to create a Transit declaration in GTS (inbound shipment) (Customs).

and ECC transfers Goods receipt material documents to create a Customs declaration in GTS.

thomasrausch
Active Participant
0 Kudos

HI Assen,

I think it's the same way. You must find the rfc function module that create the document on the GTS side and look which is the rfc mode field. It is the way you call the rfc function module.

E.g. the call of /SAPSLL/API_6800_EMC_CREATE

  data: lv_rfc_mode type c,

           lv_dark         type c value 'N'.

  lv_rfc_mode = lv_dark.

Lv_rfc_mode = 'N'                  <-----------IN THIS CASE YOU DON'T REACH THE GTS

call function '/SAPSLL/API_6800_EMC_CREATE'

       in background task     

       destination p_rfc_dest 

      as separate unit

lv_rfc_mode = 'S'                    <----------IN THIS CASE YOU REACH THE GTS 

     call function '/SAPSLL/API_6800_EMC_CREATE'   

    destination p_rfc_dest

You see the difference?

The Problem is to find the place where the fm is called.

Hope that helps

Regards,

Thomas  

Former Member
0 Kudos

Thanks a lot for your help, Thomas.

Answers (1)

Answers (1)

former_member215181
Active Contributor
0 Kudos

This is more of an ABAP question, surely.  Probably best if you delete it here and post again on the relevant forum.

Good luck, anyway,

Dave

Former Member
0 Kudos

  Sorry for this wrong posting, Dave.