06-09-2009 4:01 PM
Hi All,
Does BAPI_LOAN_CONTRACT_CREATE allow to add a new condition record to a existing Loan contract ? If yes please provide a sample code .
Thanks
06-10-2009 1:25 PM
Plz find the sample code which might help you to some extent
START-OF-SELECTION
WA_PARTNER-PARTNER = 'KUMAR'.
WA_PARTNER-ROLE_TYPE = 'TR0100'.
WA_PARTNER-ROLE_SBTYP = 'A100'.
WA_PARTNER-CUSTOMER = '100281'.
WA_PARTNER-DUNN_PAYER = 'X'.
APPEND WA_PARTNER TO IT_PARTNER.
WA_CONDITIONS-CONDITION_TYPE = '0261'.
WA_CONDITIONS-VALID_FROM = '01032008'.
WA_CONDITIONS-PERCENTAGE_RATE = '5'.
WA_CONDITIONS-CURRENCY = 'EUR'.
WA_CONDITIONS-CURRENCY_ISO = 'EUR'.
WA_CONDITIONS-CALC_DATE = '01032008'.
WA_CONDITIONS-DUE_DATE = '01042008'.
APPEND WA_CONDITIONS TO IT_CONDITIONS.
WA_CORRESPONDENCE-GENERFREQ = '1'.
WA_CORRESPONDENCE-PROCESSTYP = '1'.
APPEND WA_CORRESPONDENCE TO IT_COR
RESPONDENCE.
WA_USERFIELDS-COMP_CODE = '1000'.
WA_USERFIELDS-USERFIELD1_AMNT = '100000'.
WA_USERFIELDS-USERFIELD1_CURR_ISO = 'USD'.
APPEND WA_USERFIELDS TO IT_USERFIELDS.
CALL FUNCTION 'BAPI_LOAN_CONTRACT_CREATE'
EXPORTING
loan = IT_LOAN
conditionheader = IT_conditionheader
CORRESPONDENCE = IT_CORRESPONDENCE
USERFIELDS = IT_USERFIELDS
TESTRUN = ' '
REFRESH = ' '
PROCESSEXTENSION = ' '
STEERING =
IMPORTING
LOANNUMBER = IT_LOANNUM
ERROR = IT_ERROR
tables
partner = IT_PARTNER
conditions = IT_CONDITIONS
FORMULA =
OBJECTS =
COLLATERALS =
ENCUMBRANCES
06-10-2009 2:39 PM
It gives me a error Loan no already exists If I enter a already existing loan no.
Any other field which needs to be set in the BAPI to update/insert a condition record in loan and not create a new loan altogether ?
06-10-2009 2:57 PM
Hi,
partner fields -- do not enter the values directly we have to use there is a conv routine value.
Thanks & Regards,
Sateesh.
06-12-2009 9:26 AM
This BAPI onlu allows to create a new loan contract howevver my requirement is to add a new condition record to a exisiting loan contract .
Are you guys aware of any BAPI / IDOC / FM which helps ??