My form showing an alert after prcessin the bill report

I m sending my code and i want to remove message and run the biill process easly bill is not processing and show msg--: bill already processed
my code is
declare
cursor c_agcd is
     select distinct bilagcd,nvl(trde_disc,0),agty,fedn,f_typ from cr_agmast
     where unit=:block3.unit and bilagcd is not null
     and bilagcd in( select distinct oldagcd from cr_dbksup
     where unit=:block3.unit and publ=:block3.ppubl and supdate between :frdt and :todt and rsup<>0
     and BTYP='Y' ---and agty=:block3.agty or :block3.agty is null)
     and (oldagcd =:block3.pagcd or :block3.pagcd is null))
     order by cr_agmast.f_typ desc,cr_agmast.bilagcd;
     sup_rec c_agcd%rowtype;
     v_typ varchar2(5);
     vagty varchar2(5);
     vagcd varchar2(15);
     vtrde_disc number(7,2):=0;
     v_rec_cnt number:=0;
cursor c_supply is
select sum(rsup),oldagcd ,supdate,sor,publ,comm from cr_dbksup
     where unit=:block3.unit and publ=:block3.ppubl and oldagcd is not null
     and oldagcd = vagcd and supdate between :frdt and :todt and rsup<>0
     group by oldagcd,supdate,sor,publ,comm
     order by supdate;
     ppubl      varchar2(6);
     vedtn      varchar2(5);
     tot_sup                     number(8)          :=0;
     rate                               number(7,2)     :=0;
     vcomm                          number(7,2)     :=0;
     gross_amt                number(12,2):=0;
     v_gross_amt           number(12,2):=0;
     v_disc_amount      number(12,2):=0;
     net_amt                     number(12,2):=0;
     disc_amount           number(12,2):=0;
     bagcd varchar2(20);
     billno varchar2(20);
     pdate date;
     pcopy number(10):=0;
/*cursor      c_rate is
     select distinct amtr from cr_rate where edtn =vedtn;*/
/*     cursor c_rate is
select distinct sor from cr_dbksup where unit=:block3.unit and
          edtn=sup_rec.fedn and glcode = sup_rec.glcode;
     cn number(5);*/
     cursor c_rate is
     select distinct sor from cr_dbksup
          where unit=:block3.unit and publ=:block3.ppubl and
                         edtn=sup_rec.fedn and oldagcd = sup_rec.bilagcd;
     cn number(5);
cursor c_dt is
     select distinct fr_date FROM fin.freeze_type
          where divn=:block3.unit AND fr_typ='SCR';
v_fdt date;
begin
     select count(*) into v_rec_cnt from cr_bill
          where unit=:block3.unit and publ=:block3.ppubl and bldate = :block3.bill_dt;
     if nvl(v_rec_cnt,0)>0 then
          message('Bill Already processed for this Publication '||:block3.ppubl);
          message('Bill Already processed for this Publication '||:block3.ppubl);
          raise form_trigger_failure;
     end if;
     :system.message_level :=25;
     -----check validationfor freeze Voucher
     open c_dt;
     fetch c_dt into v_fdt;
     close c_dt;
     if v_fdt>:block3.bill_dt then
          message('Freeze date '||v_fdt||' Not allowed to Enter/Update/Delete Data of Freeze Date ');
          message('Freeze date '||v_fdt||' Not allowed to Enter/Update/Delete Data of Freeze Date ');
          raise form_trigger_failure;
     end if;
     --message('i m here ');message('i m here ');
     open c_agcd;
     loop
          fetch c_agcd into vagcd,vtrde_disc,vagty,vedtn,v_typ;
          exit when c_agcd%notfound;
          pcopy                     :=0;
          v_disc_amount     :=0;
          gross_amt           :=0;
          disc_amount      :=0;
          net_amt                :=0;
          --message('i m here c_supply');message('i m here c_supply');
          open c_supply;
          loop
               fetch c_supply into tot_sup,bagcd,pdate,rate,ppubl,vcomm;
               exit when c_supply%notfound;
               v_gross_amt           :=      tot_sup*rate;
               v_disc_amount      := v_gross_amt*vcomm/100;
               pcopy                          :=     pcopy                    +     tot_sup;
               gross_amt                :=      gross_amt      + v_gross_amt;
               disc_amount               :=     disc_amount     +     v_disc_amount;
               tot_sup     :=0; rate :=0;vcomm:=0; v_disc_amount     :=0;
          end loop;
          net_amt           := round((gross_amt - disc_amount),0);
          select nvl(count(1),0) into cn from cr_bill
          where unit=:block3.unit and publ=:block3.ppubl
          and agcd =bagcd and bldate = :block3.bill_dt;
          if nvl(cn,0) = 0 then
               billno := bill();
          end if;
          synchronize;
          :block3.dagcd := bagcd ;
          :block3.amount:= net_amt;
          synchronize;
          --message('i m here net_amt '||bagcd||' , '||billno);message('i m here net_amt '||bagcd||' , '||billno);
          if net_amt is not null and net_amt >0 then
                    update cr_bill set totblamt = gross_amt , copr =pcopy, amtr = net_amt, comm_per =vtrde_disc, comm_amt = disc_amount,
                                                                 frdt =:block3.frdt , todt = :block3.todt, agty =vagty ,surt =rate,doctyp='SCR'
                    where unit=:block3.unit and publ=:block3.ppubl and agcd = bagcd and bldate = :block3.bill_dt; --and edtn = vedtn;
               if sql%notfound then
                    insert into cr_bill(unit,bldate,bill,agcd,glcode,totblamt,publ,edtn,copr,amtr,comm_per,comm_amt,frdt,todt,agty,surt,doctyp)
                    values(:block3.unit,:block3.bill_dt,billno,bagcd,bagcd,gross_amt,ppubl,vedtn,pcopy,net_amt,vtrde_disc,disc_amount,
                    :block3.frdt,:block3.todt,vagty,rate,'SCR');
               end if;
               update cr_outmast set amount =net_amt,balance = net_amt
                    where unit=:block3.unit and doctyp='BIL' and publ=:block3.ppubl and agcd =bagcd and billdt = :block3.bill_dt;--and edtn =vedtn;
               if sql%notfound then
                    insert into cr_outmast(unit,agcd,glcode,doctyp,billno,billdt,voucherno,voucherdt,publ,amount,balance,edtn)
                    values(:block3.unit,bagcd,bagcd,'BIL',billno,:block3.bill_dt,billno,:block3.bill_dt,ppubl,net_amt,net_amt,vedtn);
               end if;
          end if; -- for o balance entry
          close c_supply;
     end loop;
     close c_agcd;
     commit;     
     forms_ddl('commit');
     message('Bill has been Processed');
     message('Bill has been Processed');
     --set_item_property('process',visible,property_false);
     go_item('exit');
end;

The data form should show exactly what is in essbase so if you query essbase with the Excel Add-in you should see the same number.
Seems like either your data is not what you expect it to be or the form definition is incorrect.
Regards,
-John

Similar Messages

  • I have created a form in InDesign, exported to a pdf, created an editable form and saved.  When I open the form and make changes and save, the reopen the changes are there.  If try to email this form as an attachment after editing, the attachment is alway

    I have created a form in InDesign, exported to a pdf, then created an editable form and saved.  When I open the form and make changes and save, then reopen the changes are there.  If try to email this form as an attachment after editing, the attachment is always minus the edits.   ????

    Hi chuck,
    If you ave created the form and then filling it yourself and saving the form, the filled data should be there when you reopen the same form.
    Can you please send the form to me at [email protected]  so that I can have a look.
    Regards,
    Rave

  • While updating ipod to ios5 it shows an error after downloading the update

    while updating ipod to ios5 it shows an error after downloading the update

    Are there any error details like numbers for example?
    Did you follow this article about installing iOS5? iOS 5: Updating your device to iOS 5
    Did you check your security software settings? iTunes for Windows: Troubleshooting security software issues

  • Some Devices are not showing up at all in the Discovery reports

    Hi all,
    The first time I ran the CS device discovery I got 50 reachable devices. I scheduled the Device Discovery to be run every week. I added more subnets to the discovery but unfortunately the last discovery shows only 31 devices from the first discovered devices (50). I checked the DCR and there is only 44 devices out of the 50!
    My question is:
    Should not the scheduled Device Discovery discovers all devices -the previously discovered ones and the new ones-?
    Why the rest of the devices are not showing up at all in the discovery reports (neither reachable nor unreachable) although all of them are pingable and responding to the snmpwalk tool from the CWLMS server.
    Your kindly respond is highly appreciated.
    Thanks in advance.

    I ran the discovery again with the same settings after enabling debugging and I checked the following log files:
    1. in the ngdiscovery.log I found a lot of errors all about Duplicate IpAddress example:
    ERROR  [DeviceManager : EvalTask-DiscoveryThreadPool-06 addNewDevice]  : Duplicate IpAddress (127.0.0.51) found in addNewDevice().Device 1 ip = 10.8.113.29 , id1 = 127.0.0.51*F1COR.xyz.com*.1.3.6.1.4.1.9.1.283, Device 2 ip = 10.8.113.106 , id2 = 127.0.0.51*LCD.xyz.com*.1.3.6.1.4.1.9.1.283
    ERROR  [DeviceManager : EvalTask-DiscoveryThreadPool-08 updateDevice]  : Duplicate IpAddress (127.0.0.51) found in updateDevice().Device 1 ip = 10.8.113.93 , id1 = 127.0.0.51*UDS.xyz.com*.1.3.6.1.4.1.9.1.283, Device 2 ip = 10.8.113.73 , id2 = 127.0.0.51*F2COR.xyz.com*.1.3.6.1.4.1.9.1.283
    ERROR  [DeviceManager : EvalTask-DiscoveryThreadPool-09 addNewDevice]  : Duplicate IpAddress (10.8.113.42) found in addNewDevice().Device 1 ip = 10.8.113.42 , id1 = null, Device 2 ip = 10.8.113.86 , id2 = 10.8.118.251*OPS.xyz.sa*.1.3.6.1.4.1.9.1.501
    2. in the CSDiscovery.log:
    Error while changing the permission of the file C:\PROGRA~1\CSCOpx\objects\csdiscovery\1348\DiscoveryStatusObj
    I checked the file and the casusers has a Modify permission
    My Question is:
    1. what is the meaning of those output exactly?
    2. If CWLMS found duplicatedd IP address how it works in terms of (ignoring, updating existing devices, Adding the new devices, ... etc)
    Many thanks for your help.

  • BADI after saving the billing document

    Hi Experts,
    Please tell me the BADI name which will be triggered after saving the billing doc
    Here once the customer billing document will be saved, BADI will update the equipment master.
    Regards,
    Sandeep
    Edited by: Sandeep Ballewar on Jul 1, 2010 11:49 AM

    Hi,
    Can anybody  throw some light on below issue?
    Regards,
    Sandeep

  • XML Forms show raw xml after transport

    Hallo experts,
    at the moment I am working to set up a SAP Enterprise Portal 7.4. I was able to export KM content from our old 7.0 portal.
    The only problem i am experiencing is that xml forms, that I exported and imported through standard KM export / import, are showing as raw xml.
    The forms are available in forms builder and I also generated a preview (compiled the form) for each form and saved after that.
    There are no errors in the log that point me in a direction, so please help.
    Do you have any ideas what I am missing?
    Best regards,
    André

    Hi Zlatin,
    -> 1
    By Default identic properties queries are connected by an 'OR'.
    Please have a look into the documentation for further info.
    http://help.sap.com/saphelp_nw04/helpdata/en/85/80b3d4c9ef11d5993e00508b6b8b11/frameset.htm
    -> Search Options
    So far it's not possible to connect two identic proerties by an 'AND' within the standard.
    You can preset a search filter via the relevant Search Option Set.
    http://help.sap.com/saphelp_nw04/helpdata/en/c8/765140c770cd01e10000000a155106/frameset.htm
    Regards Matthias Röbig-Landau

  • Oracle SSO not showing up status after rebooting the 10gapplication server

    Hi all,
    I installed 10g R2 10.1.2.0.2 application server RHEL AS 4.0 2.6.9-11 kernel.
    After the successful installation IM and MR and MT (BI). All the components in the MT and infrastructure was showing up status. After rebooting the machine i executed the following commands
    For Infrastructure
    1.     To make the metadata repository up and running
    Log in as an oracle user
    #cd /home/oraASInfra/bin
    #export ORACLE_HOME=/home/oraASInfra
    #export ORACLE_SID=mamcinfr
    #./lsnrctl start
    #./sqlplus
    Enter userame: sys as sysdba
    Sql>startup
    Sql>Exit
    2.     To start the other components of the infrastructure
    Log in as an oracle user
    #cd /home/oraASInfra/opmn/bin
    #./opmnctl startall
    3.     To start the iasconsole
    #cd /home/oraASInfra/bin
    #./emctl start iasconsole
    For Middle tier
    1.     To start the middle tier components
    Log in as an oracle user
    #cd /home/oraASmt/opmn/bin
    #./opmnctl startall
    2.     To start the iasconsole
    #./emctl start iasconsole
    In the MT all the components is showing up status
    In the Infrastructure except oracle sso OID , HTTP server and OC4J security is showing up status.
    There is no any port conflicts between the infrastructure and MT.
    Is there any post installation tasks has to be done after the installation?
    please help me to sort out the issue.
    thanks,
    C Saju

    1. After RapidWiz with 11.5.10.2 CDs, do we need to
    do any post installation step to make the browser
    load Oracle Forms. Do we need to create our own
    certificate using envshell.cmd and then adjkey. And,
    apply that to Jinitiator using adjbuild.sh and
    regenerate JAR files using ADADMIN Jar ( I am so far
    assuming that these steps are not necessary after for
    rapidwiz install of 11.5.10.2 )Your assumption is right. You do not have to do anything
    2. Do I need to apply the Oracle App 11i 11.5.10.2
    Maintenance Pack after installing using RapidWiz from
    the main set of CDs labeled as 11.5.10.2No
    3. Should I try by installing manually latest
    Jinitiator 1.3.1.21 or 1.3.1.25You do not have to upgrade your jinitiator version unless you want to go with the latest one.
    Since (adsign.txt, appltop.cer, and identitydb.obj) do not exist in your system, you just need to initialize the java certificate as follows:
    adjkey -initialize
    This will create the following files:
    - adsign.txt directory $APPL_TOP/admin
    - appltop.cer direcotry $APPL_TOP/admin
    - identitydb.obj directory $HOME of the user that launch adjkey
    Metalink note: 365735.1 should be helpful.
    Good luck

  • In Sales Order form populate charges field after saving the Sales Order

    Can we populate Charges field in Sales Order form after saving the sales Order automatically.
    The charges to be calculated based on the amount entered and the item selected in Sales Order.
    In the Manual process it is done by hitting the Actions Button and then select the Charges.
    The charge type would be "Freight Costs"

    by using process_order API, I am able to update the charges field.

  • Adobe Form is not opening after saved the form locally

    Hi Experts,
    I have implemented the adobe form using webdynpro java using ACF. The scenario is initially the form is loading with input fieIds and dropdown boxes after that the form data has to be submitted into backend.
    I have encountered the problem that if i save the submitted form into locally and trying to open the form its not opening.
    The server and other details are:
    NetWeaver     - 7.00(2004s) SPS3
    Adobe reader - 9.0
    ADS vesion    - 7.01
    Please let me know if you have any idea.
    Thanks!
    Narasimha

    1). If i will convert the forms from ACF to ZCI capability. Suppose if I want to fall back from ZCI to ACF forms then what is the solution for that?
    Well you won't need to go back to ACF as such but if you want to then may be you can keep take backup of all forms.
    2).After conversion of the forms to ZCI capability then what are the necessary steps i need to follow like abode form ui elements can be changed to webdynpro native ui elements type like that.
    The Report generally mentions all the items in yellow/red for things to work on but yes if you have used ACF Controls you just need to update it by Native controls. From Web Dynpro form properties change the displayType property to native as well.

  • OAS Enterprise Manager shows false Hostname after reinstall the server

    Hy,
    we have an OAS 10.1.2.0.2 with and 10g (10.2.0.1.0) Database.
    Ater a systemcrash we had to reinstall the DB (the dbf-Files are from an backup) and OAS.
    we decieded to rename the server.
    But now we have the following problem: the Enterprise Manager show the old Hostname.
    I see the thread for OAS Re: Oracle Reports Stop Working after Join the Server to the Domain !!!
    which points to the script "cmd /c chgiphost.bat -mid"
    Is there a similar "Script" for the DB?
    (I searched whithin the dbf-files and found lots of old hostnames...)
    Thanks in advance

    For database is a different procedure, chgiphost is for OAS only, if you want to check this for database, you could, either go to DB forum and ask same question, or look in the admin guide for the DB you are using. There is going to be the way to make this changes.
    Regards.

  • After cancelling the  billing document accounting document not generated

    hi,
    we released the billing and accounting document generated but customer needed changes in the billing values so we cancel the billing document but accounting document not generated(reversal accounting not happen)....in document flow it shows in cancel document in blocking state ....we try to release in VF02 but it throws the error "Client 200 does not contain an active application area" . but the other sales order we test in qulaity server the scenorio is working fine...............for specific one sales order creating problem now.....
    try to solve the issue ..
    Thanks
    Muthuraman.D

    Dear all,
    I have noticed this problem in my company system.
    Problem descripion:
    - you creates an invoice and the system doesn't post it for any reason
    - then you create the cancel of the invoice, BEFORE forcing the posting of the invoice
    --> user creates Cancel, Cancel is not posted as well.
    --> from now it is impossible to post both invoices: if you try to post the Invoice after the cancel creation, the VF02 recongnise that a CANCEL exists and do not allow for the posting
    --> standard VFX3 doesn't signal this kind of not posted documents situation.
    Ok, The right procedure for thes user should be: create invoice, if not posted then try to understand why not posted, and not CANCEL it.
    But in this case VFK3 was not able to detect the invoice was not posted: it was not in the list.
    So the 2 ways must be:
    1) one possibility could be undestand in VFX3 could be enhanced: I checked in OSS but I didn't find anything.
    2) other possibility: add a further check in interface between SD and FI in order to check if original invoice is not posted to FI  and in this case block the cancel creation, as instead standard SAP does.
    Could you please give me an idea on how it would be better proceed?
    Thank You very much.
    Raffaella

  • In SSMS after creating the query Report, how to export excel the same report from SSMS

    for Beginners in SSMS after the report is created , how to export the same report to excel, I did try the option to task and export and follow the procedure, this procedure does not export the same report, the one was created, unless I am missing some steps,
    is there a way to do just like we do in SSRS go to solution explorer, and properties and add the Target Server URL or not
    in SSMS, 
    after I save the report it saves in project , can some one please guide me how to do it, and what steps I am doing wrong,
    any help will be great.  I am not technical person, just starting to learn from internet.
    thanks in advance.

    As you have said you are not a technical person try using Import Export wizard.
    Refer this link
    http://www.mssqltips.com/sqlservertutorial/203/simple-way-to-import-data-into-sql-server/
    And another simplest one is to copy the result set from the query window. Right click the result and select "Copy with Headers".
    Regards, RSingh

  • Show/ hide child row in the same report

    Hi,
    The whole day i'm looking for the trick/ example to get the following done.
    i want to have one report on a region, what is showing as default only parents, like:
    company name | total_employees
    A | 200
    B | 250
    When clicking on a a record or + sign (or something like this) the child records of each parents must also show on the report.
    So something like the following:
    company name | department | total_employees
    A | dep: T | 150
    A | dep: P | 50
    B | dep: K | 250
    The functionality must be something like this. The most importent thing is that the data will be in the same report. So i don't want to go to a other page.
    Hope someone can help....... tnx in advanced.

    Hi,
    Have a look at: [http://apex.oracle.com/pls/otn/f?p=11933:13]
    And/or look at: Show Hide Details AJAX
    Andy

  • Problem after saving the billing document

    HELLO SD GURUS
    WHEN I SAVE THE BILLING DOUCUMENT (F2)...IT HAS SAVED...BUT ITS NOT GOING TO ACCOUNTS.....IN VFO2 T.CODE WHEN I
    RELEASE TO ACCOUNTS IT SHOWING LIKE...ACCOUNT TYPE  D IS NOT DEFINED FOR DOCUMENT TYPE RE
    WHAT DOES IT MEAN FRIENDS
    ANY IDEA PLZ SUGGEST ME....
    THANKING YOU
    REGARDS
    RAM

    Dear Ram,
    Don't post the question in capital letters.
    Coming to your post,go to T.code VOFA select your document type there in General control tab you can find
    Document Type  here give the " D" and try to post the accounts.
    Couldn't able to find the solution take the help of FI consultant ask them which accounting doc type they created for that billing type,and assign the same and try.
    For standard procedure it is in blank if you defined your own in that case you have to specify the accounting document type. 
    Check and revert
    Regards
    Ram

  • Premiere Pro not sending files to After Affects "The importer reported a generic error"

    Hi all,
    I just recently purchased PP & AE CC. putting together my first project on my new laptop and when i go to right click a clip on my Premiere pro timeline and proceed to push "Replace with after effects composition" It swaps to After Effects but nothing loads, i alt tab back to Premiere and it displays me the message "The importer reported a generic error"
    If it's any help the footage is from my A7S filmed in SDXC format. everything works fine within the project. I've tried logging out and in of my adobe account updating restarting etc. had no luck.

    Hi Brandon,
    ascarib wrote:
    After doing the reboot my computer gives me the "You can't use this version of the application "Adobe After Effects CS6" with this version of OS X. Nothing has changed on my computer but it was fine before. What else can we try? Thank you for your patience.
    Make sure that you update After Effects: Can't launch | Mac OS X 10.9 (Mavericks)
    Thanks,
    Kevin

Maybe you are looking for

  • Mac version of PSE 12 open tiff files in ACR only. How I can open it WITHOUT ACR?

    I don't like to correct TIFF (or PNG) files in ACR, but PSE 12 (Mac) open this files in ACR (I try File > Open (NOT Open in Camera Raw!!!), or double click on file, or right click on file > Open with PSE...). WTH?

  • Podcast Subscriptions and System Recovery

    I am planning on doing a System Recovery tomorrow (Sept 13) and I'm wondering about my Podcasts. The podcasts themselves, I've taken and copied into my backup folder, which I'll burn before I do the system recovery, so I know those will be fine. What

  • Help - Photoshop serial number problems after Premiere demo- AIR ??

    Hi- Ive been a licensed owner of Photoshop since 1997. In 2003, because I was a teacher on the east coast for an accredited school on the west coast that had students in my area, I bought CS1 for my (2) new identical XP computers. In 2007, I bought (

  • IWeb can't save anymore

    Last night, when attempting to publish changes to my website, I got the following error: the document "iWeb" could not be saved. My internet connection is fine. I am not out of space on my .Mac space. My .Mac connectivity is fine. My pages in iWeb lo

  • Documentation and PDF

    It is a shame that the HTML docs you have don't print right. Rather than wasting time making Printable CSS, how about creating a PDF that will print for us? Landscape is find of course. I think that doing this and creating an ongoing Documentation of