cancel
Showing results for 
Search instead for 
Did you mean: 

How to CRMXIF_ORDER_SAVE function module

Former Member
0 Kudos
416

Hi,

I would like to know the basic settings & Parameters to execute the function module 'CRMXIF_ORDER_SAVE'.

Thanks

Seshu

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi Seshu,

It's not reallty necessary to use the function directly. The SAP standard uses this function to process a bdoc structure. You can fill all your information in Idoctype CRMXIF_ORDER_SAVE_M and process it with the standard tools. This way it's a lot easier to set up, maintain and you can be sure that the idoctype will be supported in future releases and SP-upgrades.

Additionally, there's a lot of information available on how to use and fill the idoctypes. Check out transaction WEDI.

Grtz,

Michael.

Former Member
0 Kudos

Hi Michael,

Thanks for reply. But, I want to execute this RFC FM from other Java application. I am just testing this FM in CRM first to post a order with this 'CRMXIF_ORDER_SAVE' to know the parameters passed.

Thanks

Seshu

Former Member
0 Kudos

Hi Seshu,

function CRMXIF_ORDER_SAVE is used for inbound information coming through the XIF, which means that an idoc or XML structure in translated in the structure that is given to the function [inbound parameter DATA with structure CRMXIF_BUSTRANS_T]. You can either try to fill up this structure as the standard integration would or you can try to create an XML from your java-application & send the information to the XIF which will then take care of the rest.

Option 1: look in transaction smw01 and find a business transaction message. You'll find a comparable structure in this bdoc that you can use as an example to fill the structure in the function.

--> this is a quick solution, but you cannot be sure that SAP will continu to use the function or that structure in future releases or SP-upgrades.

--> it will also be difficult todo errorhandling and will require more maintenance

Option 2: creating the xml (or idoc) from java will have to be done in a specific format. To pass it along to the XIF-adapter, you'll need some interaction tool like the business connector, SAP XI or a SOAP-server.

--> eventually, this will be the most stable solution I think, but it will require more work to set up.

hope this helps,

Michael.

Former Member
0 Kudos

Hi Michael,

Have you used this and set up the "Status" segment? I tried everything possible but the Status still not work.

Steve

Former Member
0 Kudos

Hi Steve,

nope I haven't, but I can imagine that the status segment is giving you trouble. Status management is considered a seperate object, so it's saved after the object that it's linked to. User stati aren't even interfaced from CRM to CRM & visa versa.

But I know it's possible to fill up the inbound bdoc with a status. You could try debugging the process and check out the mapping between inbound message & bdoc.

Michael.