PM Order is getting blocked by RFC user

Hi all, i'm facing the following problem. We've an FM that is invoked externally using an RFC user, that is used to change the status of an specific order. This FM first makes the ENQUEUE of the given object, with the following data:
    CALL FUNCTION 'ENQUEUE_ESORDER'
      EXPORTING
        mode_aufk            = 'S'
        aufnr                     = number
        _wait                     = 'X'
      EXCEPTIONS
        foreign_lock           = 1
        system_failure       = 2
        OTHERS               = 3 .
Then calls the standard FM STATUS_CHANGE_FOR_ACTIVITY and after that executes the
    CALL FUNCTION 'DEQUEUE_ESORDER'
         EXPORTING
              aufnr = number.
After that we have a COMMIT WORK.
Somehow and with no explicit reason, the given order remains locked by RFC user, sometimes for several hours.
This happen in Production System. We'd never get this kind of situation on pre-production.
Does anyone have any clue about this ???
Thanks for your kind attention.
Regards,

Hi Rahul,
Thanks for your answer. But it seems to me that the problem is not a question of authorization, because this same user is used in the same system for another processes.
For example, today we have an Order that is blocked in SM12 since 12:47:12 and the processes for closing it still remains active and waiting, but in another way for Orders of the same type during today, this situation doesn't occur and the respective processes were finished sucessfully.
Thanks anyway.
Regards,

Similar Messages

  • Order not getting saved with RFC user

    Hi CRM experts,
    We have custom report to update payment card details in CRM order. For an error order when I try to update the card details in CRM it successfully deactivates the "Contains Error(I1030)" status and saves the order.
    Whereas the same error order when I try to update the card details through external system, the user is RFC user, the program does not deactivates the status I1030 and the order gets saved with error.
    Initially I thought it is an authorization issue with RFC user, so I tried applying SAP_ALL access to RFC user but it did not work.
    Kindly suggest the possible solution.
    Thanks in advance
    Meenu.

    Hi Meenu,
    The standard one order framework works in such a way that when any changes to any object like PARTNER , HEADER , ITEMS , CARDS etc take place, then after changes done, the system checks for any inconsistency for that particular object and displays error messages accordingly.
    At the next change, the check runs again and the messages are removed. The checks are run through the standard event framework of BEFORE and AFTER. So in case the error messages are not getting removed, it means that these events are not getting triggered properly. I think that you are using individual FM for changing the details which could be something like CRM*CARD*MAINTAIN*OW*, you can try using CRM_ORDER_MAINTAIN, as this FM triggers all events correctly.
    /Hasan

  • Sales order should get block if XYZ payment terms is used

    Dear Expert,
    The requirement is like,
    If user add payment term XYZ  manually in salse order then that sales order should get block for review purpose.
    Note:
    if user add that payment term in sales order client want that order should block no matter what reason ,  here client not concern about credit limit and any outstanding from customer side ,
    Thanks in advance
    hanumant

    Hi,
    You need to block orders with payment terms XYZ, or only when user changes from ABC to XYZ??
    If first one is your requirment, you can do with userexit - USEREXIT_SAVE_DOCUMENT, and you need to create status profile for sales document type and assign to order type, in status profile put status AUTO - automatically approved, LOCK - when XYZ is payments terms it wil not and not create delivery & REJC- Rejected, when approver dont want to approve he can reject.
    In sales order userexit you need write logic when paytemnt terms is XYZ then put status as LOCK.
    New repor need to create to approve LOCKed orders so that user execute and approves or rejects.
    If only user change to XYZ, then you need to write logic in prepare userexit, but it will be tricy, need to store values in tempapory memory, ceck with abaper,

  • Credit card Orders are getting blocked with credit check

    Hi All
    In our system, If customer's credit exposure is greater then 100 % then all the credit card orders are getting blocked with credit check even though it has valid authorization. Is this sap standard behaviour?....is there any setting that will always exclude credit card orders when it has valid authorization
    Thanks in advance for looking into this

    Hi,
    In OVA8- under document controlling- check the existing routinue 1 for orders etc., else modify as per your requirement
    Thanks
    Chidamabram

  • Sales orders from CRM are not getting blocked with credit check

    Hi All
    I have configured ECC in such a way that , if cutomer does not have enough creditlimt, then those sales order will get blocked. Our orders will come from CRM, and some times some orders are not getting blocked with credit check even though the customer does not have credit limit. And at the same time some orders are blocked with credit check...what are all the things that should be checked to diagnose the problem.
    Thanks in advance for looking into this

    Please check if you have any custom code/user exit in ECC which uses transaction code (VA01 , VA02 or VA05 etc) prior to invoking credit checks. 
    Orders created via CRM will not have transaction code set (SY-TCODE).

  • How to get details Whenever an order has been blocked .

    Dear friends,
                            Please provide me a functional spec for the below requirement. I  dont have proper functional input So depending on SDN .
    Need to write  a program and schedule it so that ............
    - Whenever an order has been blocked due to the following reasons
    u2022     Credit limit
    u2022     Outstanding balance
    u2022     Order due
    u2022     Balance credit limit
    A output should be published with  following details
    u2022     Customer name
    u2022     SAP order
    u2022     Credit limit
    u2022     Outstanding
    u2022     Order due
    u2022     Balance credit limit
    Please help me with the table fields and the logic need to implement.
    Your support is highly requested and rewards.
    Thanks.

    Hi,
    In Sale order , you have delivery /Billing block.
    LIFSK
    FAKSK are the respective fields in VBAK table.
    On the input screen ( Selection -screen)
    Give date range and the sales area, Credit control area as input parameter.
    Pick up all the sales orders (VBAK-Document Category should be ( VBTYP) should be 'C' and  the delivery/ Billing block should be the required ones.
    You will only find the code of the block in VBAK table. The description of the block will be in the table TVLS/TVLST.
    You can get the sold to party also in VBAK table.
    From the KUNAG in VBAK table, get the customer details ( Name Etc..) From KNA1.
    The credit details of the customer( KUNAG) will be in the table KNKK and KNKA.
    This program needs to be scheduled on daily basis and the output needs to be sent via E-mail to the concerned users.
    ( Use the FM SO_NEW_DOCUMENT_SEND_API to geneare the e-mail.).
    Regards,
    Sai

  • RFC user get's locked

    Hi experts,
                      We are using rfc_cua user for RFC communication between R/3 prd server and E-Rec prd server. Here issue is frequesntly rfc_cua user get's locked automatically. if we unlock the id it will work fine for one or two day and again it will get locked, There is no same amount of time  gap between locking of this ID every time time. Kindly help me how to trace this issue.
    Regards,
    Sampath.

    Are you using CUA or rfc user has been named just like that & what is E-Rec prd server .. is it SAP or something else ?
    Dont u find something in change log of this user ??
    thanks
    ashish

  • Report for released orders from credit block

    Dear Friends,
    Can you tell me any report which can give us the list of released sales orders from credit block with user ID (who released) and date (when released).  If no standard report is availble then please give me the table where this data gets stored, so that I can create a query.
    Thanks in Advance,
    Sreehari.

    Dear Krishnan,
    Thank you very much for your immediate response...................
    With VBUK-CMGST (D) we can get the list of orders which were released from credit block, but I require the ID and Date (who released and when relaesed).
    I hope my requirement is clear.
    Thanks & Regards,
    Sreehari.

  • Check if the Sales Order is credit block.

    Hello Everyone,
    I have a requirement related to third party sales order and delivery. In the first system, a sales is created and then the PO gets created. Upon the creation of the PO a IDOC gets generated. The inbound IDOC in the other system triggers and a sales order gets created. The requirement is that if sales order in the first system is on credit block then automatically the sales order in the second system should go on delivery block.
    The solution that I have thought is that when the IDOC gets created after PO generation there itself add a flag to IDOC in case of credit block in sales order. BUT HOW TO CHECK CREDIT BLOCK of the SALES ORDER IN THE CUSTOMER EXIT?
    Any help is appreciable.

    Hi Rahul,
    Need some more clarification on why sales order is created in the second system, if it is a third party process ?
    are you creating delivery from the corresponding sales order of second system to replenish sales order of first system ?
    are you using standard IDOC type for creating Sales order from PO ?, if so check the Corresponding Function module which may have user exists
    check Function module : IDOC_OUTPUT_ORDRSP
    At first system, if the sales order is credit block you can restrict creation of PR-->PO in the first system itself, this is a standard Functionality
    This would be easier than looking for user and coding in IDOC function module
    try and revert
    thanks
    santosh

  • Changing RFC user

    Dear All,
    We are using SRM classic scenario process ( SRM 5)
    Accordig to SAP Note 938411 , we have to change the RFC user to RFCUSER ,
    (  It was SAPRFC) ,
    This change caused us a problem on creating SC ( Runtime Error " GETWA_NOT_ASSIGNED" on ST22).
    We appreciate to get more information on this issue.
    Best Regards,
    Moshe
    Message was edited by:
            Moshe Stein
    Message was edited by:
            Moshe Stein
    Message was edited by:
            Moshe Stein

    Hi
    <u>Which R/3 system version are you using ?</u>
    Please ensure the following settings have made made correctly in R/3 back-end system.
    <b>Be sure only ht follwoing changes as suggested in SAP OSS Note 938411  are done.</b>
    <u>FUNCTION BAPI_GOODSMVT_CREATE</u>
    <b>Delta 001Context Block </b>
    * map head to internal structure **************************************
      CALL FUNCTION 'MAP2I_B2017_GM_HEAD_01_TO_IMKP'
           EXPORTING
                BAPI2017_GM_HEAD_01 = GOODSMVT_HEADER
           CHANGING
                IMKPF               = S_IMKPF.
    <b>Delete Block</b> 
       S_IMKPF-USNAM = SY-UNAME.
    <b>Insert Block </b>
       IF SY-UNAME = 'RFCUSER'.
         S_IMKPF-USNAM = GOODSMVT_HEADER-PR_UNAME.
       ELSE.
         S_IMKPF-USNAM = SY-UNAME.
    Don't forget to activate the Function module   <u>FUNCTION BAPI_GOODSMVT_CREATE</u> after making the changes in R/3 backend.
    Also, Please read OSS Note for RFC User details.
    Note 642202 - EBP user admin: RFC user profile in back end/plug-in
    Do let me know.
    Hope this will definitely help.
    Regards
    - Atul

  • No creation if material is missing, Still IW31 ( Work order ) is getting created

    Hi Experts,
    I reviewed few discussions and unable to get the correct answer.
    I did the configuration for Material availability check on Order Creation with Path ..
    Plant Maintenance and Customer Service - Maintenance and Service Processing - Functions and Settings for Order Types - Availability Check for Material, PRTs, and Capacities - Define Inspection Control
    In this I assigned my order type with Business Function 1.
    Material Availability :
            Plant                      XX01
           Order Type            XX09
           Availability Check    1    Check availability during order creation
           Checking Rule        01 No Blocked Stocked - All rec/issue elmts
           Component Check Type    Blank
           Collect. conversion  3  No creation if material is missing
    PRT Availability :
              No Check ( Not checked )
               Checking Rule        01 Status check
               Collect. conversion  Blank
    Capacity check
              No Check ( Not checked )
              Overall profile Blank
              Collect. conversion  Blank
    My question is:
    MMBE for that Material ZERO.
    Before Config,
       when I create Order manually IW31 with a components , Status is showing Mat.availability not checked ( MANC ).
    After Config.
       when I create Order manually IW31 with a components , Status is showing     Material committed MACM.
    When Configured for [Collect. conversion  3  No creation if material is missing], still order is getting created.
    I changed to 2 or 1 , still order is getting created with no difference
    But its going to a confirmation proposals asking me to do
    either continue / ATP quantity / Scope of check.
    If I select 1 or 2, it should show Missing Parts status or if select 3, it should stop creation of Order. But its not happening as expected.
    Please let me know where I am missing Config.

    Hello
    Q1 )
    If I change option 1 or 2 :
    1 User decides on creation if material is missing
    Answer:If Material is not Created the system wont allow to add you that material until unless you create the material master created.I am considering here that you don't have material master
    2 Creation even though no material is available
    Answer:It will allow you to create the work order.i am considering here that you don't have sufficient stock.
    Q2) what should be the expected Status for Option 1 or 2.
    Before Config it was showing
    Status is showing Mat.availability not checked ( MANC ).
    After Option 1 or 2, Expected Status ?
    Answer: You need to enter value 02 on the Availability Check field on the MRP3 tab of Material Master via TC MM02.
    you will be  get Material committed MACM after Saving the Order.
    Br
    Rakesh

  • RFC Users  & Authorisations

    In the profiles of the  RFC users it was noticed  that SAP_ALL was present. In order  to remove this, :
    1.its needed to know what other authorisations need to be assigned.
    2. This is the bottle neck. How does one understand which are the activites  that are being performed.
    Thanks

    george G wrote:george G wrote:george G wrote:george G wrote:>
    > Now here we trip  on a very important question point...How does the Unkown body of users get acess to the RFC id /pwd ?
    Chances are good that they do not need the id / pwd. They only need the name of the RFC destination (for which the id / pwd is saved in SM59, already) and the ability to run "the" or "an" interface (or generate a dialog session).
    Another option is not to save the logon data in the destination, and request that the current user running the interface in the source enter their own (valid) id / pwd for the target.
    >
    > Unless its compromised personally ?
    Not necessarily necessary, but that does often add a new dimension to the risk, as the folks have a wider choice of sources from which they can "run an interface" using the id, and a wider group of folks (who talk to each other...).
    >
    > What specifics are the potential impacts the compromised id do ?
    You mentioned before that it has SAP_ALL?? Go figure what that means...
    >
    > On the sidetrack , the auditors are moved  with RFC users !!  Why would that be , to my auditor I put forth the question the answer was " they are not Dialogue users !"
    See above (SAP_ALL). The user could change itself to a dialog user... I can think of approximatly 300 thousand reasons (just off the top of my head) why your auditors are <removed_by_moderator>
    Most likely they have, much like the interface user owner you described before, been told this and have not questioned it. Or the thought never crossed their minds that the id would not be required at all if it cannot "logon"...

  • Order Confirmation - Generate IDoc even if the order is credit block - How?

    Hi EDI Experts,
    I have a simple requirement. I have no requirement set up in the output determination procedure for Order Confirmation. At this scenario, i am getting outbound 855 IDoc for all the orders except, the orders with Credit block on it.
    The client wants to send out the order even if it is credit blocked. Is there a way that i can do this?? Any suggestions ??? Your views are most welcome.
    Thanks and Waiting for youy replies,
    Creasy Matt

    Hi,
    I'm not sure, whether it is apt to ur requirement.
    We can remove the Credit block by configuring the 'Sales Order Types'.
    from the Tcode: VOV8, 
    Select ur order type (OR), click on the details icon
    there u can find the 'Delivery block' at the Shipping tab.
    thanks\
    Mahesh

  • Sales order not getting created in background.

    I am using user exit to write my code to create sales order of basic type ORDERS05 with function module idoc_input_orders, and process code ORDE with my own message type.
    If I run the program in foreground message KUWEV-KUNNR is not an input field comes.
    IF I press enter the sales order is getting created with staus 53..
    But in background ERROR MESSAGE comes as:
    Function module not allowed: IDOC_INPUT_ORDERS.
    Please give suggestions.

    Dear Sir,
    Please check the FI Period is opened and FI account Number is opened.
    Thanks and Regards
    N.soma Sundaram

  • [svn] 4634: First part of glue code for allowing Halo components to use the new Text Layout Framework , in order to get functionality such as bidirectional text.

    Revision: 4634
    Author:   [email protected]
    Date:     2009-01-22 17:38:56 -0800 (Thu, 22 Jan 2009)
    Log Message:
    First part of glue code for allowing Halo components to use the new Text Layout Framework, in order to get functionality such as bidirectional text.
    Background:
    TLF is making this possible by implementing a TLFTextField class. It is a Sprite that uses TLF to implement the same properties and methods as the legacy TextField class in the Player. Thanks to the createInFontContext() bottleneck method in UIComponent, it can be used by a properly-written Halo component (such as those in Flex 3) without any modifications to the component.
    Note: Text should render similarly -- but is unlikely to render identically -- when a component uses TLFTextField vs. TextField. The width and height may be different, affecting layout; text could wrap differently; etc. This is a fact-of-life based on the fact that TLF/FTE and TextField are completely different text engines.
    Whether a Halo component uses TLF or not to render text will be determined in Flex 4 by a new style, textFieldClass. (Gumbo components always use TLF.)
    TLFTextField is currently only partially implemented. It does not yet support scrolling, selection, editing, multiple formats, or htmlText. Therefore it can only be used for simple display text, such as a Button label.
    Details:
    The TextStyles.as bucket 'o text styles now includes a non-inheriting textFieldClass style. It can be set to either mx.core.UITextField or mx.core.UITLFTextField. These are the Flex framework's wrapper classes around the lower-level classes flash.text.TextField (in the Player) and its TLF-based workalike, flashx.textLayout.controls.TLFTextField.
    The global selector in defaults.css currently sets it to mx.core.UITextField using a ClassReference directive. For the time being, all Halo components will continue to use the "real" TextField.
    The new UITLFTextField is a copy of UITextField, except that it extends TLFTextField instead of TextField. This class has been added to FrameworkClasses.as because no classes in framework.swc have a dependency on it. It will get soft-linked into applcations via the textFieldClass style.
    The TLFTextField class currently lives in a fourth TLF SWC, textLayout_textField.swc. This SWC has been added to various build scripts. The external-library-path for building framework.swc now includes all four TLF SWCs, because UITLFTextField can't be compiled and linked without them. However, since they are external they aren't linked into framework.swc.
    Properly-written Halo UIComponents access their text fields only through the IUITextField interface, and they create text fields like this:
    textField = IUITextField(createInFontContext(UITextField));
    (The reason for using createInFontContext() is to support embedded fonts that are embedded in a different SWF.)
    The createInFontContext() method of UIComponent has been modified to use the textFieldClass style to determine whether to create a UITextField or a UITLFTextField.
    With these changes, you can now write code like
    to get two Buttons, the first of which uses UITextField (because this is the value of textFieldClass in the global selector) and the second of which uses UITLFTextField. They look very similar, which is good!
    Currently, both Buttons are being measured by using an offscreen TextField. A subsequent checkin will make components rendering using UITLFTextField measure themselves using an offscreen TLFTextField so that measurement and rendering are consistent.
    QE Notes: None
    Doc Notes: None
    Bugs: None
    Reviewer: Deepa
    Modified Paths:
        flex/sdk/trunk/asdoc/build.xml
        flex/sdk/trunk/build.xml
        flex/sdk/trunk/frameworks/projects/framework/build.xml
        flex/sdk/trunk/frameworks/projects/framework/defaults.css
        flex/sdk/trunk/frameworks/projects/framework/src/FrameworkClasses.as
        flex/sdk/trunk/frameworks/projects/framework/src/mx/core/UIComponent.as
        flex/sdk/trunk/frameworks/projects/framework/src/mx/styles/metadata/TextStyles.as
    Added Paths:
        flex/sdk/trunk/frameworks/projects/framework/src/mx/core/UITLFTextField.as

    Many of your points are totally legitimate.
    This one, however, is not:
    …To put it another way, the design of the site seems to be geared much more towards its regular users than those the site is supposedly trying to "help"…
    The design and management of the forums for more than five years have driven literally dozens of the most valuable contributors and "regulars" away from the forums—permanently.
    The only conclusion a prudent, reasonable person can draw from this state of affairs is that Adobe consciously and deliberately want to kill these forums by attrition—without a the PR hit they would otherwise take if they suddenly just shut them down.

Maybe you are looking for

  • Error in last step of copy database wizard

    Hi All, I am getting below mentioned error in copy database wizard. I am using SSMS 2012 to copy a database from one server to another server using attach and detach method. Been stuck in this issue for quite sometime. Please provide your insights...

  • Need Bapi for posting docuemtn through - FB60

    Hi Friends.. I need a Bapi for Transaction FB60.I tried with lot of option including BAPI_INCOMINGINVOICE_CREATE.But I didn't get a proper one. No Bapi have a Vendor input field.Plz help me to identify the right Bapi for FB60. Thanks Gowrishankar

  • How to iterate records

    i want to iterate all the records in Database. Which is the most efficient way to iterate records.

  • Is there anyone using wired 802.1x in production?

    I have 802.1x configured with PEAP and vlan assignment using the MS supplicant. I have hardcoded Machine Auth because Remote Desktop does not work with User Auth. (see my other posts) I have figured out how to change the Microsoft supplicant to PEAP

  • Database Layout Compromise

    I am on a short term assignment at a utility. The database in question is about 11G in size. It is V 8.1.6 on Open Alpha VMS V 7.2-1. It supports 11 applications, all low OLTP - high query applications. It is hot backed up/archived. Until yesterday,