Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

BAPI_LOAN_CONTRACT_CREATE

Former Member
0 Kudos

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

4 REPLIES 4

Former Member
0 Kudos

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

Former Member
0 Kudos

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 ?

Former Member
0 Kudos

Hi,

partner fields -- do not enter the values directly we have to use there is a conv routine value.

Thanks & Regards,

Sateesh.

0 Kudos

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 ??