cancel
Showing results for 
Search instead for 
Did you mean: 

RFC works but web service for that RFC does not work..weird??

Former Member
0 Kudos

hi all,

I created an RFC enabled function module to create a Sales Order in SAP CRM for both for Varinat Configurable and Normal Materials.

The RFC Works well...if i test it..it creates an order and if i go and check the sales order in CRM GUI. i find that sales order is perfect with the configuration data for the configurable items..

Now i created a Web service for this RFC by calling the Web service creation wizard.

Now i am testing the Web service in SOAMANGER T-code and the sales order is created and weird thing the configuration data is missing for Varinat configurable item..

But i dont encounter this problem if i am testing the RFC directly

What could be wrong...why is my web service behaving weird?

I am dying to find this out..did any body enocounter this situation befor ..please help

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

Solved..

Former Member
0 Kudos

Hi,

And is it possibler to know how you manged to solve the problem ?

Regards,

Olivier

Former Member
0 Kudos

Sure Oliver..

I put a break point using external debugger and when i was testing the Web service in SOAMANAGER..

i could then land into ABAP debugger.

There in my RFC i put a logic such that i diffenetiate between VC and Non-VC items and fill the Charateristic Values only if it is aVC item.

I saw that the IF condition was not executing as they suddenly changed the material structure in ECC and it reflected in CRM.

SO i am inputting 18 digits of material no like '000000000000000001' for '1'...but the if condition was checking against 1 =1 so that loop never executed and chara values are not getting filled.

But if i test RFC in se37 ..it works as i am inputting 1...

Since Web service works with XML (WSDL) need to be very careful with the format in which data is inputted and the format in which the logic we wrote in RFC works.

Once again ..thanks to all people who helped me with the answers...

Regards,

Jessica Sam

Former Member
0 Kudos

Hi Jessica,

Thanks of updating us with the solution !

Olivier

Former Member
0 Kudos

Hi,

I agree that your problem is weird. I have never experimented it.

That said, I would investigate with the web service configuration in SE80 on the configuration tab.

I would try to see the effect of the "Commit Handling" of the Operation profile or the "Transaction Handling" of the Operation profile.

Good luck !

Olivier

Former Member
0 Kudos

Thanks for looking inot this Oliver..

I forgot to tell you that the web service was working fine till yesterday and suddenly it started having problems..i will look into what u suggested in SE80 and let you know again..thanks a lot..

Former Member
0 Kudos

Oliver u said...........

I would try to see the effect of the "Commit Handling" of the Operation profile or the "Transaction Handling" of the Operation profile.

i find operating profile but dont find any thing about "Commit Handling" and "Transactional Handling".......

can you be more clear....

i found following details in operation profile of configuration tab

Synchronous is checked and Synchronous Commit and Synchronous Roll back are unchecked

Interface Profile i saw the Statefull communication. is checked......

Can u please help me.do i need to change anything here?.........................

Edited by: jessica sam on Feb 4, 2009 12:23 AM

Former Member
0 Kudos

Hi again,

I don't know which settings you may need but your problem made me think that a commit might be missing when using the module function as a web service.

So experiment with different settings and see if you get some effect....

Regards,

Olivier