Close PO's with status Transction complete programatically

Hi all,
We are on SRM 5.0..I need to programatically close some PO's in the system which are in status "Transaction complete".Is there any std FM which can be used to close such PO's?
Thanks!

Hi
Try these two FMs BBP_PROCDOC_GETDETAIL,  BBP_PROCDOC_UPDATE  and BBP_PROCDOC_STATUS_CHANGE
Regards
Virender Singh

Similar Messages

  • How to reverse/change SRM PO with status "transaction completed"

    We use Extended Classic scenario in our company.      There is a PO has outstanding G/R balance,   but user accidently hit the button "complete"on this PO  in SRM ,   in result the PO has been completed with status "transaction completed".    And nothing can be performed on this PO.   
    G/R balance is out there and now it has financial impact as it blocked the funding thru internal order. 
    Anyone have idea how we can resolve this problem.    Can we reverse/change the PO status?   Please note G/R canu2019t be entered in ECC as restricted.  
    Thanks,
    Frieda

    I think it was CRM_JEST. But the way to easily select the correct entries:
    1. Go to transaction BBP_PD
    2. Enter BUS2201 and the order number
    3. Double click on the status table, this will take you to SE16 with all the different status for the PO
    4. Select the entry to delete
    5. Enable debugging by putting /h into the transaction field
    6. Double click "CODE" and change this to "DELE"
    7. F8 (leave debugging)
    8. Click on the delete icon and save.
    Done.

  • How to delete a PS network with status 'Technically Completed' (TECO)?

    Dear all,
    We have Webdynpro application, which will create a PS network in background. In the past it was working fine and many PS network  are created. Now we have a scenario where some of the networks which are with status 'Technically Completed' (TECO) needs to be deleted from system. I tried to delete it from CJ20N, but it was not possible as the status is set to TECO. Please let me know how to delete a PS network which is with status 'Technically Completed'  (TECO).
    Thanks in advance.
    Regards,
    Vijay

    The cluster goes out and finds all networks that are available.  This is an automatic process.  As long as there is a network there, it will show it.  If you don't want it to show, disable the interface and it will disappear.
    . : | : . : | : . tim
    Thanks a million Tim! Disabling the correct interface made it disappear!
    Actually, I had disabled the interface before I started this thread. When you posted the suggestion, I went back and looked at the network connections again and found out that I had disabled the wrong interface! My bad!
    However, here is the interesting thing:
    After I disabled the NIC and it disappeared from the FCM I physically disconnected its cable (actually I disconnected all unused / unconfigured NICs) ....then I re-enabled it. Now I see that FCM does NOT pick it up again.
    I think FCM picked up those NICs because at one time I had put that NIC in the production VLAN (from the switch side).
    One observation:
    If you have NICs in a HV machine which are not connected to a switch, they do NOT show up in FCM. Once you connect them to some network, they start showing up. I guess by connecting them to a network, they are able to see NICs in other HV nodes.
    Take a look at this screenshot. I have 6 NICs in there which are disconnected, none show up in FCM
    -Rajeev rajdude.com

  • PO Report with Status Delivered Complete

    Hi
    Somebody Knows how can i get a Report for
    PO with The indicator Delivered Complete.
    Thanks

    Dear Aide Tellez,
    You can try the following transactions:
    ME2L
    ME2M
    In selection screen choose proper value for 'Selection parameters'.
    Regards,
    Naveen.

  • Closing the Production Order with status PCNF

    Hi Experts,
    May I kindly ask if I can close an order with status Partially confirmed? If not, how can I cancel the confirmation if I had already reversed the goods movement in the confirmation thereby flagging an error of a deficit in the material quantity during cancellation of the confirmation?
    I really need your help since I need to close the production orders with this case.
    Hoping so much for your replies.
    Many thanks in advance.
    Sincerely,
    Ria

    Ria,
    I am not so clear about the exact situation.
    When you say you have reversed the goods movement with MIGO, is it reversal of the documents posted with confirmation or the individual documents?
    You can only cancle the document with MIGO which are independent of the confirmation.
    The  documents which are with the confirmation can not be reversed in any case with MIGO.
    I suggets you go this way,
    1. Check why system is giving you error as 'Deficit......'. The one thing I suspect that you must have performed auto GR & moved out the stock of FG from that location.
    If it's so then bring back the stock to it's original location & cancel the confirmation.
    While cancelling the confirmation where you might have executed goods issue with backflush this error won't arise as the stock will be bring back to storage location form the order.
    Don't reverse the cancellation of the of the documents youhave performed with MIGO for independent material posting on the order. Keep it as it is.
    This way the cancellation of confirmation & material movement will be done & now cost on the order will be zero.
    You can assign the status CLSD as well as DLFL to the order.
    2. In case you find the above activities can not be carried out for some reason then give status TECO to the order.
    Sttle the order so that the cost on the order will be zero, then give status CLSD.
    As far as possible stick to solution no. 1 only.
    Go for solution no. 2 when you don't have any other option.
    Hope this helps you.
    SmanS

  • Sales order - update line status to close the document with DTW

    Hi everybody,
    yesterday i tried to update the line status of sales order lines from "O" to "C" with DTW. At first he ask me for DocRate. Then set DocRate to "1". After then DTW wrote, that I can't update the lines, during update the document... Can someone help me..., maybe with an example for DTW.
    Happy new year to everyone.
    Best regards
    Stefan

    Hi Stefan Ressel,
    Welcome To SAP Community Network Forum
    Sales Order line status close that means for particular line Item Quantity Delivered through Delivery document and sales order line status open to close.
    OR
    You have to manually close Sales Order line status without delivered Quantity.
    Check in your case Item Quantity are to be delivered through Delivery document. Right click on line & check Target document.
    If Sales Order Item Quantity are to be delivered through Delivery document then SAP restrict to update line status.
    Thanks,
    Srujal Patel

  • Local move requests stuck with status "queued" at 0% completion

    Hello all,
    I'm running Exchange server 2010 SP3 with no aditonal RU.
    Suddenly we are unable to perform local move requests of mailboxes between databases.
    The requests will turn up in the list at Recipient "Configuration\Move Requests" but remain the with status Queued with 0% completion.
    It does not matter if the move request is initiated by EMC of the Shell.
    I cant find a solution so if someone has some advise that would be great,
    I tried the following:
    - Restarted the Mailbox Replication service on the CAS server
    - Rebooted the Mailbox, CAS and Edge server
    - Run a Test-MRSHealth check against the CAS
    - Checked all logs but there are no related entries
    - Checked my admin account permissions
    - Checked if it is related to certain mailboxes and source and destination databases which isn't the case
    What else can I do or check?
    Kind regards,
    Alex

    Hi,
    You mentioned you checked the event log, but there was no related events.
    Have you tried to use the get-moverequest | get-moverequeststatistics cmdlet to check result?
    If no, please run this command to see if there is any clues that can be used to narrow down this issue.
    Best regards,
    Belinda
    Belinda Ma
    TechNet Community Support

  • CRM Contract with Status "Completed" Not Replicated

    Dear CRM experts,
    We've noticed that, when we create a CRM Contract in the CRM system and changed its status to "Completed" before saving it, the Contract does not get replicated to the back-end R3 systems. However, when we create a CRM Contract with status "Open", it gets replicated immediately.
    Is this a standard CRM function? Is it because, when the status is "Completed", there will not be followup documents, therefore replication does not occurd?
    However, in SMW01, after we saved the CRM Contract with status "Completed", we can still see BDocs created. The BDocs are created with NO error, but just that in R3 it does not get created.
    Any idea?
    Points will be awarded! Thansk!
    Message was edited by:
            Axon

    Axon,
    Just check in the status profile of the contract, if you have set the forbidden option for business transaction 'To be distributed' for the status 'Completed'.
    If yes, just delete that.
    <b>Reward points if it helps.</b>

  • Backup completed with status "communications failure with client" error

    Hi
    Getting error while taking filesystem backup of client in oracle secure backup.
    We have administrator server & media server on same server.
    We want to take backup of filesystem/rman backup of client host...but unable to communicate.
    following steps have done
    1.install oracle secure backup client on host
    2. add host in administrator domain server
    3.check connectivity from administrator server to client host but getting following error
    [root@isgmmlds06 ~]# obtool pingh isgmmlds250.insolutionsglobal.local
    Error: can't connect to NDMP server on isgmmlds250.insolutionsglobal.local (address isgmmlds250.insolutionsglobal.local) - timeout waiting for connection status message
    isgmmlds250.insolutionsglobal.local (address isgmmlds250.insolutionsglobal.local): Oracle Secure Backup services are available
    also tried to take filesystem backup but getting following error
    2011/09/28.19:50:49 Job created.
    2011/09/28.19:50:49 Dispatching job to run on administrative server.
    2011/09/28.19:53:59 Backup completed with status "communications failure with client".
    2011/09/28.19:53:59 (Diagnostic data: 0x20008F06/21, dev_delay 0, data_delay 900, fail, data_err.)
    2011/09/28.20:09:55 Dispatching job to run on administrative server.
    2011/09/28.20:09:59 Backup completed with status "communications failure with client".
    2011/09/28.20:09:59 (Diagnostic data: 0x20008F06/21, dev_delay 0, data_delay 900, fail, data_err.)
    2011/09/28.20:25:55 Dispatching job to run on administrative server.
    2011/09/28.20:25:59 Backup completed with status "communications failure with client".
    2011/09/28.20:25:59 (Diagnostic data: 0x20008F06/21, dev_delay 0, data_delay 900, fail, data_err.)
    2011/09/28.20:41:55 Dispatching job to run on administrative server.
    2011/09/28.20:41:59 Backup completed with status "communications failure with client".
    2011/09/28.20:41:59 (Diagnostic data: 0x20008F06/21, dev_delay 0, data_delay 900, fail, data_err.)
    2011/09/28.20:57:55 Dispatching job to run on administrative server.
    2011/09/28.20:57:59 Backup completed with status "communications failure with client".
    2011/09/28.20:57:59 (Diagnostic data: 0x20008F06/21, dev_delay 0, data_delay 900, fail, data_err.)
    2011/09/28.21:13:55 Dispatching job to run on administrative server.
    2011/09/28.21:13:59 Backup completed with status "communications failure with client".
    2011/09/28.21:13:59 (Diagnostic data: 0x20008F06/21, dev_delay 0, data_delay 900, fail, data_err.)
    2011/09/28.21:29:55 Dispatching job to run on administrative server.
    2011/09/28.21:29:59 Backup completed with status "communications failure with client".
    2011/09/28.21:29:59 (Diagnostic data: 0x20008F06/21, dev_delay 0, data_delay 900, fail, data_err.)
    Note : we are able to take filesystem/rman backup of same server where administrator domain & media server is installed.
    please revert.
    Regards
    shd

    output for pingh
    from administartor server
    [root@isgmmlds06 ~]# obtool pingh isgmmlds250.insolutionsglobal.local
    isgmmlds250.insolutionsglobal.local (address isgmmlds250.insolutionsglobal.local): Oracle Secure Backup and NDMP services are available
    and from cllient server
    [root@isgmmlds250 ~]# obtool pingh isgmmlds06
    isgmmlds06 (address isgmmlds06): Oracle Secure Backup and NDMP services are available
    Error: can't connect to Oracle Secure Backup service daemon on isgmmlds06 (address 169.254.95.120) - operation timed out

  • Discrete job is finishing with status 'Complete-No Charges'

    Hi,
    Some of our discrete jobs are getting completed with no charges. I wanted to know the name of API/Package which is changing/updating the status of job as 'Completed-No Charges'.
    Regards,
    Jaspreet Singh

    Hi Jaspreet,
    Normally once all the activities on the job were done, then the job status will get changed to complete. As per my knowledge, there is no API for changing the job status to "Complete-No changes". If you want this to be analyzed, please generate the FND logs by setting the following profile options and then try to re-produce the issue . Once the log is generated, then we can analyze the log.
    1.Enable the INV and WIP profiles for debugging.
    FND: Debug Log Filename = (Make sure this is null)
    FND: Debug Log Enabled = Yes
    FND: Debug Log Level = Statement
    FND: Debug Log Module = WIP%
    2. run the below query and take a note of the output
         select max(log_sequence) from fnd_log_messages;
    3. Finish the job
    4. Once completed run the following sql script:
         select message_text from fnd_log_messages where log_sequence> '&Log_seq received from step 2';
    5. Upload the the SQL output (which you got from setp4) generated from the above sql script
    Edited by: 813411 on Mar 28, 2012 7:43 PM

  • While creating a PO I want to put old PO refrence with status Open or Close

    Hi,
    While creating a new PO I want to put old PO refrence with status Open or Closed.
    please Suggest How to configure in ME21n.
    Regards,
    Himanshu

    Hi Himanshu ,
               Do clear whether Both ( Old & New PO's ) are Interlinked with Each Other . If Yes then How.
    Or You are terming your Legacy PO's as Old Po's and SAP Po's as New PO's.
    Please Specify so that relevant field can be determined in SAP as per its Usage.
    Regards
    Honey

  • No session found with status "New" or "Error"

    Hi,
    I put the statement after the CLOSE GROUP to process the BDC automatically:
      SUBMIT RSBDCSUB AND RETURN
             EXPORTING LIST TO MEMORY
             WITH MAPPE = SESSION.
             WITH VON = SY-DATUM
             WITH BIS = L_NEXT_DAY
             WITH Z_VERARB = 'X'
             WITH FEHLER = ' '.
    And when I ran it I got an error that says
    <i>No session found with status "New" or "Error"</i>
    When I go to SM35, I see the session in the 'New' tab.  How can I get this to process completely without manual intervention or first thing first no error from running the program?
    Thanks,
    Will

    Hi Rob,
    I will try the COMMIT. I think because I processing mutltiple GS01 transaction in one program.
    Hi Sudheer,
    I am actually usinng the INCLUDE that was given to me when I did the recording.  Here is the complete code from the include.
    ***INCLUDE BDCRECX1.
    for programs doing a data transfer by creating a batch-input session
    and
    for programs doing a data transfer by CALL TRANSACTION USING
    SELECTION-SCREEN BEGIN OF LINE.
      PARAMETERS SESSION RADIOBUTTON GROUP CTU.  "create session
      SELECTION-SCREEN COMMENT 3(20) TEXT-S07 FOR FIELD SESSION.
      selection-screen position 45.
      PARAMETERS CTU RADIOBUTTON GROUP  CTU.     "call transaction
      SELECTION-SCREEN COMMENT 48(20) TEXT-S08 FOR FIELD CTU.
    SELECTION-SCREEN END OF LINE.
    SELECTION-SCREEN BEGIN OF LINE.
      SELECTION-SCREEN COMMENT 3(20) TEXT-S01 FOR FIELD GROUP.
      selection-screen position 25.
      PARAMETERS GROUP(12).                      "group name of session
      SELECTION-SCREEN COMMENT 48(20) TEXT-S05 FOR FIELD CTUMODE.
      selection-screen position 70.
      PARAMETERS CTUMODE LIKE CTU_PARAMS-DISMODE DEFAULT 'N'.
                                          "A: show all dynpros
                                          "E: show dynpro on error only
                                          "N: do not display dynpro
    SELECTION-SCREEN END OF LINE.
    SELECTION-SCREEN BEGIN OF LINE.
      SELECTION-SCREEN COMMENT 3(20) TEXT-S02 FOR FIELD USER.
      selection-screen position 25.
      PARAMETERS: USER(12) DEFAULT SY-UNAME.     "user for session in batch
      SELECTION-SCREEN COMMENT 48(20) TEXT-S06 FOR FIELD CUPDATE.
      selection-screen position 70.
      PARAMETERS CUPDATE LIKE CTU_PARAMS-UPDMODE DEFAULT 'L'.
                                          "S: synchronously
                                          "A: asynchronously
                                          "L: local
    SELECTION-SCREEN END OF LINE.
    SELECTION-SCREEN BEGIN OF LINE.
      SELECTION-SCREEN COMMENT 3(20) TEXT-S03 FOR FIELD KEEP.
      selection-screen position 25.
      PARAMETERS: KEEP AS CHECKBOX.       "' ' = delete session if finished
                                          "'X' = keep   session if finished
      SELECTION-SCREEN COMMENT 48(20) TEXT-S09 FOR FIELD E_GROUP.
      selection-screen position 70.
      parameters E_GROUP(12).             "group name of error-session
    SELECTION-SCREEN END OF LINE.
    SELECTION-SCREEN BEGIN OF LINE.
      SELECTION-SCREEN COMMENT 3(20) TEXT-S04 FOR FIELD HOLDDATE.
      selection-screen position 25.
      PARAMETERS: HOLDDATE LIKE SY-DATUM.
      SELECTION-SCREEN COMMENT 51(17) TEXT-S02 FOR FIELD E_USER.
      selection-screen position 70.
      PARAMETERS: E_USER(12) DEFAULT SY-UNAME.    "user for error-session
    SELECTION-SCREEN END OF LINE.
    SELECTION-SCREEN BEGIN OF LINE.
      SELECTION-SCREEN COMMENT 51(17) TEXT-S03 FOR FIELD E_KEEP.
      selection-screen position 70.
      PARAMETERS: E_KEEP AS CHECKBOX.     "' ' = delete session if finished
                                          "'X' = keep   session if finished
    SELECTION-SCREEN END OF LINE.
    SELECTION-SCREEN BEGIN OF LINE.
      SELECTION-SCREEN COMMENT 51(17) TEXT-S04 FOR FIELD E_HDATE.
      selection-screen position 70.
      PARAMETERS: E_HDATE LIKE SY-DATUM.
    SELECTION-SCREEN END OF LINE.
    SELECTION-SCREEN SKIP.
    SELECTION-SCREEN BEGIN OF LINE.
      SELECTION-SCREEN COMMENT 1(33) TEXT-S10 FOR FIELD NODATA.
      PARAMETERS: NODATA DEFAULT '/' LOWER CASE.          "nodata
    SELECTION-SCREEN END OF LINE.
    SELECTION-SCREEN BEGIN OF LINE.
      SELECTION-SCREEN COMMENT 1(33) FOR FIELD SMALLLOG.
      PARAMETERS: SMALLLOG as checkbox.  "' ' = log all transactions
                                         "'X' = no transaction logging
    SELECTION-SCREEN END OF LINE.
      data definition
          Batchinputdata of single transaction
    DATA:   BDCDATA LIKE BDCDATA    OCCURS 0 WITH HEADER LINE.
          messages of call transaction
    DATA:   MESSTAB LIKE BDCMSGCOLL OCCURS 0 WITH HEADER LINE.
          error session opened (' ' or 'X')
    DATA:   E_GROUP_OPENED.
          message texts
    TABLES: T100.
      at selection screen                                                *
    AT SELECTION-SCREEN.
    group and user must be filled for create session
      IF SESSION = 'X' AND
         GROUP = SPACE OR USER = SPACE.
        MESSAGE E613(MS).
      ENDIF.
      open dataset                                                       *
    FORM OPEN_DATASET USING P_DATASET.
      OPEN DATASET P_DATASET
                   FOR INPUT IN TEXT MODE
                   ENCODING DEFAULT.
      IF SY-SUBRC <> 0.
        WRITE: / TEXT-E00, SY-SUBRC.
        STOP.
      ENDIF.
    ENDFORM.
      close dataset                                                      *
    FORM CLOSE_DATASET USING P_DATASET.
      CLOSE DATASET P_DATASET.
    ENDFORM.
      create batchinput session                                          *
      (not for call transaction using...)                                *
    FORM OPEN_GROUP.
      IF SESSION = 'X'.
        SKIP.
        WRITE: /(20) 'Create group'(I01), GROUP.
        SKIP.
      open batchinput group
        CALL FUNCTION 'BDC_OPEN_GROUP'
             EXPORTING  CLIENT   = SY-MANDT
                        GROUP    = GROUP
                        USER     = USER
                        KEEP     = KEEP
                        HOLDDATE = HOLDDATE.
        WRITE: /(30) 'BDC_OPEN_GROUP'(I02),
                (12) 'returncode:'(I05),
                     SY-SUBRC.
      ENDIF.
    ENDFORM.
      end batchinput session                                             *
      (call transaction using...: error session)                         *
    FORM CLOSE_GROUP.
      IF SESSION = 'X'.
      close batchinput group
        CALL FUNCTION 'BDC_CLOSE_GROUP'.
        WRITE: /(30) 'BDC_CLOSE_GROUP'(I04),
                (12) 'returncode:'(I05),
                     SY-SUBRC.
      ELSE.
        IF E_GROUP_OPENED = 'X'.
          CALL FUNCTION 'BDC_CLOSE_GROUP'.
          WRITE: /.
          WRITE: /(30) 'Fehlermappe wurde erzeugt'(I06).
          E_GROUP_OPENED = ' '.
        ENDIF.
      ENDIF.
    ENDFORM.
           Start new transaction according to parameters                 *
    FORM BDC_TRANSACTION USING TCODE.
      DATA: L_MSTRING(480).
      DATA: L_SUBRC LIKE SY-SUBRC.
    batch input session
      IF SESSION = 'X'.
        CALL FUNCTION 'BDC_INSERT'
             EXPORTING TCODE     = TCODE
             TABLES    DYNPROTAB = BDCDATA.
        IF SMALLLOG <> 'X'.
          WRITE: / 'BDC_INSERT'(I03),
                   TCODE,
                   'returncode:'(I05),
                   SY-SUBRC,
                   'RECORD:',
                   SY-INDEX.
        ENDIF.
    call transaction using
      ELSE.
        REFRESH MESSTAB.
        CALL TRANSACTION TCODE USING BDCDATA
                         MODE   CTUMODE
                         UPDATE CUPDATE
                         MESSAGES INTO MESSTAB.
        L_SUBRC = SY-SUBRC.
        IF SMALLLOG <> 'X'.
          WRITE: / 'CALL_TRANSACTION',
                   TCODE,
                   'returncode:'(I05),
                   L_SUBRC,
                   'RECORD:',
                   SY-INDEX.
          LOOP AT MESSTAB.
            SELECT SINGLE * FROM T100 WHERE SPRSL = MESSTAB-MSGSPRA
                                      AND   ARBGB = MESSTAB-MSGID
                                      AND   MSGNR = MESSTAB-MSGNR.
            IF SY-SUBRC = 0.
              L_MSTRING = T100-TEXT.
              IF L_MSTRING CS '&1'.
                REPLACE '&1' WITH MESSTAB-MSGV1 INTO L_MSTRING.
                REPLACE '&2' WITH MESSTAB-MSGV2 INTO L_MSTRING.
                REPLACE '&3' WITH MESSTAB-MSGV3 INTO L_MSTRING.
                REPLACE '&4' WITH MESSTAB-MSGV4 INTO L_MSTRING.
              ELSE.
                REPLACE '&' WITH MESSTAB-MSGV1 INTO L_MSTRING.
                REPLACE '&' WITH MESSTAB-MSGV2 INTO L_MSTRING.
                REPLACE '&' WITH MESSTAB-MSGV3 INTO L_MSTRING.
                REPLACE '&' WITH MESSTAB-MSGV4 INTO L_MSTRING.
              ENDIF.
              CONDENSE L_MSTRING.
              WRITE: / MESSTAB-MSGTYP, L_MSTRING(250).
            ELSE.
              WRITE: / MESSTAB.
            ENDIF.
          ENDLOOP.
          SKIP.
        ENDIF.
    Erzeugen fehlermappe ************************************************
        IF L_SUBRC <> 0 AND E_GROUP <> SPACE.
          IF E_GROUP_OPENED = ' '.
            CALL FUNCTION 'BDC_OPEN_GROUP'
                 EXPORTING  CLIENT   = SY-MANDT
                            GROUP    = E_GROUP
                            USER     = E_USER
                            KEEP     = E_KEEP
                            HOLDDATE = E_HDATE.
             E_GROUP_OPENED = 'X'.
          ENDIF.
          CALL FUNCTION 'BDC_INSERT'
               EXPORTING TCODE     = TCODE
               TABLES    DYNPROTAB = BDCDATA.
        ENDIF.
      ENDIF.
      REFRESH BDCDATA.
    ENDFORM.
           Start new screen                                              *
    FORM BDC_DYNPRO USING PROGRAM DYNPRO.
      CLEAR BDCDATA.
      BDCDATA-PROGRAM  = PROGRAM.
      BDCDATA-DYNPRO   = DYNPRO.
      BDCDATA-DYNBEGIN = 'X'.
      APPEND BDCDATA.
    ENDFORM.
           Insert field                                                  *
    FORM BDC_FIELD USING FNAM FVAL.
      IF FVAL <> NODATA.
        CLEAR BDCDATA.
        BDCDATA-FNAM = FNAM.
        BDCDATA-FVAL = FVAL.
        APPEND BDCDATA.
      ENDIF.
    ENDFORM.
    Thanks
    Will
    I awarded points to everyone. Thanks so much.
    Message was edited by:
            Will Ferrell

  • Open and close multisim contact with LabVIEW

    Can I open and close multisim contact with labview and read the receptor estatus (p.e. lamp)?
    Thanks.
    Attachments:
    Dibujo.JPG ‏13 KB

    Hi Guddan,
    I created a RFC having a query which is taking a long time to execute. So i want to close RFC connection with portals which is via java connector(JCO) before that query and open the connction again after that query.
    I guess i will need to understand your requirement a little more in detail, as i understand you have an RFC which has a query within to fetch some data and is taking a long time to do so. In the meantime you don't want to keep the connection open?
    My question would be, Is the role of this RFC to only execute the query and fetch the data or does it do something else?
    If it does other things and these are independent of the query execution, then you can span a parallel call within the RFC to execute the query and in the meantime the RFC does the other things (or vice versa) hence reducing the overall time taken.
    If the sole purpose of this RFC is to execute the query, then you will not be able(i mean to say there is no simple and direct way of doing this) to close the connection after the Query is started and re-establish the connection after its execution, for a simple reason that - how will you know if the query has completed it's execution, so that you can establish the connection back.
    Alternate solutions, make this a two way asynchronous call, 1) You invoke the RFC asynchronously and close the connection, the RFC in turn will execute the query and transfer the data to JCO via another RFC call.
    If this needs to be a synchronous call, then you will need to optimize the query to its best.
    Regards,
    Chen

  • Open and close RFC connection with portals...

    Hi Experts,
    I created a RFC having a query which is taking a long time to execute. So i want to close RFC connection with portals which is via java connector(JCO)  before that query and open the connction again after that query.
    Please advice is it possible to achieve this. If yes, then how.
    Regards,
    Guddan

    Hi Guddan,
    I created a RFC having a query which is taking a long time to execute. So i want to close RFC connection with portals which is via java connector(JCO) before that query and open the connction again after that query.
    I guess i will need to understand your requirement a little more in detail, as i understand you have an RFC which has a query within to fetch some data and is taking a long time to do so. In the meantime you don't want to keep the connection open?
    My question would be, Is the role of this RFC to only execute the query and fetch the data or does it do something else?
    If it does other things and these are independent of the query execution, then you can span a parallel call within the RFC to execute the query and in the meantime the RFC does the other things (or vice versa) hence reducing the overall time taken.
    If the sole purpose of this RFC is to execute the query, then you will not be able(i mean to say there is no simple and direct way of doing this) to close the connection after the Query is started and re-establish the connection after its execution, for a simple reason that - how will you know if the query has completed it's execution, so that you can establish the connection back.
    Alternate solutions, make this a two way asynchronous call, 1) You invoke the RFC asynchronously and close the connection, the RFC in turn will execute the query and transfer the data to JCO via another RFC call.
    If this needs to be a synchronous call, then you will need to optimize the query to its best.
    Regards,
    Chen

  • How to find out the projects with status "Invalid"?

    I'm new to Oracle Projects -OP. We are on 12.0.4. This' my new job.
    I have a task of "Remove projects with status 'Invalid' ".
    Questions:
    How to access the OP forms to verify the existent of the invalid projects?
    What are the PA tables having the status info -- I mean those showing the status with 'Invalid'?
    Thanks A lot.
    an apps dba

    I could not find a sample for the DELETE_PROJECT. I have coded the delete project by modifying the sample of the CREATE_PROJECT.
    -- delete a project with the status INVALID shown in pa_project_statuses.project_status_name
    --set serveroutput on size 20000
    DECLARE
      -- Variables needed for API standard parameters
      l_api_version_number          NUMBER := 1.0;
      l_commit               VARCHAR2(1) := 'F';
      l_return_status          VARCHAR2(1);
      l_init_msg_list          VARCHAR2(1) := 'F';
      l_msg_count               NUMBER;
      l_msg_index_out          NUMBER;
      l_msg_data               VARCHAR2(2000);
      l_data               VARCHAR2(2000);
      l_pm_product_code          VARCHAR2(10);
      l_responsibiity_id          NUMBER;
      l_user_id               NUMBER;
      l_pm_project_reference     PA_PROJECT_PUB.PROJECT_IN_REC_TYPE;
      l_pa_project_id          PA_PROJECT_PUB.PROJECT_IN_REC_TYPE;
      API_ERROR               EXCEPTION;
    BEGIN
    -- GET GLOBAL VALUES
      select user_id, responsibility_id
        into l_user_id, l_responsibiity_id
        from pa_user_resp_v
       where user_name = 'J23N';          -- need to get from Apps
    --SET GLOBAL VALUES
        pa_interface_utils_pub.set_global_info(
        p_api_version_number     => 1.0,
           p_responsibility_id     => l_responsibiity_id,
           p_user_id          => l_user_id,
        p_msg_count          => l_msg_count,
           p_msg_data          => l_msg_data,
           p_return_status          => l_return_status);
    -- PRODUCT RELATED DATA
      l_pm_product_code := 'R_INVALID';           -- can be user defined
    -- PRODUCT DATA (PROJECT_IN_REC_TYPE)
       l_pm_project_reference.pm_project_reference := null;
       l_pa_project_id.pa_project_id := 1001;
    --INIT_CREATE_PROJECT
      --pa_project_pub.init_project;
      dbms_output.put_line('Before delete_project');
    --DELETE_PROJECT
      pa_project_pub.delete_project(
         p_api_version_number => l_api_version_number,
         p_commit                    => l_commit,
         p_init_msg_list         => l_init_msg_list,
         p_msg_count                => l_msg_count,
         p_msg_data                  => l_msg_data,
         p_return_status         => l_return_status,
         p_pm_project_code       => l_pm_product_code,
      p_pm_project_reference => l_pm_project_reference,
      p_pa_project_id         => l_pa_project_id 
    -- Check for errors
      if l_return_status != 'S'
      then
        raise API_ERROR;
      end if;
      dbms_output.put_line('Deleted Project Id: ' || l_pa_project_id.pa_project_id);
      --dbms_output.put_line('Deleted Project Number: ' || l_project_out.pa_project_number);
      Commit;
    --HANDLE EXCEPTIONS
    -- Get the error message that were returned if it did not complete sucessfully
      EXCEPTION
      When API_ERROR then
        dbms_output.put_line('An API_ERROR occurred');
        if l_msg_count >= 1
        then
          for i in 1..l_msg_count loop
            pa_interface_utils_pub.get_messages(
              p_msg_data      => l_msg_data,
              p_encoded     => 'F',
              p_data           => l_data,
              p_msg_count      => l_msg_count,
              p_msg_index_out => l_msg_index_out);
            dbms_output.put_line('error message: ' || l_data);
          end loop;
          rollback;
        end if;
      When OTHERS then
        dbms_output.put_line('An error occured, sqlcode = ' || sqlcode);
        if l_msg_count >= 1
          then
          for i in 1..l_msg_count loop
            pa_interface_utils_pub.get_messages(
              p_msg_count      => l_msg_count,
              p_encoded     => 'F',
              p_msg_data      => l_msg_data,
              p_data           => l_data,
              p_msg_index_out => l_msg_index_out);
            dbms_output.put_line('error message: ' || l_data);
          end loop;
          rollback;
        end if;
    END;Can anyone with the experience of PA_PROJECT_PUB make comment on this Delete Project block? On the struncture level is it correct?
    I run it and get
      pa_project_pub.delete_project(
    ERROR at line 48:
    ORA-06550: line 48, column 3:
    PLS-00306: wrong number or types of arguments in call to 'DELETE_PROJECT'
    ORA-06550: line 48, column 3:
    PL/SQL: Statement ignored
    Please make your comment on the structure (the logic)  of the delete project before providing the advice on the debug.
    I would like to make sure the logic is correct first.
    TIA

Maybe you are looking for

  • How to install abode flash player  in my pc

    sir please guide me  how to install abode flash player  in my pc

  • Opening .mov files created in iphoto

    I have read a lot of the post on this subject, and I would like to narrow down exactly my issue with importing .mov files. I have created a slide show in iphoto, I wanted to get it into imovie to add some titles. I am new to Mac so I paid for one to

  • Payroll not possible because data is missing: WPBP: 01 SV: 00 ST: 00

    Hi, I have created a new org structure with a set of employee. I have maintained all the needed infotypes ( 0000,0001,0003,0007,0008..) When i try to run payroll for those emp's, im getting the error message: <u>Payroll not possible because data is m

  • How export data in Excel From Visual Composer

    Hay everybody, I would like to export my data result from Visual Composer to Excel. I've tried with an export data buton, but the exported file has a very bad format in Excel. I've tried an hyperlink buton which contain the Reptname data of the query

  • Error al iniciar Adobe Photoshop CS5

    Hola a todos,   Instale el Adobe Photoshop CS5 en mi equipo al pie de la letra correctamente, mi equipo cumple con los requisitos para la aplicacion, inicia todas las aplicaciones que venian en el pack (Adobe Bridge CS5, Adobe Extension Manager CS5,