Skip to Content
0
Former Member
Mar 20, 2006 at 07:00 PM

Changing the payment terms using userexit in IPC

42 Views

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.