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.

Similar Messages

  • BAPI_ACC_DOCUMENT_POST for field trading partner (bseg-VBUND)

    Hi,
    I am uploading journal entries in SAP by using this BAPI "BAPI_ACC_DOCUMENT_POST". Here program works fine now i want to give trading partner (bseg-VBUND) in line item but i cant find appropriate field in this BAPI for trading partner so that i can do mapping. Can you tell me i which table i have to give input for trading partner entry. Thanks in advance.
    Regards.

    Refer to the following trheads:
    Change field bseg-vbund
    Trading Partner field (VBUND) is left blank in EC-PCA historical data load
    Validation document type
    Field VBUND does not allow changes to the document ?
    Regards,
    Fernando Evangelista

  • Trading Partner field (VBUND) is left blank in EC-PCA historical data load

    Hello everyone,
    I have a question regarding trading partner field (VBUND) in EC-PCA. In my company we are turning on this Profit Center Accounting functionality and we need to know how to bring this trading partner field filled when we make the historical data load.
    We have tested the transactions 1KE8 (FI docs), 1KEC (MM docs) and 1KE9 (SD docs) that are used to transfer real data for GLPCA table. Unfortunately, VBUND field is left blank when using these transactions.
    This impacts the opened journal entries for AR/AP (Accounts Receivable and Accounts Payable), as the ones made prior to the go-live of this EC-PCA functionality would not have this trading partner information, and the ones made after go-live would carry the information (i.e., not matching the documents).
    Does anyone know how to solve this problem?

    I worked on your issue but it seems there is no standard option to update VBUND field apart from writing an ABAP program to update GLPCA from FI documents.
    Regards
    Siva

  • Need to update trading partner from T-code: FINTAP or FINT

    Hi all,
    When i run T-Code FINTAP(Item Interest Calculation) or FINT(Item Interest Calculation), i need to update Trading Partner automatically.
    Kindly let me know is there any BTE's or User Exit for the same.
    Regards,
    Rohini

    Hi all,
    When i run T-Code FINTAP(Item Interest Calculation) or FINT(Item Interest Calculation), i need to update Trading Partner automatically.
    Kindly let me know is there any BTE's or User Exit for the same.
    Regards,
    Rohini

  • How to create Trading partner in 4.6c

    Hi,
         Can you please let me know how to create Trading partner in SAP 4.6c. Please let me know the difference in creation of Trading partner in sap ECC 6.0
    Thanks,
    RajaGopal

    Hi ,
    In order to identify Inter Company transactions Trading partner field is used. You need to define all the Group Companies as company in SAP and all the defined Companies will be available for selection in Trading partner field.
    The same can be done via
    SAP IMG > Enterprise Structure > Definition > Financial Accounting > Define Company
    Hope it helps
    SJ

  • Updating Trading Partner in VF44

    Hello Experts,
    During VF44 i have to update the trading partner into the accounting documents line items.
    ie need to update BSEG-VBUND from KNA1-VBUND.
    Any views or opinions on this.please provide your valuable feedback would be highly appreciable.
    Regards,
    Ranjith Nambiar

    Resloved by myself
    Used enhancement point in the FM FI_DOCUMENT_POSTgetting used in this transaction.
    Thanks and Regards,
    Ranjith

  • Go-live in EC-CS:update trading partner and transaction type on Balances

    Hi collegues,
    We are on a go-live this december for EC-CS (consolidation) but never have used trading partner nor consolidation transaction type so there are not GL account balances differenciated by these two items on our FMGLFLEXT database for the operative ledger.
    Which is the best option for the data to be collected into our consolidation ledger in EC-CS (ECMCT database) when data transfer for all our consolidation units will be realtime update from FI?
    I really don't know if I must correct the balance on FMGLFLEXT throught FI postings or if just adjustments on EC-CS it's the best option. I'm thinking on the posibility of extracting the Financial Statement at any time from F.01 tx...
    Is there any transaction on FI to authomatically update at least the trading partner on GL accounts positions/balances?
    Thanks in advance!
    Regards,
    Rushid

    Hi David,
    In fact there has never existed any entry for trading partners on GL, AR, AP master data. So consequenly, no balance in FAGLFLEXT/ nor documents on BSEG have ever had these fields populated.
    My question is: which is the common option for a go live in such situation? Our users will distribute the current GL balances into "sub-balances" (GLAcctTxtypetradpartner) in an excell file but I do not really know what to do with this data:
    - direct postings on BSEG cancelling the previous totals,
    - rollup into a Special ledger of the new gl,
    - rollup into the Preparations for Consolidation Ledger,
    - corrections on ECMCT after the periodic extract...
    What would choose? 
    Thanks!

  • How to implement Trading Partner Directory (STPD) ???

    Hi,
    I need to implement the trading partner directory to fetch all the companies from ECC server. I am nt sure how do I implement it. I read thru the SAP help but could not get much out of it.
    Pls help if any of you have done a custom implementation.
    Thanks
    Sandip

    closing the thread..

  • Trading partner - BSEG

    Hello all,
    We have build a program based on BSEG table in order to extract gl account information into a Z report.
    This report was running properly until two changes have been installed in SAP:
    -New general ledger
    -Trading partner
    The program is not taking the information from the gl accounts containing Trading partner informed anymore.
    As the new general ledger is not using BSEG table, at report FBL3N is not showing trading partner informed.
    Please can you assist? Which report can I check to get this information?
    Thanks
    RG
    M

    Hi,
    In case of Z report, you need to look for an alternative way, where you can fetch the required data to your Zreport.
    Sit with your ABAPer and modify the prog accordingly.
    Regards,
    Srinu

  • How to update the field  BSEG-BDIFF

    Hi to All,
    do you know some funciont module or BAPI that update the field BSEG-BDIFF ?
    Thanks a lot.
    Best Regards,
    Umb.
    Edited by: Umberto Panico on Jan 18, 2011 10:40 AM

    Hi,
    Please check these FM.
    G_FI_UPDATE
    G_BKPF_BSEG_UPDATE
    If they don't work, you may need to write BDC program or find the user exits available to update the field.
    Regards,
    Siva

  • How to update business partner in SRM through FM or using ABAP

    Hi expert,
    My requirement is to update the requester field in the Shopping Cart with another requester as well as some other CUF field. Through BBP_PD_SC_UPDATE i am able to update the CUF item fields but i am unable to update the business partner.
    please help, its urgently...
    regards,
    Rahul

    Hi Sankar,
    1)You can use the program BSP_UPDATE_MIMEREPOS to upload the photos in the mime repository.
    2)Use the following code to get the content from your mime and set the content to your interactive UI element as Xstring format.
        data:
        mime_repository type ref to if_mr_api,
        content type xstring,
        url type string value '/SAP/BC/BSP/SAP/myBSPapplication/rajkumar.jpg'  .
      mime_repository = cl_mime_repository_api=>get_api( ).
      call method mime_repository->get
        exporting
          i_url     = url
        importing
          e_content = content.
      wd_context->set_attribute( name = 'DATAS' value = content ).
    Thanks,
    Rajkumar.S

  • How to get business partner number of a Company code

    How to get Company code business partner number..
    Any FM or table name which can help us to get comapny code business partner number
    Actually we want to find the default address number of the company code.
    please suggest a way to find partner number of company code or directly to get default address number of the company code

    Hello LS Kumar,
    Try to use below Code may help:
    DATA ls_object              TYPE hrhctobjc.
    DATA ls_company             TYPE bbps_es_unit_id.
    DATA ls_company_bupa        TYPE hrobjbupas.
    ls_object-otype = is_org_unit_id-otype.   
    ls_object-objid = is_org_unit_id-objid.   
      CALL FUNCTION 'HR_OBJECTBUPA_GETBUPA'
        EXPORTING
          is_object               = ls_object
        IMPORTING
          es_hrobjbupa            = ls_company_bupa
        EXCEPTIONS
          object_type_not_allowed = 1
          OTHERS                  = 2.
      IF sy-subrc NE 0.
        RAISE EXCEPTION TYPE cx_bbp_es_not_found.
    endif.
    Which determines the company code of the user belongs to:
    CALL FUNCTION 'BBP_OM_DETERMINE_COMPANY'
          EXPORTING
            i_user_id = lv_user
          IMPORTING
            et_compc  =lt_compc
          EXCEPTIONS
            OTHERS    = 1.
    Regards,
    Sankarbabu

  • How to update trial version to full using activation code just downloaded

    Can anyone help with this - there seems to be no way of doing this. I just got the activiation code sent thru for the full version, mainly to save having to do mail order/go to shop, but how do you update the trial?? The trial version hasn't converted automatically as is implied on the invoice! Thanks SA.

    Hi,
    It seems return table contains many errors and all errors cannot be sorted out at once. Try to correct one by one.
    E MEPO 002 PO header data still faulty
    W ME 658 Please also populate interface parameter
    POHEADERX
    For the above errors, Try to populate POHEADERX to the BAPI "BAPI_PO_CHANGE".
    W ME 887 Error transferring ExtensionIn data for
    enhancement CI_EKKODB
    Also please ensure the data must be transferred to extension structure.
    E SG 105 Enter rate INR / rate type M for 07.02.2014 in
    the system settings
    Maintain the exchange rates properly through the OB52 transaction. TCURR table will hold these values.
    Please try and let me know what other issues you are facing.
    Regards
    Gangadhar

  • How to update some fields of EBAN in ABAP code

    Hi, all
    In my ABAP program, I have to update two fields of EBAN .
    But I could not find any function or BAPI about it.
    Would anyone out there be able to help.
    Many thanks
    Aysenur

    Hello,
    Try with these FM.
    Function group                 Function group short text
    Name of function module        Short text for function module
    MEWF                           BAPIs for Release of Requisition/PO
    BAPI_REQUISITION_RELEASE       Release Purchase Requisition Item by Item
    BAPI_REQUISITION_RELEASE_GEN   Release Entire Purchase Requisition
    BAPI_REQUISITION_RESET_RELEASE Cancel Release of Purchase Requisition Items
    BAPI_REQUISITION_RESET_REL_GEN Cancel Overall Release of Purchase Requisitions
    MEWQ                           BAPIs Requirement Coverage Request
    BAPI_REQUISITION_CHANGE        Change Purchase Requisition
    BAPI_REQUISITION_CREATE        Create Purchase Requisition
    BAPI_REQUISITION_DELETE        Delete/close purchase requisition
    BAPI_REQUISITION_GETDETAIL     Display Purchase Requisition Details
    BAPI_REQUISITION_GETITEMS      Read Purchase Requisition Item
    BAPI_REQUISITION_GETITEMSREL   List Purchase Requisitions Awaiting Release
    BAPI_REQUISITION_GETRELINFO    Display Detailed Release (Approval) Information on Purchase Requisitio
    If useful reward points.
    Vasanth

  • How to update LTDX table for ZReport of T-Code FBL5N

    Hi,
    We have copied report RFITEMAR(T-code FBL5N) to ZRFITEMAR(T-Code ZFBL5N), to meet some of our requirement.
    Now, It is not showing Layouts in F4 help of screen field "Layout" in ZFBL5N and also we are not able to set default variant for the same.
    I found the issue is, First it goes to table LTDX to search for any default/1SAP variant but it didn't find any entries in the table.
    If we can make this entry(Report: ZFITEMRA, Variant: 1SAP) in table LTDX, then issue can be solved. Please let me know if any other way is available for this type of issue.
    Thank you.

    Hi
    FI_ITEMS_DISPALY is used by FBL1N, FBL3N and FBL5N and now (in your system) ZFBL5N, but the problem is FI_ITEMS_DISPLAY expects to be called only by standard transaction so:
      if not is_u_variant-variant is initial.
    *   check existence of named variant:
        perform alv_variant_check changing x_varexist.
        if x_varexist is initial.
          message i000(msitem) with is_u_variant-variant.
        endif.
      else.
    *   check existence of default variant:
        perform alv_default_check changing x_varexist.
      endif.
      if x_varexist is initial.
    *   take 1SAP, if it exists:
        clear is_u_variant.
        case acctype.
          when 'D'.
            is_u_variant-report = c_program_ar.
          when 'K'.
            is_u_variant-report = c_program_ap.
          when 'S'.
            is_u_variant-report = c_program_gl.
        endcase.
        is_u_variant-variant = '1SAP'.
        is_u_variant-username = sy-uname.
        perform alv_variant_check changing x_varexist.
        if x_varexist is initial.
          clear is_u_variant.
        endif.
      endif.
    As you can see, the fm check if the variant exists and if you don't move any variant the fm check if a default variant exists, if both controls fail then fm overwrites the report name.
    So I believe you should create a default variant in order to avoid the fm overwrites the report name
    Max

Maybe you are looking for

  • IPad Air + iOS 8 GM -- RD Client Crash

    Hello, I am an iOS Developer and I'm running into an issue with the iPad Air + iOS 8 and the iPad's Microsoft RD Client. Whenever I click the "+" in the upper-right hand corner, and click "Add PC or Server" the client crashes. iPad Information: Devic

  • CSS Implementation

    Currently CSS 11500 is setup on inside network behind firewall and is set with a default route of our core switch. If possible though would like to load balance servers on both the inside and DMZ networks. Is this going to be possible and if so how d

  • 'To' messages don't show up?

    OK so I want to see if I sent this person an invoice or not -- so I type his name in the search box of mail, and select him in the drop menu that appears. Then I click 'To' next to that in the search box.  All I see are a few emails from more than a

  • Re-Installing Operating System

    I have an ibook G4 and was having difficulty with getting it to start up. It was recommended that I clear my hard drive and start from scratch. I've done that (after backing everything up of course) ... but now I can't get the computer to boot up fro

  • Inner class variable access

    Hi all If for example I pass a JButton to a method or construcrtor of another Class. Is there a way to make this JButton accessable from all other methods or subclasses in that Class? It's something that has caused me problems in the past, I've been