'CLOSED'-MSCFNSCW.fmx-FRM-40742 illegal status conversion on record9:INSERT

Hi,
I am currently dealing with a Forms error on MSCFNSCW.fmx.
When attempting to manually insert supply for any item, the record is saved but the following error occurs:
"FRM-40742 illegal status conversion on record 9:INSERT to CHANGED"
ASCP => Workbench => select a plan => Select a plan => View supply/demand => Click new => Insert any item, date and quantity => When saving the error message appears
I could not reproduce the issue on our internal instances.
We have recompiled the form but error still persists.
I appreciate any inputs from your side.
Thanks
Catalina
Message was edited by:
user447176

Hi Catalina,
A quick look at Metalink and it seems your issue is a known bug. You need to apply Patch.5221321
Regards
Simon.

Similar Messages

  • FRM-40737: illegal restricted procedure COMMIT in POST-TEXT-ITEM trigger

    Hi All,
    I tried to execute an insert statement in a POST-TEXT-ITEM trigger and use commit to save data in the db but this error appeared:
    FRM-40737: illegal restricted procedure COMMIT in POST-TEXT-ITEM trigger
    How to solve it? OR how to save every text item value entered in the database?

    I don't fully understand, why you need to insert records on post-text-item, but the possible solution is:
    Write a DB procedure which does insert and commits it.
    Call this procedure in post-text-item.
    Problems will occur if your procedure is modifying the table columns, which are used in form. Form will notice that values in DB have changed and you will have "Record has been changed by another user. Please requery to see changes" error. But if records, affected by DB procedures, are not used in form, the wverything will be OK.

  • FRM-40735: illegal restricted procedure COMMIT in POST-CHANGE trigger

    I am using forms6i. I have three text fields FL1 ,*FL2* , FL3 in a form. Cursor passes from FL1 to FL2 and FL2 to FL3. I want when cursor transfers from FL1 to FL2 the form should be saved(commit). On FL1 i put COMMIT; in post-change.
    But when I pressed Enter key on FL1 it gives following error message.
    FRM-40735: illegal restricted procedure COMMIT in POST-CHANGE trigger
    Can you help me doing this.

    Gul wrote:
    I am using forms6i. I have three text fields FL1 ,*FL2* , FL3 in a form. Cursor passes from FL1 to FL2 and FL2 to FL3. I want when cursor transfers from FL1 to FL2 the form should be saved(commit). On FL1 i put COMMIT; in post-change.
    But when I pressed Enter key on FL1 it gives following error message.
    FRM-40735: illegal restricted procedure COMMIT in POST-CHANGE trigger
    Can you help me doing this.You cannot use COMMIT_FORM in post-change trigger. Because post-change only accept UN-restricted procedure. and commit is not.
    try this
    /* Trigger KEY-NEXT-ITEM on every item and write sample code */
    commit_form;
    next_item;Hope this works..
    Hamid
    Mark correct/helpful to help others to get right answer(s).*

  • FRM-40737:illegal restricted procedure COMMIT in WHEN-VALID_RECORD trigger

    Hello,
    I added the following code in Custom.pll, Event procedure. When Internet Expenses responsibility is added to a user on the User form in System Administrator repsonsibility, his default account will be populated from costing. I received error, "FRM-40737:illegal restricted procedure COMMIT in WHEN-VALID_RECORD trigger",
    when enter Internet Expenses in the Responsibility field and tab. Even though the account was populated right, the responsibility is not able to save to the form.
    /* When the employee id given Internet Expense responsibility, create appropriate expense account for the employee from costing */
    if(event_name='WHEN-VALIDATE-RECORD') then
    if(form_name ='FNDSCAUS' and block_name ='USER_RESP') then
    p_responsibility_id := to_number(name_in('USER_RESP.RESPONSIBILITY_ID'));
    --p_responsibility_name := name_in('USER_RESP.RESPONSIBILITY_NAME');
    p_user_id := to_number(name_in('USER_RESP.USER_ID'));
    if (p_responsibility_id = 22918) then
    select employee_id
    into p_person_id
    from fnd_user
    where user_id = p_user_id;
    apps.cov_oie_pkg.update_emp_exp_act(p_person_id);
    commit;
    end if;
    end if;
    end if;
    Any suggestion will be highly appreciated!
    Yan

    You are calling 'COMMIT' after your custom package. You cannot use COMMIT in when-validate triggers. Did you try taking out COMMIT and save the record?

  • FRM 40737: Illegal Restricted Procedure   in !!! HELPPP

    Hi:
    I have to use a program unit in Pre-Insert/ Pre-update triggers. That program unit calls some restricted built ins. Hence whenever I am using that program unit in validation triggers its giving
    FRM 40737 - Illegal restricted procedure FIRST_RECORD in PRE-INSERT/PRE-UPDATE
    Can somebody help.
    came to know that using timer can help. can somebody explain what is the alternative or how to use the timer in this case(if its of any help)?????
    thanks

    I don't fully understand, why you need to insert records on post-text-item, but the possible solution is:
    Write a DB procedure which does insert and commits it.
    Call this procedure in post-text-item.
    Problems will occur if your procedure is modifying the table columns, which are used in form. Form will notice that values in DB have changed and you will have "Record has been changed by another user. Please requery to see changes" error. But if records, affected by DB procedures, are not used in form, the wverything will be OK.

  • FRM:40737 Illegal restricted procedure ERASE in WHEN VALDATE-RECORD trigger

    Hi
    I am getting this error when I enter the Sales Order and try to save it sometimes.
    Can anyone please tell me how I can avoid this and what is the reason for this error?
    Sachin

    ok, then it is an apps problem.
    can you copy the question in the EBS-Forum ?
    General

  • FRM-40737: Illegal restricted procedure (Ver 9.0.2.7.0)

    My form updates State code data. I get state from the from, perform query and populate the form myself. After the last field is entered I perform the update query, then a commit. This error is on the commit.
    Help!

    Jose,
    Some built-ins cannot be called during other processing (such as in the Pre- and Post- commit related triggers). All built-ins are labelled as "Restricted" or "Un-Restricted" This determines if they can be used when Forms is doing something else such as committing or executing a query.
    See the topic "Restricted Built-in Subprograms" in the help

  • Illegal angle problem as I insert an Aiff file...?

    I inserted an Aiff audio file but when I click on the button to play it, an error message appears "illegal angle situation. Only the main angle will be simulated."
    OK.
    On pressing OK, nothing happens.
    Does DVDSP not like Aiffs?

    Also, - I just converted it to an AC3 using Compressor and get the same error message. So it looks like its not an aiff issue as such?
    The issue is, I think, the fact that I am inserting an audio file only with no associated video stream. I just want to play the audio with a blank screen.
    V1 is empty.
    Message was edited by: Bansaw

  • CC&B v2.3.1 - Updating SA status to Closed (out of box batch jobs)

    I was reading the online help for CC&B v2.3.1 and I keep reading that the system changes a stopped or reactivated SA (service agreement) status is changed to Closed once its balance is 0.
    I was wondering which out of the box batch job (batch control) would actually change the status to closed once the balance is 0? I can't seem to find this detail in any of the out of the box batch job descriptions.
    Thanks in advance :)

    You don't need to run a batch job to update SA Status to Closed - the system will update the Status to Closed once the SA no longer has a financial balance. This means that, if you make a payment of the whole outstanding balance for the SA, the Status will be updated when the payment is frozen (whether online or in batch). It is also possible for such an update to occur during write-off processing, because WO can take an outstanding balance and remove it from the SA.
    And just a note to say that SAACT selects only Pending Start and Pending Stop SAs, so will not process an SA that is already Stopped.
    Edited by: user816833 on 23 mai 2012 12:16

  • TCP Socket connection in CLOSE_WAIT status and not getting closed

    I am facing an issue with the TCP socket connections not getting closed and they are in CLOSE_WAIT status for ever.
    As a part of batch process in our application, emails are sent with 4 embedded images. These images are downloaded from 3rd party site with IP say "UUU.XXX.YYY.ZZZ"
    The images are embedded to email as follows
    1. An URL object is created with the site url.
    URL urlPhoto = new
    URL("http://UUU.XXX.YYY.ZZZ/email/photos.jpg");
    2.     The image cid is created with the URL object and the image name
    HtmlEmail htmlEmail = new HtmlEmail();
    String cid1 = htmlEmail.embed(urlPhoto,
    "photo.jpg");
    3.     The image cid is added to the email template by replacing the ${cid1} and the email is sent.
    <td valign="top">
                   <img src="cid:${cid1}" width="279" height="274">
              </td>
    When a mail is sent, 4 new TCP connections are opened and are put in CLOSE_WAIT status for ever. For every mail sent 4 new connections are opened. In UNIX there is an upper limit on the number of open file handles (defaults to 1024) at any point of time. The open TCP connection has the underlying socket in CLOSE_WAIT status and is not getting closed at all. When the upper limit (1024) is reached the batch process is throwing the following exception and terminates.
    Caused by: com.inet.tds.ap: java.net.SocketExceptionjava.net.SocketException: Too many open files
    at com.inet.tds.am.a(Unknown Source)
    at com.inet.tds.TdsDriver.a(Unknown Source)
    at com.inet.tds.TdsDriver.connect(Unknown Source)
    at java.sql.DriverManager.getConnection(DriverManager.java:525)
    at java.sql.DriverManager.getConnection(DriverManager.java:171)
    at com.hcomemea.batchprocess.dataaccess.database.BaseJdbcDao.openConnection(BaseJdbcDao.java:106)
    ... 12 more
    When I run the command lsof in UNIX which list the open file handles in the system
    $ /usr/sbin/lsof -p 22933 -i | grep CLOSE_WAIT
    java 22933 build_master 297u IPv6 129841943 TCP integration.com:47929->UUU.XXX.YYY.ZZZ:http (CLOSE_WAIT)
    java 22933 build_master 298u IPv6 129841947 TCP integration.com:47933->UUU.XXX.YYY.ZZZ:http (CLOSE_WAIT)
    java 22933 build_master 299u IPv6 129841950 TCP integration.com:47936->UUU.XXX.YYY.ZZZ:http (CLOSE_WAIT)
    java 22933 build_master 300u IPv6 129841970 TCP integration.com:47952->UUU.XXX.YYY.ZZZ:http (CLOSE_WAIT)
    ���list of 935 connections similarly�
    I tried 2 solutions
    1. Got the HttpURLConnection from the URL object and invoked disconnect method on the same. But it doesn�t work.
    2. Ran the batch process java program with the parameter �Dhttp.keepAlive=false to close the underlying connection but didn�t help.
    I need the underlying sockets to be closed and not put in CLOSE_WAIT status after sending the mail.
    Is it the problem with the embed method of HtmlEmail object not closing the underlying socket connection.
    If anyone has faced this issue before, kindly let me know the possible solutions for the same ASAP.
    Thank you,
    Ramesh G

    This sounds more like a problem due to connection pooling at middle tier/application server.
    If that has been ruled out, then you might to enable DCD or set expiry time on the server.

  • Reports to know the status of the projects(Eg:Techni.closed, closed or open

    Dear Friends,
    Do we have any reports in SAP which will shows the status of all the projects, the same way I want to the report for WBS elements and activities also? I want to check the what all the projects in closed status and what are all technically closed, what are all in open status. Friends please suggest me the appropriate reports for my requirement.
    Hari Krishna

    Hello
    In almost all standard SAP raports you can see some icon - Status -
    If you use it you can choose project definitions, WBS elements, networks, activities with status chosen by you.
    And PS Information system will show you only objects whit chosen status.
    Hope it helps

  • 2nd Document window not closing

    I have 2 Document windows,
    - win1 is parent window.
    - win2 is a small window with 3 display fields
    and 2 buttons OK & Cancel.
    - other setting for 'win2' is
    Modal = 'YES'
    Close Allowed = 'YES'
    i have problem with Cancel button code, i am giving
    if :SYSTEM.EVENT_WINDOW = 'WIN2' then
    GO_ITEM('CTRL.FLD5');
    HIDE_Window('WIN2');
    end if;
    The WIN2 is not closing,
    i am calling this 'WIN2' from a WVI trigger of a field on parent window 'win1'
    by issuing SHow_WINDOW('win2') command.
    but it flashes error FRM-40737: illegal restricted Procedure SET_WINDOW_PROPERTY in WVI trigger.
    Any one please suggest. TY.

    hi Sarah,
    i dont to know to which item's WVI should i atttach this code.
    Since the window Closed_Allowed property is set "yes".
    the same code given at Form-level When-Widow-Closed, works well, closes the window in 1 click.
    but i dont know the same code given for Cancel button, does not close 'win2',
    One more point, first time when win2 is shown, that time, out of the [x] button on the status bar &
    Cancel button on win2, if i use [x] button first, then 'win2' closes and cursor is back in CTRL.FLD5 on 'win1', fair enough.
    then afterwards from CTRL.FLD5 when 'win2' is called again then the Cancel button code works fine just like the [x] button.
    but the question is why not first time, if i choose Cancel button first. why it is required [x] button to be used first.
    So the problems are;
    - FRM-40737 is thrown whenever win2 in invoked from CTRL.FLD5
    - 'WIN2' does not close by pressing Cancel button, when displayed first time.

  • Closing of old internal order with costs

    Hello,
    we have an old internal order in the system that has to be closed.
    Due to rounding differences / currency conversions there are still costs (balance 0,01) on the order.
    Therefore the order cannot be closed and settlement is not possible as the postings are out of rather old periods and the settlement structures and master data do not fit anymore.
    Is there a possibility to close the order? A special report or something?
    Technically it is closed (TABG) but we need to set the status BABS.
    Thank you for any help & regards
    Britta

    Hello,
    unfortunately the posting that causes the balance is out of the year 2009.
    I changed the settlement rule to "GES" and to a cost center but the system does not want to do the settlement.
    The error says that I have to do the settlement in 2009.
    Thanx for your help,
    Britta

  • Account is billing old, closed SA's on current bill

    I have some accounts that are acting strangely in CC&B. I have a customer who moves out and leaves a balance. The SA's are closed and this information comes over during conversion. Now, the same customer starts service again and the first bill is showing the old closed SA's as well and charging the past amounts in addition to the new charges on the new SA's. These closed SA's can go back years...
    Is this a configuratin issue and if so from where? Do we need a new algorithm for processing these scenarios or will this be a code change?

    This is a standard feature of CC&B - if the customer moves out, leaving a debt, and then signs up again with the same account, the previous debt will appear on the bill along with any new charges. If you don't want it billed, you could choose not to convert these amounts, or write them off during conversion, or not reuse accounts - all are possibilities, depending upon the business requirement.
    Regarding the status of the old SAs - if they have a financial balance, they should not have been converted as "Closed". In CC&B, the system will change SA Status to "Closed" only when there is no financial balance, and you can also close an SA online, but only if there is no financial balance. The meaning of "Closed" is essentially that there is no financial balance.

  • Open a closed work order.

    Hi Gurus,
    Can any one tell me is there a way to open a closed work order. The system status of the work order currently is CLSD and I have to make some changes to the work order, is that possible?
    Regards
    Anoop

    Hi Anoop/Jay,
    May be its too late but still thought of sharing if anyone face the same issue.
    I think you have set your order to "DO NOT EXECUTE" before release of an order which sets order status to CLSD.
    In this case you cannot change status of an order but still can change malf. Start date and time.
    You can only make changes to CLSD status by revoking business and technical completion if status CLSD is set post REL.
    Thanks
    Rohan

Maybe you are looking for

  • I cant open my iTunes ("Restore Windows" error)

    I cant open my iTunes. When I open it, it says to press "Restore Windows" or "Don't Restore Windows", but before I have time to press anything, it then closes and says "iTunes quit unexpectedly". This is the details: Process:     iTunes [336] Path:  

  • Hs directory does not exist

    We are working on Oracle enterprise edition ennvironment (8.0.4.4), I need to implement a remote conection with an SQLserver7 via ODBC, but I have a big problem: I have not the directory hs under the Oracle_Home, please, somebody knows the feature th

  • I have a SX 510 and the pictures are not sharp.

    I do hold the shutter down half way until the bars are green but the picture is not nearly as sharp as my old Kodak camera. I'm trying to take pictures of my artwork to post online and this is extremely disappointing to have spent more for a camera w

  • How to set Back ground job & get my desired output layout in sm36 & sm37 ?

    Hai SAP ABAP/BASIS Gurus, I am currently taking ME2N PO Pending value Report by setting variant in input screen & setting my own output layout  ie only four field ie.Plant, Material,Currency,Still to be delivered value will be visible in output scree

  • Moving notes on iPhone to iCloud with 10.8.3 and 6.1.3

    There seemed to be an avenue to do this pre iTunes 11 and Mountain Lion.  I no longer see an option regarding anything to do with notes under the iTunes syncing process.  How can I move these notes from "on iPhone" to iCloud?  Can I even get them ont