Skip to Content
avatar image
Former Member

Payment Plan creation using ISU_PAYMENT_PLAN(transaction EK92)

Hello Experts,

I have the requirements where I have to create a BATCH program in which based on certain checks, i need to create the Payment Plan.

I am using the FM - ISU_PAYMENT_SIMULATE to create the same. But here the problem is, the FM does not give any error but the document is not created in either of table EABP or DFKKMOP.

When I am debugging it, i found out for the FM - ISU_S_BBP_AUTO_PPL_CREATE (which is called from the above mentioned FM), that the changing parameter XY_AUTO should have the REA61_OKCODE = 'SAVE'. Other wise, it does not return the OPBEL value.

Here, the problem is that my program will run in batch mode, so cant have the sreen section being called from my program(for the program to skip the screen i have passed the X_NO_DIALOG as 'X'.

So, how should i do this. If any one knows the solution , please tell me as its urgent.

Below is my sample code -

lwa_param-vertrag    =  contract value as vertrag

lwa_param-pyplt      =  plan type ex. BBP

lwa_param-pypls      = '06'. " start mnth

lwa_param-pypla      = ' '.  " alt mnth as blank

lwa_param-pypls_year = '2013'.  " year as 2013

CALL FUNCTION 'ISU_PAYPLAN_SIMULATE'

EXPORTING

   x_no_dialog                = 'X'

IMPORTING

   y_amount                   = lv_amt

   y_waers                    = lv_waers

   y_pypls                    = lv_pypls

   y_opbel                    = lv_opbel

   y_amb                      = lv_amb

   y_obj                      = lv_obj

  CHANGING

    xy_param                   = lwa_param

EXCEPTIONS

(to handle the errors if any)

Waiting for the answers.:)

Thanks & regards,

RJ.

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

2 Answers

  • Aug 06, 2013 at 12:59 AM

    Hi RJ,

    Have you checked the FM ISU_PAYPLAN_CREATE?

    Thanks,

    Amlan

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Sep 22, 2013 at 08:46 PM

    RJ,

    You can supply ok-code "SAVE" to changing parameter XY_PARAM-OK_CODE.

    That's the only thing you're missing above. Do commit after the FM call.

    Kevin

    Add comment
    10|10000 characters needed characters exceeded