SAP for Utilities Discussions
Connect with fellow SAP users to share best practices, troubleshoot challenges, and collaborate on building a sustainable energy future. Join the discussion.
cancel
Showing results for 
Search instead for 
Did you mean: 

Payment Plan creation using ISU_PAYMENT_PLAN(transaction EK92)

Former Member
0 Kudos

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.

2 REPLIES 2

AmlanBanerjee
Active Contributor
0 Kudos

Hi RJ,

Have you checked the FM ISU_PAYPLAN_CREATE?

Thanks,

Amlan

Former Member
0 Kudos

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