cancel
Showing results for 
Search instead for 
Did you mean: 

CRMXIF_PRODUCT_MATERIAL_SAVE

Former Member
0 Kudos

Hi Experts,

I'm using this FM CRMXIF_PRODUCT_MATERIAL_SAVE to update the set types in CRM system.

However, inside this function, there is one more FM CRMXIF_SENDER_SITEID_GET which gets the site id of the sender.

Inside the FM CRMXIF_SENDER_SITEID_GET, i see one more FM ICF_IS_PLUGIN_SESSION which determines the context whether IDOC or SOAP.

When i'm using the FM CRMXIF_PRODUCT_MATERIAL_SAVE directly with some correct and valid data, the FM is not creating any customer set data in the set type.

However, when i check in debug mode and come to the FM ICF_IS_PLUGIN_SESSION, i can see that plugin_session is "N" and the context is "I " (IDOC). And when i change the context to "S" (SOAP), then I'M ABLE TO CREATE SET DATA IN THE CRM SET TYPE.

This FM is taking the below parameters:

IF sv_context IS INITIAL.
    CALL FUNCTION 'ICF_IS_PLUGIN_SESSION'
      IMPORTING
        plugin_session = lv_plugin_session.
    if lv_plugin_session = 'N'.
      sv_context = 'I'. "set context to IDOC
      sv_callmode = 'S'. "set callmode to synchron
    elseif lv_plugin_session = 'Y'.
      sv_context = 'S'. "set context to SOAP
      sv_callmode = 'S'. "set callmode to synchron
    else.
      sv_context = space.
      sv_callmode = space.
    endif.
  ENDIF.

I want the context to be set always as "S".

Could you please provide me some inputs over this? Why is it always the plugin session is "N" and the context set to "I"?

Thanks,

Shamim

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi,

I found it depend on Plug in session because when there is plugin session is created then it will set 'Y' otherwise it will set 'N'.

hope it will useful.

Thanks

Hemant ghiya

Former Member
0 Kudos

thanks for the reply.

Could you please tell me the following points:

1. When generally a plugin session will be created, i dont know how and why it is always to set to "N" and the context is set to "I".

2. I've created a custom report which is in on system say XYZ 250 and inside this report i'm calling this RFC function module which is basically on differnt system say ABC 220, so in this case, will a plugin session be created, if yes, which one, Y or N?

thanks,

shamim

Former Member
0 Kudos

Hi shamim,

Please find the answers into these forums:

[]

[]

[]

hope it will useful.

have a nice day.

Thanks

Hemant ghiya

Former Member
0 Kudos

I've checked everything over SDN. This is the first time this issue has been raised in this forum.

Please tell me as per your experience in this regards.

Thanks,

Shamim

Former Member
0 Kudos

Hi shamim,

To do this, the CRM outbound module (for ALE/IDoc: CRMXIF_PROD_MAT_IDOC_ SEND, for SOAP/XML: CRMXIF_PROD_MAT_XML_SEND) sends the product of type Material in the form of a complex data type to the structure COMXIF_PRODUCT_MATERIAL, which represents the external structure.

hope it will useful.

Thanks

Hemant ghiya

Answers (1)

Answers (1)

Former Member
0 Kudos

thanks

Former Member
0 Kudos

HI ,

Can u please share me how can we achieve the context value as 'S' always am also facing the same issue now when it is N the order is not created , but when it is S the order is getting saved, Please let me know how can i achieve this

Thanks,,

Mohan