Table updation using function exit in CC01

In CC01 transaction , Using screen exit i have provided a field for input in the screen . the fields added are in the table AENR .
But when I Save the transaction, the customised fields are cleared.
How do I get these fields to be updated in the table ?
How to use the function exit(provided with the screen exit) in order to update the fields in the table .
Thanks,
Amit

Infact you have to create it:
- Trx SE11 show table AENR
- Go to the end of the structure of AENR you should see the structure CI_AENR, do a doubleclick and create it;
- After creating it, insert your new fields
In enhancement:
- Create the screen 100 using structure AENR
- You have to implement 2 user-exit:
1) To import the data from std to screen-exit
EXIT_SAPMC29C_001
Here insert the code:
MOVE USERDATA TO AENR
2) To export the data from screen-exit to std program:
EXIT_SAPMC29C_002
Here insert the code:
MOVE AENR TO USERDATA.
Max

Similar Messages

  • LIKP table updation using the IDOC_INPUT_DESADV1

    Hi,
    Please help me when and where the LIKP table is updating using the FM IDOC_INPUT_DESADV1. I debugged the program several times even though i couldnt able to find the updation part.
    Further to the above wherer exactly the idoc number is generrating in this FM.
    This is very urgent.Kindly give the replies at the earliest.

    Ubay
    Refer to this code in IDOC function module DOC_INPUT_DESADV1. Delivery order must be getting created thorugh this function module.
      CALL FUNCTION 'GN_DELIVERY_CREATE'
           EXPORTING
                VBSK_I        = S_VBSK
                NO_COMMIT     = TRUE
                IF_SYNCHRON   = ' '             "INS_HP_338221
                IF_NO_DEQUE   = 'X'             "n_632020
           IMPORTING
                VBSK_E        = S_VBSK
           TABLES
                XKOMDLGN      = T_DLGN
                XVBFS         = T_VBFS
                XVBLS         = T_VBLS
                XVERKO        = T_VSEK
                XVERPO        = T_VSEP
                IT_GN_HUSERNR = T_HUSN
                IT_GN_SERNR   = T_SERN
           EXCEPTIONS
                ERROR_MESSAGE = 1
                OTHERS        = 2.
    Thanks
    Amol G. Lohade

  • Batch status updating using function module BAPI_BATCH_SAVE_REPLICA

    Hi,
    I want to change batch status after creating the outbound delivery through inbound idoc, i was able to create delivery , but after creation, i should update the batch status using function module BAPI_BATCH_SAVE_REPLICA, but i was unable to execute this function module correctly,
    Can any one provide details like what are minimum things that are required to update the batch status using this function module.
    In my system batches are defined at plant level.
    Please let me know the solution if any one knows this.
    With regards.
    P.Prasanth.

    Look at BAPI_INCOMINGINVOICE_POST
    Rob

  • Table Update using Nolog/Hint

    Hi all
    Although we can insert records using /nolog so that they are not added into archive logs.
    We required using this for table update for some large routene updates which in any way does not effect the integrity of the database.
    This table updation facility using /nolog was not available in earlier versions.
    Alternate solution for temporarily turning the database into Noarchivelog ->Fire update statement ->Turn database into archivelog mode is not acceptable as the database is production database where certain users are always on with their routene small entry/updation jobs.
    I want to know whether this has been enhanced in Oracle 10g or is there any work around by way of giving some hints at the update statement. As large table updation generating too much archive logs are not really desired in certain cases.
    Suresh Bansal

    Mr. Sayed
    Thanks for reply. Insert idea is given just for the available workaround when required and to link this to the subject of discussion. Idea is when Oracle has provided some workaround for Inserting records without loging , why they have not provide so for update.
    Pl. advise some workaround for the large update problem.
    In Oracle 10g, the default is 'database force logging'. Hence, even nologging transaction, oracle will force to create logging.I would request you to elaborate this. We installed Oracle 10g at one site and the database runs in Noarchive log which is default installation in Windows 2003 server. I could not understand what you mean by default 'database force logging'
    Suresh Bansal

  • Table Update using SQL Loader

    Hi All,
    Oracle Database 11g Enterprise Edition Release 11.2.0.3.0 - 64bit Production
    I am working on Loading a file using SQL Loader.
    I have loaded all the records (20Million) in to a table which has 30 columns.
    Issue : Now i got a new layout for same Data file, Which already has 5 new columns at the end which we didn't loaded.
    I have created the CTL file with New columns but can i update only those 5 new columns into the table. Is that Possible?
    Or should i truncate and do it from the scratch....Please suggest me...
    Thanks

    SQL*Loader does not update; It only inserts. You could load the data into a staging table, then use SQL to update, but that would be slower than just starting over. So, you should just reload the whole file, including the new columns, using the REPLACE in the SQL*Loader control file, instead of APPEND. That will overwrite any existing data.

  • Adding field to Table Control using screen exit

    Hi Folks,
    I have a requirement of adding a field in Table control of Standard SAP transaction also updating the same in standard SAP database table.
    The field is also not existing in the table, it is also added to the table using Append Structure.
    Will this be possible using some Screen Exit?
    Thanks in Advance.
    Punit

    Hi Punit,
    There are various screen user exits(QQMA0001,QQMA0008,QQMA0010,
    QQMA0011,QQMA0012) available for this transaction but all are related to adding a subscreen.So, I am not very sure whether we can modify a table control for this transaction. So, If possible if u r requirement still can be acheived with creation of a subscreen then it would do only if the exits which were mentioned above belongs to u r main screen..
    Regards,
    Swaroop

  • Table updation using reports.

    Hello friends,
                       I have written a code to convert internal table into XML and i have provided an option to Download it.
    1. Once they download , the invoice no and date should store in a newly created table.
    2. If they try to download it again it should show an error like "This has been Downloaded".
    How to update by using reports.
    Please someone help me on this.
    Regards,
    Vijay Vikram

    Hi Naidu,
    Hope you have created a database table ('Z') to maintain the downloaded invoice number and date.
    If then you can update the invoice number and date to that table when download was successful, if sy-subrc equals 0. If again user prompts to download the invoice number should be same. So you can write a select query to find whether the same invoice exists or not. if it finds the you can show the error message.
    select inv_no from zdown where inv_no = lv_inv_no.
    if sy-subrc  <> 0.
       call function 'GUI_DOWNLOAD'
          if sy-subrc <>0.
           message e...
        else.
           update table zdown ...
    else.
       message e...
    endif.

  • Delivery text updation using user exits

    Hii All
    Our client has a requirment where we need to update text in delivery header when we save the delivery.
    The delivery text needs to be updated when we save the delivery.
    Can anyone help me in letting me know steps to be followed to do the same.
    Thanks & Regards,
    Gaurav Manocha

    First of all identify the text id associated with your delivery. Once you identify the text id, change the text id in the sample program below. You can have this logic coded within your MV50AFZ1 user exit
    data: w_txt_hdr  LIKE thead,
          i_text  LIKE tline  OCCURS 0 WITH HEADER LINE,
                         i_text-tdformat = '* '.
                         i_text-tdline = 'sample'.
                   append i_text.
                  w_txt_hdr-tdobject = 'VBBK'.
                  w_txt_hdr-tdname   = likp-vbeln.
                  w_txt_hdr-tdid     = '0008'. "text id
                  w_txt_hdr-tdspras  = sy-langu.
                 CALL FUNCTION 'SAVE_TEXT'
                       EXPORTING
                            client          = sy-mandt
                            header          = w_txt_hdr
                            savemode_direct = 'X'
                       TABLES
                            lines           = i_text
                       EXCEPTIONS
                            id              = 1
                            language        = 2
                            name            = 3
                            object          = 4
                            OTHERS          = 5.
                  IF sy-subrc <> 0.
                  ENDIF.

  • Table updation using alv

    Dear Expert,
    While updating the jest table against the Order number, the data in the table is not getting affected. When i refresh the list t again shows the order number. Can anyone please provide me sample ALV program where it displays the list of Orders.
    when one selects the order the order should get approved.
    if i get sample program then i would be helpful.
    Regards,
    Shakti.

    hi Sapbond007,
    You have to create an ALV event handler class to write back the data that has been changed in your ALV.
    Please refer to example programs BCALV_EDIT_* (I think BCALV_EDIT_04 should be the correct one)...
    or you should refer This code
    Lock the table
    CALL FUNCTION 'ENQUEUE_E_TABLE'
    EXPORTING
    mode_rstable = 'E'
    tabname = p_table
    EXCEPTIONS
    foreign_lock = 1
    system_failure = 2
    OTHERS = 3.
    IF sy-subrc = 0.
    Modify the database table with these changes
    MODIFY (p_table) FROM TABLE <dyn_tab_temp>.
    REFRESH <dyn_tab_temp>.
    Unlock the table
    CALL FUNCTION 'DEQUEUE_E_TABLE'
    EXPORTING
    mode_rstable = 'E'
    tabname = p_table.
    Regards
    Saurabh Goel

  • Screen field Updation using user Exit

    Dear all
    In VA11, in the Services Tab, there is a table control  . Through Configuration , Functional consultant added one filed. The added field has to be filled by the customer Exit     SRVESLL .   In the debugging mode , claculation is working properly. But in the screen , the calculated value is not appearing .
    Can  anyone suggest me any solution???
    Thanks and Regards
    Karthikeyan.P

    Ya, I have extended .
    SRV_ESLL-ZIELWERT  =  SRV_ESLL-NETWR  /  SRV_ESLL-MENGE.
    but still its not appearing in the screen.
    thnkz
    Edited by: karthikeyan palaniayya on Apr 15, 2010 8:00 AM

  • Pod updation using function module

    HI All,
        Can any one say me how can we update the POD of a delivery By using the FM  LE_POD_TVPOD_UPDATE. Please provide me what are all fields need to be filled so that we can update the LIKP and the TVpod table's.
    Thanks and regards,
    Naresh

    Hi,
    If your are not sure which values to be passed.
    Try to have a SELECT on this table and put into an Internal table then pass this respective table fields  values to the FM parameters.
    Or in SE37 run this FM first by considerieng one entry from the Table T706F and cehck the results. Then you will come to know wat values to be passed. then do the same in the program by calling this FM.
    If you can cehck this Fm, all the parameters are referring to the T706F table only.
    Thanks & Regards,
    Chandralekha.

  • Table update using FM

    Hi ,
    IDOC_CREATE_ON_DATABASE   which DB table is going to update by using this FM for ARTMAS.
    Thanks,
    jo
    Moderator message: please do some research before asking.
    Edited by: Thomas Zloch on Mar 15, 2011 11:55 AM

    Hi ,
    We do not want to use the direct update, insert statements to update the table. So we are looking for an alternative FM or BAPI to update the same. The records we are trying to update are for outbound delivery details.
    Regards,
    Raksha

  • Required to create a script for base table update using XMLSTORE package.

    Hi can anybody provide me some help full suggestion on how to update base table using XMLSTORE package.
    I created a simple script for Employee table and can able to do the basic operation like Insert and update on the table.
    Query is as follow's
    DECLARE
    insCtx DBMS_XMLSTORE.ctxType;
    rows NUMBER;
    xmlDoc CLOB :=
    '<ROWSET>
    <ROW num="1">
    <EMPLOYEE_ID>922</EMPLOYEE_ID>
    <SALARY>1801</SALARY>
    <HIRE_DATE>17-DEC-2007</HIRE_DATE>
    <JOB_ID>ST_CLERK</JOB_ID>
    <EMAIL>RAUSSJACK</EMAIL>
    <LAST_NAME>JACK</LAST_NAME>
    <DEPARTMENT_ID>20</DEPARTMENT_ID>
    </ROW>
    <ROW>
    <EMPLOYEE_ID>923</EMPLOYEE_ID>
    <SALARY>2001</SALARY>
    <HIRE_DATE>31-DEC-2005</HIRE_DATE>
    <JOB_ID>ST_CLERK</JOB_ID>
    <EMAIL>PATHAK</EMAIL>
    <LAST_NAME>PRATIK</LAST_NAME>
    <DEPARTMENT_ID>20</DEPARTMENT_ID>
    </ROW>
    </ROWSET>';
    BEGIN
    insCtx := DBMS_XMLSTORE.newContext('EMPLOYEES'); -- Get saved context
    DBMS_XMLSTORE.clearUpdateColumnList(insCtx); -- Clear the update settings
    -- Set the columns to be updated as a list of values
    DBMS_XMLSTORE.setUpdateColumn(insCtx, 'EMPLOYEE_ID');
    DBMS_XMLSTORE.setUpdateColumn(insCtx, 'SALARY');
    DBMS_XMLSTORE.setUpdateColumn(insCtx, 'HIRE_DATE');
    DBMS_XMLSTORE.setUpdateColumn(insCtx, 'JOB_ID');
    DBMS_XMLSTORE.setUpdateColumn(insCtx, 'EMAIL');
    DBMS_XMLSTORE.setUpdateColumn(insCtx, 'LAST_NAME');
    DBMS_XMLSTORE.setUpdateColumn(insCtx, 'DEPARTMENT_ID');
    -- Insert the doc.
    rows := DBMS_XMLSTORE.insertXML(insCtx, xmlDoc);
    --COMMIT;
    DBMS_OUTPUT.put_line(rows || ' rows inserted.');
    -- Close the context
    DBMS_XMLSTORE.closeContext(insCtx);
    END;
    SELECT employee_id, LAST_name FROM employees WHERE employee_id = 114;
    DECLARE
    updCtx DBMS_XMLSTORE.ctxType;
    rows NUMBER;
    xmlDoc CLOB :=
    '<ROWSET>
    <ROW>
    <EMPLOYEE_ID>114</EMPLOYEE_ID>
    <LAST_NAME>PRABHU</LAST_NAME>
    </ROW>
    </ROWSET>';
    BEGIN
    updCtx := DBMS_XMLSTORE.newContext('EMPLOYEES'); -- get the context
    DBMS_XMLSTORE.clearUpdateColumnList(updCtx); -- clear update settings
    -- Specify that column employee_id is a "key" to identify the row to update.
    DBMS_XMLSTORE.setKeyColumn(updCtx, 'EMPLOYEE_ID');
    rows := DBMS_XMLSTORE.updateXML(updCtx, xmlDoc); -- update the table
    DBMS_XMLSTORE.closeContext(updCtx); -- close the context
    commit;
    END;
    Nowi want little modification on this above query like as i am passing static XML tags and i want it to pick the dynamic XML from web and use the XMLSTORE for the update.
    and also for complex XML having 2-3 levels how this query needs to be changed.As i am new to this Oracle utillity any help from xepert will be a great help for me.
    Thanks

    Nowi want little modification on this above query like as i am passing static XML tags and i want it to pick the dynamic XML from webFrom a Web Service?
    You'll need UTL_HTTP or HttpUriType interface to send the request and receive the XML response.
    Search in the forum, there are already a lot of useful examples available.
    and also for complex XML having 2-3 levels how this query needs to be changed.DBMS_XMLStore is OK for readily processing a canonical XML format (/ROWSET/ROW/COLUMN structure or alike).
    However, if you have to deal with a more complex structure, you either have to :
    - use a target object table that matches the XML structure
    - preprocess the input document using XSLT to transform it to canonical format
    That's why DBMS_XMLStore is not appropriate for multilevel documents, especially if they contain nested repeating groups.
    In this case, XMLTable is a more flexible way of parsing the XML and process it relationally at the same time.
    Depending on the size of the document, performance may be improved with schema-based object-relational storage.
    For more help, please post a new thread in the {forum:id=34} forum, with the following information :
    - database version (select * from v$version)
    - a sample XML document (the complex one)
    - DDL of your target table
    - mapping between XML elements and columns (ie which tag goes to which column?)
    - an XML schema (if you have one)

  • Table update in user exit ZXM08U16

    I'm trying to put in a check and update table when an invoice is processed in MIRO. So far i have
    IF ?????-ebeln CP '92*' AND
       ?????-SHKZG EQ 'S'.
      SELECT SINGLE *
             FROM  zmmvendorstop
             WHERE lifnr     EQ ?????-lifnr
             AND   stop_date EQ '00000000'.
      IF sy-subrc EQ 0.
        zmmvendorstop-stop_date = sy-datum.
        zmmvendorstop-work_days = sy-datum - zmmvendorstop-start_date.
        MODIFY zmmvendorstop.
      ENDIF.
    ENDIF.
    I'm struggling on where to get the information to do the check from, so if anyone could help fill in the question marks it would be a great help.
    Thanks

    Hi,
    It is available in the structre E_TDRSEG-TBTKZ (Credit/debit indicator) and E_TDRSEG-ebeln(PO number).. this is tables paramter. Lifnr is also available in the structure.
    Regards,
    Nagaraj

  • Generic Delta Update using Function Module........ problem with CURR  type

    Hi Experts,
    I try to create a generic data source using the transaction RSO2. I got the following error message
    " Das Einheitenfeld CURR des Feldes ZPKZA1 der DataSource ZBWN_DS_POLPOSP ist ausgeblendet"
    "The unit field CURR of the field ZPKZA1 of the DATA SOURCE ZBWN_DS_POLPOSP is not visible/ stopped/ hide".
    How shall i handle this issue..........any suggestions please........
    thanks in advance
    Cheers
    Jaya

    Hi Jaya ,
    The error msg which is coming as...
    "The unit field CURR of the field ZPKZA1 of the DATA SOURCE ZBWN_DS_POLPOSP is not visible/ stopped/ hide" may be due to the currency field made hidden at the data source lavel. Also check weather you have included it in your structure (code).
    So, to check it and make it unhide go to "Display Field List (F7)" in RSO2.
    Hope it helps.

Maybe you are looking for

  • Display queue in th emessage mapping

    Hi SapAll. i just want to know about the proper reason on why the pi developers do the display queue in the message mapping programs of every interface that they develope.if so how we can do the proper display queue,as it is displaying in irregular f

  • Copy all the objects from the one system that start with (ZANK)

    hi to all, I have installed the name space /ank/ in the US system, we need to copy all the objects from the India system that start with (Zank) and re-create them as /ank/. problem is how can i copy objects and re-create. thanks

  • Any printer UI for change printer settings?

    Since Solaris 10's printing system is powered by PPD files. (at least for some printers). I suppose I can access all features PPD file provide: Change page size, input-tray, output-tray, color-mode, etc. Is there a GUI that comes with Solaris that ca

  • Open a browser window from flash actionscript 2 in safari or firefox

    I am having a problem. I found the actionscript 2 code to open a browser window, but it is not working in Safari, or Firefox. I found an old action script 1 file version 5 for the flash player that works just fine, but I am using 8 and actionscript 2

  • Any way to edit stored procedures by default instead of viewing?

    When I click on a stored procedure, 99% of the time I want to edit it rather than see the default "view" screen. I know you can right click to go straight to edit, but is there a way to just go to edit by default when you click on a stored procedure?