cancel
Showing results for 
Search instead for 
Did you mean: 

Changing the payment terms using userexit in IPC

Former Member
0 Kudos

Hello everyone,

I am posing a question for the first time in this forum. I am a pretty decent ISA / IPC developer. I have been working on writing user exits in IPC using java.At this client place, I have to convert a R3 calculation formula to java.

The formula is as shown below in R3

DATA: ZZTERM_KNUMH LIKE KOMV-KNUMH.

FORM FRM_KONDI_WERT_750.

CHECK KOMP-KPOSN NE 0.

CLEAR XKOMV-KZTERM.

IF XKOMV-KNUMH = KONP-KNUMH.

IF XKOMV-KBETR NE 0 AND XKOMV-KINAK = SPACE.

KOMP-ZTERM = KONP-ZTERM. (Terms of payment key)

KOMP-VALDT = KONP-VALDT. (Fixed value date)

KOMP-VALTG = KONP-VALTG. (Additional value days)

ZZTERM_KNUMH = XKOMV-KNUMH.

ENDIF.

ENDIF.

IF ZZTERM_KNUMH = XKOMV-KNUMH AND XKOMV-KINAK NE SPACE.

CLEAR: KOMP-ZTERM,

KOMP-VALDT,

KOMP-VALTG.

ENDIF.

*} INSERT

ENDFORM.

Basically what they are doing is in the total order when ever they see a rate for for the condition record they are changing the payment terms of the entire order to the condition record's payment terms.

If i have to translate this to java, how do i set / change the payment terms??

Have anybody encountered something like this?

I have almost finished all the routine and formulae that were to be implemented. I am just stuck with this one. I am sort of desperate and any help on this would be great.

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi "IPC Developer",

You dynamic return value to set the value for item using method setDynamicReturnValue. This value will then be passed to CRM. Use BADI ( I have to still find the BADI name) to set the payement term in CRM.

Regards,

Vivek

Former Member
0 Kudos

Hi There,

I think you need to modify FM PRC_INT_ITEM_CREATE_MULTI to use the values set using setDynamicReturnValue. I will let you know if I come to know of another solution.

Regards,

Vivek

Former Member
0 Kudos

Vivek,

Thanks for your input. Will try and let you know.

Former Member
0 Kudos

HI,

I am facing similar issue. How did you resolve it?

Thanks,

Apurva