Inserting Zfields in BUT000

Hi,
      When Business partners are passed from HR to CRM system, they come through idocs and get inserted in BUT000 in the Function Module BUP_BUPA_UPDATE. But I see that only standard fields of BUT000 are inserted. Is there any way by which we can insert the Zfields as well along with the standard fields?
Thanks & Regards,
Rahul Rathi

There are three ways to add the field.
1. append the structure.
2. include the structure.
3. there is a option for including the user field in the table .. only when in the chage mode you can add.
Regards,
Jayant.

Similar Messages

  • BADI/BDT Event to Update Zfields into BUT000

    Hi
    I am looking for updating newly added Z fields of BUT000 table to databse.
    I got confused to two different solutions, as BADI and BUPT Events. Anyone suggest which is the right one. I have used BUPT Control- Screens to enable the Z fields under business partner BP. But got stuck in the next step which we need to update the values from screen to database.
    Can anyone throw some inputs on how to use BADI BUPA_GENERAL_UPDATE or BUPA_GENERAL_EXPORT?? or the SAVE Event. Need your valuable inputs.
    Its a bit urgent to me..pls.
    Cheers
    Manohar

    Hi Manohar,
    You had probably created another thread in the ABAP forum for this.
    BDT Events / BADI
    which has been solved.
    Please close this thread.
    Thanks, Debasish

  • 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

  • Problem in delta load with Z field

    Hello Experts,
    We have CRM 5.0 system and as per the requirement we have
    added ZFIELD to BUT000 table. This field is added to BUT000 via EEWB – Easy
    Enhancement Workbench. This field is also BW enabled.
    BW enabled means – this field is used / available to BW
    extractor for further analysis.
    We update this ZFIELD with custom program – FM BUPA_CENTRAL_CI_CHANGE.
    When full load is done – data flows to BW correctly, ZFIELD
    values are reflecting correctly. But when we are doing delta load it is not
    working.
    If we use BP t-code delta works perfectly. So issue from BW
    side is ruled out. The FM BUPA_CENTRAL_CI_CHANGE is not triggering the change
    record for this BP. But then I don’t see any other FM / BAPI to use so that
    change record is also created.
    Could you please provide any pointers or any checks to
    overcome this problem?
    Thanks in advance.

    Hi Ashtankar,
    When you are changing the attributes(say ZFIELD) and save the transaction in BP, Is this updating the CHDAT(Change date) in BUT000?
    If the change date is being applied, then Delta shouldnt be a problem - if you are using datasource 0BPARTNER_ATTR.
    In order to check if the delta is being captured or not, you could use TCODE RSA7. Also, this brings the Doubt when you say Full load works while delta doesnt, try Re-initializing the datasource from BW after Datasource replication - because there have been some changes effective in Source system which the BW system/Delta queue might take into consideration.
    Regards,
    Thejas K

  • Inserting value for Zfield in BP

    Hi Experts,
               I have acreated  a Zfield in BP transaction using EWB and now i face the problem in inserting the value into the field.
    The fucntion modules accepts the value but it is not committing the value into the zfields.
    Iam using the function modules:
    BUPA_CENTRAL_CI_GET_DETAIL and
    BUPA_CENTRAL_CI_CHANGE
    My code looks like this:
    data : ls_bus000_eew1 type bus000_eew,
           ls_bus000_eew1_x type bus000_eew_x,
           lv_customer_guid type but000-partner_guid,
    CALL FUNCTION 'BUPA_CENTRAL_CI_GET_DETAIL'
    EXPORTING
       IV_PARTNER            = tab_partner_x-upi
      IV_PARTNER_GUID       =
    IMPORTING
       ES_BUS000_EEW         = ls_BUS000_EEW1
       ET_RETURN             = lt_return
       ls_bus000_eew1-partnr_guid    = lv_customer_guid.
       ls_bus000_eew1-zzunit         = tab_partner_x-unit.
       ls_bus000_eew1_x-partnr_guid  = lv_customer_guid.
       ls_bus000_eew1_x-zzunit       = 'X'.
            call function 'BUPA_CENTRAL_CI_CHANGE'
              exporting
                is_bus000_eew   = ls_bus000_eew1
                is_bus000_eew_x = ls_bus000_eew1_x
                iv_xsave        = 'X'
              importing
                et_return       = et_return1.
                 call function 'BAPI_TRANSACTION_COMMIT'
                  exporting
                    wait   = 'X'
                  importing
                    return = l_return.
    Can some one pls suggest what am missing in the code and what else i need to do.
    Thanks in advance
    Regards,
    Sundar

    Hi Sundar!
    I think that it is not necesary create a function module.
    In the EEWB u have to assign a check table for this zfield. Once it is finished the wizard, u can set the values in a zview (values and description) generate only for this, and later in the matchcode of the BP will appear these values..
    I hope it helps.
    Regards,
    Mon

  • Busines Partner in table BUT000

    Hi SAP gurus.
    When I'm running transaction FWZZ, when I try to insert the bussines partner number, the system returns an error that the bussines partner it's not updated in table BUT000.
    This only happens to the new Bussines Partners created by BPC1.
    Is there any way to feed the table BUT000 automaticaly when crearting the BP via BPC1?
    Thanks in advance.
    Cheers

    Hello,
    You are using an incorrect transaction to create the Business Partner.
    Please use transaction BP to create it and let me know your results.
    Best regards,
    O. Diaz

  • BDOC - Update a Z field in BUT000 whenever a salesorder is created in ECC

    Hi ,
    The requirment is, whenever an sales order is created in ECC for a perticular customer, I need to send one field with value 'X' in it to CRM and update BUT000-ZZODER field (I created ZZODER field in BUT000 using EEWB).
    User wants this to be done using BDOC and it is the 1st time i am working on bdoc. Could any one please help me doing it?
    It will make my life easy if you can send me a step by step process.
    Cheers,
    Kalyan

    Hi Kalyan,
    I have few questions before suggesting you an solution,
    are you replicating orders from ECC to CRM
    are you planning to replicate the entire order or is it just one field.
    If you are replicating orders then you may have use BADis to aceive this, checking on the order type you can update the Zfield for specific order type.
    If its just one field then you may have to configure a new adapter, write in some code to acheive this.
    regards,
    Sameer Ahamad

  • Error in inserting field to CV01n

    Hello Dears,
    I should insert new Zfield to Tcode CV01n.
    Then,
    I created a new Zfield and added it to the tabel ( DRAT table ),
    and want add this Zfield to the screen layout.
    Program: SAPLCV110
    Screen No: 102
    I'm going to Layout Editor and try to change layout, but unfortunately after edit screen, some errors occur and some I/O fields hide and I can't find them into the layout and they deleted from element list.
    (For Exp: : "Input/output field "DRAT-DKTXT" not defined.")
    Therefore, kindly request you to guide me on this matter.

    Hi Dear Chandra,
    I added I/O field DART-DKTXT and other necessary fields to screen and I could activate screen.
    But status of my inserted fields (And other I/O fileds like DART-DKTXT) are not correct.
    For exp: in view mode (CV03n) these fields are editable.
    Regards,

  • Fetching huge data from BUT000 with same 5 fields

    Hi, there is a requirement to create a z table which will have all the customers in table BUT000. If the set of fields (name, last name, gender, birth date, birth place) are same for few partners (different partners), then a same physical reference number

    Hi Manali,
    What about this sample code:
    TYPES: BEGIN OF ty_text,
       name_first TYPE but000-name_first,
       name_last TYPE but000-name_last,
       birthdt TYPE but000-birthdt,
       birthpl TYPE but000-birthpl.
    TYPES: END OF ty_text.
    TYPES: BEGIN OF ty_ztable,
       ref TYPE int4.
             INCLUDE TYPE ty_text.
    TYPES: END OF ty_ztable.
    DATA: lt_text TYPE TABLE OF ty_text,
           lt_ztable TYPE HASHED TABLE OF ty_ztable WITH UNIQUE KEY name_first name_last birthdt birthpl,
           ls_ztable TYPE ty_ztable,
           lv_ref TYPE int4,
           l_cur TYPE cursor,
           lv_buf_package type int4.
    FIELD-SYMBOLS: <lfs> TYPE ANY,
                    <lfs_text> TYPE ty_text,
                    <lfs_ztable> type ty_ztable.
    lv_ref = 1.
    lv_buf_package = 5000.
    OPEN CURSOR WITH HOLD l_cur FOR
       SELECT name_first name_last birthdt birthpl FROM but000.
    DO.
       FETCH NEXT CURSOR l_cur
         INTO TABLE lt_text PACKAGE SIZE lv_buf_package.
       IF sy-subrc <> 0. EXIT. ENDIF.
       LOOP AT lt_text ASSIGNING <lfs_text>.
         READ TABLE lt_ztable ASSIGNING <lfs_ztable>
           WITH KEY name_first = <lfs_text>-name_first
                    name_last = <lfs_text>-name_last
                    birthdt = <lfs_text>-birthdt
                    birthpl = <lfs_text>-birthpl.
         IF sy-subrc = 0.
           " wa-reference = <lfs_ztable>-ref                    " uncomment this
         ELSE.
           lv_ref = lv_ref + 1.
           CLEAR: ls_ztable.
           " MOVE-CORRESPONDING <lfs_text> TO ls_ztable.        " uncomment this
           " ls_ztable-name_first = <lfs_text>-name_first ....  " uncomment this
           ls_ztable-ref = lv_ref.
           INSERT ls_ztable INTO TABLE lt_ztable.
           " wa-reference = lv_ref    " uncomment this
         ENDIF.
         " move-correspoding to workking area (wa) type zdatabase " uncomment this
         " insert into databse                                    " uncomment this
       ENDLOOP.
       CALL FUNCTION 'DB_COMMIT'.
    ENDDO.
    CLOSE CURSOR l_cur.
    Another way? (index):
    Do
      Get the 5 fields (only 1 time for each pack of 5 fields)
      open cursor...
        where field1 = ...
      do.
      endoo.
    Enddo.
    Regards,
    Luis

  • Add zfield on headerlevel

    Dear Abap Experts,
    the requirement is to add a zfield (zdate) on headerlevel into the tabstrip 'Additional Data' at T-code ME21N (Create Purchase Order). Privously it was easier to implement such requirements through USER EXIT MM06E005.
    But with the new T-code ME21N i have no idea how to do that.
    I have added a field in the structure MEPO1229 in order to see whether it is visible within t-code ME21N since other fields
    are defined right in this structure too. It was unsuccessful .
    Later the field vale which has been enteren must be inserted into EKKO-zdate.
    Can you please tell me the procedured to achieve this ?
    Regards
    MArco M.

    Hi Marco,
    Please find the sample code below.
      INCLUDE LXM06F36                                                   *
    store transaction type for later modification of screen attributes
    gl_aktyp = i_trtyp.
    gl_no_screen = i_no_screen.
    store current state of customer data in ekko_ci (structure for screen)
    ekko_ci  = i_ci_ekko.
    store reference document
    if i_rekko-ebeln ne gl_rekko-ebeln and
       not i_rekko-ebeln is initial    and
       gl_rekko-ebeln is initial.
       ekko_ci-zzflag = i_rekko-zzflag.
       gl_rekko = i_rekko.
    endif.
      INCLUDE LXM06F37                                                   *
    e_ci_ekko is the returning parameter
    gl_ekko_ci : values stored at PBO
    e_ci_ekko        = gl_ekko_ci.
    ekko_ci contains the actual values of the Dynpro fields
    e_ci_update is only set if you really want the fields
    on the Dynpro to be saved. You must set it then to 'X'
    the field ekko_ci-zzflag will here only be saved if there
    was a change and the transaction is not in display mode
    if gl_ekko_ci-zzflag ne ekko_ci-zzflag.
      e_ci_ekko-zzflag = ekko_ci-zzflag.
      if gl_aktyp ne 'A'.
        e_ci_update = 'X'.
      endif.
    endif.
      INCLUDE LXM06F38                                                   *
    store ekko to gl_ekko
    move-corresponding i_ekko to gl_ekko_ci.
      INCLUDE LXM06F39                                                   *
    clear: ekko_ci,
           ekpo_ci,
           gl_no_screen,
           gl_aktyp,
           gl_ekko_ci,
           gl_rekko,
           gl_ekpo,
           gl_ucomm.
    refresh: gt_ref_ekpo_tab.
      INCLUDE LXM06F40                                                   *
    move stored global values back to the returning structure
    e_ci_ekpo        = gl_ekpo_ci.
    in case the Button was clicked the value of ekpo_ci-zzfield
    will be taken from the copied PO
    if i_ucomm = 'ZZDETERMINE'.
      data: ls_ref_ekpo like line of gt_ref_ekpo_tab.
    gt_ref_ekpo_tab contains all positions of the copied PO
      read table gt_ref_ekpo_tab into ls_ref_ekpo
          with key ebelp = gl_ekpo-ebelp.
      if sy-subrc is initial.
        ekpo_ci-zzfield = ls_ref_ekpo-ekpo-zzfield.
      endif.
    else.
    return the function code of the Screen. This code will be handled
    in the SAP program. It can only be handled if you use SAP function
    codes
      e_ucomm = i_ucomm.
    endif.
    ekko_ci contains the actual values of the Dynpro fields
    e_ci_update is only set if you really want the fields
    on the Dynpro to be saved. You must set it then to 'X'
    the field ekko_ci-zzfield will here only be saved if there
    was a change and the transaction is not in display mode
    if gl_ekpo_ci-zzfield ne ekpo_ci-zzfield.
      e_ci_ekpo-zzfield = ekpo_ci-zzfield.
      if gl_aktyp ne 'A'.
        e_ci_update = 'X'.
      endif.
    endif.
      INCLUDE LXM06F41                                                   *
    data: ls_ref_ekpo like line of gt_ref_ekpo_tab.
    store transaction type for later modification of screen attributes
    gl_aktyp = i_aktyp.
    gl_no_screen = i_no_screen.
    store current state of customer data in ekko_ci (structure for screen)
    ekpo_ci  = i_ci_ekpo.
    gl_ekpo = i_ekpo.
    if not i_rekpo-ebeln is initial and
       not i_ekpo-ebelp is initial.
      clear ls_ref_ekpo.
      read table gt_ref_ekpo_tab into ls_ref_ekpo
          with key ebelp = i_ekpo-ebelp.
      if ls_ref_ekpo-ekpo-ebeln ne i_rekpo-ebeln and
         ls_ref_ekpo-ekpo-ebelp ne i_rekpo-ebelp.
         ls_ref_ekpo-ebelp = i_ekpo-ebelp.
         ls_ref_ekpo-ekpo = i_rekpo.
         if sy-subrc is initial.
           modify gt_ref_ekpo_tab from ls_ref_ekpo index sy-tabix.
         else.
           append ls_ref_ekpo to gt_ref_ekpo_tab.
         endif.
      endif.
    endif.
      INCLUDE LXM06F42                                                   *
    move-corresponding i_ekpo to gl_ekpo_ci.
    gl_ekpo = i_ekpo.
    Also refer SAP Notes 0000206043, 0000407975 and 000040801.
    If you still face the problems, please let me know.
    Regards,
    Anil Salekar

  • Enhancing Create vehicle Action-with Zfields

    Hi,
    We included Zfields in a new structure and the same was appended in VLCVEHICLE and VLCACTDATA_ITEM_S.
    These Z fields are  also inserted as attributes at item level in customization.
    But these fields not capturing when we run Create vehicle action. If we included VHVIN, in action screen it is working but not zfields. Is there any thing we missing or BADI to be written.-
    Thanks and Regards
    Chidambaram

    Hi Chidambaram ,
    in VMS there is customization to assign additional data for vehicle. Here you can select as well specific actions.
    In addition make use of BAdI Enhancement of Vehicle Data where the VLCDIAVEHI structure can be changed.
    Best regards
    Robert

  • FM to insert a  multiple characteristic value

    Hi,
    i try to insert a characteristic value to the classification of the material.The characteristic is "Multiple Values". So when i use FM BAPI_OBJCL_CHANGE the characteristic will be overwritten.
    thx, martin

    Hi,
    Well you can create a separate Migration Object for migrating text for the Business Partner. Refer to the following threads for example:
    how to write program for the long text in EMIGALL for the DEVICE LOCATION.
    EMIGALL for long text
    I tried in my system, and I had to pass the following values to the object:
    X_HEAD Structure:
    TDFORM = SYSTEM
    TDSPRAS = EN
    TDOBJECT = BUT000
    TDNAME = business partner number
    TDID = 0001
    TDLINESIZE = 132
    You can get the required values by selecting the EDITOR option for the note and referring to the fields
    TEXTNAME = TDNAME
    TEXTID = TDID
    TEXTOBJECT = TDOBJECT
    XT_LINE_TAB Structure:
    TDFORMAT = *
    TDLINE = the text you want to migrate
    Another option will be to use the Function Module SAVE_TEXT with the values, immediately after the NEWKEY is generated for the PARTNER object by writing an event.
    Let me know if further help is required.
    Cheers,
    Sachin.

  • Can not insert/update data from table which is created from view

    Hi all
    I'm using Oracle database 11g
    I've created table from view as the following command:
    Create table table_new as select * from View_Old
    I can insert/update data into table_new by command line.
    But I can not Insert/update data of table_new by SI Oject Browser tool or Oracle SQL Developer tool .(read only)
    Anybody tell me, what's happend? cause?
    Thankyou
    thiensu
    Edited by: user8248216 on May 5, 2011 8:54 PM
    Edited by: user8248216 on May 5, 2011 8:55 PM

    I can insert/update data into table_new by command line.
    But I can not Insert/update data of table_new by SI Oject Browser tool or Oracle SQL Developer tool .(read only)so what is wrong with the GUI tools & why posting to DATABASE forum when that works OK?

  • Lock-ups while inserting to a remote database using a dblink

    Our application runs across multiple instances of Oracle 8i - 8.1.6.
    Throughout the day we run some batch processes to transfer data across these instances using dblinks. Ocassionally the process locks up and further investigation shows that the server from which we are pushing information out seems to have executed an insert statement on a remote instance (insert into test_table@tst_dblink select * from local_table) and is waiting for a return from the remote server while the remote instance seems to be hanging too. Oracle does not return any error but simply waits forever for the statement to finish.
    If anybody has experienced this before can you please share any information you may have on 1. how to prevent this from happening or 2. How to make oracle give up on the transaction, roll it back and raise an error?
    Thanks a lot....

    Well, certainly we need more info to fix the problem! couple of "system states" on both the machines when the job is hanging would help. couple of "stack trace" of the shadow process will also help. please call local oracle support with the system state and stack trace.
    Sounds like the job is hanging on some resource (lock,enque,latch,io...). oracle doesn't give up for few resources, like waiting on ST,latch, io etc. we have to kill the offending process if we want!!
    just my 2 cents :)
    G

  • In ALV report  list edit a field and insert our own text

    Hi
    In a report when I am in third list using ALV a field which is disabled should be enabled and have to insert the new value in it and save.
    please tell me how to do it using classes and methods and also using ALV's.
    Promise to reward points.
    Regards
    Mac

    See these threads
    Re: Making selected alv rows editable
    Re: selective edit in ALV grid
    Regards,
    Ravi

Maybe you are looking for

  • Testing VOs that have positional bind variables with BC4J Tester

    Hi I am doing some OAF development for eBusiness 12.1.3 and would like to understand whether VOs that have positional bind variables can be tested using the BC4J Tester in JDeveloper 10.1.3 (the latest version of JDev compatible with OAF development)

  • Does Apple Fix Cracked Screens or just give you a replacement?

    Basically I dropped my iPhone 4 from a few floors. The back and front are all smashed. When I connect it to the computer iTunes seems to recognise it but I can't see anything because LCD is damaged. I heard Apple can repair this but do they actually

  • Why does my app keep closing?

    Several of our applications keep closing right after they get initiated.  Does anybody know why this happens and how to fix it?

  • Error Creating weblogic domain

    Iam getting the following error when creating the weblogic 11g domain on windows. Please help me Preparing... Extracting Domain Contents... Creating Domain Security Information... Domain Creation Failed! Domain Location: C:\bea_oracle\user_projects\d

  • Problem installing Oracle 9i entreprise edition

    I have downloaded oracle 9i entreprise edition (all 3 disks). When I click on the set up icon, nothing happen. Could someone give me advises on how to fix the problem. I am running windows XP Professional at home. This is my first time using oracle.