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: 

Inbound IDOC or BAPI for Updating Customer Creidt Limit

sridharreddy_kondam
Active Contributor
0 Kudos

Hi All,

Need your help ...

Which Inbound IDOC i can use for Updating the Customer Credit Limit(Tcode FD32)...

I had searched but i could not get any information, Please suggest me on how to update and post customer credit limit in SAP

Or do any BAPI exists for this?

Please Help me...

Thanks and Regards,

Sridhar Reddy

5 REPLIES 5

GauthamV
Active Contributor
0 Kudos

hi,

check these idocs.

GSVERF01

CRESTA01.

0 Kudos

Hi Gautham,

I have tried using CRESTA01 IDOC, but it is updating the Table KNKKF1 (BAPI DebtorCreditAccount.ReplicateStatus -->FM BAPI_CREDIT_ACCOUNT_REP_STATUS)

But as per The TCODE -->FD32 the field Customer Credit Limit is from Table KNKK so we need to update that table as any of the IDOCs not updating them.

I have tried a FM CREDITLIMIT_CHANGE which is updating the KNKK table. and which is being reflected in FD32. BUt problem is that FM we need to pass information to another table KNKA. \

Please can you let me know if we can create a new FM such that we can Insert/update only KNKK table..

Thanks and Regards,

Sridhar Reddy

Former Member
0 Kudos

Hi

U can use CREDITLIMIT_CHANGE FM only it will works fine, KNKA ia mandatory parameter but u cant pass the knka related parameters, See the sample code below

  • UPDATE KNKK-CL WITH UKMBP CL

move-corresponding gis_knkk to i_knkk.

i_knka-kunnr = i_knkk-kunnr.

move-corresponding i_knka to yknka.

move-corresponding i_knkk to yknkk.

upd_knkk = 'U'.

upd_knka = ''.

if not gis_final-convalue is initial.

i_knkk-klimk = gis_final-convalue.

else.

i_knkk-klimk = gwa_ukmbp-credit_limit.

endif.

xneua = space.

xrefl = space.

if gis_knkk-mandt = '900'.

call function 'CREDITLIMIT_CHANGE'

exporting

i_knka = i_knka

i_knkk = i_knkk

upd_knka = upd_knka

upd_knkk = upd_knkk

xneua = xneua

xrefl = xrefl

yknka = yknka

yknkk = yknkk.

  • if sy-subrc EQ 0.

commit work and wait.

  • endif.

Thanks

Gupta

sridharreddy_kondam
Active Contributor
0 Kudos

Presently they told us to use the DEBMAS06 IDOC

0 Kudos

were u able to update credit limit using DEBMAS06?