How to clear old value

Dear all ,
         Here i pass the value timeticket_item-material, timeticket_item-plant, timeticket_item-stge_loc, timeticket_item-batch,  timeticket_item-val_type,timeticket_item-casting_speed,
timeticket_item-metal_temp,
timeticket_item-water_temp
timeticket_item-bar_temp
timeticket_item-mill_load
timeticket_item-emulsion_temp
timeticket_item-coil_temp , 
when we pass  two batch information first batch information is passed properly but when pass second value that time it will take first batch information.
How to clear first batch information.
LOOP AT timeticket_item.
    gm_item-material = timeticket_item-material.
    gm_item-plant = timeticket_item-plant.
    gm_item-stge_loc = timeticket_item-stge_loc.
    gm_item-batch = timeticket_item-batch.
    gm_item-move_type = timeticket_item-move_type.
    gm_item-entry_qnt = timeticket_item-entry_qnt.
    gm_item-entry_uom = timeticket_item-entry_uom.
    IF gm_item-move_type = '101'.
      gm_item-orderid = timeticket_item-orderid.
      gm_item-order_itno = '0001'.
      gm_item-reserv_no = ''.
      gm_item-res_item = ''.
      gm_item-mvt_ind = 'F'.
    ELSE.
      gm_item-orderid = ''.
      gm_item-order_itno = ''.
      gm_item-reserv_no = timeticket_item-reserv_no.
      gm_item-res_item = timeticket_item-res_item.
      gm_item-mvt_ind = ''.
    ENDIF.
    APPEND gm_item.
    link_conf-index_confirm = '1'.
    link_conf-index_goodsmov = icnt.
    APPEND link_conf.
    icnt = icnt + 1.
    DATA: qndat LIKE mcha-qndat, lwedt LIKE mcha-lwedt.
          CALL BDC to Update Batches
    DATA : gm_code LIKE timeticket_item-gm_code.
    IF timeticket_item-gm_code = '02'.
      SELECT SINGLE qndat lwedt INTO (qndat, lwedt) FROM mcha
      WHERE matnr = timeticket_item-material AND
      werks = timeticket_item-plant AND
      charg = timeticket_item-batch.
      PERFORM bdc_dynpro      USING 'SAPMM03S' '0105'.
      PERFORM bdc_field       USING 'BDC_OKCODE'
                                    '/00'.
      PERFORM bdc_field       USING 'BDC_CURSOR'
                                    'RM03S-MATNR'.
      PERFORM bdc_field       USING 'RM03S-MATNR'
                                    timeticket_item-material.  "'RMEC'.
      PERFORM bdc_field       USING 'RM03S-CHARG'
                                    timeticket_item-batch.  "'E1D14402'.
      PERFORM bdc_field       USING 'RM03S-WERKS'
                                    timeticket_item-plant.  "'1500'.
      PERFORM bdc_dynpro      USING 'SAPMM03S' '0200'.
      PERFORM bdc_field       USING 'BDC_CURSOR'
                                    'MCHA-VERAB'.
      PERFORM bdc_field       USING 'BDC_OKCODE'
                                    '=CLAS'.
      PERFORM bdc_field       USING 'MCHA-BWTAR'
                             timeticket_item-val_type.      " 'INHOUSE'.
      PERFORM bdc_dynpro      USING 'SAPLCTMS' '0109'.
      PERFORM bdc_field       USING 'BDC_CURSOR'
                                    'RCTMS-MWERT(08)'.
      PERFORM bdc_field       USING 'BDC_OKCODE'
                                    '=BACK'.
      IF NOT timeticket_item-casting_speed IS INITIAL.
        PERFORM bdc_field       USING 'RCTMS-MNAME(01)'
                                      'CASTSPEED'.
      ENDIF.
      PERFORM bdc_field       USING 'RCTMS-MNAME(02)'
                                    'METALTEMPINTUNDISH'.
      PERFORM bdc_field       USING 'RCTMS-MNAME(03)'
                                    'WATERTEMP'.
      PERFORM bdc_field       USING 'RCTMS-MNAME(04)'
                                    'BARTEMPATMILLENTRY'.
      PERFORM bdc_field       USING 'RCTMS-MNAME(05)'
                                    'ROLLINGMILLLOAD'.
      IF NOT timeticket_item-emulsion_temp IS INITIAL.
        PERFORM bdc_field       USING 'RCTMS-MNAME(06)'
                                      'EMULSIONTEMP'.
      ENDIF.
      IF NOT timeticket_item-coil_temp IS INITIAL.
        PERFORM bdc_field       USING 'RCTMS-MNAME(07)'
                                      'COILTEMP'.
      ENDIF.
      IF NOT timeticket_item-casting_speed IS INITIAL.
        PERFORM bdc_field       USING 'RCTMS-MWERT(01)'
                    timeticket_item-casting_speed.    " 'CSCS'.
      ENDIF.
      PERFORM bdc_field       USING 'RCTMS-MWERT(02)'
                                    timeticket_item-metal_temp.    " 'MT'.
      PERFORM bdc_field       USING 'RCTMS-MWERT(03)'
                                    timeticket_item-water_temp.    " 'WT'.
      PERFORM bdc_field       USING 'RCTMS-MWERT(04)'
                                    timeticket_item-bar_temp.    " 'BM'.
      PERFORM bdc_field       USING 'RCTMS-MWERT(05)'
                                    timeticket_item-mill_load.   " 'RML'.
      IF NOT timeticket_item-emulsion_temp IS INITIAL.
        PERFORM bdc_field       USING 'RCTMS-MWERT(06)'
                                 timeticket_item-emulsion_temp.    " 'ET'.
      ENDIF.
      IF NOT timeticket_item-coil_temp IS INITIAL.
        PERFORM bdc_field       USING 'RCTMS-MWERT(07)'
                                      timeticket_item-coil_temp.    " 'CTE'.
      ENDIF.
      PERFORM bdc_dynpro      USING 'SAPMM03S' '0200'.
      PERFORM bdc_field       USING 'BDC_CURSOR'
                                    'MCHA-VERAB'.
      PERFORM bdc_field       USING 'BDC_OKCODE'
                                      '=BU'.
      PERFORM bdc_field       USING 'RM03S-FZUST'
                                    'X'.
      PERFORM bdc_field       USING 'RM03S-CHKLJ'
                                    'X'.
   CALL TRANSACTION 'MSC1' USING bdcdata
                               MODE 'A'
                            MESSAGES INTO errmsg1.
    ENDIF.
  ENDLOOP.

Before this statement PERFORM bdc_dynpro USING 'SAPMM03S' '0105'
clear : BDCDATA.
refresh : BDCDATA.
which is ur internal table
Regards,
Kaushik Datta

Similar Messages

  • How to clear old values from input date

    Hi Guys
    i am using <t:inputdate like this
    <t:inputDate id="dob" type="date" value="#{patientBean.dob}" />
    and scope of my backing bean is request
    it works fine , but problme is , when add a patient in database for first time it works fine , but when i try to add another patient , it remains old value selected at the time of first patient , other filds are blank for new record!!
    Please Help me out !!!
    thanx in advance

    Songs don't go into the source pane, only playlists.
    Salect them and delete them.

  • Which table stores old value of IBAN number and how to retrive old value.

    HELLO TEAM
    We are going through an enhancement process that requires to display old value and new value of the IBAN number from the Vendor master records. As IBAN is a combination of the country key, Bank Key and Bank account number, which are all key fields, their values are stored in the form of key in CDHDR and and CDPOS tables. The bank details are only shown in other key tab/column and the field name is displayed as key in CDPOS. These sensitive field changes are displayed as created or deleted but do not show as old value=x and new value =Y.The old value and new value fields are blank. The same happens for object IBAN and the tiban table only stores iban numbers that are updated and does not store old value of the iban number.
    If I have to display in the report s_alr_87012089, the old value and the new value of the iban number , how can i achieve the task. From which table we can retireve the old value of the IBAN number.
    << Moderator message - Everyone's problem is important. But the answers in the forum are provided by volunteers. Please do not ask for help quickly. >>
    Thank you in anticipation of a solution
    Shekhar
    Edited by: Rob Burbank on Jul 19, 2011 4:59 PM

    Hello Team
    We have explored all the above means. We are working in 4.7 environment. As we could not find an appropriate solution, we have approached the forum. The old value is not stored in cdhdr and cdpos and has the indicator as 'E' -Delete. So if an updation is done then it will delete old value and create a new value. This happens especially for the fields Bank Country Key,Bank Key, Bank Account Number. All we have checked the object attributes in the table lfbk, where for some fields it does track changes  and for other it does not track changes. This is especially for the fields kovon and kobis.
    If the requirement is to track changes to the fields Bank Country Key,Bank Key, Bank Account Number, kovon, kobis, iban which are sensitive data, and the report has to display old value and new value for sox compliance, how can this be achieved?
    I have also gone through the SAP note 580266
    If we are running a report to track changes to all vendors or a selected group of vendors, only some fields show up the value old value and new value.
    Would appreciate if an appropriate solution is provided.
    Request for a solution as i waited for 2 days if any expert could help!!!
    Thank you
    shekhar
    Edited by: V_Shekhar on Jul 27, 2011 1:18 PM
    Edited by: V_Shekhar on Jul 28, 2011 4:36 PM

  • How to check old value in form personalization.

    Hi All,
    Could anybody please tell me how to check the old value in oracle forms using form personalization if someone is updating to someother value.
    For example.
    My Vendor Site Alternate name is XYZ
    and someone has changed it to ABC, How could i check the old values before or after doing updates.
    I don't want to write trigger for this.
    Thanks & Regards,
    Vishwas

    Pl see if the solution in this thread can help - Re: Capture who changed data using Forms Personalization & changed to what
    If not, pl see old threads that discuss forms personalization
    http://forums.oracle.com/forums/search.jspa?threadID=&q=forms+AND+personalization&objID=c3&dateRange=last90days&userID=&numResults=15
    HTH
    Srini

  • How to clear database value?

    Hi Experts
    I have a matrix with DBDatasource databind. When I add a new row the whole row data is copied to new row How can clear this data.  give your suggestions
    Regards
    Gorge

    Hi Gorge,
    Your problem is quite common.  We have no solution for this, but to clear the individual cells manually.  A piece of snippet for the same is as follows.
    oMatrix.AddRow(1, oMatrix.RowCount);
                ((SAPbouiCOM.EditText)oMatrix.Columns.Item(0).Cells.Item(oMatrix.RowCount).Specific).Value = oMatrix.RowCount.ToString();
                ((SAPbouiCOM.EditText)oMatrix.Columns.Item(1).Cells.Item(oMatrix.RowCount).Specific).Value = "";
                ((SAPbouiCOM.EditText)oMatrix.Columns.Item(2).Cells.Item(oMatrix.RowCount).Specific).Value = "";
                ((SAPbouiCOM.EditText)oMatrix.Columns.Item(3).Cells.Item(oMatrix.RowCount).Specific).Value = "";
                ((SAPbouiCOM.EditText)oMatrix.Columns.Item(4).Cells.Item(oMatrix.RowCount).Specific).Value = "";
    Hope this helps.
    Regards,
    Satish.

  • How to get old value from IWDCustomEvent

    Hello All,
    I have applied a Listener on a field value. I want to get old value from the IWDCustomEvent as well new value when event will get fire. Is it possible in Web Dynpro.

    Hi
    Probably you need to get the record from backend base on the date of insertion. and then store it into the WD context, and simple java to compare the old and new record based on date of insertion and again put back to WD Context then finally you can use  WDCustomEvent to get the data.
    Hope it will help you.
    Thanks

  • How to clear variable value in BPS WIB?

    Hi Experts:
                    I want to clear variable value in BPS,and I use this function 'API_SEMBPS_VARIABLE_SET' to set its value to '#'. I got 1 question:
         After I changed this variable manually in IE, the system 'remember' this variable in this program, so the function 'API_SEMBPS_VARIABLE_SET'  didn't work. I checked the table 'UPC_VAR_CHA_ACT' and found there is not any corresponding item for the current user and value.
    Allen

    Hi Bauke,
    Actually I want to do Password Encryption functionality.
    For that I have 1 Java script file.On Java script validation I want to pass password value from client side to server side as,
    <head>
    <script type="text/javascript" language="JavaScript" src="MyJSFile.js">
    function submitForm(element)
    var me = document.getElementById(passwd);
    If(!me)
    alert('Please enter Password);
    else
    Some password logic I will do here.
    </head>
    <f:view>
    <BODY......
    <h:form id="createUserForm">
    <h:commandButton id="save" value="Save" action="saveactionMethod " onclick="submitForm(this)" />
    <h:inputSecrete id="passwd"
    value="#{createUsrFormBean.password}"/>
    </h:form>
    </body>
    </f:view>
    But the Java script code is not working.I mean If I put nothing in password textbox the alert is not firing.
    My code is wrong ?
    Thanks
    Sandip

  • How to show old value in webui when user press NO button on popup button.

    Hi Experts,
    As per requirement I have created custom field with dropbox and with popup box to cofirm user decision if value from field changes.
    Now on Popup when user press Yes then its Ok as no need to change the current value in the field.
    but when user press the NO button I want to display the old value on Web UI so now I am able to catch the old value and pass it into the field at backend but I am not able to make the change on the web page.
    Please reply if anyone have solution for it.
    BR
    Gaurav    

    Hi Gaurav,
    First of all when all this is happening in UI why you need to pass the selected value to backend. I didnt get this.
    I believe, this is only ui related and the old value which you got can be set in the IMPL class global variable and  trigger method set_on_close_event, say here 'CONFIRM_POPUP_CLOSED' as shown below:
      gr_popup->set_on_close_event( iv_event_name = 'CONFIRM_POPUP_CLOSED'
                                        iv_view = me ).
    Retrive the answer as per selection from popup in method 'CONFIRM_POPUP_CLOSED'
    by using:
      lv_answer = gr_popup->get_fired_outbound_plug( ).
    if lv_answer is NO, then put back the globally stored old value back to dropdown attribute, using:
    set_property_by_value method(   iv_attr_name = 'dropdown attr' iv_value = 'old value' )
    Thats it. No need to do anything.
    Regards,
    Bhushan

  • How to clear the values present in SAP memory.

    Hi,
    i am building a module pool program in that  im using subscreen which is designed as 'selection-screen 0500 as subscreen.'
      when we validate the selection screen elements, if it come acrosses any error condition it disables every field in theselection-screen enabling the error field(error value is still present). this works fine here.
      but i  need to clear the values present in that field.to retain the values im using memory ids.
    solution required immediately.
    Thanks,
    Nagaraju.

    Hi,
    Use FREE MEMORY.
    FREE MEMORY deletes the entire ABAP memory including all the data that was exported with EXPORT TO MEMORY ID key.
    If helpful pl reward.
    Cheers...

  • How to clear old data?

    Greetings,
    My first question: how do I locate and clear out old, unnecessary files and folders? I'm thinking about browser cookies, temp files, etc.
    Second question: is this even necessary on a Mac? I just switched from PC recently, and I am still trying to learn the Mac way. I know that with a Windows PC it is CRUCIAL to clear out cookies, the "temp" folder, and various other folders from time to time, because Windows constantly saves things you don't need. I just freed up 5GB on my work PC by cleaning it up in this fashion.
    So: is this kind of "maintenance" necessary on a Mac, and if so how do I do it?
    Thank you!

    Hello DePombal, and a warm welcome to the forums & Macdom!
    Different Maintenance is required on a Mac, if it were me, I'd give a try with Applejack...
    http://www.versiontracker.com/dyn/moreinfo/macosx/19596
    After installing, reboot holding down CMD+s, (+s), then when the DOS like prompt shows, type in...
    applejack AUTO
    Then let it do all 5 of it's things.
    At least it'll eliminate some questions if it doesn't fix it.
    The 5 things it does are...
    Correct any Disk problems.
    Repair Permissions.
    Clear out Cache Files.
    Repair/check several plist files.
    Dump the VM files for a fresh start.
    As long as you don't have a USB connection in tandem with a UPS, which can cause problems. If so, disconnect it first.
    The other thing is to have a Cloned backup, Get carbon copy cloner to make an exact copy of your old HD to the New one...
    http://www.bombich.com/software/ccc.html
    SuperDuper...
    http://www.shirt-pocket.com/SuperDuper/
    Have a look at Synchronize! Pro X 6.0.5
    http://www.macupdate.com/info.php/id/6897/synchronize!-pro-x
    Or the most expensive one & my favorite, Tri-Backup...
    http://www.tri-edre.com/english/tribackup.html
    One other thing... OSX's Disk Utility is a poor cousin to dskfix on a PC, Your best bet on a Mac is DiskWarrior, but you'll need the CD/DVD...
    http://www.alsoft.com/DiskWarrior/
    Every Mac should come with it imho.

  • How to clear old desktop

    how do I clear personal info off old desktop that has XP, before getting rid of it. It's 8 yrs old, and I have this new laptop.

    you can directly move the data using a USB drive or move the data via LAN if you can connect both devices on same network or connect both of devices via lan cable and configure a network between the two.
    Arnav Sharma | http://arnavsharma.net/ Please remember to click “Mark as Answer” on the post that helps you, and to click “Unmark as Answer” if a marked post does not actually answer your question. This can be beneficial to other community members reading
    the thread.

  • How to clear the value of variable declared with STATICS keyword in FM?

    Hi All,
    I am using a standard CRM FM:CRM_CLA_RES_UPDATE_FM in that a STATICS variable is declared. In my code this STATICS varible value is populating. Iam to clear that Varible.
    How to do that.
    Thanks and Regards,
    Shabeer Ahmed,

    If you have 6.0 or up version then you will have a spiral button for your ABAP editor in you application toolbar. this is to find enhancements provided to you for standard programs. if you click on this you will get the enhancement points which you can identify and use accordingly to change/edit your STATICS variable content.
    if not, then you'll probably have to write to OSS , if you can open the code and do the required correction.

  • How to clear the values from a Tab Screen.

    Hi,
    I have created Two Tab in my report by using the below mentioned code.
    SELECTION-SCREEN BEGIN OF SCREEN 200 AS SUBSCREEN.
    SELECTION-SCREEN BEGIN OF BLOCK BR_ACB WITH FRAME TITLE TEXT-502.
    PARAMETERS: P_VATNUM   TYPE T001-STCEG,
                 P_NAME     TYPE T001-BUTXT,
                 P_STREET   TYPE rfpdo-KQSUSTRAS,
                 P_CITY     TYPE rfpdo-KQSUPADD02,
                 P_CNTRY    TYPE rfpdo-ALLGINLD.
    SELECTION-SCREEN END OF   BLOCK BR_ACB.
    SELECTION-SCREEN END OF SCREEN 200.
    SELECTION-SCREEN BEGIN OF SCREEN 201 AS SUBSCREEN.
    SELECTION-SCREEN BEGIN OF BLOCK br4 WITH FRAME TITLE text-503.
    PARAMETERS: P_IDLU    TYPE LU_IDCODE,
                 P_VATNU   TYPE LU_VATNUM,
                 P_DESIG   TYPE LU_DESIGNATION,
                 p_telf  LIKE rfpdo-asldtelf.       "Telefonnummer
    SELECTION-SCREEN END OF BLOCK br4.
    SELECTION-SCREEN END OF SCREEN 201.
    SELECTION-SCREEN BEGIN OF TABBED BLOCK tabb1 FOR 8 LINES.
    SELECTION-SCREEN TAB (15) tabs1 USER-COMMAND ucomm1 DEFAULT SCREEN 200.
    SELECTION-SCREEN TAB (15) tabs2 USER-COMMAND ucomm2 DEFAULT SCREEN 201.
    SELECTION-SCREEN END OF BLOCK tabb1.
    INITIALIZATION.
      tabs1 = text-500.
      tabs2 = text-501.
    Problem I am facing here is when report loads the screen once and I am filling all the valuse in the Tab Screen 200 and 201 and executing the report and when I am reloading any other variant then it is not clearing the valuse present in the Tab Screen 200 and 201.
    Can any buddy help me regarding this to clear the Tab Screen 200 and 201.
    Thanks and best regards,
    Niteesh Rai

    Hi Niteesh,
    I have tested the scenario which you have mentioned above,  Its working fine for me.
    I have filled all the values in screen 200 and 201 as well and saved it as variant Test1, and again
    I have filled all the values in screen 200 and 201 as well and saved it as variant Test2.
    When I am changing the variants from Test1 to Test2 and vice versa.  I displaying their respective data as well.
    Regards,
    Md Ziauddin.

  • How to clear the value of a variable in a managed bean after AM method...

    I have two inputText fields on a page - user inputs a value in FieldA and performs a search (execute w/ params)... FieldB shows up under Results table with an 'Add' button. User can enter a value in FieldB and click 'Add' to insert a new row in the Results table.
    I got the insert to work by making FieldB binding = #{userState.newVisitorId} where userState is a session scoped bean.
    When the page reloads after the insert, the value entered in FieldB is still there - I want to clear it out. I know 'marrying' the AM code for the insert to the View code for the bean is bad practice; what is a better way to do this?
    Thanks!

    For anyone who might also be looking for this solution... I simply added a SetActionListener to the 'Add' button that was set as From: #{null} To: #{userState.newVisitorId} and it works like a charm.

  • How to clear old Software Update data as well as Report Data

    Hi,
    due to some problems with the software update scan we removed the sup role and the wsus server from our site server. After the removale i checked the Software Updates Console node and saw that all synced updates will still be shown with a grayed symbol in front. Also the reports will show the last scan dates as well as other informations related to software updates.
    Is there a way to clean these datas  ? Deleting the computer object will not delete these datas.
    How can i clean up such stuff ? Is there an SQL task?
    thanks

    Yes, I know this is an old post, I’m just trying to clean them up.
    All this data will automatically get clean out of the site server once the site maintenance task have a chance to run.
    http://www.enhansoft.com/

Maybe you are looking for

  • Passing data parameter between SWF files

    Hello Xcelsius Gurus, Is it possible to pass data parameter between SWF files? If possible, how to achieve it? Thank you. Justine

  • Is it possible to run Tiger in Snow Leopard using Parallels?

    Hey All, Anyone know if it is possible to run Tiger in Snow Leopard using Parallels? I am using SPSS 16 and it is not compatible with snow leopard. A temporary fix right now if I partitioned my hard drive and installed Leopard on some extra space to

  • TDS Addon,XL Reporter addon installation failed while connecting Citrix

    Hai! I am using SAP B1 PL 42 I have installed, MS sql Client,SAP B1 client and Addons  in my citrix server. It's installed successfully and i able to log in,Connect TDS,XLR Addons. I publieshed SAP B1 in citrix.While i log in through citrix. TDS Addo

  • Add pictures to CCM Catalog

    Hi Experts, Please advise how we can add pics to the materials in the CCM 2.0 Catalog, Does it has a mass program for the uploading? Regards, Moshe

  • ORA-29540 during full database export

    Hi, Anyone encounter this error ORA-29540 during full database export. Have check out the web site for solution. Have check that the init file compatible is set to 8.1.0, the public synonym dba_java is been removed. However after the above remedies,