Custom table needs to be updated based on changes in Info type P0000

Hi All,
   I have a requirement wherein when we make changes to info type P0000 this should be reflected to a custom table.
If i create a new record, delete an existing record or make changes to a record in INFOTYPE P0000 this should also be reflected in my custom table.
   My custom table has 5 fields from info type p0000 and some custom fieds.
   please can you let me know exactly which user exit to use to acchieve the solution. and where exactly i can put the logic.
Thanks,
Mars

Hi Venkat,
  I tried to code in the method AFTER_INPUT and executed but there are few thing which i have come across.
1. when ever i create a new record in PA40 and each time i save the screens of PA40 this method is called and based on check it tries to update the table taht many times.
2. The logic which i have used in the BADI implementations is as below:
  DATA: l_text TYPE string,
             l_answer TYPE string,
             lw_split TYPE XXXX.  (custom table)
  IF old_innnn NE new_innnn.
    lw_split-mandt = sy-mandt.
    lw_split-pernr = new_innnn-pernr.
    lw_split-begda = new_innnn-begda.
    lw_split-endda = new_innnn-endda.
    l_text = 'Does this employee need a split STIP?'.
        Display a pop up message to the user.
    CALL FUNCTION 'POPUP_TO_CONFIRM'
      EXPORTING
        titlebar                    = 'Choose'
        text_question               = l_text
        text_button_1               = 'Yes'
        text_button_2               = 'No'
        default_button              = '1'
        display_cancel_button       = space
     IMPORTING
        answer                      = l_answer
     EXCEPTIONS
        text_not_found              = 1
        OTHERS                      = 2.
    IF sy-subrc EQ 0.
      IF l_answer EQ '1'.
        lw_split-stflg = 'Yes'.
      ELSE.
        lw_split-stflg = 'No'.
      ENDIF.
    ENDIF.
    MODIFY TABLE  XXXX FROM lw_split.
    CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'
      EXPORTING
        wait = 'X'.
  ENDIF.
3. when i try to activate this chunk of code it gives me error  saying "XXXX" is unknown. i tried to declare it under TABLES but in Vain.
4 I have also tried to use the modify statement in IN_UPDATE instead of updating custom table in same method but its giving me same error "XXXX" is unknown. i tried to declare it under TABLES but in Vain.
can you let me know your view on this. The above chunk of code is in case of creating a new record in P0000 info type.
Thanks,
Mars
Edited by: Mars878 on Oct 13, 2009 9:18 AM

Similar Messages

  • STZBC table need to be updated correctly for DST Brazil Change.

    Hi All,
                          STZBC table need to be updated correctly for DST Brazil Change.
    I see two options to change it:
    1) Create a new line for 2009 in STZBC -> Variable time zone rule in DT1 and create the transport
    2) Apply SAP Note 198411 (attached) in DT1 and create the transport
    I have have concern for daylight saving as according to Note 1251372 there is no standard daylight saving time in brazil .
    this note mention daylight saving for  2008/2009 (i,e daylight saving time in Brazil begins on October 19, 2008 and ends on February 15, 2009.) and this note is the latest note available.
    what would be daylight saving time in brazil for year 2009/2010? should i need to raise message to SAP asking for any new note applicable to daylight saving?
    Thanks for your help in advance.
    Thanks&Regards
    Shams

    done

  • When J_2IRG1BAL table needs to be updated.

    Dear All,
    We have created a new material (Finished goods). But not sure, when we need to update the table J_2IRG1BAL.
    Please tell me which option I have given is correct.
    1. Immediately after the material creation
    2. After the goods receipt (i.e. Goods receipt updation in J1I5 with RMA classification)
    3. After running a business cycle (Sales order to Invoice)
    Kindly update me on this.
    Also let me know the process for other materials (Semifinished, Capital, Raw materials)
    Regards,
    Mullairaja

    Hi
    Its always better to create the entry in J_2IRG1BAL after creation of the material.
    You have to enter the below details like
    MATNR
    FORM packed or loose
    WERKS
    check this note which will be useful
    Note 951955 - CIN General clarifications for RG1 goods
    regards
    SAP SD

  • Need to trigger workflow based on change to one field in Warranty Claim

    Hi All,
    I have defined a workflow for the Warranty Claim system with triggering event as CHANGE in BO BUS2222. The workflow is triggerred and everything goes on smoothly. The only thing I need to address is this workflow should be triggerred ONLY when one particular field(CLERK) of the Warranty is changed. I have tried using the field restrictions in transaction SWEC for the Change Object but that doesnt seem to work and my workflow is triggerred on any change I make to the Warranty. Any pointers regarding this issue?
    Regards,
    Karthik

    You will have to fetch the value based on your objectkey. I don't know what is your object key.
    Declare: OBJTYPE like OBJTYPE
    OBJKEY LIKE SWEINSTCOU-OBJKEY
    EVENT   LIKE   SWETYPECOU-EVENT   
    RECTYPE  LIKE SWETYPECOU-RECTYPE  in the import parameter of your func module.
    EVENT_CONTAINER    like SWCONT       in tables of func module.
    In source code do these declarations apart from your other declarations which is required  DATA: lv_object_key  LIKE sww_contob-objkey ,
            lv_event       like SWETYPECOU-EVENT,
            lv_objtype     like SWETYPECOU-OBJTYPE,
    Now say for an example your object key is sales order and you want only those orders for which order type is OR (standard sales order).
    Then you can  fetch the order type from any of the sales table and check if it is OR or not. Here your input will be lv_object_key.
    eg: select order type from vbap where sales order =l v_object_key. Some logic like this.
    If it is not OR then raise an error.
    In this case when the required condtion is not satisfied the workflow won't be triggered.
    Get back to me if you are facing problems
    Thanks and Regards,
    Shweta Verma

  • Table needed to create report showing assigned changes

    Hi there
    I need to create a report that will show me how many CRQ a user currently has assigned to him/herself. Is there a MDG table that can provide me with this info?
    Any hints are highly appreciated!

    If you go to your MDG inbox, you can see all the CR's that are "Created by Me", "To Be Processed by Me", "Processed by Me", and "All." Look at the logic behind this application "My Change Requests" and you should be able to figure out how to extract this data. One thing for sure, you don't need to re-invent the wheel as all the information is available; you just need to format it differently.

  • Users receiving "Your Lync meeting invitation needs to be update due to changed server policies"

    A few users are experiencing this
    Right now Lync is on 2010 server and users are using Lync 2013 client with office 2010 and the server it will be upgraded to 2013. When it does get upgraded to 2013 will this message occur?  I know in Lync 2010 client there were updates that fix this
    but i see nothing for the Lync 2013 client. Please advise.
    Best regards,<br/> <br/> <strong>Joe C<br/> </strong>Partner Online Technical Community<br/> -----------------------------------------------------------------------------------------<br/> We hope you get value from
    our new forums platform! Tell us what you think:<br/> <a href="http://social.microsoft.com/Forums/en-US/partnerfdbk/threads"><span style="color:#0033cc">http://social.microsoft.com/Forums/en-US/partnerfdbk/threads<br/>
    </span></a>------------------------------------------------------------------------------------------<br/> This posting is provided &quot;AS IS&quot; with no warranties, and confers no rights <hr>

    Hi,
    There is no related document on network about the issue if Lync Server is 2010 while Lync client is 2013.
    As Edwin said above, you can migration Lync Server 2010 to 2013 and then check again.
    Best Regards,
    Eason Huang
    Eason Huang
    TechNet Community Support

  • How to track changes in a custom table and based on that run an interface

    I have an interface. The pre-condition for running the interface is "Run the interface only if there is new entry added to the table( a custom table). Now I have created a change document object using tcode SCDO for the custom table. Now how do i proceed further. Please tell me the steps which i need to follow to check if the custom table has been changed and also the entries changed  before running the interface.

    Hello,
    SAP has provided many changes tracking related programs for Sales order, Vendor changes etc.
    They all use the standard function Module
      call function 'CHANGEDOCUMENT_READ_HEADERS'
    call function 'CHANGEDOCUMENT_READ_POSITIONS'
    so with these you can get the changed records
    Let me know if this helps you
    Thanks and Regards
    Pushkar Joshi

  • Tables needed to update for reconciliation

    Hi all,
    can any one please tell me what are the tables need to be updated for bank reconciliation of checks.
    Please help me.
    Thank you,
    Bye.

    Sorry about that! You can download Firefox 3.6 here: http://www.mozilla.com/firefox/all-older

  • Populate Custom Table when Posting an Invoice

    Hi All,
    I need to populate a custom table when an invoice is posted, the custom table needs to hold the actual FI document number. We post invocies via a variety of means, manually through the transactions FB60 and MIRO and in the background via BAPI's.
    Does anyone know a user exist/BTE or BADI that can be used to populate a custom table at the time the SAP FI document is posted for an invoice?
    Regards
    Chris

    Hi
    You can use BADI AC_DOC_POST.. Pardon me, i dont remember the name exactly.. You can search the badis in SE18 based on this name
    Ask your abaper to write the code  so that when the COMMIT happens, it also updates the Z table
    Other Options: BTE 1120
    br, Ajay M

  • BAPI Enhancements - Custom Table

    Hi,
    I need to update a Custom Table when i call a Bapi of Change Orders.
    Is it possible use Parameter Extension_In? And how to develop it?

    Ramesh, thanks for your answer.
    I know it is possible write code in a Badi or User Exit, but is it possible manage Custom Table as Append Structure for updating Custom Fields?
    Is it possible use similar code?
    lt_extension_in-structure = 'ZTABLE'.
    lt_extension_in-valuepart1 = zvalue1.

  • Result table data to be populated based on selection in the result list

    Hi,
    We have a parent data source "P" containing all the record types. Further we have two child data sources each having filters on exclusive record types(for ex. child1 containing record types X, Y, Z and child2 containing record types A, B).
    In our page we have a result list associated with data source child1(record types X, Y, Z) and result table associated with data source child2(record types A, B). There exists common attributes among the attributes present in result list and in the result table.
    Rest of the containers in the page namely search, breadcrumbs, guided navigation point to the parent data source("P") containing all the record types.
    Whenever we select a value from the guided navigation using the common attributes both the result list and result table are getting filtered.
    What we require is that, whenever an attribute(common attribute) is clicked in the result list, the data in the result table needs to get filtered based on the value of the attribute that is clicked.
    Is this possible? If so, pl. suggest how.

    Take a look at the Studio release notes for EID 2.4 http://docs.oracle.com/cd/E35976_01/studio.240/RELNOTES.txt a lot of little bugs like the one you describe have been resolved. If you haven't already done so you should upgrade to 2.4.

  • Problem while saving date field in custom table

    Hi,
    Iam facing the following problem while saving a date field in custome table
    i have a date field zdate in which the value is 02082010.
    now when i try to insert this value in the custom table it is getting updated as 20/10/0208 , but it should be 08/02/2010
    How can i correct it..
    Regards
    Kumar

    just before saving u might have to use a string reverse FM and then save it..
    CALL FUNCTION 'STRING_REVERSE'
      EXPORTING
        STRING          = p_string
        LANG            = sy-langu
    IMPORTING
       RSTRING          = r_string
    EXCEPTIONS
       TOO_SMALL        = 1
       OTHERS           = 2

  • How to CHECK WHETHER LOWER CASE OR UPPER CASE  IN CUSTOM TABLE

    Dear Friends,
                     I have a requirement where from  the flat file  i have collected into the internal table is as below :
      IDNo.     Name     Date      Location   Designation  Dept
      101       raja      4/12/2007  Delhi      manager      HR
      102       james    4/12/2007  Delhi      clerk          HR
    now iam checking against my custom table where iam   if the designation for the employee name already exists then i shouldnt modify/update the custom table that record
      now iam facing a problem where is the flat file is always having the Lower Case only ,
    as per the scenario  if my custom table already have the employee name i shouldnt modify/update i.e i shouldnt overwrite,
    this scenario is working but it is failing in the case
    by chance in the Custom table the employee name or designation is in Upper Case  the condition where iam checking in the code  is failing as the flat file data coming into the internal table is having always lower Case.
    So could any one please let me know how i should check in my custom table whether iam having upper case or lower case and how can i make it lower case ?
    because iam able to manage in the case where if the flat file data coming in Upper case i can check before only by
    using Translate to lower case . how i unalbe to  check for the data coming from the Custom table if  in Uppercase , so i want to change that to lower case then checking my condition whether that data already exists in my custom table before modifying the data coming from the flat .
    because the condition is failing when the data in the custom table is in upper case and the Flat file data is in lower case.
    please help how i can check for the data in the Custom table is in upper case and then change it to lower case.
    Regards
    Madhuri.

    Hi Madhuri,
    Translate both data in your flat file & custom table to lowercase before comparing them. With that, you're able to identify if there's a differences in for both data.
    If you're putting data that is pulled from custom table, what you can do is after selecting/reading the data, translate to lowercase or uppercase (whichever you prefer) but make sure if you translate to lowercase, your data in the flat file must be lowercase to and vice versa.
    Happy doing !!..
    Regards,
    Loo

  • Is Custom_authentication blocking me to retrieve password from custom tabl

    Hi
    All i am using custom authentication function which i got in forum and is as below:
    /* Formatted on 2007/02/28 16:54 (Formatter Plus v4.8.0) */
    CREATE OR REPLACE FUNCTION custom_auth (
    p_username IN VARCHAR2,
    p_password IN VARCHAR2
    RETURN BOOLEAN
    IS
    l_password VARCHAR2 (4000);
    l_stored_password VARCHAR2 (4000);
    l_expires_on DATE;
    l_count NUMBER;
    BEGIN
    -- First, check to see if the user is in the user table
    --select count(*) into l_count from ap_users where login_id like p_username;
    SELECT COUNT (*)
    INTO l_count
    FROM my_table
    WHERE UPPER (user_name) = UPPER (p_username);
    IF l_count > 0
    THEN
    -- First, we fetch the stored hashed password & expire date
    SELECT PASSWORD, expires_on
    INTO l_stored_password, l_expires_on
    FROM my_table
    WHERE UPPER (user_name) = UPPER (p_username);
    -- Next, we check to see if the user's account is expired
    -- If it is, return FALSE
    IF l_expires_on > SYSDATE OR l_expires_on IS NULL
    THEN
    -- If the account is not expired, we have to apply the custom hash
    -- function to the password
    -- l_password := custom_hash (p_username, p_password);
    -- Finally, we compare them to see if they are the same and return
    -- either TRUE or FALSE
    IF p_password = l_stored_password
    THEN
    RETURN TRUE;
    ELSE
    RETURN FALSE;
    END IF;
    ELSE
    RETURN FALSE;
    END IF;
    ELSE
    -- The username provided is not in the DEMO_USERS table
    RETURN FALSE;
    END IF;
    END;
    I have created a user table my_table for managing user . I have created a from on table with report for creating,updating,deleting users .
    Whenever i am trying to update the first name which is one column of my custom table then for each update asking for password but my client want that once he login as an employee without asking password he should update any column.
    If he desire he can change the password also .
    but when i am enetring as an employee and trying to update any user each time asking password . So is it due to Custom_Auth function or any other problem.
    Please can any one tell me the reason.
    Thanks in advance,
    Amit

    Hi all my problem get solved thanks i am allowing this report to admin so making password as text field working fine thanks

  • Sales order item quantity update based on goods issue quantity

    Could any one explain me how to achieve the below functionality in SAP.
    Sales order item quantity needs to be updated based on the goods issue quantity when goods issue happens. 
    Tried to achieve the above functionality thru user exit.  But I could not found any user exit.  Could any one help me in finding out the user exit for a delivery which gets triggered when goods issue happens? 
    Or is there any other way thru which we can achieve the above functionality?  For example by using copy control, or requirement stuff. 
    Your inputs are highly appreciated.
    Thanks in advance.

    I dont y u got such type 0f requirement.Do one thing find out BADI it should be activated only when we are going PGI , in that badi try to chage Sales order <b>BAPI_SALESORDER_CHANGE</b>.
    for BADI search in SPRO / Se80.
    Regards
    Prabhu

Maybe you are looking for

  • Workflow sends the same email twice

    I created in Sharepoint Designer a workflow to send an email when a new item is created, but i recieve the same mail twice at the same time. Can somebody help me? workflow: email Lukas Kuypers then add 30 days to today (save in variable datum) then p

  • Activate Bar Code Entry in GR and IV

    HI guru In IMG I have activated storing with bar codes to GR and IV by business object type. When an application document is saved during normal operation, the system checks whether bar code entry is activated for the business object type and a dialo

  • Increase Number of Concurrent MDBs

    We are using WL 10.3.3. The heaviest load of the app is the JMS message processing. With the default work manager, the maximum number of concurrent MDBs is 16. We need to increase the MDB instances to a larger number. What is the best way to accompli

  • Patch level upgrade from SP00 PL 42

    Hi Experts, I need to upgrade a client to the newest SBO Patch Level from SP00 PL 42. Which Patches are manditory to install? Regards, Marli

  • No Stereo Mix

    I have a Toshiba L755-S5254 running Windows 7.  There is no stereo mix in the recording devices.  I have right clicked to 'Show Disabled/Disconnected Devices' and stereo mix is not there.  What gives?