Bseg update

Hi all experts,
plz help me
i am not a sd functional guy i am a abaper
my query is
when we create an invoice using vf01 it creates an antry in BSEG .
it contains some eneries regarding  tax .
i want to find out in which function module this table BSEG is getting updated .
plz help me its very urgent
Thanx in advance

Dear Sarabpreet,
BSEG is a cluster table & hence u cannot use It. After VF01, FI entry went to BSID Table.
Use BSID for your purpose
Regards,
SWAPNIL

Similar Messages

  • BSEG Update during accounting document post

    Hello ALL,
    Need an idea to update a custom field in BSEG. The field should get updated once the A/C document gets generated but not yet saved in database. The BTEs are not helpful as its NOT allowing to change the T_BSEG entries. Substitution also not helpful as its gets triggered quite prior to the actual generation of accounting document in the system. The important part is the updation shouldn't be transaction specific. Means whenever an accounting document gets generated that exit/badi/bte should trigger to update that custom entry.
    Many Thanks for the suggestion.
    Somnath

    Hello Ankur Agrawal,
    Thanks a lot for your help.
    I got the item text from the mentioned BADI.  I will get back to this post if it works.
    Thank again for your quick reply.
    Kind Regards,
    Bryan

  • BSEG-VBUND Updation using Call up point 3 while posting from VF01

    Hi,
    I have a requirement to update BSEG-UPDATE during the Invoice posting VF01.
    I tried to use Substitution at CALL UP POINT 3. but it is not updating the value.
    Please help.
    Thanks,
    Leela Krishna

    Hi,
    Create the substitution at call up point 2 (Line Item) as below:-
    Pre-requisit:-
    BSEG-KOART = 'D'
    AND
    BSEG-TCODE = 'VF01'
    Substitution:-
    BSEG-VBUND = your trading partner
    Regards,
    SDNer

  • Down Payment entries not reflecting in J1INMIS report

    Dear Guru's,
    TDS deducted at  the time of down payment made to vendor is not reflecting in J1inmis report.
    Is J1INMIS report does not reflect down payment entries?
    What will be the reason for this?
    Which alternative report to followed for J1INMIS !!!
    Waiting for your positive reply.
    Regards,
    Sany.

    Hi Sany,
    To update Business Place & Section Code, execute the program given below. After execution of the program run T.Code J1INPP and your issue should get resolved. Let me know if this works.
    Ask the Abaper to write the following Code & execute the program:
    REPORT  ZFI_BUP_SEC_CHANGE.
    TABLES : BSIK,BSAK,BSEG.
    parameters: PA_BELNR TYPE BSEG-BELNR OBLIGATORY,
                PA_BUKRS TYPE BSEG-BUKRS OBLIGATORY,
                PA_GAAHR TYPE BSEG-GJAHR OBLIGATORY.
    PARAMETERS : PA_BUPLA TYPE BSEG-BUPLA NO-DISPLAY,
                 PA_SECCO TYPE BSEG-SECCO NO-DISPLAY.
    PA_BUPLA = 'MUM'.                               (Note : Use the Business place & section Code Used
    PA_SECCO = 'MUM'.                                         in your company code).
    START-OF-SELECTION.
    PERFORM CHANGE_DATA.
    END-OF-SELECTION.
    *&      Form  CHANGE_DATA
          text
    -->  p1        text
    <--  p2        text
    FORM CHANGE_DATA .
    DATA : LT_BSEG TYPE TABLE OF BSEG WITH HEADER LINE,
           LT_BSIK TYPE TABLE OF BSIK WITH HEADER LINE,
           LT_BSAK TYPE TABLE OF BSAK WITH HEADER LINE.
    BSeg updation
    SELECT *
    INTO CORRESPONDING FIELDS OF TABLE LT_BSEG
    FROM BSEG
    WHERE BUKRS  = PA_BUKRS   AND
          GJAHR  = pa_gaahr   AND
          BELNR = PA_BELNR.
    LOOP AT LT_BSEG.
      IF LT_BSEG-BSCHL    = '25' OR LT_BSEG-BSCHL = '26'
         OR LT_BSEG-BSCHL = '27' OR LT_BSEG-BSCHL = '28'
         OR LT_BSEG-BSCHL = '35' OR LT_BSEG-BSCHL = '36'
         OR LT_BSEG-BSCHL = '37' OR LT_BSEG-BSCHL = '38'
         OR LT_BSEG-BSCHL = '39'.
        LT_BSEG-BUPLA = PA_BUPLA.
        LT_BSEG-SECCO = PA_SECCO.
        MODIFY BSEG FROM LT_BSEG.
        Write : / LT_BSEG-BELNR, 'Update For BSEG', LT_BSEG-BSCHL,
                  LT_BSEG-BUPLA,LT_BSEG-SECCO.
      ENDIF.
    ENDLOOP.
    Bsik updation
    SELECT *
    INTO CORRESPONDING FIELDS OF TABLE LT_BSIK
    FROM BSIK
    WHERE BUKRS  = PA_BUKRS   AND
          GJAHR  = pa_gaahr   AND
          BELNR = PA_BELNR.
    LOOP AT LT_BSIK.
      IF LT_BSIK-BSCHL    = '25' OR LT_BSIK-BSCHL = '26'
         OR LT_BSIK-BSCHL = '27' OR LT_BSIK-BSCHL = '28'
         OR LT_BSIK-BSCHL = '35' OR LT_BSIK-BSCHL = '36'
         OR LT_BSIK-BSCHL = '37' OR LT_BSIK-BSCHL = '38'
         OR LT_BSIK-BSCHL = '39'.
        LT_BSIK-BUPLA = PA_BUPLA.
        LT_BSIK-SECCO = PA_SECCO.
        MODIFY BSIK FROM LT_BSIK.
        Write : / LT_BSIK-BELNR, 'Update For BSIK', LT_BSIK-BSCHL,
                  LT_BSIK-BUPLA,LT_BSIK-SECCO.
      ENDIF.
    ENDLOOP.
    BsAk updation
    SELECT *
    INTO CORRESPONDING FIELDS OF TABLE LT_BSAK
    FROM BSAK
    WHERE BUKRS  = PA_BUKRS   AND
          GJAHR  = pa_gaahr   AND
          BELNR = PA_BELNR.
    LOOP AT LT_BSAK.
      IF LT_BSAK-BSCHL    = '25' OR LT_BSAK-BSCHL = '26'
         OR LT_BSAK-BSCHL = '27' OR LT_BSAK-BSCHL = '28'
         OR LT_BSAK-BSCHL = '35' OR LT_BSAK-BSCHL = '36'
         OR LT_BSAK-BSCHL = '37' OR LT_BSAK-BSCHL = '38'
         OR LT_BSAK-BSCHL = '39'.
        LT_BSAK-BUPLA = PA_BUPLA.
        LT_BSAK-SECCO = PA_SECCO.
        MODIFY BSAK FROM LT_BSAK.
        Write : / LT_BSAK-BELNR, 'Update For BSAK', LT_BSAK-BSCHL,
                  LT_BSAK-BUPLA,LT_BSAK-SECCO.
      ENDIF.
    ENDLOOP.
    ENDFORM.                    " CHANGE_DATA
    Thank You.

  • Item text (BSEG-SGTXT) is not getting updated in Payment document generated

    Hi All,
    Item text (BSEG-SGTXT) is not getting updated in Payment document generated through F110.
    After generating the payment document via Transaction Code u2013 F110, system is not updating the
    Text field (BSEG-SGTXT) in the payment document with the text that we have entered in the Invoice (MIRO or FI Invoice).
    In case of manual payment (F-53) we can input the text manually hence that will get updated in
    payment document but this thing is not possible with F110.
    How can I update it?
    Is there any configuration for that?
    Thanks
    Daniel Dorta

    Hi All,
    I've applied the two notes as recommended. However, when I run FBL3N for payment run items, the Text field is update with wrong data, i.e. not from the Text field in FB60
    Thus, I'll like someone to help me with what should exactly be done on the 'Step', 'Pre-requisite' and 'Substitution' side of the Substitution rule (TCode GGB1), I did not fill anything in the Pre-requisite box - is this right?
    Thanx in advance.

  • Field BSEG-MANST. does not exist in the screen SAPMF05L 0301 in mass update

    Hi,
    I am trying to perform a mass update of dunning data (level and date) on some open items. Using the mass change function through FBL5N, I receive the error message, and the update is not performed. I cheched with the layout editor, but the fields appears in the mentioned screen. The field is also allowed for modification in customizing, for the company code. I was not able to find the dunning fields in the field status editor, in customizing.
    Any hint?
    Thanks
    Massimo

    thanks, but it doesn't apply.
    More relevant is note 322163 Line items: mass change 'Payment Method' BSEG-ZLSCH, but this refer to a program error, our release is more recent, and, furthermore, the dunning fields aren't available for change in FB02.
    Regards, Massimo

  • User Exit / BADI for  F-02 during SAVE to update BSEG Line Items.

    Hi Experts,
    I need a User Exit / BADI for Transaction code F-02 which triggers during save to update  BSEG-SGTXT with Vendor / Customer 
    name in the Tax Line Item.This is to update table BSEG .
    Thanks in Advance,
    Nithy

    Hi,
    Do it with the BTE 00001120 (tcode FIBF).
    I hope this helps you
    Regards,
    Eduardo
    PD: I forgot, check this link. It will tell you how to do it
    https://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/207835fb-0a01-0010-34b4-fef1240ba9b7
    Edited by: Eduardo Hinojosa on Jul 15, 2009 6:38 PM

  • Update the correct profit center in tables BSEG / BSAS / BSIS / BSIK / BSAK

    Hi FI Gurus,
    I am looking after a Support Project in SAP IS-Retail. I am from the FI functional and possess very limited knowledge in FI.
    My client has done the sales posting in SAP using IDOC's. During the postings, it was found that wrong Profit Centers were assigned. Due to this, the sales reports based on Profit Center are coming wrong. It was suggested to the client to reverse the IDOCs, do necessary changes in Profit Centers and re-post the IDOCs. The client wanted a short method to get the reports right. A senior consultant (Non FI) in the Company and the Management are forcing me to write a ABAP program to update certain (not all) FI tables. According to me, it will have some negative impact on the system for which reason I am not ready to take the call as a Project Manager. The management wants me to do the following (I am quoting the same mail which I received from the consultant ) :
    We need to update the correct profit center in tables BSEG / BSAS / BSIS / BSIK / BSAK / BSID / BSAD, wherever the records exists against billing document numbers provided.
    BAPI for updating profit center in Accounting documents: BAPI_ACC_DOCUMENT_POST
    Function Module : 'BAPI_DOCUMENT_CHANGE'
    Also look at SAP Note: Note 966428 - FB02: Functional area (FKBER) can be changed on coding block
    Based on the above, the ABAPer has written the program, the program will update the tables BSEG, BSIS, BSIK, according to the selection criteria of document number, company code and line item number with the new profit centers.
    Please clarify me about the following :
    1. This program is updating profit center in just the FI tables (BSEG, BSIS, BSIK etc.), but the New GL tables (faglflexa and faglflext) which have approx. 65 lakh entries in PRD do not get updated with the correct profit center.
    2. The Controlling tables also do not get updated with this program yet. Also since the previoius updation of Profit centers did not happen correctly, most of the times the controlling document has not been generated at all. Since we will be updating the profit center in just the FI tables, the controlling document will not be created still. Though there are SAP notes suggesting re-creation of the Controlling documents, which is still an option you can choose. Please confirm.
    3. The Special GL also does not get updated because of this.
    This is a very critical and hot issue. My job is at Stake as the Management has threatened me of sacking if I do not follow their directives as they are only concerned with their money.
    Is the consultant who suggested this change RIGHT ?
    Your early replies will help me take the decision.
    Regards

    Hi,
    There is no standard program or BAPI that would update profit centre in a posted document. You should either develop your own process for it,which is not recommended, but sometimes is essential, or reverse the existing documents and post them with the correct profit centre.
    Regards,
    Eli

  • Enhancement for VL02N to update the item text(BSEG-SGTXT) during PGI

    Hello all,
    Actually, I need your help experts. I am trying to update the item text(BSEG-SGTXT) for accounting documents with the sales order number during their creation(post goods issue) from transaction VL02N, VL01N, VL09.
    I have checked the 17 exits available for these transactions and non of these 17 exits allow me to modify the item text(BSEG-SGTXT). I am currently investigating on the two badi's available for these transactions.
    I am not sure if it possible to make these modifications via Badi's.
    Does anyone have any idea or technique that can help me to find a way to modify/update the item text(BSEG-SGTXT) for any accounting document generated during post goods issue using transaction VL02N, VL01N, VL09?
    Thanks a lot in advance for your help experts.
    Kind Regards,
    Bryan

    Hello Ankur Agrawal,
    Thanks a lot for your help.
    I got the item text from the mentioned BADI.  I will get back to this post if it works.
    Thank again for your quick reply.
    Kind Regards,
    Bryan

  • I need to "update" BSEG-SGTXT. What is the best way to do this?

    For a bunch of FI documents, the BSEG-SGTXT has been entered wrong while creating the documents. We need to change the BSEG-SGTXT values. What would be the best method to do this. We understand, direct table updates are risky and not suggested. Also BSEG-SGTXT is duplicated in other tables, like BSIS, BSID etc. We wanted to get some BAPI/ other FM. But we have not found any such one till now.
    Can anyone suggest a suitable method for this problem?

    Hi kaushik just check this Fm to change the text ..
    BAPI_EXPENDITUREPROGTREE_SVRPV
    also check
    BAPI_EXPENDITUREPROGTREE_CHVAL
    hope this helps regards,
    Vijay

  • FI_ITEMS_MASS_CHANGE failing to update all items of BSEG

    Hi All,
    I am facing problem using FM FI_ITEMS_MASS_CHANGE while updating multiple line items of BSEGfor text and assignment.The program is posting FI document by calling transaction FB05. The requirement is to update all the itmes of clearing document with predefined text , assignment which is coming from excel.
    The program currently gets the clearing doc number from FB05; gets the BSEG table entries and loops the items one by one. For every loop of BSEG the FM FI_ITEMS_MASS_CHANGE is called to update text and assignment fields in corresponding item of BSEG.So expectedly all the items should be updated with the text , asignment.
    But problems is that only first item is updated and rest are not updated. I have added wait time of 5 seconds to avoid locking of tables in case if any. But still the change is not working. The results after wait time additon are inconsistent. In developemnt the changes worked for 7-8 items while  it failed in quality even for only 2 items.
    The FM possibly calls FB02 internally. Is there any locking happening?
    Anybody has any suggestion?
    Thanks in Advance.
    Regards,
    Chirdip

    Hi,
    I am also facing the same problem while updating ZUONR filed in BSEG.
    FI_ITEMS_MASS_CHANGE is not updating all the line items in bseg. I called the FM inside loop-endloop at item table.
    Still few items(randomly) are updating in first executuion of my program. Few in 2nd execution an so on.
    I tried using COMMIT WORK and WAIT statements after calling the FM, but of no use!!
    Please suggest is there any other way to update all the items in a single execution??
    Otherwise do I have to go for BDC on FB02 ??
    Thanks,
    Sagar

  • How to update trading partner (BSEG-VBUND) in tr.code FB01/FB02?

    Hi,
    I need, under some circumstances, to update value of trading partner code (field BSEG-VBUND) to all items in the FI document, created/changed with transaction FB01/FB02.
    I checked available user exits and bussiness events, but didn't found one, which could do the trick.
    In fact, in bussiness transaction event #00001430 (CHANGE DOCUMENT: Field substitution header/line - Checks prior to posting change completed) - for FB02 I have access to the internal table T_BSEG, but it seems this table is used as import parameter only and any changes didn't take efect at the end.
    Any help how can I do the trick? And this is while I'm in a transaction FB01/FB02.
    My system is 4.6c.
    Many thanks in advance.
    Regards,
    Ivaylo Mutafchiev

    Svetlin, Max,
    what I did until now is:
    1) followed matrix substitution = callup point 3 (complete document) - I checked for existance of correct substitution field(s) in the GB01 table, and re-generated substitution code (as noticed in note 42615). That added my field in the list of fields for substtitution which are considered at the end of substtitution - in forms:
    FORM EXP_REC_015                      
            USING                        
              DATA_CHANGED TYPE GB002_015
            CHANGING                     
              DATA_OUT TYPE GB002_015.
    and
    FORM EXP_TAB_015_BSEG                   
             USING                          
               IN_ORIG STRUCTURE        BSEG
            CHANGING                        
               OUT_RESULT STRUCTURE     BSEG
               B_RESULT.
    both forms are in main generated program GBTAAFI0.
    My field (VBUND) is taken in account - added to the structure:
    DATA:  BEGIN OF TEMP_STRUCT,                          
            VBUND                          LIKE   BSEG-VBUND
            ZFBDT                          LIKE   BSEG-ZFBDT
            END OF TEMP_STRUCT.                            
    here ZFBDT was the other field defined in GB01 for substitution from someone esle - perhaps by default, I don't know.
    Further (in the include MF05LFB0),
    almost all of the structures which contain my changes are cleared (below is extract from the code):
    LOOP AT beltab WHERE xarch NE char_x.                   "Note 0383125
    REFRESH xbseg.                                                     
      REFRESH ybseg.                                                     
      REFRESH xbsec.                                                     
      REFRESH ybsec.                                                     
      REFRESH xbsed.                                                     
      REFRESH ybsed.                                                     
      REFRESH xbset.                                                     
      REFRESH ybset.                                                     
      REFRESH t_bsegco.                                                  
      REFRESH t_fmfich.                                                  
    Further, the logic proceed with the program SAPFF011 and form 'import_*beleg', where my changes were overwritten with original data - before substitution.
    2) Tried Max's proposal - and extended structure BSEG_SUBST with field VBUND, further populated the substitution table in the related BTE 1430 accordingly.
    Unfortunately the flow-logic proceeded further to the same form 'import_*beleg' in the program SAPFF011 and my changes dissapeared.
    I'm at dead-end - have no idea where and what is the problem...
    Checked few OSS notes - 42615, 386896, 513891, 391309, 438076. Everything which is related to my exact situation is set correctly - as far as I found :-).
    Just for tests I tried both ways (BTE and matrix substitution) with another field ==> BSEG-XREF3, and it was updated correctly - accorging to my logic.
    Thanks guys, your suggestions were right at the time and valuable, but they didn't help me to solve my problem. Perhaps there is something messed in our system - I can't be sure. What I can say for sure is that we have working BTE-s (1430 is used in our system - I just added piece of code into it), and validations are working also.
    Thanks again.
    Regards,
    Ivaylo
    P.S. If you have any suggestions, I'll be glad to hear them from you.

  • Update BSEG with alternative G/L account after assigning it at company code

    Hello,
    I'm facing an issue concerning the update of BSEG and other tables.
    We have started to work in Production from January 2010 without alternative chart of accounts. So many posting till now.
    Now the company wants to set up the local chart of account for some legal requirement. I know that once we have put an alternative chart of account, we can not change the local G/L account before balance at 0.
    But in my case, the local chart of account was not assigned to the company code. So I can put what I want in the group G/L account as alternative account.
    The idea is to create a local chart of account, after all local G/L accounts related to the local chart of account and after assign the local chart of account to the company code.
    The problem is that for all historical items (january 2010 to June 2010) I don't have the local G/L account in BSEG and other tables (FI)...and I need it for reporting.
    Thanks for your help
    Edited by: Oneforh on Jun 18, 2010 10:15 AM

    Dear,
    Check: http://sap.ittoolbox.com/groups/technical-functional/sap-acct/copy-chart-of-accountsgl-accounts-1530253
    Re: change alternative chart of account
    Change of Chart of Accounts
    changing chart of accounts
    I prefer to create new GL with new chart of accounts and copy the old GL balances.. but practically I didnt come across these situation.
    Check.
    Regards,
    Syed Hussain.

  • GL Posting using BAPI BAPI_ACC_DOCUMENT_POST but not updating in table BSEG

    Hi Experts,
    Hope all are doing greatu2026
    I need you help to resolve the below issue.
    We have on Z-Tcode to GL Posting the document using BAPI u2018BAPI_ACC_DOCUMENT_POST' and this program is successfully posted from the source file and documnet # also created successully.
    We have entries in BKPF, but the table BSEG not updating and we do not have entries.
    Please help me on this regards,
    Thanks in Advance.
    Amjad

    Hi Srikant,
    Thanks for your reply...
    As you suggest, i have checked the structure ACCOUNTGL and below values are passing.
    ACCOUNTGL -ITEMNO_ACC
    ACCOUNTGL -GL_ACCOUNT
    ACCOUNTGL- ITEM_TEXT
    ACCOUNTGL- COMP_CODE
    ACCOUNTGL- COSTCENTER
    ACCOUNTGL- CS_TRANS_T
    Could you please suggest me if there are any  changes needs to do.
    Thanks & Regards,
    Amjad Hussain

  • Problem in updating bseg-zuonr and bseg-sgtxt fields.

    Hi guys,
    I have a requirement to update    ZUONR  and  SGTXT   fields in  BSEG , BSAS, BSIS, BSAK, BSIK, BSAD, and BSID tables .  Is there any FM or BAPI to achieve this functionality as i dont want to use UPDATE statement. anybody please help me out.
    Thanks in Advance
    Regards
    satish

    Perform some search at scn on transactions FB02 and FB09 (BDC solution) or FM FI_ITEMS_MASS_CHANGE (BDC generator actually)
    Regards,
    Raymond

Maybe you are looking for