03-24-2008 6:36 AM
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?
03-25-2008 7:31 AM
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
01-21-2011 1:45 PM
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?