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: 

FM to create payment plan

Former Member
0 Kudos

Hi all,

Iam using the FM ISU_S_BBP_AUTO_PPL_CREATE to create the budget bill plan(payment plan).

This FM is working fine when i_no_dialog = SPACE(i.e Foreground mode),but when the same FM is executed in background ( i.e i_no_dialog = 'X') payment plan document is not created.

The data to be passed is

XY_AUTO-paymentplan-portion

XY_AUTO-paymentplan-startmonth

XY_AUTO-paymentplan-startyear

XY_AUTO-paymentplan-crt_manual = 'X'

XY_AUTO-paymentplan-contract_tab-vertrag

XY_AUTO-paymentplan-contract_tab-waers

XY_AUTO-paymentplan-contract_tab-betrag

XY_AUTO-paymentplan-contract_tab-pypls

XY_AUTO-paymentplan-contract_tab-portion

XY_AUTO-paymentplan-contract_tab-startmonth

XY_AUTO-paymentplan-contract_tab-startyear

XY_AUTO-rea61_use

Can anyone suggest how to solve this issue or any other function module which creates the payment plan?

2 REPLIES 2

Former Member
0 Kudos

You can also use BAPI ISU_S_BUDBILPLAN_CREATE

FUNCTION isu_s_budbilplan_create.

*"----


""Lokale Schnittstelle:

*" IMPORTING

*" REFERENCE(X_VERTRAG) TYPE VERTRAG

*" REFERENCE(X_EDATUM) LIKE REA61-DATUM

*" REFERENCE(X_UPD_ONLINE) LIKE REGEN-UPD_ONLINE OPTIONAL

*" REFERENCE(X_NO_DIALOG) LIKE REGEN-NO_DIALOG OPTIONAL

*" REFERENCE(X_AUTO) TYPE ISU25_BUDBILPLAN_AUTO OPTIONAL

*" REFERENCE(X_NO_MASS) LIKE REGEN-KENNZX OPTIONAL

*" REFERENCE(X_VORAUSZDAT) LIKE EABP-VORAUSZDAT DEFAULT '00000000'

*" REFERENCE(X_EP_PERIOD) TYPE EP_PERIOD OPTIONAL

*" REFERENCE(X_LOG_OBJECT) TYPE BALOBJ_D OPTIONAL

*" EXPORTING

*" REFERENCE(Y_DB_UPDATE) LIKE REGEN-DB_UPDATE

*" REFERENCE(Y_NEW_VERTRAG) LIKE EABP-VERTRAG

*" REFERENCE(Y_NEW_OPBEL) LIKE EABP-OPBEL

*" REFERENCE(Y_EXIT_TYPE) LIKE REGEN-EXIT_TYPE

*" REFERENCE(Y_NEW_EABP) LIKE EABP STRUCTURE EABP

*" REFERENCE(Y_OBJ) TYPE ISU25_BUDBILPLAN

*" EXCEPTIONS

*" NOT_FOUND

*" EXISTING

*" FOREIGN_LOCK

*" NUMBER_ERROR

*" INPUT_ERROR

*" SYSTEM_ERROR

*" NOT_CREATED_NODUEDATE

*" BILLING_ERROR

*" NOT_AUTHORIZED

*"----


Rewards points if useful

0 Kudos

found this thread while searching for a way to create budget billing plans (heads and lines) in background (mass).

If I use the second way I only get the bbp head, which could not be displayed because there are no lines.

In dialog mode - before saving - I can see the lines, but afterwards they seem not be saved?!

Any chances to create bbp with heads and lines automatically?