Auto-update a Custum Field in a standard Infotype.

Hi,
Here is my problem.
In IT0759 (Compensation Process), I added a new field 'ZZSTAT'.
The process should be like this :
When the standard field CSTAT (Status of  Process) = 5 Active then the custom field ZZSTAT should also be updated to 5.
I manage to deal with this using the PBO of ZP075900 :
MODULE MODULE_PBO_0759 OUTPUT.
  IF p0759-cstat = '5'.
    p0759-zzstat = '5'.
  ENDIF.
ENDMODULE.                 " MOD_PBO  OUTPUT
But there is a program 'RHECM_CHANGE_PROC_STATUS' which update the standard field CSTAT. As the PBO is not processed, my custom field is not updated.
Does someone have a solution ?
Thanks
François

Hi Francois,
Do it through dynamic actions: SM31 -T588Z
Add the following entries.
0759 P P0759-CSTAT = '5'
0759 W P0759-ZZSTAT = '5'
Regards,
Dilek

Similar Messages

  • Sending custom field added in Standard infotype through idoc

    Hello All,
    We have a requirement where custom field of a standard infotype 0002 needs to be sent through idoc only to a desired destination system.
    My Approach:
    I have created a custom segment having custom field from IT 0002 & mapped this segment in T777D table.
    But the problem with above, is all the system who are receiving IT0002 will be receiving this custom segment also including desired system.
    How can it be filtered?

    Hi,
    Create the new segment and message types of the idoc with cutom field.
    Then map the new mesage type and corresponding receiver( SM59).

  • Auto update of date field - SQL Server 2005

    HI folks,
    Is there a way I can automatially tell when a record was last updated?
    I can set a field to get the date by using getdate(), but is there a way SQL server will insert the timestamp, without me having to create the date object in CF, then inserting it.
    I'd like to add a 'last updated' function to my CMS.
    Thanks in advance

    For UPDATE you are looking at trigger.
    http://msdn.microsoft.com/en-us/library/ms189799.aspx

  • Problem to update VBAP-ERLRE field in a standard table----Its urgent

    Hi friends,
       ERLRE: Completion Rule
      I need to create custom utility program to update ERLRE field(already it was set with B for thos specific orders,i need to upadte with null value for those) in production for specific orders.I checked FM: sd_salesdocument_change, but ITEM_IN STRUCTURE  BAPISDITM ,ITEM_INX STRUCTURE  BAPISDITMX OPTIONAL
    those two structures not contain ERLRE field. Only  ITEMS_EX STRUCTURE  BAPISDIT OPTIONAL contain ERLRE field.
    It does not have any x structure corresponding it.
    Please help me how to update that field? Is there any other solution for that?
    Thanks,
    Monica

    Hi Rob,
    I am doing the same way what you told, but its not updation data in table. Can you please check my code what i had done.
    DATA: header_in     LIKE bapisdhd1,
          header_in_x   LIKE bapisdhd1x,
          item_in       LIKE bapisditm  OCCURS 0 WITH HEADER LINE,
          item_in_x     LIKE bapisditmx OCCURS 0 WITH HEADER LINE,
          return        LIKE bapiret2   OCCURS 0 WITH HEADER LINE,
          ITEMS_EX      LIKE BAPISDIT OCCURS 0 with header line.
    DATA: rec_ok TYPE char1.
    DATA: t_vbak LIKE vbak OCCURS 0 WITH HEADER LINE.
    DATA: t_vbap LIKE vbap OCCURS 0 WITH HEADER LINE.
    DATA: icnt TYPE i,
          gcnt(1) TYPE c,
          g_ordertype LIKE vbak-auart,
          c_zso(3) TYPE c VALUE 'ZSO'.  " sales order type
    SELECT vbeln FROM vbak INTO  corresponding fields of  TABLE t_vbak
                           WHERE vbeln = '0090000141'.
    CHECK sy-subrc = 0.
    LOOP AT t_vbak.
    Ini structures
      CLEAR header_in.
      CLEAR header_in_x.
    Ini tables
      CLEAR   item_in.
      REFRESH item_in.
      CLEAR   item_in_x.
      REFRESH item_in_x.
      CLEAR   items_ex.
      REFRESH items_ex.
      CLEAR   return.
      REFRESH return.
      SELECT vbeln posnr  INTO CORRESPONDING FIELDS OF TABLE t_vbap
                                        FROM vbap
                                        WHERE vbeln = t_vbak-vbeln AND posnr = '000100'.
      CHECK sy-subrc = 0.
    Set header data
      header_in_x-updateflag = 'U'.
    Set line item data
      LOOP AT t_vbap WHERE vbeln = t_vbak-vbeln.
        items_ex-operation = '005'.
        items_ex-doc_number = t_vbap-vbeln.
        items_ex-itm_number = t_vbap-posnr.
        items_ex-updat_flag = 'X'.
        items_ex-end_rule = 'C'.
        APPEND items_ex.
        CLEAR items_ex.
      ENDLOOP.
    Disable dialog
      CALL FUNCTION 'DIALOG_SET_NO_DIALOG'.
    Run BAPI
      CALL FUNCTION 'SD_SALESDOCUMENT_CHANGE'
        EXPORTING
          salesdocument     = t_vbak-vbeln
          order_header_in   = header_in
          order_header_inx  = header_in_x
          behave_when_error = 'P'
          call_from_bapi    = 'X'
        TABLES
          return            = return
         item_in           = item_in
         item_inx          = item_in_x
          items_ex          = items_ex.
    Check for errors
      IF sy-subrc = 0.
        LOOP AT return.
          IF return-type = 'E'.
            rec_ok = 'N'.
            EXIT.
          ENDIF.
           IF return-type = 'S'.
            write:/ 'success'.
          ENDIF.
        ENDLOOP.
        IF rec_ok  = 'N'.
          ROLLBACK WORK.
              ELSE.
          COMMIT WORK AND WAIT.
          WRITE:/ 'Success_flag?'.
        ENDIF.
      ENDIF.
    ENDLOOP.

  • Auto update of text field on drop down change (binded to XML doc)

    Hi all,
    I have a problem that i'm stuck with since too long and I'll be really grateful for any useful idea.
    Here is my issue:
    I have this XML:
    <?xml version="1.0" encoding="UTF-8"?>
    <ItemsList>
              <Product>
                        <itemUnitPrice>200.00000000</itemUnitPrice>
                        <itemCode>lkg</itemCode>
                        <ItemID>2</ItemID>
                        <itemDescription>lk desc</itemDescription>
              </Product>
              <Product>
                        <itemUnitPrice>300.00000000</itemUnitPrice>
                        <itemCode>lkv</itemCode>
                        <ItemID>1</ItemID>
                        <itemDescription>lkv desc</itemDescription>
              </Product>
              <Product>
                        <itemUnitPrice>400.00000000</itemUnitPrice>
                        <itemCode>lks</itemCode>
                        <ItemID>3</ItemID>
                        <itemDescription>lks desc</itemDescription>
              </Product>
    </ItemsList>
    ItemID and itemCode are bounded to my dd list and the left is bounded to the rest of the columns in my table (below).
    I`d like to find a way to auto change, for example the unit price, of an item selected from the list.
    I have to mention that this xml is returned by a database and data can change so  i can`t write javascript static code to match itemId with their Unitprice and description.
    Any ideas ??
    Thanks in advance.

    Hi,
    yes this is possible.
    Add this script to the change event of your dropw down list.
    Text1.value.text.value = xfa.event.change;

  • Adding fields in the standard infotype

    Hi all,
    I have a requirement wherin i have to update four fields into infotype 0028.
    Two fields have to be entered into subty 0001 and two into subty 0014.
    Can u please give me pointers on how to do it.
    Regards,
    Amrita.

    Go to Transaction PM01.
    2) Enter the custom Infotype number which you want to create (Should be a 4 digit number, start with 9).
    3) Select the u2018Employee Infotypeu2019 radio button.
    4) Select the u2018PS Structure Infotypeu2019.
    5) Click on Createu2026 A separate table maintenance window appearsu2026
    6) Create a PS structure with all the fields you want on the Infotype
    7) Save and Activate the PS structure
    8) Go back to the initial screen of PM01.
    9) Click on u2018Allu2019 push button. It takes a few moments.
    10) Click on u2018Technical Characteristicsu2019. Infotype list screen appears
    11) Click on u2018Changeu2019(pencil) button
    12) Select your Infotype and click on u2018Detailu2019 (magnifying glass) button
    13) Give u2018T591Au2019 as subtype table
    14) Give u2018T591Su2019 as subtype txt tab
    15) Give your subtype field as subtype field
    16) Save and come back to PM01 initial screen
    17) Click on u2018Infotype Characteristicsu2019 u2026 Infotype list screen appears
    18) Click on u2018Changeu2019 (pencil) button
    19) Click on u2018New Entriesu2019
    20) Enter your Infotype number and short text
    21) Here we have to set different Infotype Characteristics as per the requirement. (Better open another session with some standard Infotypeu2019s infotype characteristics screen and use as the reference to fill yours)
    22) Save your entries.
    23) Now the Infotype is created and ready to use.
    24) If you want to change the layout of the Infotype as per your requirementu2026
    25) In the PM01 initial screenu2026Select u2018Screenu2019 radio button and give 2000 as the screen name, then click on edit.
    26) In the next screen.. Select u2018Layout Editoru2019 and click u2018Changeu2019.
    27) Screen default layout appearsu2026here you can design/modify the screen..change the attributes of the fields..etc.
    28) Save and activate. (Donu2019t forget to u2018Activate at every level

  • Creating an infotype composed of standard infotypes parts

    Hello all,
    My purpose is to created an infotype to gather several fields of some standard infotypes.
    In order to do this, I started to create a new infotype 9000 copying one of the infotypes whose fields where needed in the new one.
    Now I just want to add my new infotype some fields belonging to another ifp. Is it possible to add a part of a standard ifp to my new one or do I have to add my fields one by one ?
    Thanks everyone,
    Sylvain

    Hi Sylvain
    Let me draw what I see. Do you want to maintain e.g. persg, pesk from IT0001, vorna, nachn from IT0002, stras from IT0006 together from another customer infotype?
    If so, generating an infotype will not have much for this. Because it will bring lots of integration problems (think of validity periods).
    Regarding your proposal:
    P9000 has following fields:
    persg
    persk
    vorna
    nachn
    stras.
    Then do not expect that it can maintain data of PA0001, PA0002 and PA0006. It will just maintain PA9000 unless you code more functionality which more or less is dialog programming. If you want just PA9000 to be filled, then you will lose many functionalities of HR system.
    Since IT9000 is your own infotype, why do you need to append a customer include? If it is eligible, you can prefer appending CIs to standard infotypes.
    Regards
    *--Serdar <a href="https://www.sdn.sap.com:443http://www.sdn.sap.comhttp://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.sdn.businesscard.sdnbusinesscard?u=qbk%2bsag%2bjiw%3d">[ BC ]</a>

  • Updating custom field in a standard table - AFVC

    Hi All,
    We have created a custom field in table AFVC. While updating other things related to that Order/Operation, we need to update this custom field.
    Can you kindly let me know how we can approach this? Do we use a direct Modify/update statement in such cases to update the standard sap table?
    Regards
    An

    Hi Ankur,
    There are few ways to do.
    1) Implement the screen field in the transaction at the operation level for visibilty to all the reason code. After updation of USER STATUS you need write the small utlity to update that field through LSMW or any other way to update this field in the transaction directly to save in the database table.
    2) AFVC means orders operation data. In this table many types of order data will store so you have to choose which type of order you are going to update whether it will be Internal order or production order or maintaineance order etc..
    3) Direct updation is last preference if there is no way for updation.
    Please let me know which order cateogry you are updating from thrid party sytem to your current system.
    As J@Y said if you are updating through some function module then in that case for BAPI's there is separate structure EXTENSION_IN and OUT to update the custom fields.
    Thanks,
    Satheesh

  • Auto Updating Report

    Hello.
    I am using Apex 2.2.1 and am trying to get Carl Backstrom's wonderful Auto Updating Report to work.
    In the Region Template he is using REGION_STATIC_ID. What is that? How do I supply this value? In Apex 3.x there is a field in which to enter a "Report Id" when creating a report. But in 2.x, I see no such field anywhere.
    I went ahead and tried to create a report using his example. I made a copy of the Standard PPR template for Theme 10 (Sand). I then copied his code into my PPR copy. When I run my report, there is no refresh and also I am getting the text "#TOP_PAGINATION#" at the top of the report.
    How does one get an Auto Updating report to work in Apex 2.2.1?
    Thank you for any help.
    Elie

    Hi Carl.
    Thanks very much for helping me out.
    I've posted my Apex 2.2.1 app onto my workspace on OTN. Of course, this workspace is a 3.0.1 workspace, and so, I see the REGION_ID field in the report region. This field is missing in my 2.2.1 workspace.
    Here is the link and credential info you'll need to see my report page.
    workspace = play30
    username = [email protected]
    password = flowers
    The relavent page is page 3 - "Errlog Report".
    With respect to the way you're auto updating your report, I have a couple questions.
    1) The #REGION_STATIC_ID# and #REGION_ID# values -- are these the same as the region_id obtained via the query:
    SELECT region_id
    FROM apex_application_page_regions
    WHERE application_id = :app_id
    AND page_id = :app_page_id
    AND region_name = 'Errlog Report';
    2) You're using AJAX to auto update a report region, and so, I was expecting to see some reference to the javascript function htmldb_get(). And yet I see you are not calling this function anywhere in the javascript you're using. Perhaps the functions you are using are calling htmldb_get() behind the scenes, I don't know.
    We've not upgraded to 3.0.1 because we have so many Apex (2.x) apps being used in production (and this number is increasing as more users see what we've done) that we need to find a suitable time to upgrade without affecting users too much. We read in the Apex install notes that we need to make our database instance unavailable during the upgrade (an hour or so), and so, finding this hour of space is the main hurdle blocking our upgrade to 3.0.1.
    Thanks, again, for any help/advice. It is much appreciated.
    Elie

  • How to update a custom field of MARC table using BAPI_MATERIAL_SAVEREPLICA

    Hi,
    I want to update a custom field (Appended field) of MARC table using  BAPI_MATERIAL_SAVEREPLICA. Please help me in this issue. I cannot use BAPI_MATERIAL_SAVEDATA as this updated the MARC table record by record. I have to update bulk records at a time.
    Thanks
    Rahul.

    Hi,
    Use the Documentation given for struture in BAPI docuemntation...
    For loading data into custom fields of MARC use the structure - BAPI_TE_MARC.
    First, structures BAPI_TE_<NAME> (<NAME> = MARA, MARC, MARD, MBEW, MLGN, MLGT, MVKE, MARM, MAKT) and the appropriate check structures BAPI_TE_<NAME> (<NAME> = MARAX, for example) have to be extended by the customer to include the required fields. The structures that are delivered as standard only contain the relevant key fields. When new fields are added to this structure, you should ensure that a field has the same name as the field in the database table. Furthermore, the fields in the structures BAPI_TE_<NAME> can only be CHARACTER fields. Data element BAPIUPDATE is to be used for the fields in the check structure (exception to this: key fields.)
    Parameters EXTENSIONIN and EXTENSIONINX are used for transferring data to the method. Field STRUCTURE contains the name of the structure (for example, BAPI_TE_MARA or BAPI_TE_MARAX). This names is used to identify the work area (for example,  WA_BAPI_TE_MARA or WA_BAPI_TE_MARAX) to which the data is transferred. The remaining fields in parameters EXTENSIONIN or EXTENSIONINX contain data for the key fields (for example, the material number) and the data for customer-specific fields. The number of characters reserved in both parameters for the contents of the customer-specific fields must match the number of characters for the relevant field in the work area. If the number of required characters is less, the remaining characters are left blank. Only when all characters have been filled can the contact for an additional field be transferred. Bear in mind that only data for which an appropriate indicator has been set in the work area can be updated to the database.
    Regards,
    Bhargava

  • Auto update of time mode? Does this ever work?

    Hi,
    I have just received a Nokia 6700 and previously had the Nokia 6300 and noticed on both that the Auto update of time just doesn't do anything? I am based in the UK on the Orange network. Even when I travel abroad and with this setting enabled, my phone time is not updated automatically? My current settings is with this off, zone set to GMT and daylight saving set to +1. I think these settings are protected when auto time is switched on.
    Is this something that Orange needs to enable or assuming I have a data connection, does it just sync with one of the internet time servers (as PC's have done for years).

    It only works if the network supports it.  It's a feature that has been in many phones from many manufacturers for years, but to most people it is useless.
    I'm not sure if many networks actually bother with this feature. I'm fairly certain that none of the UK networks support it but not sure about t-mobile.
    There is no way to sync the time with a server on a standard phone like the 6700.  For that feature you would need a smartphone and an extra bit of free software.

  • Auto update of Ztable when ever BSID or BSAD tables updated

    Auto update of Ztable when ever DB table updated     
    Hi experts
    I want my Ztable get updated automatically when ever a record is created or updated in BSID or BSAD tables.
    Here clear requirement
    Generally using Company code & Allocation number  ( 18 char ) my programs access BSID & BSAD tables it is taking very long time for execution almost more than 30 minutes ( data in millions ).
    Step 1.
    I created a new Ztable with limited fields Company Code, Customer, Document, Allocation Number and Posting date.
    Step 2.
    Before look into BSID or BSAD my program searches Ztable for Customer number & Document number using Allocation field and Company code.
    Step 3.
    Once get the Customer & Document numbers accessing BSID & BSAD table is very easy (now just taking less than 1 minute).
    Created a new program to update Ztable every day but BSID and BSAD are live table so I want my Ztable get updated immediately when any entry posted in BSID or BSAD
    Please help me
    Satya
    Singapore

    You need to check what is the procedure (T-Code) from which the data gets updated into these tables.
    For example
    when we craete a material from MM01 the data gets updated in the corresponding table i.e. EKPO.
    In same way you need to find the process and then you can use BTE (Busineess transaction events) for that process. BTE are only for FI module and these tables are also related to FI .

  • Auto update of events in albums

    Hello! My question is this . . .
    If I create a new album, and then add an event, will the album dynamically update if I add/remove photos to the event?
    Thanks!
    Michael

    Thanks Larry! I think I get it now. Standard albums won't auto update (not dynamic), but if I create a Smart Album ("Travel" for instance), with the event as a criteria (for example, all events that contain the word "vacation"), and if I add photos to any of my "vacation" events, those photos will appear in my "Travel" album. Does this sound right?
    Thanks!
    Michael

  • 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

  • Issue in Updating Customer specific fields in WBS using BAPI_BUS2054_CREATE_MULTI

    Hi Experts,
    I am able to create the WBS element using BAPI_BUS2054_CREATE_MULTI.But the issue is i am not able to update customer specific fields even after passing the fields as per specification in Function module documentation. I have also created an implementation of BADI  as per below specification in FM documentation:
    Procedure for Filling Standard Enhancements
    Before you call the BAPI for each object that is to be created or changed,
    for which you want to enter customer-specific table enhancement fields, add a
    data record to the container ExtensionIn:
    STRUCTURE:    Name of the corresponding help structure
    VALUEPART1:   Key of the object + start of the data part
    VALUEPART2-4: If required, the continuation of the data part
    VALUPART1 to VALUPART4 are therefore filled consecutively, first with the
    keys that identify the table rows and then with the values of the
    customer-specific fields. By structuring the container in this way, it is
    possible to transfer its content with one MOVE command to the structure of the
    BAPI table extension.
    Note that when objects are changed, all fields of the enhancements are
    overwritten (as opposed to the standard fields, where only those fields for
    which the respective update indicator is set are changed). Therefore, even if
    you only want to change one field, all the fields that you transfer in
    ExtensionIn must be filled.
    Checks and Further Processing
    Using the methods ...CREATE_EXIT1 or. ...CHANGE_EXIT1 of the BAdI
    BAPIEXT_BUS2001, BAPIEXT_BUS2002, and BAPIEXT_BUS2054, you can check the entered
    values (and/or carry out other checks).
    In the BAdI's second method, you can program that the data transferred to the
    BAPI is processed further (if you only want to transfer the fields of the CI
    includes, no more action is required here).
    But still i am unable to update fields though i am able to create WBS with rest of the fields except  custom fields.
    I am using attached code to achieve this.Do we need to code anything inside method create_exit1 or create_exit2 implementation for BADI or
    Please help on priority

    Hi Rahul,
    First observation from your code is that i could not find the assignment for the field
    GWA_WBS_EXTIN-STRUCTURE. I hope you are not filling this field, that could be one reason for failure. Try to do it and let us know if you still have the problem.
    Br..
    Dwaraka

Maybe you are looking for

  • How to export a schema and import the schema to a different schema name

    I am using Oracle9i Oracle Enterprise Manager Console. I can export the HR to a dmp file. I have created another user call MYHR and I would like to import hr.dmp to the new user. 1. How can I add a schema using OEM? I can do it by creating a table in

  • Pages not showing up in web search

    I am a newbie to DW 8 (I am a photographer). Like everyone, I would love to find my pages in a web search with google or yahoo, but they are not showing up. Here is an example of the info (from the web page) for one of my pages (classes I teach): <!D

  • I got rid of Babelfish and now the toolbar to type in a www address etc has gone.

    I have lost the bar at the top of the screen where you key in the www address you are seeking. This bar also has the 'back' button, and 'tools' button amongst others. How do I restore this toolbar?

  • Automation Stops working

    Ok, for some reason grafted in Automation keeps failing on certain audio + instrument tracks. I'm working on a remix for some friends and the only think I can think of is that because I've deleted some of their tracks and created my own from the 'Tra

  • N series compatibility in USA & Canada

    hi. can somebody to tell me exactly if one of the following N series models as: N80, N73 ME, N95, bought in United Emirates, are full compatible in USA or Canada? I'll do appreciate for any answer. I wanna also to mention: these all models are not lo