My code has given some error is there in that pls correct that one

TABLES:mseg,mard,mkpf.
TYPE-POOLS slis.
SELECTION-SCREEN BEGIN OF BLOCK b1 WITH FRAME TITLE text-001.
SELECT-OPTIONS:smblnr FOR mseg-mblnr MODIF ID m1,
               smatnr FOR mseg-matnr MODIF ID m2,
               swerks FOR mard-werks MODIF ID m3,
               slgort FOR mard-lgort MODIF ID m4,
               slgpbe FOR mard-lgpbe MODIF ID m5,
               scharg FOR mseg-charg MODIF ID m6,
               sbwart FOR mseg-bwart MODIF ID m7,
               skostl FOR mseg-kostl MODIF ID m8,
               saufnr FOR mseg-aufnr MODIF ID m9,
               srsnum FOR mseg-rsnum MODIF ID m10.
SELECTION-SCREEN END OF BLOCK b1.
SELECTION-SCREEN BEGIN OF BLOCK b2 WITH FRAME TITLE text-002.
PARAMETERS:pre RADIOBUTTON GROUP radi USER-COMMAND ucomm DEFAULT 'X',
           pse RADIOBUTTON GROUP radi,
           bps RADIOBUTTON GROUP radi.
SELECTION-SCREEN END OF BLOCK b2.
SELECTION-SCREEN BEGIN OF BLOCK b3 WITH FRAME TITLE text-003.
PARAMETER:lay TYPE i.
SELECTION-SCREEN END OF BLOCK b3.
DATA:BEGIN OF st_output,
     mblnr LIKE mseg-mblnr,
     matnr LIKE mseg-matnr,
     werks LIKE mard-werks,
     lgort LIKE mard-lgort,
     lgpbe LIKE mard-lgpbe,
     charg LIKE mseg-charg,
     bwart LIKE mseg-bwart,
     budat LIKE mkpf-budat,
     menge LIKE mseg-menge,
     meins LIKE mseg-meins,
     kostl LIKE mseg-kostl,
     aufnr LIKE mseg-aufnr,
     rsnum LIKE mseg-rsnum,
     checkbox TYPE c,
     END OF st_output, it_output LIKE TABLE OF st_output.
DATA:it_fieldcat TYPE slis_t_fieldcat_alv,
     st_fieldcat TYPE slis_fieldcat_alv,
     st_layout TYPE slis_layout_alv.
START-OF-SELECTION.
  IF sy-subrc EQ 0.
    SORT it_output BY matnr.
    PERFORM display_alv_output.
  ENDIF
*&      Form  display_alv_output
      text
-->  p1        text
<--  p2        text
FORM display_alv_output .
  REFRESH it_fieldcat.
  st_fieldcat-col_pos = 1.
  st_fieldcat-tabname = 'IT_OUTPUT'.
  st_fieldcat-fieldname = 'MBLNR'.
  st_fieldcat-seltext_l = 'Mat.Doc.'.
  st_fieldcat-key = 'X'.
  APPEND st_fieldcat TO it_fieldcat.
  CLEAR st_fieldcat.
  st_fieldcat-col_pos = 1.
  st_fieldcat-tabname = 'IT_OUTPUT'.
  st_fieldcat-fieldname = 'MATNR'.
  st_fieldcat-seltext_l = 'Material'.
  st_fieldcat-key = ' '.
  APPEND st_fieldcat TO it_fieldcat.
  CLEAR st_fieldcat.
  st_fieldcat-col_pos = 1.
  st_fieldcat-tabname = 'IT_OUTPUT'.
  st_fieldcat-fieldname = 'WERKS'.
  st_fieldcat-seltext_l = 'Plnt'.
  st_fieldcat-key = ' '.
  APPEND st_fieldcat TO it_fieldcat.
  CLEAR st_fieldcat.
  st_fieldcat-col_pos = 1.
  st_fieldcat-tabname = 'IT_OUTPUT'.
  st_fieldcat-fieldname = 'LGORT'.
  st_fieldcat-seltext_l = 'SLoc'.
  st_fieldcat-key = ' '.
  APPEND st_fieldcat TO it_fieldcat.
  CLEAR st_fieldcat.
  st_fieldcat-col_pos = 1.
  st_fieldcat-tabname = 'IT_OUTPUT'.
  st_fieldcat-fieldname = 'LGPBE'.
  st_fieldcat-seltext_l = 'Bin'.
  st_fieldcat-key = ' '.
  APPEND st_fieldcat TO it_fieldcat.
  CLEAR st_fieldcat.
  st_fieldcat-col_pos = 1.
  st_fieldcat-tabname = 'IT_OUTPUT'.
  st_fieldcat-fieldname = 'CHARG'.
  st_fieldcat-seltext_l = 'Batch'.
  st_fieldcat-key = ' '.
  APPEND st_fieldcat TO it_fieldcat.
  CLEAR st_fieldcat.
  st_fieldcat-col_pos = 1.
  st_fieldcat-tabname = 'IT_OUTPUT'.
  st_fieldcat-fieldname = 'BWART'.
  st_fieldcat-seltext_l = 'MvT'.
  st_fieldcat-key = ' '.
  APPEND st_fieldcat TO it_fieldcat.
  CLEAR st_fieldcat.
  st_fieldcat-col_pos = 1.
  st_fieldcat-tabname = 'IT_OUTPUT'.
  st_fieldcat-fieldname = 'BUDAT'.
  st_fieldcat-seltext_l = 'Pstng Data'.
  st_fieldcat-key = ' '.
  APPEND st_fieldcat TO it_fieldcat.
  CLEAR st_fieldcat.
  st_fieldcat-col_pos = 1.
  st_fieldcat-tabname = 'IT_OUTPUT'.
  st_fieldcat-fieldname = 'MENGE'.
  st_fieldcat-seltext_l = 'Quantity'.
  st_fieldcat-key = ' '.
  APPEND st_fieldcat TO it_fieldcat.
  CLEAR st_fieldcat.
  st_fieldcat-col_pos = 1.
  st_fieldcat-tabname = 'IT_OUTPUT'.
  st_fieldcat-fieldname = 'MEINS'.
  st_fieldcat-seltext_l = 'BUn'.
  st_fieldcat-key = ' '.
  APPEND st_fieldcat TO it_fieldcat.
  CLEAR st_fieldcat.
  st_fieldcat-col_pos = 1.
  st_fieldcat-tabname = 'IT_OUTPUT'.
  st_fieldcat-fieldname = 'KOSTL'.
  st_fieldcat-seltext_l = 'Cost ctr'.
  st_fieldcat-key = ' '.
  APPEND st_fieldcat TO it_fieldcat.
  CLEAR st_fieldcat.
  st_fieldcat-col_pos = 1.
  st_fieldcat-tabname = 'IT_OUTPUT'.
  st_fieldcat-fieldname = 'AUFNR'.
  st_fieldcat-seltext_l = 'Order'.
  st_fieldcat-key = ' '.
  APPEND st_fieldcat TO it_fieldcat.
  CLEAR st_fieldcat.
  st_fieldcat-col_pos = 1.
  st_fieldcat-tabname = 'IT_OUTPUT'.
  st_fieldcat-fieldname = 'RSNUM'.
  st_fieldcat-seltext_l = 'Reserv.No.'.
  st_fieldcat-key = ' '.
  APPEND st_fieldcat TO it_fieldcat.
  CLEAR st_fieldcat.
  st_fieldcat-col_pos = 1.
  st_fieldcat-fieldname = 'CHECKBOX'.
  st_fieldcat-seltext_l = 'Compltd'.
  st_fieldcat-checkbox = 'X'.
  st_fieldcat-edit = 'X'.
  APPEND st_fieldcat TO it_fieldcat.
  CLEAR st_fieldcat.
  SELECT mseg~mblnr
           mseg~matnr
           mard~werks
           mard~lgort
           mard~lgpbe
           mseg~charg
           mseg~bwart
           mkpf~budat
           mseg~menge
           mseg~meins
           mseg~kostl
           mseg~aufnr
           mseg~rsnum
           INTO TABLE it_output FROM
           mseg JOIN mard ON mardmatnr EQ msegmatnr
                JOIN mkpf ON msegmblnr EQ mkpfmblnr
                WHERE mseg~matnr IN smatnr.
  CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
    EXPORTING
      i_callback_program                = 'ZRREPORT'
      I_CALLBACK_PF_STATUS_SET          = 'PF_STATUS'
      I_CALLBACK_USER_COMMAND           = 'USER_COMMAND'
      is_layout                         = st_layout
      it_fieldcat                       = it_fieldcat
    TABLES
      t_outtab                          = it_output
    EXCEPTIONS
      program_error                     = 1
      OTHERS                            = 2.
ENDFORM.                    " display_alv_output     
FORM USER_COMMAND USING P_UCOMM TYPE SY-UCOMM
                        P_SELFLD TYPE SLIS_SELFIELD.
case p_ucomm.
when 'SAVE'.
DATA: ref1 type ref to cl_gui_alv_grid.
CALL FUNCTION 'GET_GLOBALS_FROM_SLVC_FULLSCR'
  IMPORTING
    E_GRID                   = ref1.
call method ref1->check_changed_data
Here you wil have the table with updated data
IT_OUTPUT2[] = IT_OUTPUT[].
delete IT_OUTPUT2 where checkbox = space. "Mark is the field for the checkbox
   modify ztable from table IT_OUTPUT.
endcase.
ENDFORM.

hi,
Error is in these lines
CALL METHOD REF1->CHECK_CHANGED_DATA. " <------forgot fullstop here
* Here you wil have the table with updated data
IT_OUTPUT2[] = IT_OUTPUT[]. " < ----------------IT_OUTPUT2 is not declared

Similar Messages

  • The SIM card In my iPhone 5 has been giving me occasional messages that there has been a SIM Failure, there is NO SIM, or that there is an INVALID SIM.  Until today, I was able to restart it with no problem and the SIM card would start up.

    The SIM card In my iPhone 5 has been giving me occasional messages that there has been a SIM Failure, there is NO SIM, or that there is an INVALID SIM.  Until today, I was able to restart it with no problem and the SIM card would start up.  This afternoon the NO SIM message came up and I cannot fix it. What is my next step?  I am traveling in Canada now and it is not convenient to come back to the States just to get a SIM card.
    Thanks,
    Lou

    Hi,
    Thanks for getting back to me.  How can I initiate Verizon sending me a new SIM card?  I will be here  long enough to receive it if they can send it to me.
    I have been trying to call Verizon Wireless, but they won’t take my call from my Skype account and I don’t have my phone.
    Thanks again,
    Lou

  • I-Tunes upgrade failed and has given me errors.

    Yesterday I attempted to upgrade I-tunes when prompted however the upgrade was unsuccessful and has caused errors.  Today when I booted up my computer I got runtime errors and was unable to open I-tunes as a .dll file was missing.  The error message recommended downloading i-tunes again so a uninstalled I-Tunes and then tried to download again but I get this message.  "Service "Apple Mobile Device" (Apple Mobile Device) failed to start.  Verify that you have sufficient privileges to start system services"  If I ignore the message it just keeps coming back to I have to Abort.  I now have no I-tunes.  Any help you can give me would be greatly appreciated.

    Hello there, klittee.
    In some cases it's necessary to remove all traces of iTunes software. This has to be performed in a very specific fashion. The following Knowledge Base article outlines those steps:
    Removing and reinstalling iTunes and other software components for Windows Vista, Windows 7, or Windows 8
    http://support.apple.com/kb/ht1923
    If the issue persists, this article provides some additional steps to try:
    iTunes 11.1.4 for Windows: Unable to install or open
    http://support.apple.com/kb/TS5376
    Thanks for reaching out to Apple Support Communities.
    Cheers,
    Pedro.

  • In imessage i sent a message to a friend. then when i tried to send a message to another friend it said message sent and then suddenly said some error was there. what should i do?

    please help.

    Check your WiFi connection and try to resend the message if that doesn't work try restarting your device

  • I was given some advice here to restore my macbook OS that was having a glitch I now realize was nothing, by sliding in the original OSX disk at start up and holding the C key down?

    So now my problem is herindous, my mac is crashed and it says I need to click repair disk if repair fails back up and erase the disc?
    I have limited access to anything and would like to know how to back it up if possible, I have bought a 500G seagate, but nothing seems to be working
    I have the snow leopard disc in it and it is open with Disc Utility, the repair disc did not work so I need to back up and erase, BUT HOW?
    Please any one with some competence as far as knowing what they are talking about so I can get off this DELL Windows laptop, It's miserable!
    Please good reliable advice needed with step by step blows for recovery, I have the MAC OS X Installer  open showing both the Macintosh HD and the FreeAge Drive side by side,
    Can I just load the Snow Leopard on the Freeagent and operate my computer like that to get by?
    HELP PLEASE?
    Sound confusing, I have been at it over 18 hours now with all involved and pulling my hair out!
    Sincerely grateful for some reliable advice from a mac expert!

    Me again, I am not rushing here for the obvious reasons, I dont expect to hear from you tonight (so late) hopefully 2marrow.
    Thinking closer about the way you worded it I dont think I actually booted of the disk, rather just able to access (Mac OS X Installer) that further allows me to access through clicking on (Utilities),
    (Disc Utility). With it open to begin the (Erase) of the free agent drive,
    I click on (erase) and the options open to be chosen of Format:
    included in those options I don't have what you listed for me to choose, the available options are:
    Mac OS Extended (journaled)
    Mac OS Extended
    Mac OS Extended (Case-sensitave,journaled)
    Mac OS Extended (Case-sensitave)
    MS-DOS (FAT)
    And under that is a space for Name: and it could be anything of my choise it by default automatically put in (FREEAGENT G)
    fURTHER DOWN AVAILABLE OPTIONS TO CLICK ON ARE
    Securiety Options: That compile 4 ranging from Don't Erase Data / to a 35-Pass Zero Out Data
    And finally the slightly smaller space available for me to click on that says (ERASE....) and it starts the scrub I figure.
    Now that would be the first part of two I would need to complete to hopefully get off this Dell from Windows Haties!
    Step 2) It would be nice if I could just drag the Mac OS x install DVD to the FreeAgent and it would load it, and maybe it's possible?? I know everything about nothing! Famously.
    But the next possible options back in (DISC Utility) when I am clicked on (The install DVD) are first aid,   erase,   and  Restore
    Then other options open to click on depending on what is chosen?
    I am sorry to be so handy cap needy, with my long history of (if there is anything worse that can happen it will happen to me) as it does and I have to accept the fact It can always be worse! I know yah it could, but then all mighty God would no longer have me the human hamster to bowel and toss around, and would get bored.
    ***************So I guess the first Mystery here is where's the (GUID) PARTITION option?*************************
    Ihave found an option under (RAID) that makes more available striped, Mirriored, and Concentrated (RAID Types)
    With (Format:) options the same as I listed above
    I do understand if your too busy and unable to get back as well,

  • HT5636 the screen has stopped working. Is there a combination of buttons that might have changed the screen from the laptop to project onto another screen.

    hi my granddaughter has an assignment to print off tomorrow and her screen was blank when she turned the computer on. You can hear it is working but not see anything. Are there a combination of buttons she might have pressed that would change the screen to a projector?  help please!!!

    OK, if you technically can't help as it has been hacked/unlocked then let's talk about another iPhone I have that nothing as been modified since it was purchased from the carrier.
    If I had a similar situation with this iPhone, could the camera problem be a software failure, and not just an hardware problem?
    Thanks again,
    and sorry for being so politically correct - it's definitely not me..

  • I bought a iphone from someone and i think the driver and software has been removed. Is there anything on the web that i can download to reinstall the software i need to get it working again

    Is there any software that i can download from the web to fix my phone? i bought it off the streets and the software and driver must have been deleted cause i can only get the itunes logo and i cant restore it.

    There is no driver software on the iPhone that anyone can remove, per se. Why can't you restore? Is the iPhone not recognized in iTunes? If not, see:
    http://support.apple.com/kb/TS1538
    http://support.apple.com/kb/HT1808
    Otherwise, please post back with details about the problem and someone can probably provide further suggestions.
    Regards.

  • HT204150 I had a backup in iCloud dated 8-23-2013.  When I updated my iPhone, it seems as though all my saved info has gone away.  Is there any way to get that info back?

    I backed my iPhone up on 08-23-2013.  I lost my phone and I had to get another one. When I went retrieve my info it is was no longer there.  Is there a way to retrieve?

    Check the iOS version on your new phone (Settings>General>About>Version).  It must be the same or higher as the one you backed up or you won't be able to access the backup without first updating your phone.

  • Some errors with the code

    hello all!
    i am trying to write simple code but have some errors.
    DECLARE
    id NUMBER;
    BEGIN
    id:=SELECT id from technician where salary=(select MIN(salary) from technician);
    DBMS_OUTPUT.put_line(id);
    END;

    Your simple program becomes complex! As pointed out, it will blow up if your query returns more than one row. If you're just doodling with your code, you can add "and rownum=1" to your where clause. That will prevent the "too many rows returned" exception. Of course, it is basically randomly picking one of several values in the DB, so it's not good for production code.
    For real code, there are at least two common options:
    (1) Use your select to create a cursor, which lets you loop through each matching row. Good when multiple rows are normal and you really want to use them all.
    (2) Create an integer variable, such as row_count. Select count(*) into row_count ... from technician t where salary....
    If row_count = 1 then use the assignment you were going to do. Otherwise, stop processing and log an error (too many or too few rows returned...).
    This is good when you expect EXACTLY one technician to have that salary, and anything else is an error.
    Andy

  • Hello, okay? On September 13 I bought an iPad and in October bought a game on the app store problem is that when informed the card number dropped normally, but then went on to ask for a new form of payment because one had given any errors, and so not lowe

    Hello, how are you? On September 13 I bought an iPad and in October bought a game on the app store problem is that when informed the card number dropped normally, but then went on to ask for a new form of payment because one had given any errors, and so not lowered any other game and not upgraded the already downloaded. I do not know what exactly I have to do, because if informed a new payment method continues with the same problem, checked the card bill and really had given an error, because there was no billed the game. I ask you to verify what happened and explain to me what I need to do, because my single card is Visa's and do not intend to return others to use the services of the App Store.
    Thank you for understanding.

    I think you need the app store support. http://www.apple.com/support/mac/app-store/contact/ Go there and use one of the methods to contact them about your issue and they should be able to help you out.
    This forum isn't checked by Apple employees but is for users to help each other out.
    Phil

  • Session keeps running when the query has a syntax error

    I have a weird scenario.
    Take this query for example: select distinct physassignednum from hsi.docdeficiency where delinqlevel> 0 and dfcystatus in (1,6));
    This query has a syntax error as there is an additional bracket at the end. I know that. When I run it on STJOSE database the session keeps running and never returns. Even if I stop it, it does not. I try to disconnect, it says "Connection is currently busy. Try again?" This behavior is pretty consistent on STJOSET. If I run this query on UMASS database it gives me this error (as expected)
    ORA-00933: SQL command not properly ended
    00933. 00000 - "SQL command not properly ended"
    *Cause:   
    *Action:
    Error at Line: 1 Column: 99
    I do not know what is wrong with the STJOSE database connection that causes the session to hang and never return.
    Please help.
    -Nags
    Oracle Database 11g Enterprise Edition Release 11.1.0.7.0 - 64bit Production (both databases)
    SQL Developer Version 3.0.04 Build Main-04.34

    This does not happen in sql*plus. It does not hang. It returns a proper error message.
    HSI@stjose> select distinct physassignednum from hsi.docdeficiency where delinqlevel> 0 and dfcystatus in (1,6));
    select distinct physassignednum from hsi.docdeficiency where delinqlevel> 0 and dfcystatus in (1,6))
    ERROR at line 1:
    ORA-00933: SQL command not properly ended
    HSI@stjose>

  • HT1725 i am trying to download a digital copy of a movie but it tells me the code has been redeemed and can only be redeemed once what can i do

    i am trying to put a digital copy from univeraldigitalcopy.com on my i tunes so i can put it on my ipad but it tells me my code has already been redeemed is there anything i can do to make this work thanks for your help

    You don't say which film you're struggling to download, I had problems with a-team and I ended up emailing the address on the leaflet, turns out they had a lot of problems  with people's codes,  they then gave me a new code to use! I have now managed to get the film downloaded?

  • HT201257 mac os x 10.4.11 tiger: apple hardware test has detected an error (what does this mean): 4SNS/1/40000001:VDOR

    Can someone help?  I did an apple hardware test and it has detected an error:  4SNS/1/40000001:VDOR
    What does that mean? Can i correct it myself? how?
    my computer is  "tiger" mac os x 10.4.11, Processor: 2.16 GHz Intel Core 2 Duo,  Memory: 2.5 Go 667 MHz DDR2 SDRAM

    Thank's for answering, realy appreciate your time,
    A technician had installed last year "mac os x snow leopard 10.6" (family pack) at around $49.00 - I had originaly mac os x 10.4.11 (tiger).  He had changed my hard drive, added memory: 2.5 Go 667 MHz DDR2 SDRAM, processor is: 2.16 GHz Intel Core 2 Duo  (he told me he had to change my hard drive probably due to a power shortage. Before he did the changes, I had done a hardware test: it gave me the same error as today 4SNS/1/40000001:DVOR,  He cleaned the inside, but he did not change any sensors. What am i to do???
    Not too long ago i started having problems. (probably from a power shortage, at one point.  I don't know if my external back up got corrupt. so i don't want to use it. He had eraced tiger 10.4.11 and installed snow leopard 10.6.
    I eraced snow leopard and installed mac os x 10.4.11 (that came with my computer).  
    I wanted to install mac os x 10.6 (snow Leopard) without eracing tiger (chat sites say you can do that) but it said it couldn't use my hard disk because of my memory:  my info says: used: 18,78 Go on the disk, available: 446.66 Go, Capacity: 465,44 Go
    So that's when i did a hardware test with the CD1 of mac os x 10.4 (tiger) and that where i got the message.
    If i have a sensor problem, then i guess i'm waisting my time trying to reinstall mac os x 10.6 (snow Leopard) or am i doing it wrong.  I was told i could leave tiger there and upgrade directly to snow leopard, without installing mac os x 10.5 (leopard).  
    Thank again

  • Uploading image file using tcode se78  occuring some   Error

    Hai Gurus
          I am uploading image file using tcode se78 but while Uploading it giving some error i cant resolve the problem so any one help me plz
    Error    "Graphic LOGO could not be saved (2LOGO)"
    Regards
    Selvendran

    Hai
    Thanks
    I had done in all method but i can't save it 
    error is coming ..so plz help me to upload the image
    Error "Graphic LOGO could not be saved (2LOGO)"
    Regards
    Selvendran

  • The company I work for has given me an iPhone, but I haven't been able to download any apps. I've created an apple account, it claimed that it had been verified, but everytime I go to download something, it verifies again and claims there's an error.

    The company I work for has given me an iPhone, but I haven't been able to download any apps. I've created an apple ID account, it claimed that it had been verified, but everytime I go to download something, it verifies again and claims there's an error. I've tried this now with 3 different emails, and the message reads: go to the iTunes support page. I've emailed Apple, and they were extremely unhelpful. I was given the most vague responses by Bidyut from the iTunes Store Customer service team. I would just like to be able to use this phone since I'm paying for it.

    It might be helpful if you told us exactly what the error was... If you don't give us specifics, the best you're going to get is vague responses.

Maybe you are looking for

  • Set tolerance limits in invoice block

    We have the following tolerances:                                                                                 Lower limit                                     Upper limit                                                                             

  • XPATH woes

    I am trying to execute some basic XPATH statements of the form "sum(/root/transactions/lineitem/amount)" The database table in question has a few Kilobytes of XML stored in a XMLType column and about 10000 rows in the table. If I attempt to use XMLQu

  • CONF21 Inbound Idoc - How to Monitor the Error

    I have just set up the idoc conf21 - and everything works perfectly well (I ticked "immediate update" via CI41 in order to avoid using CIP2). I have simulated an error in the ILE01 unit of measurement I putted 'XXX'. I launched the idoc via we19 and

  • Corrupted jpeg files (which other apps read fine)

    Hi, I'm running Lightroom on OS X. I imported several years of photos into it, and almost all were added to the Library just fine, but for two images (both JPEG files), Lightroom told me it can't read them because they're corrupt. The thing is, these

  • Customize look

    Can you customize the sun secure desktop looks, where the application are in different area instead off the side like it is.