cancel
Showing results for 
Search instead for 
Did you mean: 

IPC - New Formula

Former Member
0 Kudos

Hi

I am trying to port some custom R/3 Formulas to IPC.

It has been very difficult to map R/3 structures to IPC objects/properties/methods.

Does anyone knows where I could get some documentation about that?

Regards,

Ronaldo.

Accepted Solutions (0)

Answers (3)

Answers (3)

Former Member
0 Kudos

Hi Ronaldo

Field KOMP-CEPOK is the status of the Customer Expected Price check, I believe.

= Not Relevant

A = Expected Price Correct

B = Expected Price Not Correct

C = Expected Price not correct, but released.

Cheers

Dom

Former Member
0 Kudos

Hi Ronaldo

To map KOMP to the CRM comm structure normally just means having a session open in both R/3 and CRM and comparing them manually.

Once you know the CRM field name you can pick it up in your Java code easily. See this document:

https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/library/uuid/107adc1a-0501...

However, in your example above, it seems that the routine is doing some sort of check on Customer Expected Price.

Customer Expected Price is not supported in CRM. Your problem is more than just coding this routine.

See here: http://help.sap.com/saphelp_crm40sr1/helpdata/en/f6/6f6d28bf197247918ae66002feec75/frameset.htm

Sometimes the routine is just not used in CRM, but you want to use your R/3 pricing procedure. In that case, you can create just the shell of the routine with no logic in it. Then you won't get any IPC errors. When the order is sent to R/3, you can re-price if that suits your process.

Sorry!

Dom

Former Member
0 Kudos

Customer Expected Price is usually some EDI input.

Those pricing routines are specific to R3.

Why would you want to display the detailed pricing info of such an order in CRM ?

Former Member
0 Kudos

Hello F.J.

Many people implement CRM as the central point to all customer interactions. If a customer calls in, a customer service agent would need to see the detail for the order that was received via EDI, including the customer's expected price.

You can keep receiving orders in R/3 via the EDI connection and keep whatever escalation process takes place for mismatches on expected price. The orders can be downloaded to CRM for display purposes.

You just need a dummy routine so that the R/3 pricing procedure can run without errors when used for CRM orders.

Cheers

Dom

Former Member
0 Kudos

Hi Dom

Thank for your help.

However, I am little bit lost yet. What in my formula seems to be doing some sort of check on Customer Expected Price?

Ronaldo.

Former Member
0 Kudos

Hi Ronaldo

This can be quite difficult, especially if the ABAP routines do not confine themself to the data provided in the communication structure.

The Java souce code to the standard SAP routines is always helpful.

You can read it in the IPC installation : \ipc\lib\userexits\CRMStandardExits.java.txt .

There is also the documentation at :

\ipc\doc\spe\UserExits.html .

Do you have a specific question?

Cheers

Dom

Former Member
0 Kudos

Hi Dom

Thank you for your answer.

I have two formulas to convert. My current problem is to map structure KOMP in R/3 to IPC. Follow one of my customized formulas in R/3.

Thanks.

*&--------------------------------------------------------------------*
*&      Form  FRM_KONDI_WERT_909
*&--------------------------------------------------------------------*
*       text
*---------------------------------------------------------------------*
FORM FRM_KONDI_WERT_909.

  DATA: MAXIMUM(3) TYPE P VALUE 2,
          DIFFERENCE(6) TYPE P.

  CHECK: KOMP-CEPOK NE 'C',
         KOMP-KPOSN NE 0,
         KOMK-VBTYP NA VBTYP_FAKT.

  IF KOMP-FXMSG = SPACE.
    KOMP-FXMSG = '805'.
  ENDIF.

* Testa se o Bloqueio não foi acionado ainda
  IF KOMP-CEPOK EQ 'B'.
    EXIT.
  ENDIF.

  KOMP-CEPOK = ' '.

  CHECK: XKOMV-KBETR NE 0,
         XKOMV-WAERS = KOMK-WAERK,
         KOMP-PRSFD = 'X'.

  KOMP-CEPOK = 'A'.

* difference = komp-netpr - xkomv-kbetr.
* difference = komp-workm - xkomv-workl. (30/11/2004)

  DIFFERENCE = XWORKM - XWORKL.

  IF DIFFERENCE LT 0.
    DIFFERENCE = DIFFERENCE * -1.
  ENDIF.

  CHECK: DIFFERENCE GT MAXIMUM.

  KOMP-CEPOK = 'B'.
  XKOMV-FXMSG = '249'.

ENDFORM.                    "FRM_KONDI_WERT_909