Table update from PAI

Hi All,
I have couple of fields in my screen,based on the entries made on these two fields i will have have to
update my database table with the same entries.
Please help as how my PAI should be..
Thanks,
Rahul

Hi Rahul,
Pl see
Data: screen_input1,   "these are the field names defined as well on screen
         screen_input2,   "screen field name where data would come after entering on to screen
         input1,
         input 2.
in PAI module
input1 = screen_input1.     "trf the data to the field reqd by you.
input2 = screen_input2.
UPDATE <database table name>
                 SET field1 = input1
                 field2 = input2
                 WHERE condition to select the right record for updation.

Similar Messages

  • Table update from text file on server

    How do I get a table in dreamweaver to update from a text
    file thats on the server it will be posted on? Do I need to use
    some sort of weird coldfusion or asp.net, or can i do it in basic
    html. It would be sweet to make happen for my portfolio news
    section ... thanks!

    Hello,
    What you need is to know the structure (fields) of your internal table LS_BKPF at runtime.
    The standard SAP class CL_ABAP_TYPEDESCR contains Methods to describe not only repository structures but also variables used in your ABAP program.
    DESCRIBE_BY_DATA : Description of data object type
    DESCRIBE_BY_NAME : Description of object type using relative/absolute names
    DESCRIBE_BY_OBJECT_REF : Description of object type using reference
    DESCRIBE_BY_DATA_REF : Description of data object type using reference
    Example on how to do this can be found here :
    [http://www.sdn.sap.com/irj/scn/weblogs;jsessionid=(J2EE3414700)ID1687263150DB21033411053326729243End?blog=/pub/wlg/2071|http://www.sdn.sap.com/irj/scn/weblogs;jsessionid=(J2EE3414700)ID1687263150DB21033411053326729243End?blog=/pub/wlg/2071]
    After you have retrieved the fieldnames of your internal table at runtime you can add them in the first line of your dataset.
    Success.
    Wim

  • RBKP and BKPF table update from MIRO

    Hi All,
    I am using the BADI BADI_FDCB_SUBBAS01 to add a custom field in MIRO transaction. The added custom field is getting updated in RBKP transaction.
    I also want to update the custom field data in BKPF table, but i dont know when the BKPF table gets updated in MIRO transaction.
    Can you help me where the BKPF table will get updated. Is there any BADI for updating the custom fields in table BKPF via MIRO?
    Thanks and Regards,
    Vijay

    Hi Baskar,
    I have done this thing from MIRO transaction to update BKPF table. Please check the below code.
    METHOD if_ex_badi_fdcb_subbas01~put_data_to_screen_object.
      CONSTANTS:
      c_bkpf_xref1(25) TYPE c VALUE '(SAPLFDCB)BKPF-XREF1_HD'.
      FIELD-SYMBOLS: <fs_bkpf_xref1> TYPE ANY.
    fill interface attributes from importing paramters
      me->if_ex_badi_fdcb_subbas01~invfo  = im_invfo.
      ASSIGN (c_bkpf_xref1) TO <fs_bkpf_xref1>.
      IF sy-subrc = 0.
        <fs_bkpf_xref1> = me->if_ex_badi_fdcb_subbas01~invfo-zlet_number.
      ENDIF.
    ENDMETHOD.
    METHOD if_ex_badi_fdcb_subbas01~get_data_from_screen_object.
    CONSTANTS:
    c_bkpf_xref1(25) TYPE c VALUE '(SAPLFDCB)BKPF-XREF1_HD'.
    FIELD-SYMBOLS: <fs_bkpf_xref1> TYPE ANY.
    fill export parameters from interface attributes
      ex_invfo  = me->if_ex_badi_fdcb_subbas01~invfo.
    ASSIGN (c_bkpf_xref1) TO <fs_bkpf_xref1>.
    if sy-subrc = 0.
    <fs_bkpf_xref1> = ex_invfo-zlet_number.
    endif.
    ENDMETHOD.
    After passing the data through field symbols, then you need to update the BKPF table using the BADI AC_DOCUMENT. Refer the below code.
    METHOD if_ex_ac_document~change_after_check.
    variable declaration
      DATA: lv_let_number  TYPE zisr_let_number,
            lv_field TYPE char18 VALUE '(SAPLMRMP)xaccit[]',
            lv_let_field TYPE char27 VALUE '(SAPLMR1M)RBKPV-ZLET_NUMBER'.
    Field symbol declaration
      FIELD-SYMBOLS : <ft_accit> TYPE accit_t,
                      <fs_accit> TYPE accit,
                      <fv_let_number> TYPE ANY.
    Constant declaration
      CONSTANTS : lc_miro TYPE sytcode VALUE 'MIRO'.
    Check for transaction code MIRO
      IF sy-tcode EQ lc_miro.
        ASSIGN (lv_field) TO <ft_accit>.
        CHECK sy-subrc EQ 0.
        ASSIGN (lv_let_field) TO <fv_let_number>.
        CHECK sy-subrc EQ 0.
    Assign the letter number to BKPF table field XREF1_HD
        LOOP AT <ft_accit> ASSIGNING <fs_accit>.
          lv_let_number = <fv_let_number>.
          <fs_accit>-xref1_hd = lv_let_number.
        ENDLOOP.
      ENDIF.
    ENDMETHOD.

  • Table update from T-SQL question

    Ok, I have a T-SQL query that I'm trying to convert in Oracle SQL.
    Here is the T-SQL:
    Update E
    Set field1 = 'some text',
    field2 = NULL
    from table1 E
    Left join table2 A
    On e.fieldx = a.fieldx
    and e.fieldy = a.fieldy
    I think I'm close, but I'm not sure about the left join:
    Update table1 E
    set (field1, field2) = (
    select 'sometext', NULL
    from table2 A
    where a.fieldx = e.fieldx
    and a.fieldy = e.fieldy)
    What can I do to fix this?
    Thanks.

    The equivalent to your T-SQL Query would be:
    Update table1 E
    set (field1, field2) = (
    select 'sometext', NULL
    from table2 A
    where a.fieldx (+) = e.fieldx
    and a.fieldy (+) = e.fieldy);
    But since you don't do anything with the columns from table A and it is left joined, you can simply write:
    Update table1 E
    set field1 = 'sometext', field2 = NULL ;

  • Table update from workflow

    Hi,
      I have a requirement to start workflow when table entry or modification is made. And in one has to authorize for the data. then only data should be saved in data base. if manager rejects data should not be saved in data base.
      What i have done till now is i have generated a table maintainence and created and new (using business objects )event to raise. (writing a FORM). So when ever we create new table entries event is raised. And i am using this event to trigger my workflow.
      I have two problems
      first one. this event is only getting trigged if i make entry to table through se11 and create new entries option. if i am using a program to update the table then event is not getting trigged. Is there way i can make this event to trigger even if i insert  data to this table from any where?
    Second problem
         i want to complete my workflow. based on manager decision only database should be commited or rolled back.
      if any one needs further details regarding problem reply.
    Thanks in advance
    Mohan

    Hi,
    I also think you should use a temporary table where you store the data you want to insert into the database before the approval is done. You create the maintenance view on this temp table and start the workflow from there. Once manager approves the new entry / change, workflow automatically updates the permanent table and deletes the record from the temp one.
    You can use the change documents, maintenance view event routines or maintenance view screen logic to trigger the WF. But I`m not aware of any tools to capture a database change done by a direct update, so if you also have programs directly updating the database table, you have to trigger the workflow start event explicitely in those as well.
    Regards,
    Krisz

  • CUA user master table updates from child system

    Hi Experts,
    In my system although there are roles assigned to users in child system they are not showing up in CUA for few user.
    Is there any program in CUA which i can use to  update the user master tables for only a limited set of users from child systems.
    Regards,
    Sandeep

    Hi Sandeep,
    Just want to check below queries....if this solves your problem..
    Is these are the new systems assigned to CUA or moved from other CUA as you said that role assignment is available in child system but not in CUA ? Another  thing that  I want you to check the User Group  assigned to user in child system and in CUA.If user gorups assigned to users are different in CUA and child system or particular group is missing in any one of the system then idoc will not move. Also check the Output device type along with address data...Any mismatch of these will stop the idoc.
    After that run the SCUG for all users, in CUA as suggested by akshay, this you can run for all 10 child system from CUA, no need to go in every child system.....

  • BADI/User Exit for custom table update from Delivery

    Hi
    Our requirement is to update a custom table with the delivery number and other related details when the picking status is changed to "C". Kindly suggest BADI/User exit for this requirement .
    Thanks in Advance for your immediate help .

    Hi Joseph,
    See SAP Note 415716 - User exits in delivery processing. It says when you have the document number available, what is permitted, what not, ....
    I hope this helps you
    Regards
    Eduardo

  • Update internal table data from table control

    Hi GURUS,
    I need help regarding one of my requirement.
    I need to display data from the internal table on the screen and when the user selects a record/multiple records from screen and clicks on approve button i need to update one of the field from N to Y in the corresponding Ztable. Once the record is updated from Ztable , that should no longer be visible for the user on the screen.
    I am using table control wizard to display data. I am able to update the Ztable, but that record is not refreshing from the user screen. Any suggestions would be approved.
    Also please let me know if table control is the best way to do this/ alv grid control??

    hi
       REFRESH CONTROL Control-Name FROM SCREEN '0100'  -> use this command to refresh the table control
    to know more, read into
    https://forums.sdn.sap.com/click.jspa?searchID=2934287&messageID=673474
    Re: URGENT HELP REQ IN TABLE CONTROL WIZARD
    if helpful, reward
    Sathish. R

  • FAGLFLEXT table is not updating from FAGLFLEXA

    Hello Experts,
    In thru which program the summarisatin table of FAGLFLEXT getting updated from table FAGLFLEXA .
    We've updated some filed values like prctr , cost center to FAGLFLEXA but the same cumulative amount is not showing in the table period wise and there is a difference in balace sheet.
    Pls advise, how to generate the table FAGLFLEXT to get my overall balances or how to run this table to go and do their own std calculations and updation.
    Pls advise.
    thanks & regards
    sankar.

    Thanks

  • How To Update A Table View From Client Side !!!!

    Hi I would like to update a table view from the Client Side. So that the user can keep updating the relevent data on the client and when they have finally finished they can press Save so the entire page is then sent to the Server.
    Does anyone know how to do this, I guess u have to use the EPCM, I have just started on it and would really appreciate some Help.
    Thanks,
    Emmanuel.

    This is what I found :-
    There are a couple of ways to approach this.
    1) load the excel spreadsheet into the database "as is". You can use interMedia
    text to convert the .xls file into a .htm file (HTML) or use iFS (see
    http://technet.oracle.com/
    for
    more info on that) to parse it as well. InterMedia text will convert your XLS
    spreadsheet into a big HTML table (easy to parse out what you need at that
    point)
    2) Using OLE automation, a program you write can interact with Excel, request
    data from a spreadsheet, and insert it. Oracle Forms is capable of doing this
    for example as is other languages environments. In this fashion, you can remove
    the "manual" and "sqlldr" parts -- your program can automatically insert the
    data.
    3) You can write a VB script that uses ODBC or Oracle Objects for OLE (OO4O) in
    Excel. This VB script would be able to put selected data from the spreadsheet
    into the database. We would recommend OO4O. It provides an In-Process COM
    Automation Server that provides a set of COM Automation interfaces/objects for
    connecting to Oracle database servers, executing queries and managing the
    results. OO4O is available from
    http://technet.oracle.com

  • How to update a table (CUSTOMER) on a Report Server with the data from the same table (CUSTOMER) from another server Transaction server?

    I had an interview question that is:
    How to update a table (Customer) on a server ex: Report Server with the data from the same table (Customer) From another server ex: Transaction server?
    Set up steps so inset, update or delete operation takes place across the servers.
    It would be great if someone please enlighten me in details about this process in MS SQL Server 2008 R2.
    Also please describe would it be different for SQL Server 2012?
    If so, then what are the steps?

    I had an interview question that is:
    How to update a table (Customer) on a server ex: Report Server with the data from the same table (Customer) from another server ex: Transaction server?
    Set up steps so that inset, update or delete operation gets done correctly across servers.
    I was not sure about the answer, it would be great if someone please put some light on this and explain in details about this process in MS SQL Server 2008 R2.
    Also it would be very helpful if you please describe would it be different for SQL Server 2012? If so, then what are the steps?

  • Calling Batch input from Web Dynpro - any alternatives for table updates?

    Hi!
    I am asked to create a screen in Web Dynpro for the GJ30 transaction (JV Cutback mapping of WBS' elements). I created a remote enabled function module which call batch input for GJ30 . Testing the Function modules direclty goes fine, but not calling the function module from WD. then I get the same error message as when I once tried to call SAP GUI from Web Dynpro ( Call transaction /submit program).
    My next step is to try to create a batch input session (instead of call transaction) and run it using rsbdcsub, and then check the result of the run. But maybe this will fail of the same reason as well, and I suppose this will make the user waiting longer for the response .
    I read somewhere that Web Dynpro does not support batch Input. But what can you do when there are no standard BAPI's for the update you want to do in SAP ?  We are not supposed to do direct table updates.  
    Anyone who have struggled with the same issues and found a solution??
    regards, Tine

    Hi,
    as BDC is calling screens and in Webdynpro ABAP you cannot use SAP GUI sceeen, you are getting short dump.
    Refer CNTL_SYSTEM_ERROR in webservices from r/3 system
    Thanks,
    Chandra

  • How to update a Z d/b table record from report - urgent

    Dear SDN Team Members,
    I have created a ztable for list of all active customers. 
    This ztable has link with other SAP Standard D/b tables and I need to compare the entries with my ztable. 
    After doing so, I need to update a DATE field (called last_req_date) from the program.
    Until now, i only worked on internal tables and update the fields in internal table.  But this time I need to update my zTable and i've not updated any records of the database tables directly from the program.
    Please kindly provide the complete syntax and procedure on how to update z database table.
    Your help will be appreciated and points will be awarded for the same.
    Thanks in Advance.
    Best Regards!
    Krishna.

    Hi,
    To update or Insert fields into teh dbase table.
    INSERT INTO dbtab [CLIENT SPECIFIED] VALUES wa.
    INSERT INTO (dbtabname) [CLIENT SPECIFIED] VALUES wa.
    2. INSERT dbtab [CLIENT SPECIFIED] FROM TABLE itab. oder
    INSERT (dbtabname) [CLIENT SPECIFIED] FROM TABLE itab.
    3. INSERT dbtab [CLIENT SPECIFIED]. oder
    INSERT *dbtab [CLIENT SPECIFIED]. oder
    INSERT (dbtabname) [CLIENT SPECIFIED] ...
    1.TABLES SCUSTOM.
    SCUSTOM-ID        = '12400177'.
    SCUSTOM-NAME      = 'Robinson'.
    SCUSTOM-POSTCODE  = '69542'.
    SCUSTOM-CITY      = 'Heidelberg'.
    SCUSTOM-CUSTTYPE  = 'P'.
    SCUSTOM-DISCOUNT  = '003'.
    SCUSTOM-TELEPHONE = '01234/56789'.
    INSERT INTO SCUSTOM VALUES SCUSTOM.
    2.TABLES SAIRPORT.
    SAIRPORT-ID   = 'NEW'.
    SAIRPORT-NAME = 'NEWPORT APT'.
    INSERT SAIRPORT.
    To UPDATE
    TABLES SFLIGHT.
    UPDATE SFLIGHT SET   SEATSOCC = SEATSOCC + 3
                   WHERE CARRID   = 'LH'   AND
                         CONNID   = '0400' AND
                         FLDATE   = '19950228'.
    TABLES SFLIGHT.
    UPDATE SFLIGHT CLIENT SPECIFIED
                   SET   SEATSOCC = SEATSOCC + 3
                   WHERE MANDT    = '002'  AND
                   WHERE CARRID   = 'LH'   AND
                         CONNID   = '0400' AND
                         FLDATE   = '19950228'.
    TABLES SCUSTOM.
    SCUSTOM-ID       = '00017777'.
    SCUSTOM-DISCOUNT = '003'.
    UPDATE SCUSTOM.
    OR UPDATE dbtab FROM TABLE itab.

  • Update table column from another

    Hi,
    I´m having trouble updating data from one table to another. I wish to syncronize the geometry field of the table FAROLFAROLIM from FAROLFAROLIM_OUT. By standard SQL I've tried this:
    update FAROLFAROLIM f, FAROLFAROLIM_OUT ff set f.GEOM = ff.GEOMETRY
    where f.IDFAROLFAROLIM = ff.IDFAROLFAROLIM
    Can you help me figuring out what is wrong???
    Thanks in advance
    Operator

    dude you are doing wrong thing...
    please use following command.
    UPDATE FAROLFAROLIM f
    SET (f.GEOM) =
    ( SELECT ff.GEOMETRY
    FROM FAROLFAROLIM_OUT ff
    WHERE f.IDFAROLFAROLIM = ff.IDFAROLFAROLIM );
    cheers,
    Sandy

  • How to get updated table values from objectlistdataproviders

    how to get updated table values from objectlistdataproviders

    Hi,
    Here is a sample code
    start-of-selection.
    *Select the data you need into an internal table
      loop at it_mara into wa_mara.
    data that needs to be displayed in the output list
        write:/ box as checkbox,
                wa_mara-matnr under text-001,
                wa_mara-maktx under text-002,
                wa_mara-lgort under text-003.
    Hide the data that needs to moved to internal table
        hide:wa_mara-matnr, wa_mara-maktx, wa_mara-lgort.
      endloop.
      clear wa_mara.
    end-of-selection.
      lines = sy-linno.
    at line-selection.
      clear:it_matnr. 
      do lines times.
        check sy-index > 1.
        box = space.
        read line sy-index field value box.
        if box = 'X'.
    *data selected using check box is moved to internal table
          append wa_mara to it_matnr.
        endif.
      enddo.
    Regards,
    Jisha.

Maybe you are looking for

  • I would sell my PS3 and buy an Apple TV if...

    ...it could view/record Freeview or Freesat (UK). At the moment I have the PS3 with PlayTV, which works well, but I find myself hardly ever playing games on it any more, and using it mostly for music, photos, videos and TV. At the moment, we are real

  • Using iPod as encrypted disk for G4 Backup

    i have created an encrypted disk image on my iPod for backing up my G4 desktop folder. works like a charm. however, OSX limits the size of this disk image to 500MB when it is created using Disk Utility. that is unfortunate since my desktop folder is

  • Softproof in Lightroom different from Photoshop

    Hi all, I've just recieved a print from Photobox. It looks ace, except for a big band in the sky graduation. Stupidly I hadn't looked on the web site to see if they had a colour profile before sending . As it happens they do, and softproofing the ima

  • Unable to create the protocol specific B2B message

    Hi, I recently created fresh new configurations on 10g Oracle B2B on a windows server. When i try to post an outbound ebxml 2.0 message, it fails with the below error: Description: Unable to create the protocol specific B2B message StackTrace: Error

  • BAPI CHANGEMULTI and CRM_ORDER_MAINTAIN

    Hi all, I have a couple of questions which are strictly connected: 1. Does anybody know if BAPI BAPI_BUSPROCESSND_CHANGEMULTI, in CRM application is suitable for adding a new item in a sales order already created? The fact we have set up parameter <b