Update the Street field in ADRC table.

Hello !! Please I need some help.
I have to update the Street field in ADRC table.
I have this list.
Where I can put a Flag and an Update to do it.
Im really newbie.  Im doing it in IDES, to test it first.
Help !
REPORT  Z_LIST_ADRC      LINE-SIZE 190
                         LINE-COUNT 65
                         NO STANDARD PAGE HEADING.
TABLES: ADRC.
DATA: BEGIN OF ITAB OCCURS 0,
           ADDRNUMBER LIKE ADRC-ADDRNUMBER,
           date_to like ADRC-date_to,
           NAME1 LIKE ADRC-NAME1,
           CITY1 LIKE ADRC-CITY1,
           CITY2 LIKE ADRC-CITY2,
           STREET LIKE ADRC-STREET,
           MC_NAME1 LIKE ADRC-MC_NAME1,
           MC_CITY1 LIKE ADRC-MC_CITY1,
           MC_STREET LIKE ADRC-MC_STREET,
END OF ITAB.
SELECT ADDRNUMBER DATE_TO NAME1 CITY1 CITY2 STREET MC_NAME1 MC_CITY1 MC_STREET
  FROM ADRC INTO TABLE ITAB.
LOOP AT ITAB.
WRITE : /001 ITAB-ADDRNUMBER,
                007 ITAB-DATE_TO,
                016 ITAB-NAME1,
                040 ITAB-CITY1,
                070 ITAB-CITY2,
                090 ITAB-STREET,
                120 ITAB-MC_NAME1,
                150 ITAB-MC_CITY1,
                170 ITAB-MC_STREET.
ENDLOOP.
TOP-OF-PAGE.
  ULINE.
    WRITE:         /001 'n-addr',
                    007 'date',
                    016 'name',
                    040 'city1',
                    070 'city2',
                    090 'street',
                    120 'name-s',
                    150 'city1-s',
                    170 'city2-s'.
  ULINE.

HI,
data : itab like standard table of adrc.
select * from adrc into table itab.
loop at itab.
itab-street2 = 'New value'.
modify itab index sy-tabix.
endloop.
if not itab[] is initial.
modify adrc from table itab.
endif.

Similar Messages

  • Updating the CUstomer fields in mARC table using BAPI_MATERIAL_SAVEREPLICA

    Hi friends,
    I want to update the Zfields in MARC table .Please provide me the details for updating these fields (Extension in bapi) Using the  BAPI_MATERIAL_SAVEREPLICA
    Thanks in advance

    Hi Varsha,
    There is documentation provided for this funtion module:
    If long texts (for example, basic data texts, internal notes, purchasing info texts, material notes or sales and distribution texts) or customer-specific fields have to be created for a material, some specific characteristics have to be taken into consideration. These characteristics are detailed in the documentation for parameters MATERIALLONGTEXT and EXTENSIONIN.
    Documentation is present for the parameters by clicking on EXTENSIONIN, EXTENSIONINX
    Regards,
    Swarna Munukoti

  • Updating the key field in a table

    I am trying to assign new values to the primary key column in a table. As it is necessary to hold a permanent record of the relationship between the new and old values, I am extracting the old values into another table and assigning the new values from a sequence with an insert trigger on this table.
    Within the same mapping, I cannot seem to take the new values from this table and update the original table. Ideally, I would like to update key flexfield colum with the new primary key values using the old primary values as the in the where clause' of the update statement (as opposed to delete and reinsert the rows into) the originating table - as I only pull across the key flexfield column into the number allocation table, this is necessary to preserve the other data.
    Can anyone let me know how this can be achieved?...I cannot find the concept of new and old in OWB table updates.
    I have tried using the (unsuitable) load type of 'DELETE/INSERT' on this table, but this results in the contents of the table being deleted when I run the mapping.

    If it's necessary to change the primary key then your database design is likely wrong. I don't understand why it would be necessary to update a PK unless you use PK with a certain meaning which is a design failure.
    Regards,
    Jörg

  • How can i update the REMARK field in ADRT database table

    Hi all,
    How can i update the REMARK field in ADRT database table
    By using Function modules or BAPI’s
    Please reply me fast

    Hi,
    you can try this code:
        SELECT SINGLE * FROM KNA1 WHERE KUNNR = wa_kunnr.
        IF sy-subrc = 0.
          CLEAR adrct.
          SELECT SINGLE * FROM adrct WHERE addrnumber = kna1-adrnr.
          IF sy-subrc = 0.
            adrct-remark = wa_remark.
            MODIFY adrct.
          ENDIF.
        ENDIF
    best regards,
    Thangesh

  • Updation of Custom Fields in AFRU table Using Customerexit

    Hi all,
    I added two fields in CO11n Tcode using SCREEN EXIT - CONFPP07 and iam trying to update these two fields in AFRU table
    using CONFPP05.  But iam unable to update these two field .
    see this code in CONFPP05
      LOOP AT afrud_tab.
        afrud_tab-zzshift = wa_afrud-zzshift1 .
        afrud_tab-zzoperator = wa_afrud-zzoperator1 .
        MODIFY afrud_tab.
      ENDLOOP.
    Plz help me regarding this..

    Thanks for reply
    Ya i added two fields in confpp07 .
    see the code :
    *&  Include           ZXCOFTOP
    tables : afrud.
    DATA : WA_AFRUD TYPE AFRUD,
            IT_AFRUD TYPE TABLE OF AFRUD.
    Include           ZXCOFU24
    MOVE afrud-zzshift1 TO wa_afrud-zzshift1.
    MOVE afrud-zzoperator1 TO wa_afrud-zzoperator1.
    Even though it is not updating . except these two fields.
    Regards,
    Srinivas

  • Problem with update of BLOB field in a table with compound primary key

    Hi,
    I've been developing an application in Application Express 3.1.2.00.02 that includes processing of BLOB data in one of the tables (ZPRAVA). Unfortunately, I've come across a strange behaviour when I tried to update value in a BLOB field for an existing record via a DML form process. Insert of a new record including the BLOB value is OK (the binary file uploads upon submiting the form without any problems). I haven't changed the DML process in any way. The form update process used to work perfectly before I'd included the BLOB field. Since than, I keep on getting this error when trying to update the BLOB field:
    ORA-20505: Error in DML: p_rowid=3, p_alt_rowid=ID, p_rowid2=CZ000001, p_alt_rowid2=PR_ID. ORA-01008: not all variables bound
    Unable to process row of table ZPRAVA.
    OK
    Some time ago, I've already created another application where I used similar form that operated on a BLOB field without problems. The only, but maybe very important, difference between both the cases is that the first sucessfull one is based on a table with a standard one-column primary key whereas the second (problematic one) uses a table with compound (composite) two-column PK (two varchar2 fields: ID, PR_ID).
    In both cases, I've followed this tutorial: [http://www.oracle.com/technology/obe/apex/apex31nf/apex31blob.htm]).
    Can anybody confirm my suspicion that Automatic Row Processing (DML) can be used for updating BLOB fields within tables with only single-column primary keys?
    Thanks in advance.
    Zdenek

    Is there a chance that the bug will be included in the next patch?No, this fix will be in the next full version, 3.2.
    Scott

  • How to update the Customer field value of PO Item under the Delivery Address Tab?

    Hi Friends,
         i tried to update the Customer field Using Bapi_PO_change.I passed the PO Order no,POADDRDELIVERY data with Item no,Adrees no,Customer no.But i am getting no data changed message from return table.I attached the screen shots.So please suggest me the helpful information for resoving this issue.
    Thanks,
    Dinesh

    Thank you friends,
                My Problem was resolved.In my case i have passed the customer value in BAPI_PO_CHANGE POITEM Table with updated customer value.
    Thanks,
    Dinesh

  • Update Yes/No field in access table through oracle procedure

    Hi,
    How to update Yes/No field in access table through oracle procedure. all other fields like AutoNumber, Text I can update it. Yes/No field how to update? Please, any one can help me?
    Thanks and Regards,
    Sudha.

    Sudha Teki wrote:
    select "fldPost" from tblPHd@ODBCLNKNot quite sure what you mean, but the way you select the column would indicate a case sensitive column name
    Look at this example
    SQL> create table t
      2  ("this" varchar2(10))
      3  /
    Table created.
    SQL> insert into t values ('hello')
      2  /
    1 row created.
    SQL> select *
      2    from t
      3  /
    this
    hello
    SQL> select this
      2    from t
      3  /
    select this
    ERROR at line 1:
    ORA-00904: "THIS": invalid identifier
    SQL> select "this"
      2    from t
      3  /
    this
    helloIs your column name also case sensitive?

  • Update of segment field in bseg table

    hi
    can any explain me about update of segment field in bseg table
    segment is mentained in profit center master record ,and i want to generate trial balance segment wise and profit center wise
    please suggest me steps to do in a new gl senario
    thanks
    cb

    Hi,
    You need to activate the assign scenarion FIN_SEGM to your ledgers in the below path:-
    SPRO> Financial Accounting (New) > Financial Accounting Global Settings (New) > Ledgers > Ledger > Assign Scenarios and Customer Fields to Ledgers
    Then you need to make document splitting characteristics based on Segment field in the below path:-
    SPRO> Financial Accounting (New) > General Ledger Accounting (New) > Business Transactions > Document Splitting > Define Document Splitting Characteristics for General Ledger Accounting
    Make the below entry:-
    Field = SEGMENT
    Zero Balance = Selected
    Partner Field = PSEGMENT
    Mandatory Field = Selected
    Then you will be able to generate the balance sheet segment wise in report S_PL0_86000028 "Financial Statement: Actual/Actual Comparison". (Similar steps you can use for profir center wise balance sheet in addition.)
    Regards,
    Gaurav

  • 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

  • Material Master: Update the Z fields using BAPI

    Hi to all,
    My requirement is simple. But I do not have much knowledge on BAPI. I have got some information that we can extend th BAPI and update the Z fields in material master. I have added the z fields in MARA. So when I call the bapi z fields has to get update.
    Which BAPI can i use? I have got one BAPI - BAPI_MATERIAL_SAVEDATA.   plz suggest me to do it.
    1. how do i enhance the BAPI or extend th BAPI.
    2. Is ther any approch to do it.
    thnks
    Yerukala Setty

    Hi,
    Append the z fields to BAPI_TE_MARA and BAPI_TE_MARAX structures using append structures.
    Populate two structures for the fields in BAPI_TE_MARA and BAPI_TE_MARAX.
    To BAPI_MATERIAL_SAVEDATA, under EXTENSIONIN parameters, pass structure name as BAPI_TE_MARA and Value Part1, 2, 3, 4 with the filled structure info.
    Similarly append X structure as well.
    Regards,
    Ganga

  • Updating the Assignment Field (ZUONR) with Check No

    Hi
    Can anyone help me please?
    I would like to update the assignment field (ZUONR) in the Bank Payables Clearing Account with the cheque number from the payment run (PAYR-CHECF).
    1.  Firstly is this possible?; and
    2.  If so could you explain how I do this.
    Thanks in advance for your assistance on this issue.
    Regards
    Claire

    Hi
    I would but there is no sort key which contains this, nor can I create one :o(.
    If you are aware of how I can do this then please let me know.  Is there a user exit which will populate this field when a payment has been made?
    Regards
    Claire

  • Update the data in user-defined table

    Dear All,
    Is there anyway we can insert / update the data in user-defined table in a batch instead of update it from the interface one by one? Our customer has 1,000+ data need to be imported.
    They are on SAP2007A SP00 PL45, SQL 2005, CA localization. Thanks a lot.
    Regards,
    yuka

    Dear Yuka,
    If it is UDT, you may use any SQL query to insert, update it. It is not under SAP support anyway.
    Thanks,
    Gordon

  • Updating the description field on the CRM Service Order

    HI Experts,
    I want to update the description fied with the service order number on the service order.
    What is the procedure to update the screen field on the crm service order, is it by order_maintain.
    Thanks in Advance for your help,
    Praveen

    Hi Praveen,
    Changing the field label on the WebUI is discussed many a times. Before posting, it is always a best practice to search for the solution.
    here is the link
    Change Field name & make it optional
    Hope this solves your requirement.
    Best Regards
    Shiven

  • Update Condition Category field in KONV table

    hello Folks,
    I have a requiremnt to update the Condition Category of KONV table .. I don't want to use direct table update
    I have used the below Bapi's but nothing is working
    1>BAPI_SALESORDER_CHANGE and got the message
    Manual changes to condition type is not permitted
    2>SD_SALES_CONDITION_MAINTAIN
    3>SD_SALES_ITEM_COND_MAINTAIN
    Please let me know if any FM is there to update the same.
    Your help is highly appreciated.
    Regards,
    Raj

    Make use of the following functionModule  to add,delete and update
    CALL FUNCTION 'KONV_UPDATE'
    EXPORTING
    PI_UPDKZ = PI_UPDKZ
    TABLES
    PI_T_KONV = WA_KONV .
    PI_UPDKZ = 'D' (Delete) ,'I' (Insert) ,'U' (Update)

Maybe you are looking for

  • How do I install Photoshop Elements and Premier Elements on a new hard drive?

    My hard drive had to be replaced and Photoshop Elements and Premier Elements were not de-activated and unistalled before the hard drive was replaced. I have my original downloaded install programs and serial numbers. Thank You.

  • Programatically manage a large number of subviews

    Hello again everyone, I'm building an application with something I can't quite get my head around and I'm hoping someone can offer some suggestions. The application will have a main view with 4 category buttons, which will each redirect to a speciali

  • Dell PowerEdge 2500 - Errors on Boot Up

    Hello, I had a reason to put a monitor on my headless server here... and I noticed on the Arch bootup there is a bunch of errors. First off, on the boot, first error that popped up was MP-BIOS bug: 8254 timer not connected to IO-APIC Now, I have read

  • BW 3.5 System Requirements

    Hi Everybody, Can anyone please let me know the exact sytem requirements for BW 3.5 version. i.e like the os version if it is LINUX etc. I tried so much in service.marketplace but did not get proper information. Thanks, Prashant.

  • JP2 batching

    I'm trying to create an action and batch in CS5 to resize and change some images extension from TIFF to JPEG2000. I want my files to have extention JP2; however, when I clicked saved as JPEG2000 I'm gettin jpf as a default extension, so I manually ch