BAPI  :  CHANGE  Assignment  OF  FI DOCUMENT (FB02)

I want change  Assignment of a document  , Is there any BAPI or FM to  do it ?
help please  !  THS

Hi,
you can use BAPI_ACC_DOCUMENT_POST for updating assignment field of FB02.
Structure used in BAPI is BAPIACGL09 which is at item level and field used here is ALLOC_NMBR which is pointing to ZUONR [assignment number.
Thanks
Sudharshan

Similar Messages

  • 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

  • BAPI - Change Payment Terms - FI Document

    Hi,
    I need a BAPI to change the payment terms and the payment method supplement of FI documents. I'm trying the Function Module FI_ITEMS_CHANGE, even though I can change the payment block and some other fields with this one, I'm not able to change the 2 above fields mentionned.
    Thanks for your collaboration!
    Martin

    Hi,
    I'm doing it with transaction FB02. But I would like to do it with a BAPI and I'm looking for it. Are you sure there is not?
    Anyway, this is my BDC code, you can get it doing a recording of the transaction you want in the SM35.
    data: lt_bdcdata   type table of bdcdata,
             lwa_bdcdata  type bdcdata,
             lv_pos(2)    type n,
             lv_buzei(15) type c,
             lv_line      type i.
      define bdc_dynpro.
        clear lwa_bdcdata.
        lwa_bdcdata-program  = &1.
        lwa_bdcdata-dynpro   = &2.
        lwa_bdcdata-dynbegin = 'X'.
        append lwa_bdcdata to lt_bdcdata.
      end-of-definition.
      define bdc_field.
        clear lwa_bdcdata.
        lwa_bdcdata-fnam = &1.
        lwa_bdcdata-fval = &2.
        append lwa_bdcdata to lt_bdcdata.
      end-of-definition.
      bdc_dynpro 'SAPMF05L' '0100'.
      bdc_field  'BDC_OKCODE' '/00'.
      bdc_field  'RF05L-BELNR' if_belnr.
      bdc_field  'RF05L-BUKRS' if_bukrs.
      bdc_field  'RF05L-GJAHR' if_gjahr.
      if if_buzei <= 31.
        lv_pos = if_buzei.
      else.
        lv_line = if_buzei.
        while lv_line > 31.
          bdc_dynpro 'SAPMF05L' '0700'.
          bdc_field  'BDC_OKCODE' '=P+'.
          lv_line = lv_line - 31.
        endwhile.
        lv_pos = lv_line.
      endif.
      concatenate 'RF05L-ANZDT(' lv_pos ')' into lv_buzei.
      bdc_dynpro 'SAPMF05L' '0700'.
      bdc_field  'BDC_OKCODE' '=PK'.
      bdc_field  'BDC_CURSOR' lv_buzei.
      bdc_dynpro 'SAPMF05L' '0301'.
      bdc_field  'BDC_OKCODE' '=ZK'.
      bdc_dynpro 'SAPMF05L' '1301'.
      bdc_field  'BDC_OKCODE' '=ENTR'.
      bdc_field  'BSEG-ZLSCH' if_zlsch.
      bdc_dynpro 'SAPMF05L' '0301'.
      bdc_field  'BDC_OKCODE' '=AE'.
      call transaction 'FB02'  using lt_bdcdata
                               mode  if_mode
                               messages into et_msg.
    Hope this helps you.
    If anyone knows a BAPI for this, please tell me.
    regards,
    Ainara

  • Is there any bapi/Function module to change only header text in fb02

    Hi ,
    I want to change only header text in FB02 .the header text will come  from a internal table.My Requirement is
    1. open a document in FB02
    2.change the header text of the document.
    Right now i'm doing this through an BDC.but i'm looking for a BAPI /FM.
    I Tried bapi_acc_gl_posting_post, fI_document_change..
    is there any BAPI/FM for this???
    Thanks,
    Challa

    You can use SAVE_TEXT FM
    Thanks
    Seshu

  • BAPI only assign Document Data(Document Number/Document Type) to Material

    Hi,
           Can any one tell me A Standard BAPI which is only assign(Not Create New Document Number)
           Document Data to Material Number.
    Regards
    Smruti

    Hi Ganesh,
    i am writing a Custome BAPI for Material Create uisng "BAPI_MATERIAL_SAVEDATA " and also i assign an Existing Document Number ,Document Type to the Material Number which is Created using "BAPI_MATERIAL_SAVEDATA".
    so, i need a one SAP Standard BAPI which is assign an Existing Document Number ,Document Type to Material Number and the Document number and Document type is available  Input Parameter of my Z BAPI.
    Note: Don't Create New Document Number i have docuemnt number and just assign to Material Number
    Thanks and Regards.
    Smruti

  • How to change thousand of FI documents ?

    Hi,
    i want to change thousand of FI documents, it's not possible with FB02 (it will be take a lot of time)
    is there any other possibility to make this change automatically except of creating a Recording (LSMW) ?
    Please advise.
    Regards.

    Hi,
    You can use the GL line item display transaction to perform mass change on "Assignment" or "Line item text"
    Regards,
    Svetlin

  • Bapi / Function to save FI document

    Hallo everybody!
    Is there a function module to create an FI document?
    Thank you very much indeed!!!

    There are BAPI for that (most of those have a _CHECK associated BAPI)
    - BAPI_ACC_BILLING_POST     Accounting: Post Billing Document (OAG: LOAD RECEIVABLE)
    - BAPI_ACC_EMPLOYEE_EXP_POST     Accounting: Post G/L Acct Assignment for HR Posting (OAG: POST JOURNAL)
    - BAPI_ACC_EMPLOYEE_PAY_POST     Accounting: Post Vendor Acct Assignment for HR Posting (OAG: LOAD PAYABLE)
    - BAPI_ACC_EMPLOYEE_REC_POST     Accounting: Post Cust. Acct Assigt for HR Posting (OAG: LOAD RECEIVABLE)
    - BAPI_ACC_GL_POSTING_POST     Accounting: General G/L Account Posting
    - BAPI_ACC_GOODS_MOVEMENT_POST     Accounting: Post Goods Movement (OAG: POST JOURNAL)
    - BAPI_ACC_INVOICE_RECEIPT_POST     Accounting: Post Invoice Receipt (OAG: LOAD PAYABLE)
    - BAPI_ACC_PURCHASE_ORDER_POST     Accounting: Post Purchase Order
    - BAPI_ACC_PURCHASE_REQUI_POST     Accounting: Post Purchase Requisition
    - BAPI_ACC_SALES_ORDER_POST     Accounting: Post Sales Order
    - BAPI_ACC_SALES_QUOTA_POST     Accounting: Post Customer Quotation
    - BAPI_ACC_TRAVEL_POST     Accounting: Post Trip
    - BAPI_ACC_BILLING_REV_POST     Accounting: Post Billing Doc.Reversal (OAG: LOAD RECEIVABLE)
    - BAPI_ACC_GL_POSTING_REV_POST     Accounting: Post General G/L Posting Reversal
    - BAPI_ACC_GOODS_MOV_REV_POST     Accounting: Post Goods Movement Reversal (OAG: POST JOURNAL)
    - BAPI_ACC_INVOICE_REV_POST     Accounting: Post Invoice Receipt Reversal (OAG: LOAD PAYABLE)
    - BAPI_ACC_PYMNTBLK_UPDATE_POST     Accounting: Post Changes to Payment Block for Open Items
    - BAPI_ACC_DOCUMENT_POST     Accounting: Posting
    There are also FM generating BDC data
    - POSTING_INTERFACE_START
    - POSTING_INTERFACE_DOCUMENT
    - POSTING_INTERFACE_END
    Regards

  • Issuing a warning message while changing the payment terms in FB02

    Hi Gurus,
    The requirement is as follows:
    For a particular payment terms meant for customer only when we change the payment terms in FB02, the system should give an warning message.
    For example - A customer has the payment terms 0001in his master data and thus in the accoutning document as well after releasing billing to accounting. An user wants to change the payment terms to 0070 being in FB02. As and when he puts the payment terms 0070, the system should give an warning meesage saying 'bla bla bla ........' or the same message at the time of saving the document.
    How to make this possible. Please help.
    Rgds,
    BABA

    Mr. Tiwari,
    This is the standard feature of SAP!!!  You get below messages
    1)
    Net due date on 05.10.2007 is in the past
    Message no. F5149
    Effects on Customizing
    You can define when this system message is to be issued in accordance with your requirements.
    You do this in Customizing as follows: Cross-Application Components -> Bank Directory -> Change Message Control.
    The application area and message number can be taken from the technical documentation.
    2)
    Net due date on 05.10.2007 is in the past
    Message no. F5149
    Effects on Customizing
    You can define when this system message is to be issued in accordance with your requirements.
    You do this in Customizing as follows: Cross-Application Components -> Bank Directory -> Change Message Control.
    The application area and message number can be taken from the technical documentation.
    Terms of payment changed; Check
    Message no. F5231
    Effects on Customizing
    You can define when this system message is to be issued in accordance with your requirements.
    You do this in Customizing as follows: Cross-Application Components -> Bank Directory -> Change Message Control.
    The application area and message number can be taken from the technical documentation.
    Regards
    Santosh Hegde

  • Changing Status of preceeding document in CHARM

    Hi Experts ,
    I need to change the status of a preceeding document in CHARM.
    I created a YDAD document from YDCR.
    When i change status of YDAD to cancelled i need to change status of YDCR to Cancelled.
    Steps i followed :
    1 . While changing status of YDAD to cancelled i added a new parameter PREDOC_STATUS and given status of YDCR as E0009.
    2. In "Assign actions" for  status "cancelled" of YDAD i hve given a action SET_PREDOC .
    3.In  "Specify Status Attributes"  for  status "cancelled" of YDAD  i hve given YDCR  YDCRHEAD  E0009.
    But still it is not working . Please help me on this .
    Thanks , Vijay

    Hello,
    please take a look to this Re: Change status of previous document
    If solution is not provided; please put break points as stated lines and tell us what you see
    Regards
    Khalil

  • Mass Change fuctionality for Delivery Documents

    Hi all,
    I want to carry out a mass change for a field in the delivery document header.
    I know the transaction MASS is not catering for that.
    Is that any other standard  transaction to do a mass change in the delivery document header level, other than do it through a LSMW?
    Appreciate your help on this!
    Best regards,
    Anupa

    hi,
    MASS is not there.
    As per my knowledge
    BAPI_OUTB_DELIVERY_CHANGE - BAPI for Change to Outbound Delivery
    BAPI_INB_DELIVERY_SAVEREPLICA - Create Inbound Delivery
    RV_DELIVERY_CREATE - Create Delivery
    GN_DELIVERY_CREATE - Create an Outbound Delivery
    REGARDS,
    BALAJIA

  • No original is assigned to the document

    Dear All,
    When a original file is stored in SAP database by CV01N, at first status say work request WR, and  primary status type P it does not store a content version of the original file, at status log tab
    It gives a message
    No original is assigned to the document
    Message no. 26276
    However,
    As and when the status is changed for the DIR from WR to IW, IR, CR, etc…there is Storage of the content Version drawings for all of these status except the initial status WR.
    A copy of the original file getting stored as content version is of much importance at the first status, than at the later stages.
    i hope i have cleared my requirement if screen shot explanation of the problem is expected i can mail the same to you.
    please respond
    Thanks and regards
    Sathish

    Hi Sivakumar S
    Thanks a lot for your Suggestions,
    but i have made all these configuration for all the document status including the first status ie..WR
    in my  case iam able to see the X mark on the content version tab but could not view the original file.
    it gives a message,  no original is assigned to the document; message no 26276.
    here particurarly the content version is not stored for the first status which i define.
    if i have not done the said configuration it would have got a message, no content version can be displayed for this log entry.
    please let me know weather a content version could be  stored for the first status.
    which we define in the DIR.
    is there any extra provisions to be made to do this.
    pls suggest.
    Thanks and Regards
    Sathish

  • Where to change posting key for Document type RG?

    Hi ,
    May I know where is IMG path to change posting key for Document type RG?
    Thanks.

    Hi,
    Posting key is not assigned to the document types.
    Posting key can be assigned to a particular trnsaction event etc., for example in OB40 for each transaction key in tax area, you can ddefine the posting key for bedit and credit.
    However you have the option to create a validation to check that this particular document type is allowed to be posted with certain posting keys. Validation can be created in OB28, GGB0. The details are available in SDN. Please search that.
    Regards,
    Gaurav

  • No check which could be assigned to a document was found

    Hi All,
    When i used FCHU then at the time of aasignment i have got this error msg
    "No check which could be assigned to a document was found "
    If checks already assigned than from where i can see it...?
    If i have by mistake used referense rather than assignement, can i change it..?
    Amit

    Hello,
    You can look into the assignment field of Check (bank) sub-account (payable) FBL3N.
    You can again run and update in reference field also. I will be updated in both the fields. There is no reversal for this program. Meaning that if you have erronously filled in assignment field, it cannot be reversed, other than mass change of documents in FBL3N.
    Regards,
    Ravi

  • Text Change in Profit Center document

    Dear Experts,
    I want to change the text of profit center document. Plz help me out.
    Warm Regards,
    Mahesh

    Use 1KE8
    see SAP Note bellow
    Summary
    Symptom
    You change an item text in an FI document using transaction FB02. This is changed in the CO document, but the new item text is not displayed correctly in the profit center document.
    Other terms
    FB02, item text, SGTXT
    Reason and Prerequisites
    The item text is automatically transferred only during the first posting from the FI document to the profit center document. On the other hand, the change is transferred to the CO document, because FI triggers the change in CO using the module K_FI_DOCUMENT_CHANGE. For the profit center accounting, there is no such function module. So that the item text information can be transferred, the Accounting interface must be run. However, this will not run if the FI document is only changed.
    Solution
    In order to transfer the item text change to the profit center accounting, you must subsequently post the FI document using transaction 1KE8. For this, you MUST set the reversal switch.

  • Change assignment of Legel Units to Admin Units

    Dears, Iam asked to change assignment of Legel Units to Admin Units.  There was masterdata like material/procure indicator/BOM trasnferred to GTS but no preference was manually maintained yet. Is this possible?

    yes plant based preference model, and in the admin unit attributes you assign the plants from the logical system.
    and the change is requested for NAFTA yes
    and the question was whether you can change assignments of plants to admin units from earlier assignments.
    eg to move plant y from admin unit 1 to admin unit 2.
    there was no preference maintained yet based on the earlier assignments.
    main concern is about master data and documents that have been trasnferred already based on the earlier assignments.
    after changeing assignments, is new master data trasnfer needed? any other problems problems?
    Thanks
    Wolfgang

Maybe you are looking for

  • Any ideas on problem with ipod and alpine cde-9881 car stereo

    I have an ipod 60gb v 1.2.1 and a new Alpine car stereo with Ipod connecting cable. When connected, the stereo message reads IPod searching. It never assumes control of ipod,or quits searching. I have reset and restored my ipod, had the apple geek at

  • How can I access my iTunes account from my iPhone.

    1- I can't access my iTunes account from my iPhone. Do I have to sync them or can I download the songs I bought without connecting with my macbook? Last time i connected the two, all my music got deleted. Must have done something wrong, but have no i

  • JS: Blatant plug

    (Pardon the plug.) The Short cut "Scripting InDesign with JavaScript" has now been updated to CS3/4: http://oreilly.com/catalog/9780596802523/ The book is essentially the same in spirit and structure. All scripts have been changed to CS3/4, errors ha

  • Sometimes Cannot Select Elements in Design view of Dreamweaver

    Hello, From time to time, i have trouble selecting elements in the design view. Sometimes it works right away. Sometimes I need to click 6-10 times, and sometimes it just doesn't work ( a larger all encompassing element stays selected and no matter h

  • Zen Micro and Windows XP trou

    I have had my Micro for about 2 months, and used Windows 98. I bought a new computer (with windows XP pro) and installed my micro. I have been running into some issues: the computer won't recognize my micro in Creative Mediasource, but does under My