Function Module to post budgeting entry

Hi All,
Is anybody aware of a function module which can help me to post a budgeting entry ? I would appreciate if anyone can give me an idea to post a preposted budgeting entry created via transaction "FMBB". The process has to be a background one since I will be integrating this in the background processing of the workflow. Till now I have been exploring the method "PREPOSTED_POST" of the class "CL_FMKU_ENTRYDOC_HANDLER" but it has lots of dependencies and I am not being able to use this method. The transaction "FMBB" does not support BDC as well as it includes a splitter control from where we have to select the document and none of the fields have a parameter ID associated.
Best Regards,
Sudhi

Try
FMAVC_READ_INDEX_ACO_DOWN 
FMBCFF_ENTRY_DOC_POST     
FMBCFF_POST_REVERSAL_DOC  
FMBCFF_REVERSAL_DOC_POST  
FMCCF_BUDGET_POST         
FMBD_POST                 
FMCU_GET_BULEDGERS        
KBPV_POST_DATA            
Thanks

Similar Messages

  • Function module for posting idoc

    Hi,
    For Inbound Idoc
    In function module for posting the Idoc what should be given as the return_variable.

    Hi,
    it depends on application.i have written some piece of code for my requiremnt.chek it,may be it will help u.
    FORM idoc_status_ord_change
         TABLES idoc_data    STRUCTURE  edidd
                idoc_status  STRUCTURE  bdidocstat
                r_variables  STRUCTURE  bdwfretvar
          USING idoc_contrl  LIKE  edidc
                value(retn_info) LIKE   bapiret2
                status       LIKE  bdidocstat-status
                wf_result    LIKE  bdwf_param-result.
      CLEAR idoc_status.
      idoc_status-docnum   = idoc_contrl-docnum.
      idoc_status-msgty    = retn_info-type.
      idoc_status-msgid    = retn_info-id.
      idoc_status-msgno    = retn_info-number.
      idoc_status-appl_log = retn_info-log_no.
      idoc_status-msgv1    = retn_info-message_v1.
      idoc_status-msgv2    = retn_info-message_v2.
      idoc_status-msgv3    = retn_info-message_v3.
      idoc_status-msgv4    = retn_info-message_v4.
      idoc_status-repid    = sy-repid.
      idoc_status-status   = status.
      APPEND idoc_status.
      IF idoc_status-status = '51'.
        wf_result = '99999'.
        r_variables-wf_param   = 'Error_IDOCs'.
        r_variables-doc_number = idoc_contrl-docnum.
        READ TABLE r_variables FROM r_variables.
        IF sy-subrc <> 0.
          APPEND r_variables.
        ENDIF.
      ELSEIF idoc_status-status = '53'.
        CLEAR wf_result.
        r_variables-wf_param = 'Processed_IDOCs'.
        r_variables-doc_number = idoc_contrl-docnum.
        READ TABLE r_variables FROM r_variables.
        IF sy-subrc <> 0.
          APPEND r_variables.
        ENDIF.
      ENDIF.
    regards,
    nagaraj

  • Function Module for Posting the Delivery Doument

    Dear Experts,
            Could you please send me the Function Module for Posting the Delivery Doument.
    Thanks & Regards,
    Ashok.

    Hi,
    What do you mean by POSTING the delivery document?
    Are you mentioning the creation of Goods Issue?

  • Function Module to select all entries in  ALV output

    Hi,
      I have an ALV report and Select ALL and Deselect ALL Buttons added to it .
      When the Select ALL button is pressed,all entries of the ALV report should be selected.
      When the Deselect ALL button is pressed,all entries of the ALV report should be deselected.
      Is there any function module to select all entries of the output and vice versa.
      Thanks in advance.
    Regards,
    Navas

    Hi Navas,
    I have written a part of the code you can use.
      TYPE-POOLS: slis.
      DATA : ls_event TYPE slis_alv_event.
    Set PF Status
      ls_event-name = slis_ev_pf_status_set .
      ls_event-form = slis_ev_pf_status_set .
      APPEND ls_event TO gt_event.
      CLEAR  ls_event.
    FORM pf_status_set USING rt_extab TYPE slis_t_extab.
      SET PF-STATUS 'Z_STATUS'.
    ENDFORM  .                 "set_pf_status
    (no need for any perform. This will be called automatically).
    While calling the FM for ALV, pass the internal table gt_event in it_events parameter.
    Double click on Z_STATUS and add two buttons in Application Toolbar.
    1. Select All - Give function code name as &ALL,
    2. Deselect All - Give function code name as &SAL.
    Hope this helps.
    Thanks,
    Dawood.
    Edited by: Dawood.S.Ghasletwala on Apr 3, 2009 3:51 PM

  • A function module to add an entry to the change log of the ODS needed

    Hi all,
    I want to add an entry to the change log table of the ODS .
    Is there a Function module available for this or a work around for this.
    Regards
    Akshay

    Hi Kiran,
    You can directly add days to the date.
    Eg:
    DATA date LIKE sy-datum.
    DATA days TYPE i.
    date = sy-datum.
    days = 100.
    date = date + days.
    WRITE date.
    Regards
    Wenceslaus

  • Function module for no of entries in a table

    is there any function module by which we can get the number of entries in a database table?

    Hi,
    You can use like:
    select count(*)from dbtab into cnt.
    which will return u the no. of records.
    Regards,
    Renjith Michael.

  • Function Module for Post Partial Clearing

    Dear Expert,
    Is it possible to use FM POSTING_INTERFACE_CLEARING to clear partial open items ? If yes, kindly suggest what parameters need to be passed.
    But should this is not possible, could you suggest  any function modules that can do partial clearing ?
    Thank you

    Dear expert
       Paritial Payment:
    A partial payment is a payment that is posted to an account without any open items being cleared. You assign this partial payment to an open item. When you post the partial payment, the system marks the document number of the original open item in the line item for the partial payment. The original open item and the partial payment remain open.
    Suppose original invoice is with 1000 /-
    current payment is 500 /-
    then it will show both 1000 and 500 as open items with balance 500
    http://help.sap.com/saphelp_47x200/helpdata/en/01/a9bb1f455711d182b40000e829fbfe/frameset.htm
    Residual item:
    A residual item results when a payment is made for less than the actual amount outstanding. You clear the original open item, and the system posts a new open item. This new open item is for the same amount as the original open item minus the amount paid.
    Suppose original invoice is with 1000 /-
    current residual payment is 500 /-
    then balance 500 only shown as open item (New line item created during residual payment )
    http://help.sap.com/saphelp_47x200/helpdata/en/01/a9bb1f455711d182b40000e829fbfe/frameset.htm
    Regards
      Ajeesh.s

  • Function module to Post picking quantity & PGI

    hi all,
    i want to post picking quantity and do PGI for the given delivery document . please let me know if there is any BAPI or function module to do that .
    thanks in advace,
    aswin.

    Hi Friend,
    Use function moudle
    SD_DELIVERY_UPDATE_PICKING, it will do picking and PGI both for delivery.
    Regards
    Krishnendu

  • BAPI/Function Module for posting internal order + cost center plan

    Hi Guru:
    Is there any function module/BAPI, which could be used to post internal order + cost center( both of them )plan data?
    Like post a record:
    internal order = 10000
    cost center = C1000
    amount = 1000$
    for plann version 30?
    It seems the BAPI could only contain 1 cost object, either cost center or internal order.
    Thanks.
    Eric

    Hi again,
    I think you may have missed something important here. In R/3 there can only be a single "real" cost object for any one posting. If not then the whole SAP financail model would collapse as there would be "double postings" and that is certainly not wanted.
    If there is a need to post to two cost objects, like in your case, then one of the cost objects MUST be statistical.
    In your scenario SAP has thought of a solution that might be of help for you. An internal order can be set to be statistical in master data. When posting to both the cost center and the internal order then you will get a real posting for the CC and a statisitical posting for the IO. Reporting does work with this as per your requirement.
    Hope this gives you some hints for how to proceed.
    Regards, Johan
    Aaaaah. Noted that this was only plan data. Sorry. But the same still applies for plan data postings as well as for actual data postings. If there should be just one posting that could be "drilled down" from IO to CC -> If you post twice then, when doing "Grand total" for instance, double values would appear. So, still IO should be statistical. //Johan
    Message was edited by: Johan von Reedtz

  • Function module to find table entries associated with transport request

    Hi all,
       I have requirement, like we have created a table and maintenance view for that table - and made entries in that table.
       now we want to know all the entries made in the table are associated with transport request or not.
      how to do it programmatically?? is there any function module which gives the result for transport object associated with the table entries ?????
    Thanks
    Sathish

    Hi,
    Use the table <b>E071K</b>
    in se16 give :
    request number in TRKORR
    Table name in OBJNAME
    in the filed TABKEY u will get the <b>values of the key fields</b> in the table
    by comparing the key fields u can find out the enrties related to the request number
    Please let me know if i am not clear
    ---Patil
    Message was edited by:
            Santhosh Patil
    null

  • Variables passed to Function module for posting the Idoc

    Hi,
    For Posting the Inbound Idoc a Function module is created what should be the values passed to
    1) return_variable and
    2) workflow_result.
    I saw in many of the program like this if there is an error in posting.
    I gave return_variable-wf_param = ' Error Idoc'.
    and workflow_result = '99999'.
    Why are these values passed, where are they used.

    Josephine,
    In your parntner profile for your customer/vendor ( depending on your idoc type and business scenario) , you would have assigned the post processing permitted agent.
    In case the function module errors out, these values are carried out to the WF container and appropriate post processing notifications are sent to the agents. That is the purpose of having these variables in here.
    It could be a success/failure, agents are notified in either case.
    Ganesh

  • Function module to create log entry with notification

    Hi All,
      I need to create log entry with respect to functional location and it should be attached to notification in transaction LBK1.
    for creating log entry we have separate function module - DIACL_LOG_ENTRY_CREATE.
    for creating Notification also we have separate function module
    BAPI_ALM_NOTIF_CREATE.
    how to link this notification to log entry.
    is there any function module available.
    Its urgent.
    Points will be awarded.
    Regards,
    vinoth.

    Hi,
    Try FM RV_DELIVERY_CREATE or GN_DELIVERY_CREATE.
    For creating a delivery wrt PO u 1st need to have a sales order i guess.
    Regards,
    Amit

  • Function Module to post doc through FPE1 Tcode

    Hi Experts.
    Can you please let mw know the function module used to post doc through FPE1 Tcode in ISU Module?
    Regards,
    surya

    Hi.
    Here is my code. The FM not posting any document.
    DATA:DOCUMENTHEADER   LIKE BAPIDFKKKO,
         PARTNERPOSITIONS LIKE BAPIDFKKOP OCCURS 0 WITH HEADER LINE,
         DOCUMENTNUMBER   LIKE BAPIDFKKKO-DOC_NO,
         RETURN           LIKE BAPIRET2.
    START-OF-SELECTION.
    CLEAR:PARTNERPOSITIONS,PARTNERPOSITIONS[].
    PARTNERPOSITIONS-COMP_CODE = '0400'.
    PARTNERPOSITIONS-CONT_ACCT = '000550116672'.
    PARTNERPOSITIONS-MAIN_TRANS = '6000'.
    PARTNERPOSITIONS-SUB_TRANS = '3021'.
    PARTNERPOSITIONS-DIVISION = '03'.
    PARTNERPOSITIONS-DOC_DATE = SY-DATUM.
    PARTNERPOSITIONS-POST_DATE = SY-DATUM.
    PARTNERPOSITIONS-CURRENCY = 'ZAR'.
    PARTNERPOSITIONS-AMOUNT = '1016190'.
    PARTNERPOSITIONS-BUSPARTNER = '4999924191'.
    PARTNERPOSITIONS-G_L_ACCT = '0008291003'.
    PARTNERPOSITIONS-TAX_CODE = 'A1'.
    PARTNERPOSITIONS-NET_DATE = SY-DATUM.
    PARTNERPOSITIONS-ITEM = '01'.
    PARTNERPOSITIONS-CMMT_ITEM = '1103003'.
    PARTNERPOSITIONS-FUNDS_CTR = '924320'.
    PARTNERPOSITIONS-FUND = 'COJ'.
    PARTNERPOSITIONS-FM_ORIG_AREA = '1000'.
    PARTNERPOSITIONS-FM_CATEGORY = 'G'.
    PARTNERPOSITIONS-CLEAR_REAS = '03'.
    PARTNERPOSITIONS-APPL_AREA = 'R'.
    APPEND PARTNERPOSITIONS.
    CLEAR:DOCUMENTHEADER.
    DOCUMENTHEADER-FIKEY = '10021901/SWF'.
    DOCUMENTHEADER-DOC_TYPE = 'TC'.
    DOCUMENTHEADER-CREATED_BY = SY-UNAME.
    DOCUMENTHEADER-DOC_DATE = SY-DATUM.
    DOCUMENTHEADER-POST_DATE = SY-DATUM.
    DOCUMENTHEADER-CURRENCY = 'ZAR'.
    DOCUMENTHEADER-APPL_AREA = 'R'.
    DOCUMENTHEADER-DOC_SOURCE_KEY = '01'.
    BREAK-POINT.
    CALL FUNCTION 'BAPI_CTRACDOCUMENT_CREATE'
      EXPORTING
        TESTRUN                       = 'X'
        DOCUMENTHEADER                = DOCUMENTHEADER
      COMPLETEDOCUMENT              =
      NET_RECEIVABLES               =
    IMPORTING
       DOCUMENTNUMBER                =  DOCUMENTNUMBER
       RETURN                        =  RETURN
    TABLES
       PARTNERPOSITIONS              =  PARTNERPOSITIONS[].
    WRITE:/ DOCUMENTNUMBER.

  • Function module which sort the entries in Table maintance generator

    hi
        I want to know the function module which is used to sort the entirs in table maintance genrator.
    Thanks

    Hi,
    Go to the TMG program .You can change the code there.
    Rgds,
    Anversha

  • Functional module to get table entries in another system

    Hi all,
    Is there any functional module with which we can get the data of a table which
    belongs to another system(Using RFC calls)
    Thanks and Regads, Pradeep

    Hi  Pradeep
                you can acess another table in the database directly .Follow this way.
    1 transaction code : dbco   : configuration about database that you would like to connect
    2.tell basis team to set system file (example Oracle )  to know the database.
    3.coding , you can use code below to select the data from another database by native SQL .
    PARAMETERS dbs TYPE dbcon-con_name default 'SDB'.
    DATA carrid_wa TYPE scarr-carrid.
    DATA lv_int  TYPE i.
    *Types
    data: begin of ty_equi,
    equipment(25) type c,
    SERIALENERGY(25) type c,
    end of ty_equi.
    *Internal Tables
    data it_equi like table of ty_equi.
    data wa_equi like line of it_equi.
    DATA dbtype TYPE dbcon_dbms.
    SELECT SINGLE dbms
           FROM dbcon
           INTO dbtype
           WHERE con_name = dbs.
    IF dbtype = 'ORA'.
      TRY.
          EXEC SQL.
            CONNECT TO :dbs
          ENDEXEC.
          IF sy-subrc <> 0.
            RAISE EXCEPTION TYPE cx_sy_native_sql_error.
          ENDIF.
          EXEC SQL.
            OPEN dbcur FOR
              SELECT
                     EQUIPMENT,
                     SERIALENERGY
                     FROM emd.meter
          ENDEXEC.
          DO.
            EXEC SQL.
              FETCH NEXT dbcur INTO :wa_EQUI
            ENDEXEC.
            IF sy-subrc <> 0.
              EXIT.
            ELSE.
              WRITE: /
              wa_equi-equipment,
              wa_equi-SERIALENERGY.
            ENDIF.
          ENDDO.
          EXEC SQL.
            CLOSE dbcur
          ENDEXEC.
          EXEC SQL.
            DISCONNECT :dbs
          ENDEXEC.
        CATCH cx_sy_native_sql_error.
          MESSAGE `Error in Native SQL.` TYPE 'I'.
      ENDTRY.
    ENDIF.
    Best Regards
    wiboon

Maybe you are looking for

  • How I can back up my data from macbook pro that its hard drive seems to die soon?

         I need your help guys from the whole world. I am now in Erbil (North Iraq) and there is no apple authorized resellers or anyone who can fix macs, they can destroy them as they try to repair it ( this is what happened      to me recently with My

  • Setting up USB disks connected to Airport Extreme

    I took two different USB drives, formatted one drive with two partitions of Mac OS Extended (journaled) and the other drive formatted NTFS. After attaching the drives to the AE, I established how I wanted to share the devices and set up accounts to a

  • How To Customise Firefox to Print the Date without the Time (Date/Time in Printing Defaults)?

    When printing within Firefox, what is the custom print option to print the date (e.g. 06/06/2010) without the date appearing after it (i.e. NOT 06/06/2010 11:15)? Note: even when the custom print option of "&D" is used, the time still appears...

  • Macbook tries to boot up when closed.

    So I've been noticing lately that my mac is always dead when I close the lid and then come back a few hours later. I didn't really think there was a problem until recently when I had the computer next to me after I closed it. The macbook is trying to

  • Answering the skipped questions

    Hi, While taking up the quiz, if user skips any questions,  can we display those skipped questions again at the end of the test before the result slide Thanks, Sunira