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.

Similar Messages

  • 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.

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

  • Problem in doing BDC recording for Tcode FAGLSKF

    Hi All,
    I need to make postings for Statistical key figures. For this I need to make postings using transaction FAGLSKF.
    Now my problem is that when I try to make recording for transaction FAGLSKF I could not see the values recorded for ITEM Data Table control.
    Any one having any idea as what I am missing. Your suggestions would be really helpful.
    Regards,
    Lalit

    Hi Poorna,
    Thanks a lot for the valueable feedback.
    I checked the FMs mentioned by you. These FMs make the SKF posting but these FMs do not perform any kind of validations.
    Like for example if I use tcode FAGLSKF and try to make some posting. In case I am giving some invalid input to this transaction ( e.g. wrong Statistical Key Figure Value ) , this t code does not allow us to post and immediateley thorows some error.
    Where as I use FM FAGL_FAGLSKF_PN_POST, this FM makes an entry in the table FAGLSKF_PN without any validations.
    This FM simply insert an entry to the table FAGLSKF_PN.
    Any Idea how to overcome this. I want to make the validations in the same way as done using Tcode FAGLSKF.
    Thanks a lot for your valueable inputs.
    Regards,
    Lalit

  • Pls suggest right BAPI  FOR  Tcode(MSC2N)

    Hi All,
    I am uploading the data(characteristic values) through the Tcode MSC2N When I am trying to do this through bdc it's not allowing to change characteristic values?What will be the problem?we can use the BAPI BAPI_OBJCL_CHANGE but this bapi will only change the characteristic values but I also need to change date1 field(this is there in the Basic data2in the same transaction MSC2N) Can any body suggest how to do this please?
    Thanks&Regards
    Mahesh

    Hay Mahesh
    Try with the following BAPI's
    BAPI_OBJCL_CREATE              Classification BAPI: Create Assignment
    BAPI_OBJCL_CREATE_KEY          BAPI for Classification: Create Assignment (Key)
    Thanks & regards
    Sreenivasulu P

  • 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.

  • Any FM/Bapi/program to find BAPIs for tcodes?

    Hi,
    Is there any program or BAPI or FM  to find all the BAPIs that are used in Tcode.
    Thanks
    Ganesh

    There is no such report, and it will be hard (via ABAP) to determine which BAPI should be used for a certain transaction. These BAPI's are normally not used in transactions since these BAPI's are to be called from remote systems. So there is no 'where used'  for this.
    So to determine this will be very very hard. A long shot, not even sure this will work:
    1. Determine BAPI's called from IDoc's.
    2. Determine function module which is called from within BAPI.
    3. Simulate the 'where used' functionality in other programs.
    4. Check if any of these programs have a transaction code attached to it.
    As I said, very hard, if not impossible.
    BTW: Are you looking for BAPI's or BADI's? Big difference.
    Edited by: Micky Oestreich on Mar 6, 2009 6:22 PM

  • BAPI for KB11N tcode

    Hi,
    Could you please let me know if there is a standard BAPI which does the same functionality as that of KB11N tcode.
    Regards
    Vimal

    pls chk this thread
    Re: BAPI for Tcode KB11N

  • Find a bapi for Creates a Goods Receipt with correspond to Inbound Delivery

    hi expert!
    exist a bapi for tcode:MIGO_GR ( Goods Receipt with correspond to Inbound Delivery)
    i know one bapI  BAPI_GOODSMVT_CREATE can Creates a Goods Receipt,
      but i can't know to use it to Creates a Goods Receipt with correspond to Inbound Delivery.
    or other bapi exist for MIGO_GR?
    Best Regard!

    Hi Vatcan,
    Chek the Inbound Delivery 1st weather you refer the right PO in it
    You can also chek in  PO i
    1 Me23n Go to confirmation tab here you can see the  Inbound delivery  quantity
    2 Chek  which reference document you recived the goods,  (i.e You recived the goods with reference to PO or  Inbound delivery)
    2 Coz if you refer the inbound delivery then syestem will deafult show the inbound quanity
    And yes the actual quanity will update in inbound delivery if you refer the inbound deivery while reciveing the goods

  • How to implement bapi for transaction code f-02 for multiple line items

    Hi All,
    I am having one requirement to of implementing bapi for tcode f-02.
    I have identified the name of the badi e.i.  BAPI_ACC_GL_POSTING_POST.
    but i dont have any idea how implement it.
    i have multiple line items for one header.
    Please help me in this.
    Regards,
    Shoaib.

    HI
    In recording once u save, the recording comings out the transaction.
    If u want the pop-up to display before save. Then in recording also
    after entering all data and before Save press enter or do check.Try
    this way after that save the transaction.
    Regards,
    Raghu.

  • Very Urgent : 'BAPI for CK74n in ECC 6.0 for crating the cost estimates'

    Hi guys,
    i am working in the upgradation project from 4.5b to ecc 6.0
    in 4.5b we have the tcode ck71 for cost estimates
    the respective tcode in ecc 6.0 is CK74N
    I want BAPI for tcode CK74N to upload the data
    can you please help me to find out the respective BAPI
    Thanks
    Ramesh

    Hi guys,
    i am working in the upgradation project from 4.5b to ecc 6.0
    in 4.5b we have the tcode ck71 for cost estimates
    the respective tcode in ecc 6.0 is CK74N
    I want BAPI for tcode CK74N to upload the data
    can you please help me to find out the respective BAPI
    Thanks
    Ramesh

  • BAPI for COR1 and CO58

    Dear all,
    Could anybody tell me if there are any standard BAPIs for
    tcodes -
    COR1 - Production Process Order Creation
    CO58 - PI sheet maintain
    Points assured.
    Subodh

    Hi,
    COR1 : BAPI_PROCORD_CREATE for process order create
    Thanks
    Vikranth

  • Need BAPI for MR21 - ML active Materials

    Hi Experts,
    I am unable to find the BAPI for tcode MR21 for materails for which Material Ledger is active.
    For ML active materials there are 3 tabs 1. company code currency 2. Groupd currency 3. Hard currency.
    I need to update the standard price for all these 3 currencies using BAPI. Please let me know if any one knows the exact BAPI for this.
    Answers are highly appreicated.
    Thanks,
    Sunil kairma.

    closing thread for no answer

  • BAPI for PCC

    Hi Frnds,
    If there any BAPI For Tcode KKF6N (PRoduct Cost Collector Creation).
    If Available meanse.
    << Please do not ask for "immediate" help. >>
    Thanks in advance
    Regards
    Geetha K
    Edited by: Rob Burbank on Jul 30, 2010 2:54 PM

    hi as such no bapi provided for this u can check
    below is method for finding bapi
    1. Find out the package of the transaction.
    Start KKF6N go to system --> status.
    Double click on transaction
    Package is KKPK
    Open this package in SE80
    Open business engineering-->Business object types
    Find the BO which sounds the most appropriate
    but there is no bapi provided for this package if u want u can search for another transaction
    if it is there Double click.
    Open methods.
    Find the released method with from data or something similar in the name
    Position the cursor in it and click the program button
    Scroll down to find the bapi used in this method

  • BAPI -for Creating EXCISE INVOICE AT DEPOT  tcode 'J1IG

    Hi All,
    Is there any  BAPI for Excise Invoice Creation at depot Tcode is J1IG
    Thanks,
    Satishreddy

    Hi,
    Please try this Function Module
    J_1I4A_CREATE_EXCISE_INVOICE
    Hope it helps.
    Regards
    Hiren K.Chitalia

Maybe you are looking for