Please try to find out error in this program

Hi abapers,
  when i execute this report , i got the error. please anybody find the error "Runtime Errors         GETWA_NOT_ASSIGNED"
Short text
    Field symbol has not yet been assigned." this error i got..
please help me..
REPORT  ZBLOCKED_ALV_CLS.
*Data Objects to avoid tables work area.
DATA: V_KUNNR TYPE KNA1-KUNNR,
      V_LIFNR TYPE LFA1-LIFNR.
*Logiv to maintain frist block.
SELECTION-SCREEN BEGIN OF BLOCK B1 WITH FRAME TITLE TEXT-001.
  SELECT-OPTIONS: CUSTOMER FOR V_KUNNR.
SELECTION-SCREEN END OF BLOCK B1.
SELECTION-SCREEN BEGIN OF BLOCK B2 WITH FRAME TITLE TEXT-002.
  SELECT-OPTIONS: VENDOR FOR V_LIFNR.
SELECTION-SCREEN END OF BLOCK B2.
TYPES: BEGIN OF TY_VBAK,
       VBELN TYPE VBELN_VA,
       ERDAT TYPE ERDAT,
       END OF TY_VBAK.
TYPES: BEGIN OF TY_EKKO,
       EBELN TYPE EBELN,
       AEDAT TYPE ERDAT,
       END OF TY_EKKO.
DATA: WA_VBAK TYPE TY_VBAK,
      WA_EKKO TYPE TY_EKKO,
      I_VBAK TYPE STANDARD TABLE OF TY_VBAK,
      I_EKKO TYPE STANDARD TABLE OF TY_EKKO.
TYPE-POOLS: SLIS.
DATA: REPID TYPE SY-REPID.
DATA: LAYOUT TYPE SLIS_LAYOUT_ALV,
      FCAT TYPE SLIS_FIELDCAT_ALV,
  F_VBAK LIKE STANDARD TABLE OF FCAT,
  F_EKKO LIKE STANDARD TABLE OF FCAT,
  I_EVENTS TYPE SLIS_T_EVENT.
START-OF-SELECTION.
REPID = SY-REPID.
* REPID TYPE SY-REPID.
PERFORM: GET_DATA,
         COL_HEAD.
CALL FUNCTION 'REUSE_ALV_BLOCK_LIST_INIT'
  EXPORTING
    I_CALLBACK_PROGRAM             = SY-REPID.
CALL FUNCTION 'REUSE_ALV_BLOCK_LIST_APPEND'
  EXPORTING
    IS_LAYOUT                        = LAYOUT
    IT_FIELDCAT                      = F_VBAK
    I_TABNAME                        = 'I_VBAK'
    IT_EVENTS                        = I_EVENTS
*   IT_SORT                          =
*   I_TEXT                           = ' '
  TABLES
    T_OUTTAB                         = I_VBAK
* EXCEPTIONS
*   PROGRAM_ERROR                    = 1
*   MAXIMUM_OF_APPENDS_REACHED       = 2
*   OTHERS                           = 3
CALL FUNCTION 'REUSE_ALV_BLOCK_LIST_APPEND'
  EXPORTING
    IS_LAYOUT                        = LAYOUT
    IT_FIELDCAT                      = F_EKKO
    I_TABNAME                        = 'I_EKKO'
    IT_EVENTS                        = I_EVENTS
*   IT_SORT                          =
*   I_TEXT                           = ' '
  TABLES
    T_OUTTAB                         = I_EKKO
* EXCEPTIONS
*   PROGRAM_ERROR                    = 1
*   MAXIMUM_OF_APPENDS_REACHED       = 2
*   OTHERS                           = 3
CALL FUNCTION 'REUSE_ALV_BLOCK_LIST_DISPLAY'.
*&      Form  GET_DATA
*       text
*  -->  p1        text
*  <--  p2        text
FORM GET_DATA .
SELECT VBELN ERDAT FROM VBAK INTO TABLE I_VBAK WHERE KUNNR IN CUSTOMER.
  SELECT EBELN AEDAT FROM EKKO INTO TABLE I_EKKO WHERE LIFNR IN VENDOR.
ENDFORM.                    " GET_DATA
*&      Form  COL_HEAD
*       text
*  -->  p1        text
*  <--  p2        text
FORM COL_HEAD .
PERFORM BUILD_CAT USING:
      'VBELN' 'VBAK' 'VBELN' 'I_VBAK' 'SD',
      'ERDAT' 'VBAK' 'ERDAT' 'I_VBAK' 'SD',
      'EBELN' 'EKKO' 'EBELN' 'I_EKKO' 'MM',
      'AEDAT' 'EKKO' 'AEDAT' 'I_EKKO' 'MM'.
ENDFORM.                    " COL_HEAD
*&      Form  BUILD_CAT
*       text
*      -->P_0238   text
*      -->P_0239   text
*      -->P_0240   text
*      -->P_0241   text
*      -->P_0242   text
FORM BUILD_CAT  USING    VALUE(P_0238)
                         VALUE(P_0239)
                         VALUE(P_0240)
                         VALUE(P_0241)
                         VALUE(P_0242).
  CLEAR FCAT.
  IF P_0242 = 'SD'.
    FCAT-REF_FIELDNAME = P_0238.
    FCAT-REF_TABNAME = P_0239.
    FCAT-FIELDNAME = P_0240.
    FCAT-TABNAME = P_0241.
    APPEND FCAT TO F_VBAK.
ENDIF.
IF P_0242 = 'MM'.
    FCAT-REF_FIELDNAME = P_0238.
    FCAT-REF_TABNAME = P_0239.
    FCAT-FIELDNAME = P_0240.
    FCAT-TABNAME = P_0241.
    APPEND FCAT TO F_VBAK.
ENDIF.
ENDFORM.                    " BUILD_CAT
Thanks,
Vinay.
Edited by: abapvinay on Apr 19, 2011 4:56 AM

Hi,
You have passed as shown below :
IF p_0242 = 'SD'.
    fcat-ref_fieldname = p_0238.
    fcat-ref_tabname = p_0239.
    fcat-fieldname = p_0240.
    fcat-tabname = p_0241.
    APPEND fcat TO f_vbak.
  ENDIF.
  IF p_0242 = 'MM'.
    fcat-ref_fieldname = p_0238.
    fcat-ref_tabname = p_0239.
    fcat-fieldname = p_0240.
    fcat-tabname = p_0241.
    APPEND fcat TO f_vbak. " Change this to F_EKKO
  ENDIF.
Hope this helps
Regards,
Madhukar Shetty

Similar Messages

  • Please help in finding the error in this code

    Dear Friends,
    I am trying to make the value of 'Shift' on the basis of  BLDAT CPUDT & CPUTM of MKPF but I am doing something wrong. Kindly have a look at the following code, especially the IF..ELSEIF section and help me in finding the error.
    Regards,
    Alok.
    SELECT MBLNR MJAHR BKTXT BUDAT BLDAT CPUDT CPUTM USNAM
    INTO CORRESPONDING FIELDS OF TABLE I_MKPF1
    FROM MKPF
    WHERE
    BUDAT EQ S_BUDAT AND
    TCODE2 EQ 'MFBF'.
    ********************************************************ALOK 01.02.07
    LOOP AT I_MKPF1.
           I_MKPF-MBLNR = I_MKPF1-MBLNR.
           I_MKPF-MJAHR = I_MKPF1-MJAHR.
           I_MKPF-BKTXT = I_MKPF1-BKTXT.
           I_MKPF-BUDAT = I_MKPF1-BUDAT.
           I_MKPF-BLDAT = I_MKPF1-BLDAT.
           I_MKPF-CPUDT = I_MKPF1-CPUDT.
           I_MKPF-CPUTM = I_MKPF1-CPUTM.
           I_MKPF-USNAM = I_MKPF1-USNAM.
    IF   ( ( I_MKPF1-CPUTM >= '090000' AND I_MKPF1-CPUTM < '160000' )
    AND   ( I_MKPF1-BLDAT = I_MKPF1-CPUDT ) ).
    I_MKPF-SHIFT = 'A'.
    ELSEIF ( ( I_MKPF1-CPUTM >= '090000' AND I_MKPF1-CPUTM <= '110000' )
       AND  ( I_MKPF1-BLDAT <>  I_MKPF1-CPUDT ) ).
    I_MKPF-SHIFT = 'C'.
    ELSEIF ( ( I_MKPF1-CPUTM >= '160000' AND I_MKPF1-CPUTM < '000000' )
      AND  ( I_MKPF1-BLDAT = I_MKPF1-CPUDT ) ).
    I_MKPF-SHIFT = 'B'.
    ENDIF.
    APPEND I_MKPF.
    CLEAR I_MKPF.
    ENDLOOP.

    Hi.
    IF (  I_MKPF1-CPUTM >= '090000' AND I_MKPF1-CPUTM < '160000' )
           AND ( I_MKPF1-BLDAT = I_MKPF1-CPUDT ) .
    I_MKPF-SHIFT = 'A'.
    ELSEIF  ( I_MKPF1-CPUTM >= '090000' AND I_MKPF1-CPUTM <= '110000' )
    AND ( I_MKPF1-BLDAT <> I_MKPF1-CPUDT ) .
    I_MKPF-SHIFT = 'C'.
    ELSEIF ( I_MKPF1-CPUTM >= '160000' AND I_MKPF1-CPUTM < '000000' )
    AND ( I_MKPF1-BLDAT = I_MKPF1-CPUDT ) .
    I_MKPF-SHIFT = 'B'.
    ENDIF.
    Try the above code ..
    Regards
    Sudheer

  • HT1933 I make a purhase on March 6 at 11:33 Order number MHOXX3TK9J for $1.99 and my credit card was charged $20.00 can you please help me find out why this happened

    I made a purchase on itunes on March 6 at 11:33 order umber MHOXX3TK9J for 1.99 and my credit card was charged $20.00 please help me find out why this happened.

    Contact iTunes support at the link below.
    https://ssl.apple.com/emea/support/itunes/contact.html

  • When I try to sign into my facetime on my macbook pro, it wont do it stating "The server encountered an error processing registration. Please try again later." It did this 10 times now. How do I fix this?

    when I try to sign into my facetime on my macbook pro, it wont do it stating "The server encountered an error processing registration. Please try again later." It did this 10 times now. How do I fix this?

    Hey radyslav,
    There's an article that applies to your situation, I'd follow the steps within here:
    FaceTime, Game Center, Messages: Troubleshooting sign in issues
    http://support.apple.com/kb/TS3970
    Take care,
    Delgadoh

  • I am currently getting finder error screen saying "Quartz-filter plugin" error, Please report to apple. Can anyone please help me find a resolution for this error?

    I am currently getting finder error screen saying "Quartz-filter plugin" error, Please report to apple. Can anyone please help me find a resolution for this error?

    If it were me I would schedule an appointment at the store where you bought it and meet with the Manager of the store in person. Print this post and bring it with you along with your iMac.
    And change the password on your Apple ID and then see if there are in purchases in your account that you did not make. If there are then someone did get your ID and password. If not someone got your Credit Card information from somewhere and used it.

  • When I try to manually backup my ipad2, I receive an error message stating "There was a problem completing the backup.  Please try again later" ... and this happens each time I try to back up.  Grateful for suggestions ...

    When I try to manually backup my ipad2, I receive an error message stating "There was a problem completing the backup.  Please try again later" ... and this happens each time I try to back up.  Grateful for suggestions ...

    Seems to be a common enough problem. I've deleted the partial failed backup from iCloud, restoring all 5Gb of storage. Then started a manual backup. After about 20 minutes I get the same error message. I have repeated this several times. According to my iTunes on my laptop I managed one backup to iCloud from there but it is pointless if u can neither backup to or restore from iCloud via my iPhone 4. I had hoped ios 5.0.1 would solve this glitch but ....
    So much for "it just works".
    I have yet to see any suggested fix that works for me. Any other suggestions?

  • The update plugins page won't work it says "We've encountered an error. Please try your request again later" but this message has been coming up for days now..

    I installed Firefox4 and immediately had a problem with the addons manager page not displaying properly ( all the right hand side of the page was missing). I was advised to try a new profile which fixed it but now when I go to the page "Check your plugins for updates it keeps showing this message "We've encountered an error. Please try your request again later" but this message has been coming up for days now..

    Clear the cache and the cookies from sites that cause problems.
    * "Clear the Cache": Tools > Options > Advanced > Network > Offline Storage (Cache): "Clear Now"
    * "Remove the Cookies" from sites causing problems: Tools > Options > Privacy > Cookies: "Show Cookies"
    Start Firefox in <u>[[Safe Mode]]</u> to check if one of the extensions is causing the problem (switch to the DEFAULT theme: Firefox (Tools) > Add-ons > Appearance/Themes).
    * Don't make any changes on the Safe mode start window.
    * https://support.mozilla.com/kb/Safe+Mode
    * [[Troubleshooting extensions and themes]]
    In Firefox 4 you can use one of these to start in <u>[[Safe mode]]</u>:
    * Help > Restart with Add-ons Disabled
    * Hold down the Shift key while double clicking the Firefox desktop shortcut (Windows)

  • Hi...  I just attempted to update CC.  Download itself appears to have happened, but when then I got this message...  Installer was unable to access a critical file/directory. Please try installing again.(Error code: 43) Contact Customer Support .... can

    Installer was unable to access a critical file/directory. Please try installing again.(Error code: 43) Contact Customer Support
    Any ideas?

    Hi  Serpent,
    Try the following Steps:
    open activity monitor and close all Adobe related applications
    navigate to: /Library/Application support/Adobe
    In that directory you will see a folder named OOBE - Rename that folder to OOBEold
    Navigate to: MAC HD /Application/Utilities directory
    In there you will see a folder called "Adobe Application Manager" - delete it
    Download the Adobe Cleaner Tool from here: http://helpx.adobe.com/creative-suite/kb/cs5-cleaner-tool-installation-problems/_jcr_conte nt/main-pars/accordion_container_1/accordion-par/accordion-item-1/accordion-item-par/proc e dure/proc_par/step_3/step_par/download/file.res/AdobeCreativeCloudCleanerTool.zip
    Open the Cleaner Tool and choose to clean "Creative Cloud" only.
    Download and install Creative Cloud again - https://ccmdls.adobe.com/AdobeProducts/KCCC/1/osx10/CreativeCloudInstaller.dmg
    Regards,
    Rave

  • I am getting "Error in accessing iTunes store. Please try again later." Error 0x80092013. I have just downloaded and installed current version of iTunes, and have the 2013 Norton IS. My proxy server is letting me got to iTunes, but cannot login.

    I have a proxy server and the server is allowing me to go to iTunes. But I get a message "Error in accessing iTunes store. Please try again later." Error code ox80092013. I cannot find that code in the troubleshooting section. I have just installed a new PC HP5750, with Norton IS 2013. I installed the current version of iTunes directly from the iTunes site. My proxy server is American Family Online web browsing filter. I contacted them and they said there should not be a problem with their server. I have had an account previously, but has been inactive for several months. I even tried to create a new account, but still got the same error code.
    Someone please help with this. I have accompaniment tracks on iTunes that I need for music ministry.

    Hi Lcoffin8,
    Thanks for visiting Apple Support Communities.
    See this article for additional information and steps that can help:
    Can't connect to the iTunes Store
    http://support.apple.com/kb/ts1368
    Regards,
    Jeremy

  • Error encountered during DocumentInstance initialization, No server was available to process the request. Please try again later. (Error: RFC 00101)

    Post Author: usaitconsultant
    CA Forum: JAVA
    HiIm trying to initialize my deski document to pass parameter values in prompts. However, Im encountering this error message " No server was available to process the request. Please try again later. (Error: RFC 00101)". Codes below.Anybody encountered this already or know how to resolve this? Please help me, thank you. Source Code:ReportEngines reportEngines = (ReportEngines)enterpriseSession.getService("ReportEngines");ReportEngine reportEngine = reportEngines.getService(ReportEngines.ReportEngineType.FC_REPORT_ENGINE); //DeskiDocumentInstance documentInstance = reportEngine.openDocument(infoObject.getID()); //Error  hereError encountered:Entering getRASConnection()ExceptionError Message: No server was available to process the request. Please try again later. (Error: RFC 00101)

    Hi Prabhat,
    Following solution might be helpful in resolving the issue.
    To resolve the error message
    Log on to the Central Management Console as administrator.
    Click Servers > Desktop Intelligence Report Server.
    Increase the following time-out parameters to at least twice the current value:
    Minutes before Idle connection is closed
    Minutes before an idle report job is closed
    Click Update > Apply.
    The report opens successfully.
    Regards,
    Sarbhjeet Kaur

  • No server was available to process request. Please try again later. (Error:

    In version BO XI R3.1 SP4, we face an error intermittently while trying to save large deski reports viewed in HTML format to pdf . It displays errors "No server was available to process request. Please try again later. (Error: RFC 00101)"  "
    The same error pops up intermittently while navigating between pages . This error is also seen for refresh of some of the reports . Anyone has come across this intermittent errors with the SP4 ?
    Regds
    Ksenia

    What application server are you using ? IIS
    how many deski report servers and cache servers do you have ? 4 Deski Report servers, 1 Cache server
    do you see your deski processes restarting or hanging during those errors ?  No, deski servers work fine
    you might be running out of capacity. : No we have enough storage , also the server resources are not much utilized. Also this also occurs when only one user is logged onto the system

  • Please help to find out asmlib kernel driver ?

    Hello everyone, please help to find out correct asmlib kernel driver ?
    rpm -ivh oracleasmlib-2.0.4-1.el5.x86_64.rpm
    error: Failed dependencies:
    oracleasm >= 1.0.4 is needed by oracleasmlib-2.0.4-1.el5.x86_64
    My kernel version is:
    uname -a
    Linux 2.6.18-238.el5xen #1 SMP Tue Jan 4 16:15:36 EST 2011 x86_64 x86_64 x86_64 GNU/Linux
    Thank you.

    user12144220 wrote:
    Hello everyone, please help to find out correct asmlib kernel driver ?
    rpm -ivh oracleasmlib-2.0.4-1.el5.x86_64.rpm
    error: Failed dependencies:
    oracleasm >= 1.0.4 is needed by oracleasmlib-2.0.4-1.el5.x86_64
    My kernel version is:
    uname -a
    Linux 2.6.18-238.el5xen #1 SMP Tue Jan 4 16:15:36 EST 2011 x86_64 x86_64 x86_64 GNU/Linux
    Thank you.uname -rm
    you can find the exact oracleasmlib for your version
    eg:- my system Intel IA64 Architecture
    Library and Tools
    * oracleasm-support-2.1.7-1.el5.ia64.rpm
    * oracleasmlib-2.0.4-1.el5.ia64.rpm
    and then search(control +F) for  2.6.18-238.el5
    refer this link:-http://www.oracle.com/technetwork/server-storage/linux/downloads/rhel5-084877.html

  • How can i fix  sorry, an unexpected error occured. Please try again later. Error code:-1012 (NSURLEErrorDomain)

    guys, im having problem when logging to facebook using my ipad2.. it has a pprompt message of;
    "Sorry, an unespected error occured. Please try again later. Error Code:-1012 (NSURLEErrorDomain)"
    how can i fix this error?
    need your help and inputs..
    regards

    Hello migoy1201,
    It sounds like you are experiencing this error with just the FaceBook app.  I recommend following the steps in this tutorial for an issue with a specific application:
    Using apps on your iPad
    https://www.apple.com/support/ipad/assistant/application/
    Thank you for using Apple Support Communities.
    Best,
    Sheila M.

  • Please help me find the error in the annex VI,access

    Hello, everyone, this is a program about ACCESS, please help me find the error in the annex VI, why do I always run time error. Thank you very much.
    Attachments:
    write access test.vi ‏22 KB

    Thank you for your reply, I have an attachment process map, could you help me change it, I just want to put my number in the array can continue to update the database. And I want to create a table.
    this is my msn :[email protected]
    Waiting for your reply on line
    谢谢你的回复,我的附件中有程序图,能不能帮我改一下,我只是希望,把我的数组中的数能够持续的更新在数据库中。并且创建一个我想要的表。

  • I want to buy a hard case for my macbook pro, but I don't know what year it is. When I use the serial number to try and find out, all it says is, "~VIN,MacBook Pro (15-inch Glossy)". When I type that into amazon for a case it gives me nothing!

    I want to buy a hard case for my macbook pro, but I don't know what year it is. When I use the serial number to try and find out, all it says is, "~VIN,MacBook Pro (15-inch Glossy)". When I type that into amazon for a case it gives me nothing!

    Hi T,
    Either of these will give you the info you seek:
    http://www.appleserialnumberinfo.com/Desktop/index.php
    http://www.chipmunk.nl/klantenservice/applemodel.html

Maybe you are looking for

  • F.13 Automatic clearing of GR/IR accounts

    Hi gurus, I'm trying to clear two GR/IR accounts using F.13. In OB74 i have maintained Criterion-1 as assignment field(ZUONR). With the first GR/IR account, I have no problem doing the clearing as the Assignment Field contains the Purchasing Doc. Whi

  • How to attach a word or excel file directly in Email App on iPhone 5s

    The biggest disappointment for me with iOS7 is the inability to attach word, excel and pdf documents directly to a mail in the Mail App instead of attaching them from the app you are using at the time. This is a serious flaw and Apple must by now kno

  • My BB Curve will not turn on; red light blinking

    My bb curve 8330 will not turn on, charge, or do anything other than flash the red light at me. I tried removing the battery and have tried charging it, but nothing seems to help. Any ideas? Solved! Go to Solution.

  • Iphone 3.0 reminder feature?

    does anyone know if the iphone 3.0 software will include a reminder feature for missed calls or text messages. i recently purchased an iphone and am missing a ton of calls and text messages. due to my work environment i must have my phone set to vibr

  • Where can I get a low-profile bracket for p212

    Hi, I have the adapter and a full height bracket but where can I get the low profile bracket?