Change Accounting Document FB02 without BDC

Hi All,
I want to created ABAP program for Change Accounting Document Information like transaction FB02.
but i dont want to use BDC, cause i don't want to give user authorization FB02,
Can somebody give me the solution.
Best Regards,
Ferry

Hi,
Use the concept of Transaction variants.(Transaction SHD0) You need not copy the standard program for FB02, Just create a transaction variant for FB02 and assign a custom transaction code(also called variant transaction) to access the transaction
Also you can assign authorizations for the custom transaction.
Using transaction variant, you can hide some fields(business critical), input disable, make mandatory and default some values on the screen fields of FB02.
Also note: If you active the transaction variant as Standard variant, then when ever you call FB02, the transaction variant is called with the screens(of the transaction variant)
Documentation for transaction variants is available in SHD0 -> Application tool bar -> icon
Hope this helps
Regards
Shiva

Similar Messages

  • BAPI/Function to change Accounting Document

    Hi All,
    I have requirements to change Assignment field and text field in the accounting document for each item.
    Anyone know BAPI/Function to do that?
    Thanks,
    Victor.

    Hi Sandipan,
    I can't find Change accounting document BAPI from the link that you gave.
    Manually, how user change  the text and assignment fields is using FB02 t-code and double click each line item, from there we can change the text and assignment fields.
    I tried to record those steps and will create BDC program for that. But the problem is for each line item the subsequent screen can be vary and i think it depends on the G/L account that tied for each line item.
    So i don't think BDC is a good idea to do this.
    Any suggestion guys to do this?
    Best Regards,
    Victor.

  • MV50AFZ1 - Change Accounting Document During PGI

    Using MV50AFZ1 User - Exit ,can i change accounting document during PGI.I want to change the Business Area.
    If not ,please tell me which User Exit can help me in this.
    Thanx,
    Viru

    Hi
        business add-in LE_SHP_GOODSMOVEMENT for ur requirement
    Discuss with the abaper and proceed according to ur requirement and be very specific so that it should not influence the others.
    This badi during processing of PGI u can change the data related to accounting document.According to ur requirement the business area can be changed during PGI.
    Edited by: sameer basha on Mar 25, 2009 7:41 AM

  • BAPI/FM to update accounting document (FB02 transaction code )

    Hi ,
    Please let me know is there any BAPI/FM to update base line date and discount at header lelvel in accounting document
    (FB02 transaction code ) . basically to update vendor open invoices documents
    thanks
    Naveen

    Ok i finally figures out how to get around this issue.
    USe FM: PRELIMINARY_POSTING_DOC_WRITE

  • Account document parking in BDC with multiple records

    Hi,
    I am writing one BDC program to park document( not posting the document) using transaction u2018FBV1u2019.In the file, we can have multiple item for posting key 40 and single item for posting key 50 and vice-versa. We can have multiple item both for posting key 40 and 50. But the summation of all amount of all record for posting key 40 and 50 should be u20180u2019( for debit and credit).All these multiple records is actually creating one account document.
    I have created the recording and written the BDC program, but I hope I am missing the grouping of records for posting key 40 and 50 for single document number. Can pls guide me for the same. If anyone has encountered such problem, can you pls guide me for the same. If you haave the code for BDC, please send me the same.
    Edited by: amrita banerjee on Jun 20, 2008 12:53 AM

    Hi amrita,
    I do not understand what do you mean by grouping of records. Can you please explain.
    Still for parking documents, the recommended solution will be to use the standard batch input program RFBIBL00.
    Here is the sample psedo-code
    *bgr00
      wa_bgr00-stype   = 0.
      CONCATENATE  'FBV1' sy-uzeit+0(2) '_' sy-uzeit+4(2)
                  INTO wa_bgr00-group.
      wa_bgr00-mandt   = sy-mandt.
      wa_bgr00-usnam   = sy-uname.
      wa_bgr00-start   = sy-datum.
      wa_bgr00-xkeep   = space.
      wa_bgr00-nodata  = '/'.
      MOVE wa_bgr00 TO wa_file.
      APPEND wa_file TO it_file.
      v_empty_indicator = wa_bgr00-nodata .
    *bbkpf
      PERFORM build_data CHANGING wa_bbkpf.
      wa_bbkpf-stype = 1.
      wa_bbkpf-tcode = 'FBV1'.
      wa_bbkpf-bldat = wa_docheader-doc_date.
      wa_bbkpf-blart = wa_docheader-doc_type.
      wa_bbkpf-bukrs = wa_docheader-comp_code.
      wa_bbkpf-budat = wa_docheader-pstng_date.
      wa_bbkpf-monat = wa_docheader-fis_period.
      wa_bbkpf-waers = 'USD'.
      wa_bbkpf-xblnr = wa_docheader-ref_doc_no.
      wa_bbkpf-bktxt = wa_docheader-header_txt.
      MOVE wa_bbkpf TO wa_file.
      APPEND wa_file TO it_file.
    *bbseg
      LOOP AT it_accntgl INTO wa_accntgl.
        CLEAR wa_bbseg.
        PERFORM build_data CHANGING wa_bbseg.
        READ TABLE it_curramount INTO wa_curramount INDEX wa_accntgl-itemno_acc.
        wa_bbseg-stype = '2'.
        wa_bbseg-tbnam = 'BBSEG'.
        wa_bbseg-zuonr = wa_accntgl-alloc_nmbr.
        wa_bbseg-newbk = wa_accntgl-comp_code.
        wa_bbseg-wrbtr = wa_curramount-amt_doccur.
        wa_bbseg-kostl = wa_accntgl-costcenter.
        wa_bbseg-aufnr = wa_accntgl-orderid.
        wa_bbseg-hkont = wa_accntgl-gl_account.
        wa_bbseg-prctr = wa_accntgl-profit_ctr..
        wa_bbseg-projk = wa_accntgl-wbs_element.
        IF wa_curramount-amt_doccur LT 0.
          wa_bbseg-newbs  = '40'.
        ELSE.
          wa_bbseg-newbs  = '50'.
        ENDIF.
        MOVE wa_bbseg TO wa_file.
        APPEND wa_file TO it_file.
      ENDLOOP.
      DATA: l_filepath TYPE eseftappl.
      CONCATENATE '/tmp/FBV1_load' sy-uzeit '.txt' INTO l_filepath.
    *write app file for rfbibl00
      PERFORM write_data_appl USING it_file l_filepath.
    *Submit the data to post the document
      SUBMIT rfbibl00 WITH ds_name   = l_filepath
                      WITH fl_check  = ' '
                      WITH callmode  = 'C'
                      WITH xinf      = 'X'
                      AND RETURN.
    form build_data  changing pv_header  TYPE any.
    DATA:
        v_field(3)   TYPE n.
      FIELD-SYMBOLS <fs_field_value> TYPE ANY.
      v_field = 1.
      DO.
        ASSIGN COMPONENT v_field  OF STRUCTURE pv_header TO <fs_field_value>.
        IF sy-subrc = 0.
    *     if the field is empty then fill it with nodata indicatort
          IF <fs_field_value> IS INITIAL.
            <fs_field_value> = v_empty_indicator.
          ENDIF.
          v_field = v_field + 1.
        ELSE.
          EXIT.
        ENDIF.
      ENDDO.
    endform.                    " build_data
    form write_data_appl   USING    pv_file      TYPE ty_t_filedata
                                    pv_file_path TYPE eseftappl.
      DATA:
           wa_file   TYPE ty_filedata,
           wa_return TYPE bapiret2,
           v_msg  TYPE string.
    *Open the application server file
    *and write the data
      OPEN DATASET pv_file_path FOR OUTPUT
                   IN TEXT MODE ENCODING NON-UNICODE
                   MESSAGE v_msg.
      IF sy-subrc = 0.
    *   write the file to the application server
        LOOP AT pv_file INTO wa_file.
          TRANSFER wa_file TO pv_file_path.
        ENDLOOP.
        CLOSE DATASET pv_file_path.
      ELSE.
        message e000(00) with v_msg.
      ENDIF.
    endform.                    " write_data_appl
    Thanks
    Romit

  • Urgent !!! How to change Accounting document using Billing document numb

    Hi experts,
    I have one requirement where I have to modify the accounting document using report. User will enter billing document no and I have to find out respective accounting document and change header data of it.
    I am very new to these modules so please give me solution.
    Thanks
    Sameer

    Hi
    Go to VF03- Display Billing document. From here you should be able to find the corresponding accounting document. Do note that there are only limited field such as text that is allowed to be changed once posted.
    Rgds
    Nadini

  • Urgent !!! How to change Accounting document using Billing document number

    Hi experts,
    I have one requirement where I have to modify the accounting document using report. User will enter billing document no and I have to find out respective accounting document and I have to change header data..
    I am very new to these modules so please give me solution.
    Thanks
    Sameer

    Hi,
    Get a record from BKPF where
    AWTYP = 'VBRK' & AWKEY = VBRK-VBELN .Once you get the accounting header document you can always fetch item level records from BSEG where bukrs =bkpf-bukrs
    BELNR = BKPF-BELNR & GJAHR = BKPF-GJAHR.
    I hope this helps,
    Regards
    Raju chiatle

  • Change Accounting document

    Hi All,
       I have to update Amount in Accounting Document. Is there any BAPI or FM availabe for it?
      One option is to reverse the accouting document and create a new one. But my requirement it to update the amount in the same accouting document.
    Thanks,
    Punit

    >
    punit.sap wrote:
    >     But my requirement is such, that I have to update the same accounting document.
    Your requirement seems poorly thought out.
    Has anyone talked to your auditors to get their opinion. When a document is posted, there is generally supporing documentation. If you change the amount, that documentation cannot be counted upon to support the data.
    If a document amount is changed, but the document had already been cleared, your accounting system will be a mess.
    Ask the person who gave you the requirements to think the process through fully.
    Rob

  • Change Accounting Document header text

    I want to change the Accounting document header text (BKPF-BKTXT).
    I dont want to use Call transaction for this.
    Please tell me if there is any function module or BAPI available?

    >
    lavanya koduganti wrote:
    > I want to change the Accounting document header text (BKPF-BKTXT).
    Do you want to change the A/c'ing doc. header text for an existing doc? I think that CALL TRANSACTION would be easier. Why do you think otherwise?
    Any specific reason for this?
    BR,
    Suhas

  • User Exit to change accounting document

    Hi all,
    Is there any user-exit in which we can change the accounting document data before it is created.
    I want a user exit which can update the accounting document during PGI for a delivery
    I was able to find the one in ehich we can make chages to the material document and iam sure that there should be one by which we can change the finance document
    Kindly help, this issue is urgent for me
    Regards
    Varun

    Check OSS Note# 415716 "User exits in delivery processing"
    There are several User exits to choose from, this document describes tham all.

  • BAPI to change Accounting Document Header

    Hi Folks,
    I have a requirement to go into an existing document (Billing Doc.) and change the Reference field (XBLNR).  The business requirement is specifically to modify the BKPF-XBLNR field to contain a new reference.  Is there a BAPI that can be used to modify accounting header details?  All the accounting BAPI's I can find seem to be for posting a new record.
    Points will be rewarded for helpful answers
    Cheers,
    Steve

    Hi,
    Check this example code
    TABLES: bapiache08, bapiacgl08,bapiaccr08, bapiret2.
    DATA: t_bapiache08 LIKE TABLE OF bapiache08 WITH HEADER LINE,
    t_bapiacgl08 LIKE TABLE OF bapiacgl08 WITH HEADER LINE,
    t_bapiaccr08 LIKE TABLE OF bapiaccr08 WITH HEADER LINE,
    t_bapiret2 LIKE TABLE OF bapiret2 WITH HEADER LINE,
    ct_bapiret2 LIKE TABLE OF bapiret2 WITH HEADER LINE.
    t_bapiache08-obj_type = 'BKPFF'. "BKPFF
    t_bapiache08-obj_key = '010000000000062005'.
    t_bapiache08-obj_sys = 'T90CLNT800'. "T09CLNT800
    t_bapiache08-username = 'SSI4'.
    t_bapiache08-header_txt = 'DOCUMENT POSTING'.
    t_bapiache08-comp_code = '1000'.
    t_bapiache08-fisc_year = '2005'.
    t_bapiache08-doc_date = '20050805'.
    t_bapiache08-pstng_date = '20050805'.
    t_bapiache08-fis_period = '07'.
    t_bapiache08-doc_type = 'SA'.
    t_bapiache08-compo_acc = 'FI'. "GL
    APPEND t_bapiache08.
    t_bapiacgl08-itemno_acc = '031'.
    t_bapiacgl08-gl_account = '160000'.
    t_bapiacgl08-comp_code = '1000'.
    t_bapiacgl08-pstng_date = '20050805'.
    t_bapiacgl08-doc_type = 'SA'.
    t_bapiacgl08-fisc_year = '2005'.
    t_bapiacgl08-fis_period = '07'.
    t_bapiacgl08-stat_con = 'X'.
    t_bapiacgl08-vendor_no = '1920'. "ACCOUNTING NO.FOR VENDOR/CREDITOR.
    t_bapiacgl08-item_text = 'LINE ITEM TEXT BY VIN'.
    APPEND t_bapiacgl08.
    t_bapiaccr08-itemno_acc = '031'.
    t_bapiaccr08-currency_iso = 'EUR'.
    t_bapiaccr08-amt_doccur = '2000'.
    APPEND t_bapiaccr08.
    CALL FUNCTION 'BAPI_ACC_GL_POSTING_POST'
    EXPORTING
    documentheader = t_bapiache08
    * IMPORTING
    * OBJ_TYPE =
    * OBJ_KEY =
    * OBJ_SYS =
    TABLES
    accountgl = t_bapiacgl08
    currencyamount = t_bapiaccr08
    return = t_bapiret2
    * EXTENSION1 =
    LOOP AT t_bapiret2.
    WRITE :/ t_bapiret2-type, t_bapiret2-id, t_bapiret2-number,
    t_bapiret2-message,t_bapiret2-parameter,
    t_bapiret2-row, t_bapiret2-field, t_bapiret2-system.
    ENDLOOP.
    CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'
    EXPORTING
    wait = ' '
    IMPORTING
    return = ct_bapiret2.
    LOOP AT ct_bapiret2.
    WRITE :/ ct_bapiret2-type, ct_bapiret2-id, ct_bapiret2-number,
    ct_bapiret2-message,ct_bapiret2-log_no, ct_bapiret2-parameter,
    ct_bapiret2-row, ct_bapiret2-field, ct_bapiret2-system.
    ENDLOOP.

  • Error in Accounting document Posting using - BDC

    While creatind document in FB01 using BDC
      PERFORM fill_dynpro_fields1 USING:
               co_true    co_program        '0100' lit_bdcdata,
               space      'BKPF-BLDAT'       it_bkpf-bldat lit_bdcdata,
               space      'BKPF-BUDAT'       it_bkpf-budat lit_bdcdata,
               space      'BKPF-BLART'       tp_type1 lit_bdcdata,
               space      'BKPF-BUKRS'       it_bkpf-bukrs lit_bdcdata,
               space      'BKPF-WAERS'       it_bkpf-waers lit_bdcdata,
               space      'BKPF-XBLNR'       it_bkpf-xblnr lit_bdcdata,
               space      'RF05A-NEWBS'      lco_postkey lit_bdcdata,
               space      'RF05A-NEWKO'      it_bseg-kunnr lit_bdcdata,
               space      'BDC_OKCODE'       co_intro lit_bdcdata,
               co_true    co_program        '0301' lit_bdcdata,
               space      'BSEG-WRBTR'       it_bseg-wrbtr lit_bdcdata,
               space      'BSEG-ZTERM'       it_bseg-zterm lit_bdcdata,
               space      'BSEG-SGTXT'       it_bseg-sgtxt lit_bdcdata,
               space      'RF05A-NEWBS'      lco_postkey1 lit_bdcdata,
               space      'RF05A-NEWKO'      it_bseg-kunnr lit_bdcdata,
               space      'BDC_OKCODE'       co_intro lit_bdcdata,
               co_true    co_program        '0301' lit_bdcdata,
               space      'BSEG-WRBTR'       it_bseg-wrbtr lit_bdcdata,
               space      'BSEG-ZTERM'       it_bseg-zterm lit_bdcdata,
               space      'BSEG-SGTXT'       it_bseg-sgtxt lit_bdcdata,
               space      'BDC_OKCODE'       co_intro lit_bdcdata.
    I am getting message like bseg-wrbtr input value is longer than screen field. but i have declare it as same type as above space      'BSEG-WRBTR'       it_bseg-wrbtr lit_bdcdata,
    Can you help me.
    Always use proper subject line

    Hi Vijay ,
    I have one more problem regarding same please help me.
    In the program i am calling the transaction FB01 twice and two different document is created of SA and DA type.
    After the program is executed i can only see the DA document created log message. But the SA document(message) is getting suppressed but the document is getting created .
    How can i get the both document no at a time once i run the program.

  • Changing account on ipad without losing purchased apps?

    I originally set up my daughters ipad under my account, so I could transfer the games I had bought her on my ipad, how do I change her ipad to her own account? Thank you in advance for your advice. She has an ipad mini. Nicky

    All apps, video are tied to the Apple ID used to purchase them.
    Even if you sign in under a different Apple ID, the original Apple ID password used to download the apps will need to be used for updating the apps.
    To not use the password for the old Apple ID , you would have to delete the apps and redownload them under the new ID. This means any data will be gone and you have to pay for them again.
    You can go under settings, itunes & app store and change the Apple ID.

  • BAPI to Change an Accounting Document

    Hi,
        Is there a BAPI function module to Change an Accounting Document...?? Do let me know please.
         If there is no BAPI, then please suggest a reliable function module which can change accounting Documents and capture messages (without dialog)
    Regards,
    Aditya

    Hi,
           I don't think there is a BAPI to change an accounting document.
           One function module which comes close is FI_DOCUMENT_CHANGE but I am told this function module throws error messages on screen.
           The only reliable solution would be to do a CALL TRANSACTION (in background mode) inside a custom RFC function module
    Regards,
    Aditya

  • Split Accounting Document on the basis of SD Billing Document

    Dear All,
    When we create an SD Invoice, system generates an Accounting Document too. Any idea as to which program / interface does this?
    Also, is it possible that I can split the Customer line item in FI Document? Please see the example below:
    As it happens in SAP
    Billing Document:
    Item 10 - Rs. 1000
    Item 20 - Rs.   500
    Accounting Document:
    Customer A/c Debit      Rs. 1500
         Revenue 1 Credit     Rs. 1000
         Revenue 2 Credit     Rs.   500
    What is required
    Billing Document:
    No Change
    Accounting Document:
    Customer A/c Debit      Rs. 1000
    Customer A/c Debit     Rs.   500
         Revenue 1 Credit     Rs. 1000
         Revenue 2 Credit     Rs.   500
    Thanks in advance,
    Shalin Shah

    Hi Shalin,
    Did you find any solution to this ?
    I have a similar requirement for one of the client as they dont want the delivery/invoice to get split from SD and we cant do FI summarization due to certain other limitations.
    The only option that I see is to split accounting document when it is getting created from Billing. I did happen to find one of the user exit EXIT_SAPLV60B_008, but unsure if it can really help solve the purpose when document clearing, debit credit notes and cancellation happens.
    Regards,
    AS

Maybe you are looking for

  • How can I replace one low quality source with another high quality one ?

    Am I really this dumb or is it really this hard ? I have one timeline / project / edit that essentially references one long source clip / event / file. I have a newer higher quality transcoded version of the same source and want to replace the origin

  • How to Use CMOD and SMOD in SAP using ABAP Code

    Hello anyone,   Please help me How to use CMOD and SMOD in SAP using ABAP code. Give Me Some Sample Example. Mail ID: [email protected] Thanks, Regards, S.Muthu, SAP Developer.

  • Delivery temporarly suspended : [127.0.0.1]: connection refused

    Hello everyone, I have some troubles getting email services up on my server. The plan is to run an SMTP server, POP and IMAP. So far, POP and IMAP seem to be working, as I can log in with different users. But there are no mail messages there. When I

  • Contact in case of emergency

    Hello. in Spain was a campaign to provide the emergency services to contact a family member of a person who had had an accident and remain unconscious. consisted of putting your contact AA letters in front of his name, that so, when emergency service

  • Can we put Join Query with Expdp in Query Parameter

    Dear All Can we put join condition like A.roll_no=B.roll_no in query clause of EXPDP utility of Oracle 10g. My parameter file is INCLUDE=TABLE:"IN ('A','B')" QUERY ="where roll_no between 1 and 100 " then it works and export the data. But I want Abov