DBIF_RSQL_INVALID_RSQL when creating a Purchase Order (ME21N)

Hi,
The system is generating a short dump DBIF_RSQL_INVALID_RSQL when a user tries to create a purchase order.
what could be the cause of this? i have analysed the short dump in st22 and looked at sm21 and st11 and they are giving very little detaill.
                                                                                Error in the module RSQL accessing the database interface.                                                                               
What happened?                                                                               
Error in ABAP application program.                                                                               
The current ABAP program "SAPLZMM_GET_ACT" had to be terminated because one of    
the                                                                               
statements could not be executed.                                                                               
This is probably due to an error in the ABAP program.                                                                               
What can you do?                                                                               
Print out the error message (using the "Print" function)                          
and make a note of the actions and input that caused the                          
error.                                                                               
To resolve the problem, contact your SAP system administrator.                    
You can use transaction ST22 (ABAP Dump Analysis) to view and administer          
termination messages, especially those beyond their normal deletion              
date.                                                                               
Error analysis                                                                               
An exception occurred. This exception is dealt with in more detail below  
. The exception, which is assigned to the class 'CX_SY_OPEN_SQL_DB', was  
neither                                                                  
caught nor passed along using a RAISING clause, in the procedure          
"ZMM_GET_ACT_PLN" "(FUNCTION)"                                           
Since the caller of the procedure could not have expected this exception  
to occur, the running program was terminated.                            
The reason for the exception is:                                          
The SQL statement generated from the SAP Open SQL Statement violates a    
restriction imposed by the database system used in R/3.                                                                               
Possible errors:                                                          
o The maximum size of an SQL statement has been exceeded.                
o The statement contains too many input variables.                       
o The space needed for the input data exceeds the available memory.      
o ...                                                                               
You can usually find details in the system log (SM21) and in the          
developer trace of the work process (ST11).                               
If an error occurs the developer trace often informs you about the        
current restrictions.                                                                               
How to correct the error                                                                               
The exception must either be prevented, caught within the procedure             
"ZMM_GET_ACT_PLN"                                                              
"(FUNCTION)", or declared in the procedure's RAISING clause.                    
To prevent the exception, note the following:                                   
The SAP Open SQL statement must be divided into several smaller units.          
If the problem occurred due to the use of an excessively large table            
in an IN itab construct, you can use the addition FOR ALL ENTRIES               
instead.                                                                        
When you use this addition, the statement is split into smaller units           
according to the restrictions of the database system used.                                                                               
You may able to find an interim solution to the problem                         
in the SAP note system. If you have access to the note system yourself,         
use the following search criteria:                                                                               
"DBIF_RSQL_INVALID_RSQL" CX_SY_OPEN_SQL_DBC                                     
"SAPLZMM_GET_ACT" or "LZMM_GET_ACTU01"                                          
"ZMM_GET_ACT_PLN"                                                               

Hi,
Wherever you have used SQL statement please do check all the fields here as some of the fields are not in correct order as they are required per the actual table in dictonary, to just verify that you can use addition of "INTO CORRESPONDING FIELDS OF INTERNALTABLE" in your SQL statement as this will not require the fields to be in order but this may cause performance issue.
Thanks and Regards
Sudharshan

Similar Messages

  • User Exit to Create Production Order when creating of Purchase Order

    Hi Guru's,
    I want to create the Production Order when creating the Purchase Order. i want to know is there any user exit exists for that??
    My scenario is as follows.
    we are converting the Purchase Requisition to the Purchase Order , while doing this we want to create the Production Order.. Is this possible??
    If possible how can we do that???Please suggest me the possible solution.
    Thanks in advance.
    Thank you,
    Adi.

    Teja,
    My Scenario is as follows.
    P1- Manufacturing Plant
    P2 - WareHouse Plant (Procures Material from P1 using STO)
    When we run the MRP in P2, it creates a Purchase Requisition, that Purc.Req is going to be convert as STO (Stock Transport Order) in P1 Plant.
    When converting the Purchase Req to STO, we need to create a Production Order in P1 Plant.
    we know that system will creae the Purchase Order only, is there any possibility that,For creating the Production Order is there any user Exit/BADI or any other procedure while creating the Purchase Order????
    Thanks,
    Adi.

  • How can I select alternative BOM when creating subcontract purchase order?

    In our business, a finish good material always has different production versions at the same time. Each of production versions has its own alternative BOM. When I create a planned order, I can select wanted BOM through specifying production version.
    But, when I creating subcontract purchase order, there is no field for me to specify the production version or which alternative BOM I prefer. In this case, I need to create a planned order at first. And then, convert the planned order to purchase. Only through this way, I can create a subcontract purchase order with my wanted BOM.
    So, I wonder if there is any way to select alternative BOM directly when creating subcontract purchase order.
    Thanks a lot!
    Regards
    Robbie

    Dear Mr. MM
    can you give me additional information about your solution?
    BUT I would not expect the sytem to offer you during the Purchasing cycle the different Production Versions as it is not meant to be. I remember having the same requirement some time ago and we solved it the way I described above, additionally we created a Pop up window with a user exit during the PO creation which offered the different production versions and if the one linked with the quota arrangement, the standard PV, is used in the PO.
    We also have the same problem, we activated businessfunction SCM_GEN_02 so that it is possible to have several production versions for one supplier, but unfortunatly it is not possible to change the production version in the purchase order. (business function does not seem to be very integrated)
    So i would be very interested in your solution because acually it seems that i have to modify the sap standard.
    Thank you and best regards
    Lisa

  • Get a wrong price  when creating a Purchase Order in order recommendation

    Dear all
        I meet a strange problem .I have already set a gross price list for Item 'A' . When I create a purchase order in Purchase Order Window,It will calculate a unit price (net price) according to the  gross price list  automatically .But when I create a purchase order in Order Recommendation Window,It will get a unit price as same as the gross price in predefined gross price list.They should not be equal in fact.

    Dear Anna Shao 
    1 .Our SBO is version 2007B
    2. The Decimal of Amount is 2 and that of Price is 6
    3. Vat rate is 17%
    4. The gross price is not small,the problem is that the difference is not small either.Sometimes  it's bigger than 0.1 RMB.I can give you the example.
    LineNo     ItemCode  Quantity  UnitPrice       VatRate      GrossPrice     LineTotal     GrossTotal
    1            A     10         299.145299    J1(17%)      349.995299      2991.45      3499.95
    2            A     10         299.150000    J1(17%)      350.000000      2991.45      3500.00
    3            A     10         299.150000    J1(17%)      350.010000      2991.50      3500.10
    If you set the unit price list for ItemCode 'A', you will get the result like row 1 above.
    If you set the gross price list for ItemCode 'A' ,you will get the result like row 2 above.
    If you do not set any price list for ItemCode 'A'  and you just set the unit price 299.150000 in the purchase order,you will get the result like row 3 above.
    The perfect one is row 2.It is just what  our customer needs.So they set the gross price list for ItemCode 'A'.  But another problem occured when using MRP order recommendation. It is the one why I post a thread,just as I have descripted at first
    Edited by: Jianzhong Zhang on Feb 25, 2009 3:53 AM

  • Automatically determine conditions when creating a purchase order via bapi

    Hi Gurus,
    I need some help...
    I'm creating purchase orders with data of some sales orders. Tha data from sales orders is transfered to an alv grid... In this alv I need to display the values for the price scheme (as in ME21N when I put de material and vendor and press enter).
    Thanks in adavnce,
    LR

    Dear Anna Shao 
    1 .Our SBO is version 2007B
    2. The Decimal of Amount is 2 and that of Price is 6
    3. Vat rate is 17%
    4. The gross price is not small,the problem is that the difference is not small either.Sometimes  it's bigger than 0.1 RMB.I can give you the example.
    LineNo     ItemCode  Quantity  UnitPrice       VatRate      GrossPrice     LineTotal     GrossTotal
    1            A     10         299.145299    J1(17%)      349.995299      2991.45      3499.95
    2            A     10         299.150000    J1(17%)      350.000000      2991.45      3500.00
    3            A     10         299.150000    J1(17%)      350.010000      2991.50      3500.10
    If you set the unit price list for ItemCode 'A', you will get the result like row 1 above.
    If you set the gross price list for ItemCode 'A' ,you will get the result like row 2 above.
    If you do not set any price list for ItemCode 'A'  and you just set the unit price 299.150000 in the purchase order,you will get the result like row 3 above.
    The perfect one is row 2.It is just what  our customer needs.So they set the gross price list for ItemCode 'A'.  But another problem occured when using MRP order recommendation. It is the one why I post a thread,just as I have descripted at first
    Edited by: Jianzhong Zhang on Feb 25, 2009 3:53 AM

  • Error SG105 when creating/changing Purchase Order

    Hi All,
    When we are trying to create or change import purchase orders, an error message pops up saying " Enter rate USD / INR rate type for 07.04.2008 in the system settings".
    Currently we had upgraded from SAP 4.6C to ECC 6.0.
    The exchange rates are maintained valid from 01.04.2008 using T-code OB08.
    Could anyone point out the reason for this problem.
    Regards
    Alo

    Hi
    there is no exchange rate setting apart from the OB08 setting
    Just check the exchange rate type used is maintained or not.
    Recheck the dates & currency conversions
    Thanks & Regards
    kishore

  • Send email when creating a Purchase Order

    Hi,
    I'd like to send an email once a Purchase Order is created. I just need to send basic information to the supplier, such as the number of the Purchase Order.
    I know how transaction NACE works, but I've just used it to Print Forms. I guess I have to use application EF but after that, I'd like to know if I can use an already existing message type and what steps I should follow to send the email properly.
    Thanks in advance,
    Gerard

    Hi,
    Read note 191470 - Purchase order as an e-mail
    Regards
    Sudheer

  • Attributes being removed when creating a Purchase Order

    Hi,
    We are running SRM 4.0 ECS.
    I have an issue when creating a PO directly (BBP_POC).
    When I have enter the item line information and then go details to enter a G/L account, the attributes UOM and Gross Price are removed. I need to go <i>Back to Item overview</i> to fill them in again. If I do it in <i>Item detail</i>  in the <i>Basic data</i> tab, the attribute data keeps on being removed.
    Does anyone know why this happens?
    Message was edited by:
            Anders Halmind
    Message was edited by:
            Anders Halmind

    HI,
    That means the PO print program is using some table (EKKO, EKPO,KONV and may be other for condition record) to get the value of the PO.
    now those table get updated only after you save the PO.
    That's the reason you are not getting any value in print preview before saving.

  • Error when creating a purchase order with reference

    Hi Experts,
    I am creating PO with reference to Contract
    Material A with price 5 rupees
    Before saving the po if click on print preview button to check if system is calculating the values correctly before saving the document.
    But is seems that right now system is not calculating the values well as by clicking on "Print Preview" values are displayed as zero.
    Also it is displaying the values once we save the po.
    Why it is not showing any value in print preview before saving the PO.
    Please help.
    Thanks in advance
    Prashanth

    HI,
    That means the PO print program is using some table (EKKO, EKPO,KONV and may be other for condition record) to get the value of the PO.
    now those table get updated only after you save the PO.
    That's the reason you are not getting any value in print preview before saving.

  • GOS while creating a Purchase order

    Hi,
    I have a requirement to attach documents in item level while creating a purchase order ME21N. I know that we can have GOS functionality available but, only after document is created.
    Is there a alternative solution for this?
    Thanks in advance

    Hi,
    Give some price at the item level for the item in the PO.
    And check the Pricing procedure in PO
    Hope it helps you.
    Thanks.

  • Create a purchase order  using an existing PO

    I want to create a purchase order (ME21N) using an existing PO.
    Please help. how can i do that.
    Best regards,
    Satish

    Hi,
    In the item overview of the purchase order creation screen (ME21N), you have a column Purchasing Doc and next it item no.  You can give the existing purchase order number here with item no which will create a purchase order, and changes can be made wherever you require.
    Hope this helps.
    Thanks
    Krishna.

  • Can anyone give me user exit name for create/update purchase order partners

    Hello guys
      Can anyone gives me user exit name for create/update purchase order partners?
      Requirement is to insert/update partner when SC flag is checked while creating/updating purchase order (ME22N / ME21N)  by using user exit.

    hi,
    check these exits.
    Transaction Code - ME21N                    Create Purchase Order
    Enhancement/ Business Add-in            Description
    Enhancement
    MEQUERY1                                Enhancement to Document Overview ME21N/ME51N
    MEVME001                                WE default quantity calc. and over/ underdelivery tolerance
    MM06E001                                User exits for EDI inbound and outbound purchasing documents
    MM06E003                                Number range and document number
    MM06E004                                Control import data screens in purchase order
    MM06E005                                Customer fields in purchasing document
    MM06E007                                Change document for requisitions upon conversion into PO
    MM06E008                                Monitoring of contr. target value in case of release orders
    MM06E009                                Relevant texts for "Texts exist" indicator
    MM06E010                                Field selection for vendor address
    MMAL0001                                ALE source list distribution: Outbound processing
    MMAL0002                                ALE source list distribution: Inbound processing
    MMAL0003                                ALE purcasing info record distribution: Outbound processing
    MMAL0004                                ALE purchasing info record distribution: Inbound processing
    MMDA0001                                Default delivery addresses
    MMFAB001                                User exit for generation of release order
    MRFLB001                                Control Items for Contract Release Order
    MELAB001                                Gen. forecast delivery schedules: Transfer schedule implem.
    AMPL0001                                User subscreen for additional data on AMPL
    LMEDR001                                Enhancements to print program
    LMELA002                                Adopt batch no. from shipping notification when posting a GR
    LMELA010                                Inbound shipping notification: Transfer item data from IDOC
    LMEQR001                                User exit for source determination
    LMEXF001                                Conditions in Purchasing Documents Without Invoice Receipt
    LWSUS001                                Customer-Specific Source Determination in Retail
    M06B0001                                Role determination for purchase requisition release
    M06B0002                                Changes to comm. structure for purchase requisition release
    MEFLD004                                Determine earliest delivery date f. check w. GR (only PO)
    MEETA001                                Define schedule line type (backlog, immed. req., preview)
    ME590001                                Grouping of requsitions for PO split in ME59
    M06E0005                                Role determination for release of purchasing documents
    M06E0004                                Changes to communication structure for release purch. doc.
    M06B0005                                Changes to comm. structure for overall release of requisn.
    M06B0004                                Number range and document number
    M06B0003                                Number range and document number

  • Allow to create a purchase order with purchase requisiton item deleted

    Dear all,
    I have a question about creation purchase order process.
    Firstly, I have a purchase requisition with 2 items, first of them is deleted.
    If I try to create a purchase order thru transaction ME57N with the previous purchase requisition, I can only create it with one item (the one wich is not deleted)
    However, if I try to create the purchase order thru transaction ME21N, with purchase requisition as reference, I can create the PO with item that was deleted in PR.
    I don't understand why system allows to create a purchase order with an item that previously was deleted in PR.
    Does anyone have a explanation about this issue?
    Many thanks in advance
    Best Regards.

    Hi,
    In the document overview of ME21N you get all the items of the purchase
    requisitions, no matter if they are deleted or not.
    When you convert the deleted item into a Purchase Order you get message
    06 050 stating that this item is deleted in the purchase requisition.
    This message can be defined as an error message in the customizing
    transaction OME0. This way, it will not be possible to order an item
    which is deleted in the referenced purchase requisition.
    BR
    Nadia Orlandi

  • How create a purchase order without imputation using bapi: BAPI_PO_CREATE1

    Hello Forum
    I have an request for purchase order with imputation K (cost center, EBAN-KNTTP). During the liberation of the request for purchase order, and using the Bapi: BAPI_PO_CREATE1, I want to create a Purchase Order without imputation (imputation empty or charge empty).
    The system displays the following error: The request for purchase order, item (position) 10, is attributed to another order...
    I imagine that is because the request for purchase order has imputation (charged) K and the purchase order will have no type of imputation (imputation empty).
    However, manually, Yes, I can create the purchase order. That is, I first release, the request for purchase order. Then I create the order of purchase using ME21 and with reference to request for purchase order, and when SAP returns the items of the request for purchase order, I manually remove the imputation K, and these items to become the purchase order.
    Please support me want to know how to resolve this case, why can not I create a purchase order without imputation to from the request for purchase order with imputation K, using Bapi
    Thank you.
    Greetings,

    Hi,
    In the item overview of the purchase order creation screen (ME21N), you have a column Purchasing Doc and next it item no.  You can give the existing purchase order number here with item no which will create a purchase order, and changes can be made wherever you require.
    Hope this helps.
    Thanks
    Krishna.

  • Text Purchase Order / ME21N to Accounting

    hi gurus,
    When we do ME21N / creating a purchase order, is there a possibility to write a text which you can also see in the G/L Account. For example in our G/L account 614000 there are many purchase order created invoices, but with no text mentioned. But we do need a text, because we should know what the invoice was for.  But all WE don't' have any text. We tried to write a text in the purchase order but it doesn't' came out in our P/L account. Can you please give us advice, where we can write a text in the purchase order which you can also see in a P/L account or is there no way?
    thanks
    jay

    Hi Jay,
    This you can do with a FI substititution (OBBH) with a user exit to fill the text field.
    In the substitution you know the PO and PO line item number with that information you read in the user exit the text in the Table EKPO and place this in FI text field
    The selection is to do this when the PO is NE blanc.
    Paul

Maybe you are looking for

  • Tif won't open in Adobe Camera Raw editor

    Photo tif file won't open in Adobe Camera Raw editor from Adobe Bridge - but it will open into Photoshop.  Seems tifs WILL open into raw editor IF they have not been edited in Adobe Photoshop.  Its like working on the tif in Photoshop makes the file

  • Encoding Problem - can't read UTF-8 file correctly

    Windows XP, JDK 7, same with JDK 6 I can't read a UTF-8 file correctly: Content of File (utf-8, thai string): เม็ดเลือดขาว When opened in Editor and copy pasted to JTextField, characters are displayed correctly: String text = jtf.getText(); text.getB

  • How does one print to enterprise Windows print services in Yosemite? CUPS 2.0 problem?

    One of my co-workers upgraded to Yosemite yesterday and it broke his ability to print to our corporate printing services (which are built around a Windows print server). Obviously, the printer discovery in the System Preferences can't find the Window

  • Unable to start Firefox

    Hi, when trying to start Firefox, I get the message 'Process is already running.....' 1) The process is not running I have checked. 2) I have rebooted (numerous times.) 3) I have uninstalled Firefox and reinstalled and rebooted and the message still

  • Safari website problems in iOS 7.0.2, Safari website problems in iOS 7

    Hi I am using iOS 7.0.2 but I have a problem with safari on the iPad 4 it works ok but if I refresh a page it sometimes doesent show it shows the blue loading bar and then goes quickly and doesn't show the we page I dint have this problem in iOS 6 bu