Function module for FI document change with G/L line items

Hi!
Does anybody know how to change FI document with G/L line items (fields like XREF3, SGTXT, ZUONR - generally speaking, all the fields can be changed with FB02)?
FM FI_DOCUMENT_CHANGE has needed functionality and works well for account payables and account receivables line items, but it doesn't handle general ledger line items.
Regards,
Maxim.

Hello!
The function has some mandatory fields to use:
I_AWTYP -> get value from BKPF-AWTYP for the specific document;
I_AWREF -> number of the document to change;
I_AWORG-> concatenate document's company with respective year;
Then, only one of the following fields should be filled:
i_lifnr,
i_kunnr,
i_obzei,
i_buzei.
You can find the relevant data for this fields in BSEG.
The structure I_BSEGC should be filled with data you think appropriate. I didn't tested it, but i think the first fields are sufficient.
Then, add lines (1 for each field you wish to change) in table T_ACCCHG.
However, you should notice that you're not allowed to change all fields. For instance, KKBER is one of the fields that is forbidden to change in this FM.
Hope that helps.
Rui Delca Mendes

Similar Messages

  • Any BAPI/Function Module for adding new record with dates in PA0027

    Hi all,
    I am tryig to find is there any BAPI/Function module for updating new record with Start Date and End date for specified Personal Number in PA0027 Table.
    In PA0027 table i will be passing start date and end date for selected personal number, it needs to add new record with this details in the table checking the condition that this start date and end dates should not be between any of of start date and end dates for the specified personal number.
    thanks for ur time.
    Murali

    Hi Raj/Suresh thanks for ur answers.
    but i am having a problem,i gave this values.
    INFTY               -
                0027
    NUMBER              -
                00000010
    SUBTYPE             -
                010
    OBJECTID
    LOCKINDICATOR
    VALIDITYEND         -
                03/12/2006
    VALIDITYBEGIN       -
                03/01/2006
    RECORDNUMBER        -
                000
    RECORD              -
                P0027
    OPERATION           -
                CHK
    TCLAS               -
                A
    DIALOG_MODE         -
                0
    NOCOMMIT            -
                Y
    VIEW_IDENTIFIER
    SECONDARY_RECORD
    i am getting short dump saying that
    The source field is too short.
    The current program, "SAPLHRMM", tried to assign a field to a field symbo
    However, the field is shorter than the type of the field symbol, which
    is not allowed.
    The statement in question is in the form ASSIGN f TO <fs> CASTING or
    ASSIGN f TO <fs> with a field symbol that was created using the
    STRUCTURE addition.
    I tried  operation - Chage,Create (same thing for all inputs)
    is this correct funtion moduel for my requirment?
    what ever i am passing the start and end dates this should check in the table records with this personal number and if this start date and end dates are not between of any start and end dates then it should add new record with this dates.
    Thanks for ur time.
    Murali.

  • Is there any function module for purchase order change

    Hi Experts,
    Is there any function module for purchase order change or i need to do new recording in me22n.
    Thanks,
    Senthil

    Hi
    Function module <b>BAPI_PO_CHANGE</b> enables you to change purchase orders. The Change method uses the technology behind transaction ME22N.
    Regards,
    Viven

  • Function module for reversing documents

    Is there a function module for posting reversal documents like F08 transaction.....

    Hi,
    We have BAPI's to reverse the documents.
    Check with 'BAPIREVERSE in SE37.
    Right now iam not on the systemto go indepth.
    Thanks,
    Deepak.

  • Function Module for PM Order Change?

    Hello Everyone,
    I want to change a plant maintenance Order's Header Data, operations list  and object list.
    Is there any existing function module for this.
    R/3 version which I am using is 4.6c.
    I have found a function module 'ALM_ME_ORDER_CHANGE' but unable to change any of the order's data using this.
    Thanks & Regards,
    Swati

    Hi,
    Here is  the Function Module  :  BAPI_ALM_ORDER_MAINTAIN
    Reward  Points if it is usefull..
    Girish

  • Function module for Create service order with reference to sales doc (RAS )

    Hi All,
    I have to create a service order (type SM03) with reference to sales document (doc type RAS, in other way it is called as repair order).
    I have used function module 'ALM_ME_ORDER_CREATE' && 'CO_ZV_ORDER_POST' to create service order and its working fine but problem is that i am not able to create linking between repair order and service order.
    Can anyone suggest me function module, BAPI to create service order with reference as sales document (RAS) so that all related details of sales document will automatically reflect to service order..
    Sumit

    Try this function module BAPI_ORDER_MAINTAIN. Just search with BAPI_ORDER* in SE37 you will get some more functions.
    Regards
    Kathirvel

  • Function module for getting all changes to BPs Business Partners for today

    Can any body knows function module to find out all changed documents to the BPs depending upon the date.
    Requirement is i have to find out the all BPs changed today in transaction FPP3.how can i find all those changed documents . Is there any FM to find out.
    Vineel

    Hi Vineel,
    For debugging: GoTo /n Click on the right most icon which is Customizing of local layout then click on create shortcut a screen will displayin that goto Application section select system command from the dropdown in Type, then write /h in command press OK a short cut will be automatically created on your desktop now drag this debugger on that pop up in TXn FPP3 and play with the debugger......
    Hope this will help..

  • Search for a function module for deleting document originals (DMS)

    Hi,
    I'm searching for a function module to delete originals in documents (like manually with transaction cv02n). I'm only able to set an delete mark with the module 'BAPI_DOCUMENT_DELETE'.
    The module 'BAPI_DOCUMENT_CHANGE2' can only add new originals to an existing document. I need a possibility to delete all originals in an document without deleting the document itself.
    Has anyone an idea?
    Thanks.
    Jan-Christian Treusch

    Many thanks!
    That's especially the method I've searched for so long....
    best regards.
    Jan-Christian Treusch

  • Function modules for delivery creation, change, deletion.

    hi all,
    anyone know and worked on function module to create/change/delete deliveries with reference to sales order/without reference of sales order.
    if any one knows about the function modules please let me know.

    BAPI_DELIVERYPROCESSING_EXEC will allow you to create an outbound delivery, but this is <b><u>not released</u></b> for customer use yet(Rel.47). Type that function module in the forum search area and you will get some sample code.

  • Is there function module for looking up CHANGE AUTHORIZATION for a cube?

    Hi All,
    In our BPS program we would like to look up the change authorizations a user has for his company in a cube. The problem is that with our current function module: RSSB_GET_AUTH_FOR_USER , SAP returns the values for "acitvity" DISPLAY and we would like to have "acitvity" CHANGE permissions.
    In other words:
    Is there a function module which we can use to look up authorizations for BW 7.0 on infocubes?
    Thank you very much.

    Hi
    Function module <b>BAPI_PO_CHANGE</b> enables you to change purchase orders. The Change method uses the technology behind transaction ME22N.
    Regards,
    Viven

  • Function module for srm document flow

    Hi Friends,
                  If there is any function module which give me the complete document flow for the document.

    Hi Nilesh,
    Are you talking about shopping cart?
    pl. go to transaction BBP_PD in EBP GUI.
    this transation can give you which all tables are updated when a SC is created.
    BR
    Dinesh

  • Function module for disconnection document (SAP Utilities)

    Hi ,
    Can any body tell the function module or bapi for creating disconnection document(EC85) for an installation?
    vineel.

    Can you check the Following  Link
    http://help.sap.com/saphelp_utilities472/helpdata/en/e6/297540540ed362e10000000a155106/Release_Infos_472_e.pdf
    1.11.3.1.2 BAdI ISU_SERVORD_EDCN
    Kanagaraja L

  • BAPI function modules for F-30(Post with clearing)

    Hello,
    Is there any BAPI FM that can be used for F-30?
    I am trying to program a BDC for this transaction. 
    But it turns out very difficult since there are a few radio buttons and also it's hard to determine the line number of an open invoice.
    Thanks,
    Karen

    Hi,
    try to use rfbibl00 with structures bselk and bselp and TA FB05
    look here: Re: BAPI for F-30
    Andreas

  • Function Module for creating Functional Location BOM and Equipment BOM

    Hi All,
    Is there any function module for creating and changing Functional Location BOM and Equipment BOM ???

    Hi,
    Tables for Eq., BOM: EQST, STKO, STPO.
    Tables fro Fun., Loc., BOM: TPST, STKO, STPO.
    You can use FMs: CS_BOM_EXPL_TPL_V1, CS_BOM_EXPL_EQU_V2 & CS_BOM_EXPL_MAT_V2 for extracting the appropriate BOM related data.
    And for the Alternatives please check the customizing or check with your respective Module experts for the appropriate configuration.
    Hope this helps.
    Best Regards, Murugesh AS

  • Function modules for PPM

    Hello APO gurus,
    I am new APO technical, Can anybody please suggest Remote function modules for PPM creation, change and Delete
    Thanks
    suresh

    Hi,
    These are BAPI Remote Function modules you can use for create , change and delete PPMs
    BAPI_PPMSRVAPS_GETLIST     - Read PPMs, Plans and Dependent Operations                                                  
    BAPI_PPMSRVAPS_SAVEMULTI_30A      - Maintenance of Production   Process Models and Plans.
    I hope useful for PPMs
    Thanks
    sreeni

Maybe you are looking for

  • AP PERIOD을 CLOSE할수 없는 경우

    제품 : FIN_AP 작성날짜 : 2003-05-15 AP PERIOD을 CLOSE할수 없는 경우 ======================== PURPOSE 닫히지 않는 AP PERIOD을 닫는다. Problem Description fact: APXSUMPS - Control Period Statuses symptom: AP Accounting Period를 close할수 없음 symptom: 다음의 에러 발생: APP-SQLAP-10741:

  • Account determination with out account keys

    Can we do account determination with out account keys? and explains how?

  • Flash + ASP easy question

    Hello! This is my 1st time doing Flash + ASP integration. Each time i see a tutorial using this 2, all i see is: Flash has dynamic fields with var named the same as the one in ASP. Then it sends data to ASP and he returns the var value and it is writ

  • Can't seem to stream (RTMP) an FLV file in Flash Media Playback from the Amazon Cloud

    I seem to be having trouble streaming any FLV file using RTMP from the Amazon Cloud.  Other file formats (i.e., MP4, F4V) seem to work just fine. I tried using your Flash Media Playback demo page and still had the same problem: http://www.osmf.org/co

  • How to fit HTML into a web content overlay?

    How can I fit a 640px x 960px HTML generated from Adobe Animate into a Web content overlay with 640x x 960x dimension graphic frame? When I uncheck the "scale content to frame" option, the HTML was scaled up--cropping 3/4ths of the image. But with th