To update BUSORT1 and BPKIND in BUT000 table

I need to update the BUSORT1(search term1) and BPKIND in BUT000 table for a specific business partner, which is the best way to do it?? Do i have any BAPI or do i need to write a BDC, and i dont want to modify the record directly at table level. Can any body help me...
Thanks,
Naresh.

Hello Jena,
                  The BAPI I used is BAPI_BUPA_CENTRAL_CHANGE to update the values in BUT000.
Regards,
Naresh.

Similar Messages

  • BDC FOR FB02 to update XREF1_HD and XREF2_HD in BKPF table

    Hi
    I need to write BDC for FB02 To updated XREF1_HD and XREF2_HD in BKPF table
    I need to put this code in Function module.
    If i Call this function module is SE38 it shd  add data of the above fiileds in BKPF table

    Hi,
    In FBL3N you need to enter in Settings/Special Fields.( you need to create this fields previously in Customizing under following path>
    FI/ Accounts receivable and Accounts payable/ Customer accounts/ Line Items/ Display line items/ Define additional fields for line item display.
    Regards,
    Miroslav

  • What is the field name for logo and site from but000 table

    when i enter the logo , i should get all the sites of that logo,can u plz help me

    Hello Neeraja,
    You need the region for which entity - customer, vendor?
    Data element for region is REGIO.
    BR,
    Suhas

  • I have a column where I have implemented writeback, its working fine. On top of this I need to show 0 as No and 1 as yes in our report, that is also done. Now I want to enter Yes in a column where it was no and I want database table to get update with 1.

    I have a column where I have implemented writeback, its working fine. On top of this I need to show 0 as No and 1 as yes in our report, that is also done. Now I want to enter Yes in a column where it was no and I want database table to get update with 1. I am not sure how to do it. SOmeone please help me out.

    Hi ,
    In your write back XML  try the below  query insert
    INSERT INTO TABLE_XYZ (attribute1)  values (SELECT CASE  WHEN @{C1}=’Yes’ then 1 when @{C1}=’No’ then 0 else null end from dual)
    Regards
    Rajagopal

  • Link for BUT000 table and ADRC in CRM and inner join is not working in PCUI

    Hi Gurus,
       Please tell me the link btween BUT000 and ADRC table. and i wrote one inner join between BUT000 and BUT0id table but it not working. I m in CRM 4.0 version working with PCUI.
    select but000partner but000name_org1 but000name_org2 but000bus_sort1 but0id~parnter1
          but0ididnumber from but000 inner join but0id on but0idpartner = but000~parnter
    into corresponding fields of table it_result where partner in s_partner.
    It is giving error as partner unknown from but000 table. I delcared everything and tried with alias names also.
    please clarify me.
    regards,
    Ramakrishna.

    Hi Frederic,
       thanks a lot. But is inner join between BUT000 and BUT0ID will work. for me it is not working. plesae see this code.
    tables : but000,
             but0id,
             crmm_but_custno,
             adrc.
    types : begin of typ_but000,
            partner type bu_partner,
            name_org1 type BU_NAMEOR1,
            name_org2 type BU_NAMEOR2,
            bu_sort1  type BU_SORT1,
            idnumber type BU_ID_NUMBER,
            partner1 type bu_partner,
            end of typ_but000.
    data: lt_but000 type table of typ_but000,
          ls_but000 like line of lt_but000.
    *select-options : s_partnr for but000-partner.
    start-of-selection.
          select but000partner but000name_org1 but000name_org2 but000bu_sort1 but0id~parnter1
                    but0id~idnumber into corresponding fields of table lt_but000 from  but000
                    inner join but0id on but0idpartner = but000parnter. " where partner in s_partner.
    it is giving error as but000-partner is not know or but0id-partner not known.
    So, i think if it not works then i should write two select stmts.
    please clarify me.
    i gave u rating.
    thanks
    ramakrishna.

  • No Update FMIOI and KBLP tables with purchase order

    Hello,
    We have un serious problem : No Update FMIOI and KBLP tables with purchase order
    System :  SAP ERP 6.0 /7.0 - EHP 4
    Note 965633 was read.
    1) First case: The purchase order 4510000673 does not reduce the funds reservation.
    Purchase order 4510000673 should consume the funds reservation 1200000193 because all post of the PO charge the funds reservation 1200000193.But the consumption history of the funds reservation 1200000193 donu2019t show this consumption.
    In table FMIOI, we do not have lines with amount type 0200 (reduction) but whe have the lines with the post of PO with amount type (0100).  The Purchase order 4510000673 should consume the funds reservation 1200000193.
    In table KBLP, the fields are :
    Total amount (LC) - HWGES  = 53.409,40
    Amount used u2013 WTABB = 0,00
    Reduction amount u2013 HWABB = 0,00
    Open amount u2013 CWTFREE =    53.409,40
    Reduced amount u2013 WTABG = 0,00
    Reduced amount u2013HWABG = 0,00
    To solve the problem, we executed the transactions : FM4N et FMN5 and the program RFFMRC20 but no result.
    2) Second case : Delete a item of a purchase order does not release the budget
    The single item of the purchase order 4510000597 is deleted but in the display of consumption History of the funds reservation 1200000137, the amount of the purchase order is not to zero.
    To solve the problem, we executed the transactions : FM4N et FMN5 and the program RFFMRC20 but no result.
    Somebody already had a similar problem ?
    Thank you
    Fabian

    Hello Fabian
    There are two known notes dealing with missing update on reference Earmarked Funds, I am listing them for future references:
    1376800  Earmarked funds: Incorrect open amount         
    1438487  RFFMRC20: Missing KBLE records are ignored     
    These notes correct some errors within the Standard.
    However, in your scenario, problem has to do with an incorrect execution of a Commit work inside a customer user-exit. After elimination of this commit work, new Po's are working correctly.
    Remaining task is the correction of old PO's. Manual correction via small changes with ME22N (for instance, adding a '.' to the line item text/s) will force the correct update and fix your database
    If you agree, we can close this thread (?)
    Kind regards
    Mar

  • How to update parent and child tables while updating parent table

    I have a parent table EMPLOYEE which includes columns (sysid, serviceno,employeename...) sysid is Primary key, serviceno is Unique key and I have child table DEPENDENT includes columns (sysid,employee_sysid,name,dob...) here again SYSID is primary key for DEPENDENTS table, employee_sysid is Foreign key of EMPLOYEE table.
    Now I want to change SYSID (using sequence) in EMPLOYEE table which need to be update in DEPENDENTS table as well
    Note: I have 10000 records in EMPLOYEE table as well as I have 5 more child tables which need to update new SYSID.
    please help me

    first disable the FOREIGN KEY Constraints.
    you can update Parent as well as Child record also with help of trigger.
    here i am giving you one examlpe..it may help u.
    create table parent(id number primary key,name varchar2(100))
    create table child_1(id number primary key,p_id number,dob date,
    CONSTRAINT FK_id FOREIGN KEY (p_id) REFERENCES parent (ID))
    create table child_2(id number primary key,p_id2 number,addr varchar2(1000),
    CONSTRAINT FK_id2 FOREIGN KEY (p_id2) REFERENCES parent (ID))
    insert some test data to parent and child tables.
    alter table child_2 disable constraint FK_id2
    alter table child_1 disable constraint FK_id2
    CREATE OR REPLACE TRIGGER delete_child
    BEFORE UPDATE ON parent
    FOR EACH ROW
    BEGIN
    UPDATE CHILD_1
    SET P_ID=:NEW.ID
    WHERE P_ID=:OLD.ID;
    UPDATE CHILD_2
    SET P_ID2 =:NEW.ID
    WHERE P_ID2=:OLD.ID;
    END;
    then Upadte parent table primary key col and check the child tables.
    then enable the constraints...

  • Updating bseg and bsis table ...

    Hello,
    I want to update bseg and bsis table. I guess i will have to use BAPI_ACC_DOCUMENT_POST.
    how do i go on using this BAPI ? any starter code snippet ...!!

    Functionality
    Using this method you can create a posing in accounting for certain business transactions.
    Possible ( Business Transactions):
    Postings that generally only affect the general ledger. (RFBU)
    Billing: For billing in Sales and Distribution, accounting is supplied with the relevant billing data. (SD00) Billing Document
    Accounting can use the data of a logistics system that result from an Invoice Receipt. (RMRP)
    Goods Movement are triggered by transactions in Sales and Distribution or by inventory postings. Within logistics, they lead to a change in the warehouse stocks of
    <DS:GLOS.Inventory Management>Inventory Management. This results in a posting in accounting. This is why accounting is supplied with the relevant data from logistics. (RMWA)
    Example
    Billing document:
    By selling goods in accordance with targets, revenue is generated. The revenue is posted in billing and forwarded
    to accounting.
    Invoice receipt:
    Raw materials are purchased in accordance with targets. The invoice receipt is posted in a logistics system. The data from the raw materials is forwarded to accounting.
    Goods Movment:
    The use of raw materials leads to a change in stock in inventory managment. The posting of raw material consumption is forwarded to accounting.
    G/L Account Posting:
    Provision posting for an expected warranty service. This can refer to acquisitions or retirements belonging to stocks that are not in subledger accounting relevant to inventory management. This is particularly the case if such materials are not displayed as vendor/customer, materials, loans etc. or cannot be displayed in this way. This can also refer to write-ups or depreciation that contain higher aggregations of values than are maintained in a corresponding subledger that is relevant to inventory management.
    The conversion of foreign currencies for receivables/payables due to large exchange rate changes that should not lead to an update of the accounts payable or accounts receivable accounting. A similar transaction can arise for the revaluation of raw materials if this revaluation takes place at a correspondingly aggreagated level.
    Reclassification of inventory of P&L statement accounts that are only used for reconcilliation purposes in the general ledger (this rearranges values for balance sheet items).
    Balance reclassifications of stocks to receivables with different return times.
    Notes
    If the parameter CurrencyAmount is filled with the currency fields, a complete document check including characteristics and value components of profitability analysis (CO-PA). Otherwise, the account assignment objects are checked.
    Messages are returned in the parameter Return. In the parameter documentation you can find the return values and their meaning.

  • Updating Price and Supplier at Requisition interface table after Min/Max

    Hello,
    We have requirement of updatig requisition data at interface table once Min/Max planning is completed.
    We need input here like what would be the behaviour of Standard Requisition import program if we update price and supplier details at interface table after Min.Max planning and before running the Requisiton import.
    Quick reponse will help us to move forward on this requirement.
    Thanks
    Devaraj.K

    Hi,
    Yes, we are using sourcing rules, so whenever i update the interface table with Price and Supplier detials after Min/Max then the Req.Import should not consider the Sourcing rules, it should create requisiton based on the values (Price and Supplier)provided at interface tanle.
    Quick reponse would helpful us to move further on this,
    Thanks in advance,
    Devaraj.K

  • Centering a table in updated pages and highlighting

    Hello
         I recently updated pages and cannot figure out how to center a table?  Any suggestions?  Using the circle in the upper left hand corner does not seem to work as suggested.  Also wondering how to highlight.  I see highlight under insert but that is only to highlight while working on the text and does not print out.
    Thank you

    To get it to move with the text and follow what Peter has described, I believe that Object Placement needs to be set to Move with Text, which sets Text Wrap to Inline with Text.
    By clicking to the right of the table, you're selecting the line the table is on.  You can then set the text alignment to center and the table will move with the text.

  • Updating Q and P table of master data using ABAP program

    Hi All
    I have a requirement to update Q and P table(non key and non date fields) of master data using an ABAP program.
    Is this something recommended?
    Will there be any issues if I do that?
    Thanks
    Deepak

    Thanks Vikram. Ok. My look up is on some other master data Q table and that is the reason why I asked about ABAP custom program.
    Look like I will have to do the following approach.
    Load the required supporting master data to BW.
    Execute Attribute change run process for those master data objects.
    Load the actual master data and look up on supporting master data.
    Execute attribute change run process.
    This process takes me long time and I am trying to reduce the overall execution time. let me know if you have some good suggestions.
    Thanks
    Deepak

  • Unable to update and delete record in table

    Hello All,
    Kindly help me regarding the below mentioned issue plz
    When I want to update or delete record in table from form developed in 6i give no error message but no action and when I run same form on other system updation and deletion are successfully done.
    Any suggestion

    Hello
    More explanation is as under:
    1. I am working on only one table say A
    2. Wants to update only one row of Table A at one time in single user envoirment.
    3. My form is successfully update some rows as well but not on all rows on one PC while same form able to update all rows on other PC.
    4. I drop the table and re-create the table again but problem persist.
    Any advice plz.

  • Updating Zfields in the BUT000 table

    Hi ,
    I have created new zfields for but000 table . Is there any FM present to Update the newly created Z fields  . ( here  business partner number  is already created using the FM CRM_ISA_REGISTER_CONSUMER .Now i want to update the Zfileds for this business partner created)
    Thanks
    Sruthi

    Hi! Sruthi
    You can use the follwing FM to update the Z fields in BP u jast have to pass the partner guid along with the field that u need to update.
          CALL FUNCTION 'BUPA_CENTRAL_CI_CHANGE'
            EXPORTING
              is_bus000_eew = new Z fields
              iv_xsave      = 'X'
            IMPORTING
              et_return     = return  table.
    Regards
    Mayank

  • Unable to update or insert into Access database table using OleDB, and it doesn't return any errors.

    I'm new to VS. I have run the following code. It does not produce any error, and it does not add or update data to my Access database table.
    dbUpdate("UPDATE prgSettings SET varValue='test' WHERE varSetting='test'")   
    Function dbUpdate(ByVal _SQLupdate As String) As String
            Dim OleConn As New OleDbConnection(My.Settings.DatabaseConnectionString.ToString)
            Dim oleComm As OleDbCommand
            Dim returnValue As Object
            Dim sqlstring As String = _SQLupdate.ToString
            Try
                OleConn.Open()
                MsgBox(OleConn.State.ToString)
                oleComm = New OleDbCommand(sqlstring, OleConn)
                returnValue = oleComm.ExecuteNonQuery()
            Catch ex As Exception
                ' Error occurred while trying to execute reader
                ' send error message to console (change below line to customize error handling)
                Console.WriteLine(ex.Message)
                Return 0
            End Try
            MsgBox(returnValue)
            Return returnValue
    End Function
    Any suggestions will be appreciated.
    Thanks.

    You code looks pretty good, at a quick glance.  Maybe you can simplify things a bit.
    For Insert, please see these samples.
    http://www.java2s.com/Code/CSharp/Database-ADO.net/Insert.htm
    For Update, please see these samples.
    http://www.java2s.com/Code/CSharp/Database-ADO.net/Update.htm
    Knowledge is the only thing that I can give you, and still retain, and we are both better off for it.
    Best to keep samples here to VB.NET
    Please remember to mark the replies as answers if they help and unmark them if they provide no help, this will help others who are looking for solutions to the same or similar problem.

  • Is it necessary to update scope_info and scope_config when adding columns to a table in a provisioned database?

    I followed the example provided in
    https://jtabadero.wordpress.com/2011/04/13/modifying-sync-framework-scope-definition-part-3-workarounds-addingremoving-columns/ to add columns to a table in a provisioned database.  The sample code replaces the stored procedures triggered when the
    table is updated with new stored procedures which include the additional columns
    However, the sample does not update scope_config. When I am finished, the new columns do not appear in the scope config.  Looking at the SQL code it is immediately obvious why.  Here is an excerpt from the beginning of the query
    DROP PROCEDURE [PATIENT_insertmetadata];
    DROP PROCEDURE [PATIENT_updatemetadata];
    DROP PROCEDURE [PATIENT_deletemetadata];
    -- BEGIN Enable Snapshot Isolation on Database 'PatScan' if needed
    IF EXISTS (SELECT NAME FROM sys.databases where NAME = N'PatScan' AND [snapshot_isolation_state] = 0)
    BEGIN
     ALTER DATABASE [PatScan] SET ALLOW_SNAPSHOT_ISOLATION ON
    END
    GO
    -- END Enable Snapshot Isolation on Database 'PatScan' if needed
    -- BEGIN Create Scope Info Table named [scope_info]
    IF NOT EXISTS (SELECT t.name FROM sys.tables t JOIN sys.schemas s ON s.schema_id = t.schema_id WHERE t.name = N'scope_info' AND s.name = N'dbo')
    BEGIN
     CREATE TABLE [scope_info] ([scope_local_id] int IDENTITY(1,1) NOT NULL, [scope_id] uniqueidentifier DEFAULT NEWID() NOT NULL, [sync_scope_name] nvarchar(100) NOT NULL, [scope_sync_knowledge] varbinary(max) NULL, [scope_tombstone_cleanup_knowledge] varbinary(max)
    NULL, [scope_timestamp] timestamp NULL, [scope_config_id] uniqueidentifier NULL, [scope_restore_count] int DEFAULT 0 NOT NULL, [scope_user_comment] nvarchar(max) NULL)
     ALTER TABLE [scope_info] ADD CONSTRAINT [PK_scope_info] PRIMARY KEY ([sync_scope_name])
    END
    GO
    -- END Create Scope Info Table named [scope_info]
    -- BEGIN Create Scope Config Table named [scope_config]
    IF NOT EXISTS (SELECT t.name FROM sys.tables t JOIN sys.schemas s ON s.schema_id = t.schema_id WHERE t.name = N'scope_config' AND s.name = N'dbo')
    BEGIN
     CREATE TABLE [scope_config] ([config_id] uniqueidentifier NOT NULL, [config_data] xml NOT NULL, [scope_status] char NULL)
     ALTER TABLE [scope_config] ADD CONSTRAINT [PK_scope_config] PRIMARY KEY ([config_id])
    END
    GO
    -- END Create Scope Config Table named [scope_config]
    In an already provisioned database, the scope_info and scope_config tables already exist.  Hence the portions of the script to create the scope_info and scope_config tables are skipped.  I tried modifying the query to drop these tables.  When
    I do so, ne tables are created but they only define the modified table.
    Is it necessary to update scope_info and scope_config?  Are there are side effects (such as deprovisioning) if I drop and then recreate these tables? Can I just update the existing scope_config, replacing the portion of the XML which defines the table
    being modified? Do I have to make changes in scope_info?
    Thanks
    Howard Weiss
    Howard P. Weiss

    I followed the example provided in
    https://jtabadero.wordpress.com/2011/04/13/modifying-sync-framework-scope-definition-part-3-workarounds-addingremoving-columns/ to add columns to a table in a provisioned database.  The sample code replaces the stored procedures triggered when the
    table is updated with new stored procedures which include the additional columns
    However, the sample does not update scope_config. When I am finished, the new columns do not appear in the scope config.  Looking at the SQL code it is immediately obvious why.  Here is an excerpt from the beginning of the query
    DROP PROCEDURE [PATIENT_insertmetadata];
    DROP PROCEDURE [PATIENT_updatemetadata];
    DROP PROCEDURE [PATIENT_deletemetadata];
    -- BEGIN Enable Snapshot Isolation on Database 'PatScan' if needed
    IF EXISTS (SELECT NAME FROM sys.databases where NAME = N'PatScan' AND [snapshot_isolation_state] = 0)
    BEGIN
     ALTER DATABASE [PatScan] SET ALLOW_SNAPSHOT_ISOLATION ON
    END
    GO
    -- END Enable Snapshot Isolation on Database 'PatScan' if needed
    -- BEGIN Create Scope Info Table named [scope_info]
    IF NOT EXISTS (SELECT t.name FROM sys.tables t JOIN sys.schemas s ON s.schema_id = t.schema_id WHERE t.name = N'scope_info' AND s.name = N'dbo')
    BEGIN
     CREATE TABLE [scope_info] ([scope_local_id] int IDENTITY(1,1) NOT NULL, [scope_id] uniqueidentifier DEFAULT NEWID() NOT NULL, [sync_scope_name] nvarchar(100) NOT NULL, [scope_sync_knowledge] varbinary(max) NULL, [scope_tombstone_cleanup_knowledge] varbinary(max)
    NULL, [scope_timestamp] timestamp NULL, [scope_config_id] uniqueidentifier NULL, [scope_restore_count] int DEFAULT 0 NOT NULL, [scope_user_comment] nvarchar(max) NULL)
     ALTER TABLE [scope_info] ADD CONSTRAINT [PK_scope_info] PRIMARY KEY ([sync_scope_name])
    END
    GO
    -- END Create Scope Info Table named [scope_info]
    -- BEGIN Create Scope Config Table named [scope_config]
    IF NOT EXISTS (SELECT t.name FROM sys.tables t JOIN sys.schemas s ON s.schema_id = t.schema_id WHERE t.name = N'scope_config' AND s.name = N'dbo')
    BEGIN
     CREATE TABLE [scope_config] ([config_id] uniqueidentifier NOT NULL, [config_data] xml NOT NULL, [scope_status] char NULL)
     ALTER TABLE [scope_config] ADD CONSTRAINT [PK_scope_config] PRIMARY KEY ([config_id])
    END
    GO
    -- END Create Scope Config Table named [scope_config]
    In an already provisioned database, the scope_info and scope_config tables already exist.  Hence the portions of the script to create the scope_info and scope_config tables are skipped.  I tried modifying the query to drop these tables.  When
    I do so, ne tables are created but they only define the modified table.
    Is it necessary to update scope_info and scope_config?  Are there are side effects (such as deprovisioning) if I drop and then recreate these tables? Can I just update the existing scope_config, replacing the portion of the XML which defines the table
    being modified? Do I have to make changes in scope_info?
    Thanks
    Howard Weiss
    Howard P. Weiss

Maybe you are looking for