Clearing the data

Hi,
i am trying to pass due date as a message in F-43, it is working fine for first time considering my baseline date.
In the second screen of F-43 there is baseline date and according to payment terms and baseline date due
date will be calculated. So i need to clear the due date once it is displayed and again when the baseline date
is changed then new baseline date has to be taken into consideration and new baseline date has to be displayed
so can any one tell me where i should clear my base line date.
This is my code
DATA: W_DUEDATE(10) TYPE c.
    DATA: fs_bseg type bseg,
          fs_bkpf type bkpf.
    read table t_bseg into fs_bseg index 1.
    read table t_bkpf into fs_bkpf index 1.
CALL FUNCTION 'FI_FIND_PAYMENT_CONDITIONS'
            EXPORTING
              i_zterm            = fs_bseg-zterm
              i_bldat            = fs_bkpf-bldat
              i_budat            = fs_bkpf-budat
              i_cpudt            = sy-datum
            IMPORTING
              e_t052             = t052
              e_zfbdt            = fs_bseg-zfbdt
             e_sklin            = sklin2
            EXCEPTIONS
              terms_incorrect    = 1
              terms_not_found    = 2
              no_day_limit_found = 3
              OTHERS             = 4.
---- determineing due date   -
    faede-shkzg = fs_bseg-shkzg.
    faede-koart = fs_bseg-koart.
    faede-zfbdt = fs_bseg-zfbdt.
    faede-zbd1t = fs_bseg-zbd1t.
    faede-zbd2t = fs_bseg-zbd2t.
    faede-zbd3t = fs_bseg-zbd3t.
    faede-rebzg = fs_bseg-rebzg.
    faede-rebzt = fs_bseg-rebzt.
    faede-bldat = fs_bkpf-bldat.
CALL FUNCTION 'DETERMINE_DUE_DATE'
      EXPORTING
        i_faede = faede
      IMPORTING
        e_faede = faede
      EXCEPTIONS
        OTHERS  = 1.
-- Passing w_duedate to message--
    if sy-subrc = 0.
    write FAEDE-netdt to w_duedate .
    MESSAGE s000(zdue_v1) WITH w_duedate.
    endif.
   clear w_duedate.  "This is not working "
Regards
VEnk@

Hi, Reddy
Check this How to post code in SCN, and some things NOT to do...
Faisal

Similar Messages

  • How to clear the data in my page after user enter submit button

    hi......
    how to clear the data's in my page after user enter submit button. Actually while pressing first time itself the data is uploaded in database.

    Hi Nazeer,
    Instead of doing it on the same button better create a separate button for this functionality, As per my understanding you want to clear these fields to create new record so that you can enter a new record so for this you just need to insert a new row in VO.
    Still if you want to do it on the same button then you need to put the check that particular record is not dirty if it is not then create new record else create new record.
    One more thing if you will clear on the second click of a button how will you update your record??
    Regards,
    Reetesh Sharma

  • Clearing the data buffer from the input fields

    Hi,
    I am using an user exit CONFPP02 for the Tcode: co11n. I have written a program such that the confirmation numbers having the status CNF will not be allowed to be processed. The whole confirmation is terminated when the system checks the confirmation number and its status as CNF. If the status of the confirmation number is PCNF, the program allows the further processing of the Tcode Co11n.
    The problem starts when the user enters the PCNF status confirmation number and enters, the system stores the values in the various input fields. Now without exiting the initial confirmation screen, if the user replaces the Confirmation number of the PCNF status to the Confirmation number of the CNF status , the system issues a warning message:"  Confirmation no. or order/sequence/operation has been changed
    However, the input fields still contain default values from thepreceding confirmation". if the user says yes, the program written is bypassed , thus allowing the reconfirmation of the CNF confirmation number  into PCNF confirmation number .
    Can anybody suggest a suitable method to clear the data stored defultly in the input fields so that the program can be made to work.
    With regards,
    Avinash.S
    Mobile no:09996192456

    Hi Gilad,
    I never use Preview and did not use Preview at all before sending the document over to my most recent client either.
    I only opened Preview up this morning after I discovered that all of the form data had disappeared on his end! And the only reason I opened up Preview was because I already knew it looked fine in Acrobat so wanted so wanted to view the form in a different application.
    My client would not even have notified me about it had he not sent the signed form back to me and I saw there was no data there! I then called him and asked him about the missing data and he said that he thought I had simply sent over the form purposely with blank fields:(
    I have just emailed him to ask him what application he opened it up in. My understanding is that he is on Windows because ne mentioned to me his company was using Windows when we last spoke. Perhaps he has a personal Macbook where he opened it? I just don't know and can hopefully soon find out:)
    But THANK YOU for letting me know about that script! I appreciate it:) I have now downloaded and installed it and will just have to use it on ALL of my forms before sending them out:)

  • Clear the data region using Maxl

    Hi,
    I am trying to clear the data region using Maxl query, I am getting error like: Dynamic members not allowed in data clear region specificaion.
    +alter database 'PGSASO'.'ASOPGS' clear data in region 'CrossJoin(CrossJoin({[Actual]},{[FY11]}),{[Inputs].Levels( 0 ).Members})';+
    (Inputs( not a dynamic member, parent of this meber is a dynamic) comes under Account dim).
    I have tried the below code also(Syntax error in input MDX queryon line 1 at token ',').
    alter database 'PGSASO'.'ASOPGS' clear data in region 'CrossJoin([Inputs].Levels(0), CrossJoin({[ACT]},{[FY11]}))';
    Can anyone do let me know if there is any syntax error or alternate function would be available for clearing level-0 members/descendants under Dynamic parent...
    Thanks,
    Bharathi

    There is no syntax error in your statement. The problem is you input dimension(I guess) has some members with formulas on them and the clear statement does not allow those members to be in the clear. Ther ware a couple of ways around it. seperate out the members with formulas under a different parent and then modify the crossjoin to only pick up the level zero members that are not in that parent or you could put a UDA on formula members and use the exclude command to exclude anything with that UDA

  • Clearing the data on logout

    Hi all,
    Flex newbie here.. I just want to know how to clear the data
    that i fetched from server on logout. My application have multiple
    components and each component have different states. Once i logout
    and login, am getting the previous state before i logout. How to
    solve this problem? please help me out.

    I'd start with the "loginResultHandler" function and use it
    to direct the user to a specific component within a ViewStack
    whenever they login or log back in.
    For example:
    [Bindable]
    private var currentUser:User = new User();
    private var currentFunction:Function;
    private function loginResultHandler(event:ResultEvent):void {
    currentUser = event.result as User;
    if (currentUser.loggedIn)
    if (currentUser.roles == "admin")
    Application.application.myViewStack.selectedIndex=0;
    else
    Application.application.myViewStack.selectedIndex=1;
    loginForm.visible=false;
    currentFunction.call();
    else
    Alert.show("Login unsuccessful", "Server Authentication");
    This may or may not be the answer you are looking for but it
    should get you going in the right direction. Check out some of the
    great Flex tutorials at Lynda.com (
    http://movielibrary.lynda.com/html/modListing.asp?pid=205)
    Good luck!

  • Phone won't see media files after clearing the data for SomcPhotoAnalyzer.apk

    Hello,My sister accidentally cleared the data for the PhotoAnalyzerService app (com.sonymobile.photoanalyzer 5.5.A.0.10) in the app manager on her Z2. That caused the Album app to disappear from the app drawr. Since then, she updated Album (com.sonyericsson.album) from the Play Store, and that caused the Album  icon to reappear in the app drawr. However, something is wrong with how media is handled by the phone now: Album now behaves like this:In Home: all photos inside the DCIM folder, BUT photos that were downloaded to the phone are missin.In Camera: only camera photos taken after the data was cleared.In Folders: shows nothing.When trying to edit an older camera photo it says "no application available."Additionally, all ringtones were rest to default, and selecting new ones is now impossible, either with Sound Picker or with ES File Explorer. Restarting the phone many times didn't help. The phone is running android 4.4.2 (Build 17.1.2.A.0.314). Any advice? Will a factory reset help? Anything other than a factory reset? (she won't be happy to lose everything on the phone...)  Edit: to be clear, the files that are missing from Album are still on the phone, and can be viewed with ES File Explorer, for example.

    You could try an app preferences reset Settings tap the 3 dots or options icon then Reset app preferences and then reboot and test - As for apps missing then try Settings then Apps then swipe to disabled to see if the app in question is there however if files are missing it could be that all data for that app was erased at the same time

  • CUBE IS NOT CLEARING THE DATA ON CONDITIONAL SCRIPT(ISSUE WITH NULLIFICATIO

    Hi,
    I am using AWM 10.2.0.2.0A and database is 10g Release 2 to build a cube.
    Before the monthly incremental load I need to clear the old data.
    For clearing(Nullifying) the cube I am using the new "Clear" command.
    The Clear command has two options.
    A) clear all the data without using any limits and
    B) clear the current status. The option A is working perfectly fine. The issue
    is when we need to clear only two months of data from the cube and I am using
    Clear STATUS (option B )option.
    After the execution data is not cleared (cube
    is still showing the old data)
    Please find below the program...............
    (The cube is compressed and partitioned by year)
    shw tod
    aw attach olap_cview rw
    limit ORA_PAX_AGT_PRT_MEASDIM to all
    limit ORIGIN to all
    limit DESTINATION to all
    limit FAREBASIS to all
    limit POS to all
    limit DIS_NON to all
    limit int_onl to all
    limit airline to all
    "lmt time to v_time
    lmt time to '01/01/2005'
    rpr time
    "clear all from ORA_PAX_AGT_PRT_TOPVAR *** all data is deleted inspite of the
    above limit
    clear status from ORA_PAX_AGT_PRT_TOPVAR *** Nothing deletes
    upd
    cmm
    dfn junk vrb integer
    junk=1
    upd
    cmm
    junk=2
    upd
    cmm
    dlt junk
    upd
    cmm
    shw tod
    Any one can help me what I have to do to clear the cube.....................

    Hi Thanks for the input,
    I have question.
    I saw your program and my program whatever I submit in the discussion earlier.
    I also using JUNK=1 keyword in my program . The only difference in your program and my program is
    I am declare and assign JUNK=1 after the upd and commit ,In your program its immediately you are decalring and assing JUNK=1 after the clear status and two times JUNK=1 is assigned.
    Please clarify me is this will make any difference to giving the JUNK=1 immediately after clear status and after clear status,up,command....??
    In your program
    ================
    clear status from ORA_PAX_AGT_PRT_TOPVAR *** Nothing deletes
    dfn junk vrb integer *** need these lines (only second one if junk exists)
    junk = 1 *** to work around clear/update bug.
    upd
    cmm
    junk=1
    upd
    cmmjunk=2
    upd
    cmm
    dlt junk
    upd
    cmm
    shw tod
    In My program
    ================
    clear status from ORA_PAX_AGT_PRT_TOPVAR *** Nothing deletes
    upd
    cmm
    dfn junk vrb integer
    junk=1
    upd
    cmmjunk=2
    upd
    cmm
    dlt junk
    upd
    cmm
    shw tod
    This is my query...This update will helpfull for me to before proceeding my test...
    Thanks ,
    Nat

  • BPC 10.0 NW - Journal data when clearing the data

    Hej Gurus,
    I have a quite simple question:
    When a journal i created and posted in the system, the journal is stored in a specific table for the model, and the data is stored in the cube. What is going to happen with the journals, if we clear the cube for all data, both journal and non-journal data. Will the journals still be posted in the journal table?
    The reason is, we have some scattered bad data that we would like to have cleared, and we want to know, if we can delete all data and import everything again without the journal postings are gone.
    Best regards,
    Mikkel Kristensen

    Hi Mikkel
    Journal stored in Journal Table along with BP Cube. Any point of time you want to delete due to Bad data. First you have to Unpost Journals that means No Effect in Journals or No Financials update. Then you can clear BPC Cube data.
    When you are ready for Journals  just simply Post from Unpost Journals. This process will ensure your data integrity.
    Otherwise you will have to face again bad data issue.
    In Short :
    When you decide to Delete Data from Cube:
    1. Unpost Journals from Post
    2. Delete Data from BPC Cube( from Backend)
    3,  Re-load Transactional Data
    4. Post Journals from Unpost
    Hope this will help you
    Thanks
    Venkat

  • How do I clear the data in a waveform chart before running the vi?

    I'm sending data via TCP and I want to have the chart displaying the sent data clear itself when I start the VI. How can I do this?

    you can use the History Data property and wire an empty array to it...
    (right click the control --> Create --> Property Node --> History Data)
    Dan

  • How can I clear the data from my iphone without powering it on?

    So, in an attempt to avoid a $50 charge at the apple store, I decided to replace my screen myself. I've done this plenty of times before without any incident, but this time, some how the battery terminal on the logic board came off with the battery harness, like the soldering broke off. So, since I'm close to the end of my contract, and want to switch phones and carriers, I'm trying to sell my iphone 4 as is, to help cover the cost of a new phone. The only issue is that now that I can't turn the phone on, I can't clear out the memory before I sell it. is there some way that I can do this without the battery, or having to turn it on?
    Thanks
    Nick

    You can't.

  • Unable to clear the data by clear button in Query region in Expenses Home

    Hi,
    I have created two custom regions of query type through JDeveloper,
    Clear button is not working in one region (especially which is on top of both, no matter region 1 or region 2 )
    I didn't write any code there
    please advise how to fix this one
    Thanks
    Suresh

    Extend the controller class file
    Write below code in process request
    OAQueryBean query1 = (OAQueryBean)oawebbean.findIndexedChildRecursive("QueryRN");
         query1.setClearButtonName("CustomClearButton");
         query1.setGoButtonName("CustomGoButton");
    Thanks
    Suresh

  • Error SOURCE IS the same as the target Task name Clear Cube Data

    Hi,
    When I am trying to use the Clear Package I am getting an error -
    "Source is the same as the Target"
    Any help with how to resolve this ?
    thx

    Hi,
    Please check if the Clear DM package is linked with the Process chain for Clearing the Data.
    We usually get the error you are mentioning in Copy Function when we have same source and Destination members.
    Hope this helps,
    Regards,
    G.Vijaya Kumar

  • Is it possible to clear all the data off of AppleTV?

    Recently, I started iTunes and it started doing a resync of all my music, movies, etc to my appleTV. I thought this was strange but let it finish the sync anyway. Several hours later when it was complete I took a look at the hard drive utilization from itunes and noticed that over 50% of the storage was marked as other and I'm using 2x the storage that I was using before. I'm assuming that the area marked other is my previously copied media collection and is now stuck in limbo for some reason.
    So my question is there a way to clear the data off so I can resync and regain my lost 64gb of space?
    Thanks.

    The sure fire way to do ti is to just restore the apple TV to factory and then do any upgades you need to do.. This will clear out everything for sure.
    Press and hold the menu + down button on your remote, then follow instructions 'til you get the option to restore.

  • How to clear all data when the form loading at the first time

    hi
    I am using JDevloper 10g and I have adfForm page, I want to clear all data when I load the page for the first time.
    When I did it using RefreshCondition on the pageDef in the executables like(
    <executables>
    <iterator id="FinCompaniesInformaton1ViewIterator" RangeSize="10"
    Binds="FinCompaniesInformaton1View"
    DataControl="AppModuleDataControl" *RefreshCondition="#{adfFacesContext.postback==true}"* />
    </executables>
    the form didn't bring any data but the problem is the field in the form at the run time changed to read only. So how to make it inputText and clear the data inside it at the run time
    best regards
    Tarek Al Soudani

    thank you for your help,my spec is I have ADF Form and I have creat and Edit CommandButton I made it befor also Commite to save.
    so when I run the form the Field should be disabled and there are no data inside it,and when I chose the creat button the fields should be enabled and I have to insert data inside it then I save.
    So I have FinCompaniesInformatonView as view object based on entity object name FinCompaniesInformaton and applicationMoudul.
    I tolde you befor that I made refreshcondition to solve the data clearence problem but the field changed to read only so please if you now any way to leave the fields as inputText whitout make the form as creation form
    beast regards

  • I just bought a new mac and need to clear the memory of my old one but i don't have a startup disk.  how do i do this?

    I just bought a new mac book pro and need to clear my old mac of it's contents to give it away---  I do not have my startup disk anymore.  How can i completely delete my old mac's memory?

    Erasing your drive:
    Dragging the files to the Trash removes the references to them from the Directory. As has always been the tradition, the data blocks that held the actual data are not over-written, they are merely added to the free list for later re-use. Their original contents are still present.
    Disk Utility "Erase" or "Partition" of a drive (which finishes in under a minute) also does not over-write the data blocks, but merely creates a new, empty directory.
    To clear the data that may still be present (admittedly in a disorganized mess of unlinked blocks) you need to overwrite the data. Use the erase tab, then choose "Security Erase" Options, and overwrite once with Zeroes. This process can take several hours as it is -- if you insist on multiple passes, it can take days to complete, with little additional protection. Multiple passes is unnecessary unless your drive held Military Secrets.
    When you have erased, be sure to install some version of Mac OS X -- a Mac with no obvious Operating software may be dead, and  is much more likely to quickly become landfill.

Maybe you are looking for