Any BAPI for Tcode FD32

Hi Experts,
Can anyone please tell me if there is a BAPI for the Tcode FD32 to block a
customer who exceeds his credit limit?
Thanks
Dany

if both KNKA and KNKK are updated.
use this FM CREDITLIMIT_CHANGE.
if either KNKA or KNKK is updated.
use FM KLIM_WRITE_DOCUMENT
below is a simple example.
REPORT  ZTEST.
TABLES:t014,t014t.
INCLUDE ff02lcdf.
INCLUDE ff02lcdv.
PARAMETERS:kunnr LIKE knkk-kunnr,
           kkber LIKE knkk-kkber.
START-OF-SELECTION.
END-OF-SELECTION.
  CLEAR:t014,yknka,knka,yknkk,knkk.
  SELECT SINGLE * FROM t014 WHERE kkber = kkber.
  IF sy-subrc = 0.
    *XF02C = t014-waers.
    xf02c = t014-waers..
  ENDIF.
  objectid = kunnr.
  tcode = 'FD32'.
  utime = sy-uzeit.
  udate = sy-datum.
  username = sy-uname.
  upd_knkk = 'U'.
  SELECT SINGLE * FROM knka INTO yknka WHERE kunnr = kunnr.
  IF sy-subrc = 0.
    MOVE yknka TO knka.
  ENDIF.
  SELECT  SINGLE * FROM knkk INTO  yknkk WHERE kunnr = kunnr AND kkber = kkber.
  IF sy-subrc = 0.
    MOVE yknkk TO knkk.
    knkk-klimk = '543.23'.
    knkk-ctlpc = 'SG2'.
    MODIFY knkk.
  ENDIF.
  IF   ( upd_knka                           NE space )
      OR ( upd_knkk                           NE space )
    CALL FUNCTION 'KLIM_WRITE_DOCUMENT           ' IN UPDATE TASK
      EXPORTING
        objectid                = objectid
        tcode                   = tcode
        utime                   = utime
        udate                   = udate
        username                = username
        planned_change_number   = planned_change_number
        object_change_indicator = cdoc_upd_object
        planned_or_real_changes = cdoc_planned_or_real
        no_change_pointers      = cdoc_no_change_pointers
        o_yknka                 = yknka
        n_knka                  = knka
        upd_knka                = upd_knka
        o_yknkk                 = yknkk
        n_knkk                  = knkk
        o_xf02c                 = *xf02c
        n_xf02c                 = xf02c
        upd_knkk                = upd_knkk.
  ENDIF.
  CLEAR planned_change_number.

Similar Messages

  • Any BAPI for tcode :FB50/FB50L

    HI ,
    is there any BAPI for tcode FB50 & FB50L.
    POints will be rewarded
    Thanks in advacne

    hi
    List of all BAPIs
    http://www.planetsap.com/LIST_ALL_BAPIs.htm
    http://www.sappoint.com/abap/bapiintro.pdf
    http://www.sappoint.com/abap/bapiprg.pdf
    http://www.sappoint.com/abap/bapiactx.pdf
    http://www.sappoint.com/abap/bapilst.pdf
    http://www.sappoint.com/abap/bapiexer.pdf
    http://service.sap.com/ale
    http://service.sap.com/bapi
    http://www.geocities.com/mpioud/Abap_programs.html
    http://www.sapdevelopment.co.uk/reporting/reportinghome.htm
    regards
    ravish
    <b>plz dont forget to reward points if helpful</b>

  • There is Tcode CU51which is for Order BOM ,Is there any BAPI  for OrderBOM.

    Hi All,
    There is Tcode CU51which is for Order BOM , So is there any BAPI for that Ordre BOM
    pls can you help me
    thanks
    mars

    Hi,
    Refer These links:
    https://forums.sdn.sap.com/click.jspa?searchID=13707386&messageID=5726376
    https://forums.sdn.sap.com/click.jspa?searchID=13707605&messageID=4868211
    Regards,
    Shiva Kumar

  • Is there any BAPI for QE51 Tcode?

    Is there any BAPI for QE51 Tcode?

    Hi,
    I think there is no Bapi for this QE51.
    Just check the fun Modules:
    IEQCM_WORKLIST_CHECK
    IEQCM_WORKLIST_REALIZE
    IEQCM_WORKLIST_CONFIRM_STEP2
    IEQCM_WORKLIST_DELETE
    IEQCM_WORKLIST_GET_DETAIL
    IEQCM_WORKLIST_GET_LIST
    IEQCM_WORKLIST_SAVE
    IEQCM_WORKLIST_UPDATE_MODULE
    Regards,
    Anji

  • FM or BAPI for Tcode: FAGLSKF

    Hi,
    I have searched SDN and was unable to find any BAPI for posting into Tcode FAGLSKF.
    When I decided that i need to go with BDC, unfortunately it is not a table container and a ALV container.
    Let me know how to deal with it.
    I have found some FM for this but doesnt do any validations and directly write into the table .
    Regards
    Krish

    Try  'BAPI_ACC_POST_STAT_KEYFIGURE'
    Find Sample code for the same
    DATA :
           ls_doc_header         TYPE          bapifaglskf01,
           ls_item_file_content  TYPE          zst_fi_upload_format,
           lt_extension          TYPE TABLE OF bapifaglskf03,
           lt_doc_items          TYPE TABLE OF bapifaglskf02,
           ls_doc_items          TYPE          bapifaglskf02,
           ls_return             TYPE          bapiret2.
    ********Form Document Header.
       CLEAR ls_doc_header.
       ls_doc_header-comp_code = iv_company_code.
       ls_doc_header-date_from = iv_date_from.
       ls_doc_header-date_to = iv_date_to.
       ls_doc_header-version = '1'.
       ls_doc_header-act_plan_indicator = '0'."Actual
    * Form document Item
       REFRESH lt_doc_items[].
       LOOP AT it_item_file_content INTO ls_item_file_content.
         ls_doc_items-statkeyfig = ls_item_file_content-stagr.
         ls_doc_items-profit_ctr = ls_item_file_content-prctr.
         ls_doc_items-quantity  = ls_item_file_content-mbgbtr.
         APPEND ls_doc_items TO lt_doc_items.
         CLEAR ls_doc_items .
       ENDLOOP.
    **Call BAPI to creat the Document
       CALL FUNCTION 'BAPI_ACC_POST_STAT_KEYFIGURE'
         EXPORTING
           documentheader = ls_doc_header
         TABLES
           linedata       = lt_doc_items
           extension1     = lt_extension
           return         = et_return.
       CLEAR ls_return.
       READ TABLE et_return INTO ls_return WITH KEY type = 'S'.
       IF sy-subrc EQ 0.
         ev_doc_no = ls_return-message_v1.
       ENDIF.

  • Is there any Bapi for Physical Sample creation

    Hi Folks,
    Is there any Bapi for physical sample creation. My scenario is like this I have the data in the table (material, plant, batch, type,vendor, vendorbatch ). For each material i have to create a  physical sample......
    Any ideas or suggestions would be appreciated..
    thanks
    chaithanya.

    HI Chaitanya,
    You can use : BAPI_BATCH_CREATE
    it has import paramaters like Material, Plant , batch , Batch Attributes ( Vendor No, Vendor Batch etc)... I guess this is what you are looking for.
    Regards,
    -Venkat.

  • Any BAPI for Auto clearing of Vendor accounts

    Hai,
    Any body know, any BAPI for Auto clearing of the Vendor account(transaction F.13).
    This urgent issue.
    Reward will promote you.
    Bye ,
    Elamaran

    no, there's no bapi
    -> another report is rfbibl00 with transaction fb05
    -> you've to fill structures bselk and bselp
    regards Andreas

  • Is there any BAPI for BOM creation? which does by RCSBI010 / Batch Input.

    Hi Experts,
    I need to Upload the extracted Excel-file(.txt) for BOM creation, so, pls, let me know that, Is there any BAPI for this purpose. In detail the requirement is that,
    The suggested idea shuld work as like as pgm. RCSBI010
    thanq
    Edited by: Srinivas on Feb 14, 2008 6:18 PM

    Hi Srinivas,
    Try these Function Modules
    CS_BI_BOM_CREATE_BATCH_INPUT   - Create BOM Via Batch Input
    CS_BI_BOM_CREATE_BATCH_INPUT1  - Create BOM Via Batch Input (Corrected Session Handling)
    There are two BAPI's too, which can be used
    ALE_MATERIAL_BOM_GROUP_CREATE
    BAPI_MATERIAL_BOM_GROUP_CREATE - Creation of a material BOM group
    Hoe this helps.
    Edited by: Priyabrata Samanta on Feb 15, 2008 3:56 AM

  • Need a BAPI for Tcode 'OX19'

    Hi,
      I need a BAPI for Tcode 'OX19' so that the comapny codes for that Controlling area gets updated in the database.
    Regards,
    Deepthi.

    Hi,
    Using the  BAPI "BAPI_COAREA_GET_RELATED_CCODES" , I am able to view the company codes for that Controllling area. I need for Creation of Company codes for the controlling area. can you tell me please.
    Regards,
    deepthi.

  • Do we have any BAPI for FBL3N or FBL4N?

    Hi Experts,
    Pls. let me know that, Is there any BAPI for FBL3N or FBL4N? really, am struggling!!
    thanq

    THANQ
    looks like its working.
    so,  pls. let me know example input parameters. bcoz, I hv the values of  comapny codeYEAR; month, GL ACCOUNT #; PROFIT CENTER AND KOST CENTER.
    bcoz, when I see the input paras, they r confusing.
    thanq

  • Are there any bapi for create Business Partner

    Dear Sir,
    Do you know  are there any bapi for create Business Partner in CRM
    Please advise.
    Thank you and best ergards,
    Vimol

    Dear Vimol,
    BAPI_BUPA_CREATE_FROM_DATA     ......SAP BP, BAPI: Create Business Partner
    BAPI_BUPA_FS_CREATE_FROM_DATA  .......SAP BP, BAPI: Create Business Partner
    BAPI_BUPA_FS_CREATE_FROM_DATA2 .......SAP BP, BAPI: Create Business Partner
    Hope this will help.
    Regards,
    Naveen.

  • Any BAPI for Transaction VF01??

    Hi Experts ,
    Is there any Bapi for transaction VF01.
    If it is then plz. do help me to use that one with coding .
    Regards,
    Rahul

    Hi,
    Check this sample code of creating the billing document using the bapi BAPI_BILLINGDOC_CREATEMULTIPLE.
    DATA: t_success TYPE STANDARD TABLE OF bapivbrksuccess WITH HEADER LINE.
    DATA: t_billing TYPE STANDARD TABLE OF bapivbrk WITH HEADER LINE.
    DATA: t_return TYPE STANDARD TABLE OF bapireturn1 WITH HEADER LINE.
    t_billing-salesorg = vbak-vkorg.
    t_billing-DISTR_CHAN = vbak-vtweg.
    t_billing-DIVISION = vbak-spart.
    t_billing-DOC_TYPE = vbak-auart.
    t_billing-ref_doc = vbak-vbeln.
    t_billing-ref_item = vbap-posnr.
    t_billing-doc_number = vbak-vbeln.
    t_billing-ITM_NUMBER = vbap-posnr.
    t_billing-ordbilltyp = 'BILLING TYPE'.
    t_billing-price_date = sy-datum.
    t_billing-ref_doc_ca = vbak-vbtyp.
    t_billing-sold_to = vbak-kunnr.
    t_billing-material = vbap-matnr.
    t_billing-plant = vbap-werks.
    APPEND t_billing.
    CALL FUNCTION 'BAPI_BILLINGDOC_CREATEMULTIPLE'
    TABLES
    billingdatain = t_billing
    return = t_return
    success = t_success.
    commit work.
    <b>Reward points</b>
    Regards

  • Is there any BAPI  FOR TASKLIST CREATION OF ANY EQUIPMENT ?

    Dear Sir,
    Is there any BAPI  FOR TASKLIST CREATION OF ANY EQUIPMENT .
    Thanks.
    Regards,
    Pooja Joshi.

    Hello Pooja
    Perhaps the following link may be useful:
    <a href="http://www.sapfans.com/forums/viewtopic.php?p=906052">FAQ: Plant Maintenance and Customer Service BAPIs</a>
    Regards
      Uwe

  • Any BAPI for Transaction MIRO

    please tell me any BAPI for Standard transaction MIRO , or should I have to use BDC instead ?
    PLease rep , thnx in advance

    BAPI_INCOMINGINVOICE_CREATE

  • Any BAPI for calculating Previous Period Balances?

    Is there any BAPI for calculating previous period balances my period is 04 and have to display 123 period balances.
    please help.
    Moderator message: please search for available information/documentation before asking.
    locked by: Thomas Zloch on Oct 5, 2010 4:45 PM

    Well, did you even try via SE37 a simple F4 with BAPIBALANCE or BAPIACCBALANCE* will give you the answer....
    Regards,
    Raymond

Maybe you are looking for