Application Development and Automation 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: 
Read only

BAPI

Former Member
0 Likes
448

Hi experts ,

i am not enable to create contract account through BAPI function BAPI_ISUACCOUNT_CREATEFROMDATA

code is below

&----


*& Report ZCONTRACTACCOUNT

*&

&----


*&

*&

&----


REPORT ZCONTRACTACCOUNT.

DATA : HDR TYPE FKKVK_HDR_DI,

CNAME TYPE FKKVK_S_DI,

MDATA TYPE TABLE OF FKKVKP_S_DI ,

ACNO TYPE FKKVK_HDR_DI,

WA TYPE FKKVKP_S_DI,

ACDATA TYPE TABLE OF BAPIISUVKP,

WA1 TYPE BAPIISUVKP,

ANO TYPE BAPICAPARA-ACCOUNT.

MOVE :

WA1-PARTNER = '0000000201'.

WA1-ad_ext_partner = '1'.

WA1-CA_NAME = 'PRADEEP ACCOUNT'.

WA1-RESP_COMP_CODE = 'CCG1'.

WA1-STANDARD_COMP_CODE = 'JUSCO'.

WA1-DUNNING_PROC = '01'.

WA1-ACCOUNT_DETERM_ID = '01'.

WA1-TERMS_OF_PAYMENT = 'PT01'.

WA1-APPL_FORM = 'IS_U_BILL'.

WA1-RELSHIP_PARTNER = '01'.

WA1-BBP_TYPE_ACTIVE = '1'.

WA1-CLEARING_CATEGORY = 'A001'.

WA1-TOLERANCE_GROUP = 'TG01'.

APPEND WA1 TO ACDATA.

CALL FUNCTION 'BAPI_ISUACCOUNT_CREATEFROMDATA'

EXPORTING

  • CONTRACTACCOUNT =

PARTNER = '0000000201'

CONTRACTACCOUNTCATEGORY = '01'

  • TESTRUN =

IMPORTING

  • RETURN =

CONTRACT_ACCOUNT = ANO

TABLES

TCONTRACTACCOUNTDATA = ACDATA

  • TCTRACLOCKDETAIL =

  • EXTENSIONIN =

.

WRITE ANO.

pls help me ASAP

Thanx & rgrds

Pradeep Sharma

1 ACCEPTED SOLUTION
Read only

uwe_schieferstein
Active Contributor
0 Likes
385

Hello Pradeep

According to the documentation of structure TCONTRACTACCOUNTDATA the following data are mandatory:


 Contract Account Data

 Description
     When you create a new contract account, the following parameters are
     required:
     o   RESP_COMP_CODE
     o   DUNNING_PROC
     o   RELSHIP_PARTNER
     o   TOLERANCE_GROUP
     o   TERMS_OF_PAYMENT
     o   SETTLE_CAT_CL_ENTRIES
     o   ACCOUNT_DETERM_ID
     o   APPL_FORM
     o   LANGU_ACC

I do not see that you provide any values for SETTLE_CAT_CL_ENTRIES and LANGU_ACC.

Therefore, I recommend to evaluate the RETURN messages carefully. Perhaps they are pointing towards missing input data.

Regards

Uwe

1 REPLY 1
Read only

uwe_schieferstein
Active Contributor
0 Likes
386

Hello Pradeep

According to the documentation of structure TCONTRACTACCOUNTDATA the following data are mandatory:


 Contract Account Data

 Description
     When you create a new contract account, the following parameters are
     required:
     o   RESP_COMP_CODE
     o   DUNNING_PROC
     o   RELSHIP_PARTNER
     o   TOLERANCE_GROUP
     o   TERMS_OF_PAYMENT
     o   SETTLE_CAT_CL_ENTRIES
     o   ACCOUNT_DETERM_ID
     o   APPL_FORM
     o   LANGU_ACC

I do not see that you provide any values for SETTLE_CAT_CL_ENTRIES and LANGU_ACC.

Therefore, I recommend to evaluate the RETURN messages carefully. Perhaps they are pointing towards missing input data.

Regards

Uwe