SAPSQL_WHERE_QUOTES/CX_SY_DYNAMIC_OSQL_SYNTAX - dump in VF01 Invoice Crtn

Hi Gurus,
I have a requirement to capture the condition value of Condition types in VBAP table while sales Order creation only.
I found in OSS note the procedure to achive this requirement.
Below is the procedure.
When you proceed as follows, you can set up an additional field ZZWI7 (and thus any number of fields):
1. Enhancement of the item tables (in the example VBAP)
              In the ABAP Dictionary (transaction SE11), create an append structure for the table VBAP (for example, ZAVBAP). In this structure, create a field with name ZZWI7 and assign the data element KZWIS. As a reference structure, enter VBAP and as a reference field, enter WAERK.
2. Enhancement KOMPAXA or KOMPAX
              Also create an append structure for KOMPAXA (for example, ZAKOMPAXA) in the ABAP Dictionary and in it, enter field ZZWI7 with data element KZWIS again. In this case, the reference structure is FPLAA and the reference field is WAERK.
              Note: As the structure KOMPAXA is included in the structure KOMPAX, the enhancement of KOMPAXA is automatically valid for KOMPAX.
3. Enhancement KOMP
              In the include KOMPAZ of the structure KOMP, which is provided for customer enhancements, enter the field ZZWI7 in the same way and assign the reference structure KOMK and the reference field WAERK to it.
4. Activate the tables and structures in the ABAP Dictionary.
5. Adjustment of a user exit
              For a correct initialization of the subtotal fields, these must be reset in userexit_xkomv_bewerten_init (RV61AFZB). You can find the source code for this example in the attachment.
6. Filling of the subtotal in a condition value formula
Using above approach i added my custom fields ZZWI12 to ZZWI26 in VBAP , KOMPAZ, KOMPAX to capture my values.
I have coded the logic in routines under condition value in VOFM. Activated the structures and adjusted the tables.
the Sales Order creation VA01 is working fine as expected. But while using VF01, the transction is dumping with an error
SAPSQL_WHERE_QUOTES/CX_SY_DYNAMIC_OSQL_SYNTAX in program SAPLKEDR.
The dump is pointing to a custom field which i am no where using in the Custom structures nor in the routines.
This custom field is related to table C950 and it has a vlaue '###' while VF01 tcode and so the dump is occuring.
But when is remove my custom appends to the VBAP,KOMPAX,KOMPAZ then dump goes off, no issues then.
I am confused on how adding fields in VBAP results in dump. DO i need to adjust some other tables or  activate structures.
Is this a ABAP issue or a Basis issue?
This has been a burning issue for me and please help in this.

Solved on my own, the process I followed:
Transaction SPRO
Click 'SAP Reference IMG' box
Click 'Find' icon (binoculars)
In the popup box, there is Text Index Info area, you will get the last time the text index was generated. If it has been a while, simply click the 'Refresh in Background' button.
It creates background job 'SHI3_TEXT_INDEX_UPDATE_E'. Once the job is finished, you can access the SPRO transaction without any syntax error.
Regards,
Ni3

Similar Messages

  • Doing VF01 Invoice third party  system is throwing below error message.

    Hi All,
    After creating Standard PO for third party.
    Doing VF01 Invoice system is throwing below error message.
    Error Log
               5005000511 000010 No open billing quantity has been determined
              Technical data
                  Tech. data details
                   Client                                 200
                   Group Number
                   Sales Document Number                  5005000511
                   Item Number of the SD Document         000010
                   Schedule Line Number                   0147
                   Counter in Control Tables              00
                   Message Identification                 VF
                   System Message Number                  147
                   Output Type                            I
                   Message Variable 01
                   Message Variable 02
                   Message Variable 03
                   Message Variable 04
                   Group Type                             F
    Aditya.

    Hello,
    Please, I have the same issue but in my case it's a Purchase Requisition. First I created a Purchasing info-record for Vendor, Material, Purchasing organization and Plant.
    After I set a Source List Master Data for Material, Plant, Vendor and Purchasing Organization.
    Like this I have the Purchase Requisition created automatically when I create the Sales Order. I am testing a Third Party Handling scenario in Brazil...
    But now I can not create the Billing Document.
    The following error happens:
    "No open billing quantity has been determined"
    Tech. data details
    Client                                 210
    Group Number
    Sales Document Number                  0000000179
    Item Number of the SD Document         000010
    Schedule Line Number                   0147
    Counter in Control Tables              00
    Message Identification                 VF
    System Message Number                  147
    Output Type                            I
    Message Variable 01
    Message Variable 02
    Message Variable 03
    Message Variable 04
    Group Type                             F
    I tried what you suggested but they didn't work. I don't know if I have to create a MIRO for my Purchase Requisition. I tried to release it but it didn't work as well.
    Please, can you help me?
    Thank you,

  • Short dump in VF01 - Syntax error in program "RKEAK9RECP3000001"

    Helo all,
    We recently copied our production client to a QA client and when we try to save an SD invoice (VF01), we get a short dump titled - Syntax error in program "RKEAK9RECP3000001".
    The dump long text states:
    "The Dictionary structure or table "K9RECP3000001" is either not active"
    " or does not exist."
    and
    NOTE in case of a SHORT DUMP:
    if the following perform statement should lead to a short dump, then
    the report stated in the short dump is missing (RKEAK9Rsssmmmnnnn)
    Check if table K9Rsssmmmnnn exists. If not it should be transported
    from the original system.
    Regenerate the missing reports by using transaction SE37, entering
    function KEDR_REGENERATE_ALL_REPORTS and pressing button 'Test' and
    'Execute'.
    but I tried to run function KEDR_REGENERATE_ALL_REPORTS in SE37 and the problem persists.
    Maybe I'm not running it correctly - there is no execute option when pressing "Test" so I enter the function and press F8, which takes me to a screen titled "Test function module" and then I execute.
    My suspicion is that table "K9RECP3000001" cannot be created or generated since it it a system specific naming convention K9RSSSCCC0001 in which SSS is system ID (in our case ECP is production and ECQ is QA) ans CCC is client number (300 in prod, and should be 286 in ECQ).
    Has anyone encountered this type of a problem and knows how to fix it?
    Needless to say, I looked at OSS notes, but did not find the solution there.
    Any thought will be appreciated,
    Yoel.

    Shalom Yoel,
    This problem may be caused by the fact that some derivation rules
    that were originally created once in a system have been transported
    into target system without transporting the dependent objects
    as well (the generated tables for the derivation rule entries).
    You can see this by execution of program RKEDRCHECK with only
    parameter 'Check in all clients' marked. You will then get
    inconsistent derivation steps (which refer to a generated table
    table for the rule entries that doesn't exist because it was
    not transported).
    There are two ways to solve the problem:
    1.) If you don't need these steps any more in derivation you can get
        rid of them by executing program RKEDRCHECK with both parameters
        marked ('Check in all clients' and 'Delete inconsistent steps').
    2.) If these steps should remain you have to retransport the missing
        tables from the source system in which these tables have to exist
        (creating transport requests for the customizing of derivation by
        pushing on the 'Transport' icon in the source system in transactions
        KEDR and KEPC).
    For each derivation step,the system generates a program RKEAK9R *
    and a table K9R+ System ID+ Mandant+ a number of five figures
    from the object number in KEDR.
    br, Guido

  • Short Dump in VF01 while creating debit memo

    Hi,
    we are trying to create the debit memo in tcode VF01,while saving the doc it is giving dump.
    i went to  ST22 for error analysis,details are "COMMIT_IN_POSTING" error in FM RV_INVOICE_REFRESH.
    Short text
        Invalid COMMIT WORK in an update function module.
    What happened?
        Error in the ABAP Application Program
        The current ABAP program "SAPLV60A" had to be terminated because it has
        come across a statement that unfortunately cannot be executed.
    the above text copied from ST22.
    before putting this thread, i have done complete analysis in SDN .
    i have searched for SAP notes.i did't got the proper one.
    KIindly can u provide any solution.
    <removed by moderator>
    Regards,
    Manjunath
    Edited by: Thomas Zloch on Dec 2, 2011 2:39 PM

    Is the debit memo triggering an output type?
    I saw similar thing long back and I remember it was caused by a output type with a print program that was doing an illegal COMMIT WORK. Actually sometimes there may be a function call inside the program attached with the output type that may be doing a COMMIT which is not directly apparent.
    COMMIT WORK causes runtime error when it occurs in functions called in UPDATE TASK or forms called with ON COMMIT.
    Try disabling / deleting the output type (Vf01 -> Goto -> Header -> Output) proposed and then save the debit memo and see if this error goes away. You can also try select the output type and click further data and set dispatch time to '1' (send with periodically scheduled job to avoid this issue.
    Check threads with people facing similar issues because of commit in output type programs
    Send Immeditely causes COMMIT_IN_POSTING
    Need input for error caused while trggering a output type
    COMMIT_IN_POSTING
    COMMIT_WORK in FM, SO_DOCUMENT_SEND_API1

  • VF01 Invoice posting / Idoc output type / Paretner Profile missing

    Hi,
    I need a functionality to create ABAP code to send email, but I do not know in which place it would be the best to put it.
    While posting an invoice VF01 t-code, output type idoc is defined and normally is generated. Altghough sometimes partner profile is missing (it is customer number) and then idoc is not generated.
    I use standard program RSNAST and edi_processing form for idoc generation.
    1) is edi_processing form executed when partner profile is missing?
    2) where would it be the best to put abap code to send email?
    Thank you

    Hi,
    I have seen the stded program RSNASTED and the routine EDI_Processing.
    1) Yes Edi_Processing is executing when if the parnter profile is missing
    2) I think there Perform in the rotuine EDI_PROCESSING
       " PERFORM READ_PARTNER_PROFILE USING HELP_RETURNC." after this  excuting this perform , check for the return value and if EQ ZERO thn proceed further or Else send a mail .
    Thankz
    Aditya

  • ERP EHP4 causing dump when posting invoice in MIRO

    I originally posted this in the MM forum but was advised to move it here.
    We just implemented ERP EhP4 w/SAPAPPL603 and are now getting a dump when using MIRO to posting a vendor invoice against a PO. The error seems to involve new logic for multiple account assignment introduced with this EHP. The dump is in include LMRMBWF02 of SAPLMRMBM, and indicates that data object S_MCRBPO does not contain component XHISTMA. The lines in LMRMBWF02 are (starting at 772):
    FORM bw_read_co_history_dyn_sub USING event TYPE bwmode
    s_index_mcrbpo TYPE eval_iv_index_key_s
    s_mcrbpo TYPE mcrbitm
    CHANGING s_mcrbco TYPE mcrbco.
    DATA: s_ekbe LIKE ekbe,
    s_ekbz LIKE ekbz,
    s_ekbz_ma TYPE ekbz_ma, "MAA EhP4
    s_ekbe_ma TYPE ekbe_ma, "MAA EhP4
    f_arewr TYPE ekbz-arewr, "MAA EhP4
    f_areww TYPE ekbz-areww. "MAA EhP4
    CASE event.
    WHEN c_recompilation.
    IF s_mcrbco-xunpl = space.
    Not for unplanned account assignments
    IF ( s_mcrbpo-exkbe = 'X' ).
    Read PO history for goods item
    IF s_mcrbpo-xhistma = space. "MAA EhP4
    ...with the last line being the culprit. The actual break in execution occurs at line 119 of SAPLMRMP, BESTELLUNG_BUCHEN where function MRM_BW_PO_HISTORY is called.
    Had some other errors where tables weren't properly activated after the EHP installation, but here most everything seems to be activated properly. The exception is table EKBE, which activates but with warnings about missing enhancement categories of tables or includes/subtypes for four active dependent tables. That's the only lead I've got.
    Can't find any notes or other posts about this error, any ideas would be greatly appreciated!

    Hi,
    the only thing i´ve found is this OSS Note:
    https://service.sap.com/sap/support/notes/1105679
    Best regards.

  • VF01- invoice smartform in PDF format to be sent thro' mail

    Hello Gurus,
    We have a requirement from our client that we need to trigger a mail of invoice smartform in PDF format on saving in VF01.
    Can any body suggest the steps in NACE and also output..
    Regards

    As per your post, I understood that,
    After saving Invoice , automatically Invoice has to send in PDF format to the respective email id maintained in CMR-Payer master
    if yes, this involves ABAP & BASIS ,
    ABAP- Program & FOrm routine has to created & assigned in respective output type & type-PDF (Check in NACE- Output type)
    for this, you need to maintain the Condition record- VV31 - with medium as "Mail" -
    or else,
    you can do this manually also, in VF31- you can give a print  & save in PDF format- you can send it - but its complete manual process.

  • ABAP dump in MIRO - Invoice reduction

    Hi,
    I am getting a dump in MIRO for invoice reduction scenario. I am not sure here is the right place to ask for help or I should put in MM forum.
    I put a break point and found system trying to modify an structure with index 0 and this is not possible.
    Variable name is LV_TABIX and when I set it by 1 during debug I managed to pass the error.
    Thanks,
    Omid

    Hi Juan,
    Thanks for your reply in advance.
    I think you are right and I have to apply SP SAPKH60406 because the SP level of SAP_APPL is 0002.
    At the moment I don't have this SP but it's applied in another system I checked it out by SPAM. Is there any way to export it?
    Thanks,
    Omid

  • Getting ABAP dump while cancelling invoice through MR8M

    Hi Experts,
    When i try to cancel the invoice through MR8M i am getting the ABAP dump saying "Conversion error Occured".
    Could u please help me to resolve this.
    Infact the error is coming when i press "display doc" after giving the invoice details.
    Thanks,
    Amar Y.
    Edited by: amaranath yerragunta on Apr 19, 2010 10:34 AM

    Hi ,
    Is the any enhanemnet done for MR8M Tcode?
    I think in the enhancement code converion is wrong.
    Regards,
    Pravin

  • VF01 : Invoice without FI document because Net Value is 0,00 ?

    Hi,
    I create an invoice with Tcode VF01 in refernce to a billing document, the system create an invoice but not the FI document, it shows this message : "An accounting document is not required for this billing document"
    Diagnosis
    The billing document has the net value '0' and does not create an accounting document. Despite this, the posting status 'C' (Posting document has been created) is set internally for this billing document.
    Please i want to have a price in my invoice to post an FI document correctly, how to solve that ?
    i hope your help
    Regards

    Hi,
    You can not post to accounting with ZERO(0) balance.If you want to post to accounting,you should have minimum of $0.01.
    system message is correct.
    Thanks,
    Rau

  • Short dump in VF01 transaction with error id SAPSQL_ARRAY_INSERT_DUPREC

    Hi,
    We are getting shortdump SAPSQL_ARRAY_INSERT_DUPREC when running VF01 transaction.
    The ABAP/4 Open SQL array insert results in duplicate database records.
    The termination occurred in the ABAP/4 program "SAPLV60U " in
    "VBUK_BEARBEITEN".
    Line Number 536
      >>>>>   INSERT vbuk FROM TABLE da_xvbuki.
    Could some one please reply me when you have the time.
    Regards,
    Vishal
    Moderator Message: De-prioritized.
    Edited by: kishan P on Aug 29, 2011 2:05 PM

    Duplicate records is being tried to enter in table VBUK, which is not allowed due to primary key concept. Hence the error.
    For details, you can get help of the technical person in your team

  • Customer Number in line item assignment fiels for VF01  invoice documents

    Hi,
    how can I get the customer number in assignment field of FI document line item. 
    I have created a sort key with field customer KUNNR but this field will not be populated by invoice documents posted from sales orders via VF11?
    I am looking forward to your solution proposals.
    Thanks and Kind Regards
    Tarik

    Hi Dominique,
    many thanks for your reply.
    the customising for copy control in SD seems very confusing
    How can I arrange that it is aready populated with the customer number ?
    One example would be enogh for me to understand it.
    Can you provide me this example?
    Kind Regards
    Tarik Oznalcin

  • VF01 Invoice

    Hi,
    I need to validate profit centers/cost centers during invoice creation. If any of the validations fail, I should be able to save the invoice but block it from posting to accounting? How do I do this? Is there any standard function module available to block invoice from posting to accounting?
    Any input will be greatly appreciated.
    Regards,
    Sarita.

    In SD, you cannot validate by saving the document alone. The accounting entries will be reflected only after document is released to accounts.
    Incase if profit centre is maintained, then it is important to maintain profit centre in material master. If you do not maintain profit centre, then the process will go upto billing document & also save the same, but will not release to accounting. If such a situation is encountered, then there are 2 options to resolve:
    1. reverse the whole cycle i.e cancel Billing --> Cancel Post Goods issue --> Cancel Delivery --> Cancel Order & then update the profit centre in material master.
    2. with a help of Abaper, force the profit centre in billing document.
    Regards,
    Rajesh Banka

  • Dump in VF01

    In the VF01 i m getting this error.
    ABAP/4 processor : SAPSQL_ARRAY_INSERT_DUPREC
    I am getting the error in the following insert.
      LOOP AT XKOMV.
        KONV       = XKOMV.
        BELEG = XKOMV-KNUMV.
        IF BELEG-ID = '$'.
          PERFORM VBRK_BELEGNUMMER_ERMITTELN.
          XKOMV-KNUMV = XVBRK-KNUMV.
        ENDIF.
        MODIFY XKOMV.
      ENDLOOP.
    >>>>> INSERT KONV FROM TABLE XKOMV.
      IF SY-SUBRC NE 0.
        MESSAGE A100 WITH 'KONV' SY-SUBRC XKOMV-knumv.
      ENDIF.
    Can any one help me in this to solve this issue ?
    Prem
    Message was edited by:
            Alvaro Tejada Galindo

    Have you searched for OSS notes??
    Anyway, look at note 208627.
    And note 154638.
    You should use SM13 to analyze failed updates.
    Rob
    Message was edited by:
            Rob Burbank

  • VF01 Invoice getting split

    Hi Friends,
    I am trying to create single invoice from two different delivery having different ship to party. But unable to do so. I am getting error as difference in header level data. When I see the split analysis it says that the VAT registration no. are different.
    I want to confirm does it really matters that the VAT no. should be same for the ship to party.
    Regards,
    Wasim

    Hi Ed,
    Thanks for your reply. The problem got solved by deleting the additional VAT Registration no. for one of the customer that was defined by the user.
    Regards,
    Wasim.

Maybe you are looking for

  • Overall Result column disapears when dragging in free characteristic

    Hello All, I have a headcount report which has % colleague key figure.  At the top of the report there is an 'Overall result'.  The issue I am having is when someone drags in a free characteristic the 'Overal result' column disapears and instead and

  • SAX parser retrieve attribute

    Hi, I am parsing using the SAX Parser. In the XML excerpt below, how do I retrieve the "POL", "SUM" or "EUR" values? If I use a contenthandler and I can extract the SubjectCode, Subject, and SubjectQualifier element names, but not the data contained

  • Create/Merge batch for HR payroll BCM (Bank Communication Management)

    Hi All, This with reference to BCM (Bank Communication Management) EHP4 How to create/Merge batch for HR payroll in BCM? Thanks in advance for your support Regards, MS

  • 3D image not displaying

    When I put a 3D image into a document, it works fine for a majority of my reviewers, but one user (running Acrobat Reader 7.0.9) has problems with the image. The picture shows up fine, but when the window is activated, it shows up as black, until you

  • HTML help file showing garbage value for french language

    I want to show Help/Tips in my Java application. The required help file is simple an HTML file which I am showing on a JPopupMenu using JHelpContentViewer editor.The problem is when I want to show this in Fench language a particular character is disp