cancel
Showing results for 
Search instead for 
Did you mean: 

Attachment not saved

Former Member
0 Kudos

Hi All,

Scenario: .Net <> XI <> SAP CRM (Synchronous call)

In this scenario, I am passing an URL string from XI to importing parameter of RFC (SAP CRM), which should pick the file, based on the URL string passed and save the attachment in CRM.

When I try to pass the URL string from Test Interface of RFC, it saves an attachment in CRM, but when I am passing the same URL string from XI to importing parameter of RFC, it is giving me response as attachment failed.

Later I did the Debug to understand whether the URL string which I was passing was correct or not. But to my surprise, while doing Debug, it saved the attachment in CRM.

Could anybody help me on resolving this problem.

Thanks in Advance

Ashish.

Accepted Solutions (1)

Accepted Solutions (1)

MichalKrawczyk
Active Contributor
0 Kudos

hi,

what you need to do it to try debugging

your scenario with real message

have a look at those two weblogs:

/people/michal.krawczyk2/blog/2005/09/16/xi-how-to-test-your-mapping-in-real-life-scenarios

- from me

/people/sravya.talanki2/blog/2006/02/28/simulating-xi-messages-proto - from Sravya Talanki

you also mention that you've tried debugging

did you do it like this?

/people/michal.krawczyk2/blog/2006/01/17/xi-debugging-rfc-calls-from-the-xi-not-possible-who-said-that-

if you use this method you can be sure that

you'll get the same results (except for authorization)

as with the call from XI

BTW

you're not using any BAPI or anything

that needs to be commited explicitly ?

these might help you to debug your scenario

even better as it's not possible that once it works

and once it doesn't

Regards,

michal

-


<a href="/people/michal.krawczyk2/blog/2005/06/28/xipi-faq-frequently-asked-questions"><b>XI / PI FAQ - Frequently Asked Questions</b></a>

Former Member
0 Kudos

Hi Michal,

I did the map testing with real data only.

Yes, I did the debug of RFC call using your weblog on "XI : Debugging RFC calls from the XI not possible? Who said that"

While Debugging the scenario, the attachment was saved in SAP CRM. But when I execute it directly, it is not saving the attachment in SAP CRM.

BAPI has the commit statement, which is getting executed while debugging.

Me too wondering, why it's behaving this way...

Regards,

Ashish.

MichalKrawczyk
Active Contributor
0 Kudos

Hi,

so maybe it has somehting to do with the authorizations?

can you try checking if the user that is used to do

the rfc call to CRM has the same authrozation

as the one that you use in debugging ?

this is probably the only difference...

just put your user in the RFC login data if you can

to test - or you can try logging authrozation

requests in the CRM system to check if there are no

auth errors

REgards,

michal

kyo_choi2
Participant
0 Kudos

Can you explain more details? Which object are you working with? Or post the code to see what you are doing. BDS should be used to attach documents.

Answers (0)