Select on VBAP giving a dump in preproduction system

Hello Experts,
We are trying to fetch records from VBAP based on the primary key of VBELN. Even with the primary key, it gives dump in pre production system.
select vbeln posnr matnr arktx pstyv abgru zmeng meins netwr waerk
          kwmeng kbmeng vrkme werks vstel netpr kpein kmein mvgr5 cuobj
           z_vessel_code z_container_size z_container_type
           z_voyage_number z_hub_port z_serv_typ_orig z_serv_typ_dest
           z_ship_typ_orig z_ship_typ_dest z_passthrough z_shipmentterm
           z_oti z_equipment_type
      into table i_vbap
      from vbap
       for all entries in i_vbak
     where vbeln = i_vbak-vbeln.
<Added code tags>
If we try to add more parameters in the select query it again gives the dump as primary index or secondary index is not used completely.
Please suggest some way of optimizing this query.
Edited by: Suhas Saha on Jan 17, 2012 2:52 PM

Hi,
    How is your internal table declared? is it defined with workarea or not?
Before the select statement,
if not i_vbak is initial. " if the internal table is declared with OCCURS n statement the this statement will check for only workarea not the internal table.
The select statement must be executing in some LOOP and ENDLOOP., Just check the background job which you executed for any message "message i038." displayed in background job? with the use of statement LEAVE TO LIST-PROCESSING in START-OF-SELECTION, the program will execute the remaining code with out going to selection screen.
if i_vbak[] is initial.
    message i038.
    leave list-processing.
  endif.
" the below code must have executed with blank i_vbak.
  if not i_vbak is initial.  
>>>    select vbeln posnr matnr arktx pstyv abgru zmeng meins netwr waerk
          kwmeng kbmeng vrkme werks vstel netpr kpein kmein mvgr5 cuobj
           z_vessel_code z_container_size z_container_type
           z_voyage_number z_hub_port z_serv_typ_orig z_serv_typ_dest
           z_ship_typ_orig z_ship_typ_dest z_passthrough z_shipmentterm
           z_oti z_equipment_type
      into table i_vbap
      from vbap
       for all entries in i_vbak
     where vbeln = i_vbak-vbeln.
Thanks & Regards
Bala Krishna

Similar Messages

  • Barcode entry giving a dump

    Hello Everybody,
    In a module pool program all the desc and other relavent data  is getting displayed for all the barcodes(ean11) except for ean11 8850124035967 (a 13 digit no ) .Its working fine for other 13 digit number, but only for this ean11 its giving as conversion error.
       There was a conversion error in the output of fields to the screen.
       The formats of the ABAP output field and the screen field may not match ( Why for only this EAn its giving the dump and there a field besides get from dict and in that xmask fix,modif'd is selected from many other options .What does it do )
                     Screen name.............. "ZLM03"
                     Screen number............ 0400
                     Screen field............. "MARM-UMREZ"
                     Error text............... "FX020: Data lost."
    thanks,

    Have you tried isolating the EAN problem at all e.g. does the following report work OK for you?
    report zlocal_jc_ean11_test.
    parameters:
      p_ean11               type ean11
        default '8850124035967'.
    start-of-selection.
      write: / p_ean11.
    The EAN11 data domain has a conversion exit on it, so you could also try executing those by themselves in SE37 to see what results you get (CONVERSION_EXIT_EAN11_OUTPUT / CONVERSION_EXIT_EAN11_INPUT).
    However, the error you have indicated in your message is that the UMREZ field is the cause of the crash .. so what material is returned by the EAN, and can you see this OK in SE16 when browsing MARM?  Your screen field should be 6 bytes long (per the definition of domain UMBSZ).
    Jonathan

  • Custom error message in user exit is giving Short dump

    Hi All,
    We have a scenario where in if any user try to create/Change/Delete particular types of contract in SAP system we have to issue error message
    saying ZIN/ZIR contract creation/Change/Deletion is blocked in SAP. This has to be done from the web application. So we are putting below code
    in user exit MV45AFZZ in the form USEREXIT_SAVE_DOCUMENT_PREPARE.
    CONSTANTS: lc_vbcpic01 TYPE sy-uname VALUE u2018VBCPIC01u2019, u201CWeb application user ID
             lc_zin           TYPE vbak-auart VALUE u2018ZINu2019,
                         lc_zir            TYPE vbak-auart VALUE u2018ZIRu2019,
                         lc_text(32)    TYPE c VALUE u2018Check long text for more detailsu2019.
    DATA: l_uname TYPE sy-uname.
    CLEAR: l_uname.
    MOVE sy-uname TO l_uname.
    *If user ID is not the Web application ID then block the creation/Change/Deletion
    IF   l_uname NE lc_vbcpic01
    AND ( vbak-auart EQ lc_zin
    OR    vbak-auart EQ lc_zir ).
    MESSAGE e830(zv) WITH lc_text.
    ENDIF.
    This code is working fine while creating/Changing the contract i.e. Giving us error message so that user wonu2019t be able to create/change the contract.
    But when we delete the contract from VA42, Control is coming to this message statement and is giving Short dump. Below is the error analysis of the dump.
    Error Analysis:
    During "Exit Command" processing, the program tried to send a " " message.
    This is not allowed at this point in processing.
    The program had to be terminated.
    Screen name.............. "SAPMV45A"
    Screen number............ 4001
    If any one has come across such scenario/any work around for this problem please let me know your inputs. Your inputs are highly appreciated.
    I am working on 4.6C version of SAP.
    Note: When i issue information/Warning message contract is getting deleted after displaying the message.
    Thanks,
    Vinod.

    I exactly replicated the same in DELETE_DOCUMENT also
    I am getting the Dump. I tried with exit also , but it continued and deleted. To avoid deletion we have to use Leave program or LEAVE TO CURRENT TRANSACTION.
    Delete Function is Defined as EXIT command. so it is not possible to give error message. To convice you i just copied demo program and raised the error message.
    it is also giving the dump.
    copy the demo program DEMO_DYNPRO_AT_EXIT_COMMAND and make this change , information to error .
    MODULE cancel INPUT.
      MESSAGE e888(sabapdocu) WITH text-001 ok_code input1 input2.
      IF ok_code = 'CANCEL'.
        CLEAR ok_code.
        LEAVE PROGRAM.
      ENDIF.
    ENDMODULE.
    and see...

  • Maintenance View Giving Short Dump DYNPRO_FIELD_CONVERSION

    Hi,
    Client has a maintenance view for the table J_2IRG1BAL. But the maintenance view is giving short dump DYNPRO_FIELD_CONVERSION. Can anyone please tell me what could be the reason? How to solve it?
    Regards,
    Sriram.

    Hi,
    DYNPRO_FIELD_CONVERSION dump may be due to the following reason, you can find few OSS notes
    - Negative entry in Time confirmation
    - Negative entry in cost
    - Negative entry in reversation
    Check these just for reference.
      Please Refer the below link it will useful for u.
    DYNPRO_FIELD_CONVERSION
    dump while entering enteries trough sm30
    Regards,
    Dhina..

  • Csv file load related issue: giving short dump

    Hi Experts,
    In BPS I have created a load csv planning function which load data from csv file. While I am executing the function it is showing successful message 'dta records generated' but ehen I press the save button it is giving a dump 'Exception condition "ILLEGAL_INPUT" raised.'.The same planning level and package is working fine with manual planning. The load function modules are also working fine for some other plannig levels. Please suggest what could be the reason for this exception.
    Thanks,
    Saikat.

    I had  same problem.
    It s something wrong in the CSV files. What I mean is that sometimes it went something like a ',' or a '.' or other wrong characters in some characteristics that cannot accept like numbers or whatever, or something that to you looks a blank but for SAP is some special character.
    The way to find is very boring ! Be sure first of all that when you load you do not try to save also the HEADER with Titles of the CSV file. Anyway this was not my problem.
    To me happened as follow last time.
    " For one rcharacteristic it accept values '1'  '2'  '3' etc...until '9'. So just numbers.  In one of the record of the files it was written '1.' So just the '.' made this big problem. "
    To solve this last time, I just generated again the file and without to change the ABAP code it went ok.
    Anyway try to check again from benning all your levels and the ABAP code.
    I know what u mean, this error cause big headaches, I lost 3 hours to solve.
    Hope you are lucky.

  • Func. Module - RH_EDITOR_SET giving Short Dump

    Hello ,
    I am using a container in my proogram.While running this my program calls this function module and then it is giving a shortdump.The short text of that dump says "Exception condition "INTERNAL_ERROR" raised."
    the dump is coming at the line:
      163     CALL METHOD control_tab-ctrl_new->set_text_as_r3table
      164       EXPORTING
      165         table           = lines[]
      166       EXCEPTIONS
      167         error_dp        = 1
      168                        error_dp_create = 2.
      169     IF sy-subrc <> 0.
    >>>>>       RAISE internal_error.
      171     ENDIF.
      172   ENDIF.
    While calling this function module i am passing these parameters.
    CALL FUNCTION 'RH_EDITOR_SET'
        EXPORTING
          REPID       = SY-CPROG "program name
          DYNNR       = '0100' "screen number
          CONTROLNAME = VAR " name of the custom control on screen
          MAX_COLS    = COL "variable value = 85
          MAX_LINES   = 10
          DISPLAY_MODE = ' '
          SHOW_TOOL = ' '
        TABLES
          LINES       = IT_LINES_CR. " table type TLINE
    The strange thing is that this works fine in 4.6c but is giving a dump in ECC 6.0
    Can u please tell me what is the problem.
    Thanks in advance.
    Kunal

    Hi,
    There are lot of changes happened between 4.6C and ECC 6.0. so make sure about the dump analysis.
    Regards,
    Kumar.

  • I have purchased IPhone 5S in Florida Mall when I was traveling to US.I bought this phone in unlocked condition. (Pl find attached Invoice copy).I started my phone when I came back in India. After few days (4-5 days) it started giving blue dump regularly.

    Dear All,
    I have purchased IPhone 5S in Florida Mall when I was traveling to US from India.I bought this phone in unlocked condition. I started my phone when I came back in India. After few days (4-5 days) it started giving blue dump regularly. Then I have contacted Authorized service centre (Maple)  in India (Maharashtra – New Mumbai) and then Maple checked with Apple and Apple said this phone is not under International Warranty. But when I purchased this phone form Apple Florida Mall ,I have been told by Zach McKenzie (Sales Person) that it has an international warranty and u can approach to any authorized centre in India for any issues. And that’s the reason I have bought this phone.
    But now I am in big trouble so tell me how can u help me in this regards.

    Note this is a user forum hosted by Apple. You aren't talking to Apple here just other users.
    Note that the iPhone warranty is NOT international and never has been. Your iPhone must be serviced in the country of purchase.
    https://www.apple.com/legal/warranty/

  • CL_GUI_CFW= FLUSH giving short dump

    hi,
    i have got two servers. one for development and other for quality. in development my CL_GUI_CFW=>FLUSH is working fine, but when i try to execute my prog in quality "flush method" is giving short dump, its returning sy-subrc <> 0.
    can anybody suggest possible causes of the same.
    The server status are all the same for quality as well as development.
    thanks
    pratyush

    Hello Pratyush
    You may want to have a look at my sample report ZUS_SDN_TWO_ALV_GRIDS_3 in thread
    [how to refresh the contents of a grid?|how to refresh the contents of a grid?;.
    Most control events do not trigger PAI of the dynpro. Thus, they behave similar like calling a search help or F1 help.
    The automatic flushing which occurs at PBO is done the following way:
    METHOD handle_user_command.
        * define local data
    DATA:
    ls_row TYPE lvc_s_row,
    ls_knb1 TYPE knb1.
    CHECK ( sender = go_grid1 ).
    CHECK ( e_ucomm = 'SAVE' ).
    CALL METHOD go_grid1->get_current_cell
    IMPORTING
    es_row_id = ls_row.
    READ TABLE gt_knb1 INTO ls_knb1 INDEX ls_row-index.
    CHECK ( ls_knb1-kunnr IS NOT INITIAL ).
    PERFORM entry_show_details.
    * Triggers PAI of the dynpro with the specified ok-code
    " CALL METHOD cl_gui_cfw=>set_new_ok_code( 'DETAIL' ).  " not on 4.6c
    CALL METHOD cl_gui_cfw=>set_new_ok_code
       EXPORTING
        ok_code = 'DETAIL'.
    ENDMETHOD. "handle_user_command
    Regards
      Uwe

  • Program giving short dump

    I have created an alv grid display .But when am pressing
    word processing or excel download buttons in the tool bar ,the program is giving short dump.The display and all are perfect the dump happens only if i press word processing or excel download buttons .Kindly help.
    You help will be greatly appreciated.
    The error is generated while in standard code.
    1095                                     using r_ucomm
    1096                                           ls_selfield.
    1097
    >>>>>   rs_stable-row = ls_selfield-row_stable.
    1099   rs_stable-col = ls_selfield-col_stable.
    1100
    1101   r_refresh = ls_selfield-refresh.
    1102   r_exit    = ls_selfield-exit.

    Hii
    plzz open excel in your computer .
    goto TOOLS>MACRO>SECURITY .Make sure that your security is set to Medium (or less). Microsoft has increased their default security setting to High. With the High setting, the output to Excel fails.
    plzz paste the part of the code where it is going for dump
    and also give the error analysis as mentioned in the dump report
    if you want i can give you a sample alv grid program for you can cross chk it
    for more refer to this guide
    <b>https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/documents/a1-8-4/an easy reference for alv grid control.pdf</b>
    Regards
    Naresh

  • UNCAUGHT_EXCEPTION in SOAP TO PROXY scenario dump in ECC system.

    Hi Experts,
    My scenario is saop to proxy .while performing testing the scenario using saopui.  iam getting client_send_failed error in sxmb_moni.
    but data processed to ecc system and updated the data in database level and giving dump in ecc system.
    i am getting dump like below.
    UNCAUGHT_EXCEPTION.
    we increased the size of  instance profile parameters also upto 500 mb .in rz10.
    still getting dump.
    Please give the solution for  above.
    Regards
    Ravinder.s

    Hi All,
    We resolved the issue using below notes and my system is newly upgraded  its not accepting asynchronous scenarios with quality of service as  BE in sender communication channel.
    1966422 - XI runtime: Dump: synchronous proxy calls asynchronous interface
    Thanks for all.

  • BP creation terminates with NO_ACTIVE_TAB dump in EHP system

    Hi,
    BP creation terminates with NO_ACTIVE_TAB dump in EHP system.
    Dump Descp:
    A RAISE statement in the program "CL_BUS_TABSTRIP===============CP" raised the exception
    condition "NO_ACTIVE_TAB".
    Unable to find SAO Notes for this.
    Please guide.
    Regards,
    Hema

    Hi,
    > "The check report specified in the source code correction tests screen sequence BUP001 (Standard business partner screen sequence of the new interface, Transaction BP) for the existence of the assigned screens.
    The check report (ZZBDT_CHECK_SEQUENCE_ELEMENTS ), specified in the source code correction, tests screen sequence BUP001 (Standard business partner screen sequence of the new interface, Transaction BP) for the existence of the assigned screens.
    In other words, the reports mentined in the correction, tests the screen sequence BUP001 for the existence of the assigned screens.
    Rajeev

  • Customized Table is giving Short Dump .Want to extract data in Production S

    Hi ,
    I have a problem in customized table .Table is giving a data after trying to access 185th record.There is some problem in the table.But I want to pull out all the data from the table..Is it possible to download it .Pls suggest..
    Even If I put one select query also it is givning dump..
    Pls suggest some other technique to download it..
    Regards
    Arun.P

    Hi Arun,
    Where there you are using WHERE condition  in select statement while fetching the records?
    if yes means check for the fields are primary key, available in WHERE condition, or else create secondary index for those
    non Primary key Fields in WHERE condition.
    This may help you.
    Thanks and Regards,
    Prakash.K

  • SUBMIT via selection screen and return gives dump

    Hi Guys,
    When i have used SUBMIT via SELECTION SCREEN and RETURN, it gave me the selection screen and subsequent report is executed properly without an error and when i pressed back button, it went to selection screen without any issues but the problem is when i press back from the selection screen it gives me a dump. Could you guys think of what would be the probelm.
    Thanks in Advance.
    Santosh.

    Hi Santhosh,
    What is the dump u r getting? I tried like this and is working file.
    Report1
    REPORT  Z75694TEST1.
    PARAMETERS po_1 TYPE c.
    WRITE po_1.
    SUBMIT Z75694_TEST VIA SELECTION-SCREEN AND RETURN.
    Report2
    REPORT Z75694_TEST .
    PARAMETERS: po_2 TYPE c.
    WRITE po_2.
    Thanks,
    Vinod.

  • Ad hoc query - Infoset, after selection it is giving two different output

    Hi All,
    We are facing problem in ad hoc query, after PQAH Ad hoc query, when we go to one infoset, so after making some selection and putting some output field,
    When we click on refresh data button(in lower pane) so it gives only one record, which is incorrect, but when we click on u2018Start Outputu2019 button it gives 3 records those are correct.
    Can anyone tell me, why this is giving different output.(first time 1 record, and second time 3 records) record 3 output is correct.
    Regards,
    Kumar
    Edited by: kumar r12 on Mar 18, 2011 9:00 AM

    Hi Kumar,
    Are you looking at the "Hit List" or the output of the results in the lower pane?  The hit list will only give you the number of persons who will be in your output.  The refresh button should give you a preview of the output. 
    What persons or fields are different or not shown in the preview area vs. the output?  Also, what are the dates for the data?  Are you looking at current data or looking for history?  The output may be showing you history and the preview only current data.  Most concerns with Ad Hoc Query output are related to dates - for the selection and the output. 
    Paul

  • ABAP Program Giving SAPSQL_ARRAY_INSERT_DUPREC Dump While Inserting Entries

    Hi Experts,
    I had z table in which i had made three fields as primary key combination , i also had a custom program in which i am inserting values into the z table using Insert statement. during the execution of the program it is going for a short dump giving "SAPSQL_ARRAY_INSERT_DUPREC" With Exception CX_SY_OPEN_SQL_DB.
    The Delivery Class of the Table is "C".
    The thing is that i want if 1st field is "ORG ID" second Field is "Material" & the third field is "Type Id". then the system should allow entries like
    ORG ID
    Material Id
    Type Id
    |"0001"    |       "100''         |       "R1"      |
    "0001"
    "100''
    "R2"
    |"0001"    |       "100''          |      "R3"     |
    "0001"
    "100''
    "R4"
    Is there any OSS note for Corrections.
    Thanks & regards
    Priyesh Shah.

    Hi
    Are you sure your table has those 3 fields as key fields?
    I means you make sure the fields: ORG ID, Material Id, Type Id are key fields.
    If you are sure the internal table has not duplicated records and your z-table is empty: It can only suppose some field is not a key.
    If you have made some modification, try to check the database defination of your z-table is equal to dictionary defination
    Max

Maybe you are looking for

  • Html5 previews fine but doesn't open online

    My project previews fine in html5 and plays locally in all browsers, but won't open online in any browser. I just get a dark screen. The flash version works online. Any ideas why  the html 5 would play locally but not on the web?

  • Mass Change in Purchase order

    I want to update mass  Outline Agreement in Purchase orders. Can you please guide me on the same. Thnx Abhi

  • N8??????????? ANOTHER BIG LIE !!!

    Few years ago, I used to use Nokia all the time ! and only Nokia !! I've always had issues with Nokia handsets and never been satisfied with such qualityl, this is why I swore that I will never carry a Nokia handset ever again !! then I started using

  • High CPU Usage on Cisco 3845

    Hi all, I'm having high CPU usage with one of my Cisco 3845. It works as an IP-IP Gateway and the CPU is quite high when the total number of calls only around 100-200 calls. I check the CPU usage with "show process cpu sort" and it looks like there a

  • Thunderbolt screen backlight failure and mis diagnosis

    Hi, Here is one for the community. My 27inch screen started playing up and losing the back light. The only way to get it back was to disconnect from my mac mini and re connect again and it would bring the screen to life for a short time, progressingl