Error IN ABAP PROGRAM AT PRINT PREVIEW

Dear All experts.
i got an error at gone to print preview of sales order delivery ALV reports. it gives an error follwing.
GETWA_NOT_ASSIGNED.
FIELD SYMBOL HAS BEEN NOT ASSIGNED.
BHAVESH PANCHAL

Dear Expert.
thnks for reply.
Just check my code. Also check my output.
thnks
*& Report  Z_SALES_EXP_BHAVESH
REPORT  Z_SALES_EXP_BHAVESH.
TYPE-POOLS:slis.
TABLES
TABLES: vbep,
        vbap,
        vbpa,
        vbkd,
        vbak,
        likp,
        lips,
        vbup,
        vbbe,
        konv,
        kna1.
DATA :BEGIN OF itab OCCURS 0,
vbeln LIKE vbak-vbeln,
posnr LIKE vbap-posnr,
edatu LIKE vbep-edatu,
knumv LIKE vbak-knumv,
wmeng LIKE vbep-wmeng,
bmeng LIKE vbep-bmeng,
lfimg LIKE lips-lfimg,
omeng LIKE vbbe-omeng,
posar LIKE vbap-posar,
netwr LIKE vbap-netwr,
ntgew LIKE vbap-ntgew,
kbetr LIKE konv-kbetr,
kwert LIKE konv-kwert, " CONDITION VALUE.
kunnr LIKE vbak-kunnr,
name1 LIKE kna1-name1,
*BRGEW LIKE VBAP-BRGEW,
bstkd LIKE vbkd-bstkd,
bstdk LIKE vbkd-bstdk,
lfsta LIKE vbup-lfsta,
*KNUMV LIKE VBAK-KNUMV,
*posnr LIKE LIPS-POSNR,
*NETWR LIKE VBAK-NETWR,
brgew LIKE vbap-brgew,
LFMNG like vbap-LFMNG,
lfdat LIKE likp-lfdat,
*NTGEW LIKE LIKP-NTGEW,
delivery LIKE lips-vbeln,
*LFIMG LIKE LIPS-LFIMG,
KWMENG like VBAP-KWMENG,
op_qty like VBAP-KWMENG,
weight LIKE vbap-ntgew,
pending_val LIKE vbap-netwr,
END OF itab.
*variable for Report ID
DATA: v_repid LIKE sy-repid .
*declaration for fieldcatalog
DATA: i_fieldcat TYPE slis_t_fieldcat_alv,
wa_fieldcat TYPE slis_fieldcat_alv.
DATA: it_listheader TYPE slis_t_listheader.
declartion for layout
DATA: alv_layout TYPE slis_layout_alv.
*Title displayed when the alv list is displayed
*DATA: i_title_main TYPE lvc_title VALUE 'FIRST LIST DISPLAYED'.
DATA: i_title_main TYPE lvc_title VALUE 'Reports : Bhavesh Panchal'.
DATA : it_vbak TYPE vbak OCCURS 0 WITH HEADER LINE,
       it_vbap TYPE vbap OCCURS 0 WITH HEADER LINE,
       it_vbrk TYPE vbrk OCCURS 0 WITH HEADER LINE,
       it_vbrp TYPE vbrp OCCURS 0 WITH HEADER LINE,
       it_vbep TYPE vbep OCCURS 0 WITH HEADER LINE,
       it_vbpa TYPE vbpa OCCURS 0 WITH HEADER LINE,
       it_lips TYPE lips OCCURS 0 WITH HEADER LINE ,
       it_likp TYPE likp OCCURS 0  WITH HEADER LINE,
       it_konv TYPE konv OCCURS 0 WITH HEADER LINE,
       it_kna1 TYPE kna1 OCCURS 0 WITH HEADER LINE,
       it_adrc TYPE adrc OCCURS 0 WITH HEADER LINE,
       it_makt TYPE makt OCCURS 0 WITH HEADER LINE,
       it_mara TYPE mara OCCURS 0 WITH HEADER LINE,
       it_vbkd TYPE vbkd OCCURS 0 WITH HEADER LINE,
       it_vbbe TYPE vbbe OCCURS 0 WITH HEADER LINE,
       it_vbup TYPE vbup OCCURS 0 WITH HEADER LINE,
       it_itob TYPE itob OCCURS 0 WITH HEADER LINE.
INITIALIZATION.
  v_repid = sy-repid.
  SELECTION-SCREEN BEGIN OF BLOCK b1 WITH FRAME TITLE text-001.
  SELECT-OPTIONS : so_vbeln FOR vbak-vbeln ,
  so_kunnr FOR vbpa-kunnr,
  so_edatu FOR itab-edatu.
  SELECTION-SCREEN: END OF BLOCK b1.
START-OF-SELECTION.
get the details required to be displayed in the report
  PERFORM fetch_data.
*& End-of-Selection
END-OF-SELECTION.
  IF itab[] IS NOT INITIAL.
initialize the fieldcatlog to be used for alv grid display
    PERFORM field_catalog.
display actual data in the alv grid
    PERFORM display.
  ELSE.
initialize the fieldcatlog to be used for alv grid display
    PERFORM field_catalog.
display actual data in the alv grid
    PERFORM display.
  ENDIF.
*&      Form  build_fieldcatlog
      text
FORM field_catalog.
*- Show quoted text -
  wa_fieldcat-tabname = 'ITAB'.
  wa_fieldcat-fieldname = 'VBELN'.
  wa_fieldcat-seltext_m = 'SalesOrderNo'.
  wa_fieldcat-outputlen = '12'.
  APPEND wa_fieldcat TO i_fieldcat.
  CLEAR wa_fieldcat.
Field for Customer Name.
  wa_fieldcat-tabname = 'ITAB'.
  wa_fieldcat-fieldname = 'NAME1'.
  wa_fieldcat-seltext_m = 'Customer Name'.
  wa_fieldcat-outputlen = '30'.
  APPEND wa_fieldcat TO i_fieldcat.
  CLEAR wa_fieldcat.
Field For Po Number.
  wa_fieldcat-tabname = 'ITAB'.
  wa_fieldcat-fieldname = 'BSTKD'.
  wa_fieldcat-seltext_m = 'PO No'.
  wa_fieldcat-outputlen = '20'.
  APPEND wa_fieldcat TO i_fieldcat.
  CLEAR wa_fieldcat.
Field For Order Value
  wa_fieldcat-tabname = 'ITAB'.
  wa_fieldcat-fieldname = 'NETWR'.
  wa_fieldcat-seltext_m = 'Order Value '.
  wa_fieldcat-outputlen = '12'.
  APPEND wa_fieldcat TO i_fieldcat.
  CLEAR wa_fieldcat.
Field For Po Date.
  wa_fieldcat-tabname = 'ITAB'.
  wa_fieldcat-fieldname = 'BSTDK'.
  wa_fieldcat-seltext_m = 'PO Date'.
  wa_fieldcat-outputlen = '20'.
  APPEND wa_fieldcat TO i_fieldcat.
  CLEAR wa_fieldcat.
  wa_fieldcat-tabname = 'ITAB'.
  wa_fieldcat-fieldname = 'EDATU'.
  wa_fieldcat-seltext_m = 'Delivery Date'.
  wa_fieldcat-outputlen = '12'.
  APPEND wa_fieldcat TO i_fieldcat.
  CLEAR wa_fieldcat.
Field For Order Qty.
  wa_fieldcat-tabname = 'ITAB'.
  wa_fieldcat-fieldname = 'KWMENG'.
  wa_fieldcat-seltext_m = 'Ord.QTY'.
  wa_fieldcat-outputlen = '20'.
  APPEND wa_fieldcat TO i_fieldcat.
  CLEAR wa_fieldcat.
field For Delivery Qty.
  wa_fieldcat-tabname = 'ITAB'.
  wa_fieldcat-fieldname = 'op_qty'.
  wa_fieldcat-seltext_m = 'DEL QTY.'.
  wa_fieldcat-outputlen = '20'.
  APPEND wa_fieldcat TO i_fieldcat.
  CLEAR wa_fieldcat.
Field For Open Qty from ITAB.
  wa_fieldcat-tabname = 'ITAB'.
  wa_fieldcat-fieldname = 'OMENG'.
  wa_fieldcat-seltext_m = 'OPEN QTY.'.
  wa_fieldcat-outputlen = '20'.
  APPEND wa_fieldcat TO i_fieldcat.
  CLEAR wa_fieldcat.
Field For Pending Weight from ITAB.
wa_fieldcat-tabname = 'ITAB'.
wa_fieldcat-fieldname = 'BRGEW'.
wa_fieldcat-seltext_m = 'Pending Weight'.
wa_fieldcat-outputlen = '12'.
APPEND wa_fieldcat TO i_fieldcat.
CLEAR wa_fieldcat.
Field For netweight.
  wa_fieldcat-tabname = 'ITAB'.
  wa_fieldcat-fieldname = 'NTGEW'.
  wa_fieldcat-seltext_m = 'Net Weight'.
  wa_fieldcat-outputlen = '20'.
  APPEND wa_fieldcat TO i_fieldcat.
  CLEAR wa_fieldcat.
Field For Actual Delivery.
wa_fieldcat-tabname = 'ITAB'.
wa_fieldcat-fieldname = 'LFDAT'.
wa_fieldcat-seltext_m = 'Actual Delivery'.
wa_fieldcat-outputlen = '12'.
APPEND wa_fieldcat TO i_fieldcat.
CLEAR wa_fieldcat.
  wa_fieldcat-tabname = 'ITAB'.
  wa_fieldcat-fieldname = 'KBETR'.
  wa_fieldcat-seltext_m = 'RATE'.
  wa_fieldcat-outputlen = '20'.
  APPEND wa_fieldcat TO i_fieldcat.
  CLEAR wa_fieldcat.
  wa_fieldcat-tabname = 'VBUP'.
  wa_fieldcat-fieldname = 'LFSTA'.
  wa_fieldcat-seltext_m = 'Delivery Status'.
  wa_fieldcat-outputlen = '20'.
  APPEND wa_fieldcat TO i_fieldcat.
  CLEAR wa_fieldcat.
Field For pending weight.
  wa_fieldcat-tabname = 'ITAB'.
  wa_fieldcat-fieldname = 'PENDING_VAL'.
  wa_fieldcat-seltext_m = 'Pending VALUE'.
  wa_fieldcat-outputlen = '20'.
  APPEND wa_fieldcat TO i_fieldcat.
  CLEAR wa_fieldcat.
ENDFORM. "BUILD_FIELDCATLOG
*&      Form  fetch_data
      text
FORM fetch_data.
  break mtabap.
  SELECT *
          FROM vbep
          INTO TABLE it_vbep
          WHERE edatu IN so_edatu
          AND vbeln IN so_vbeln.
  IF NOT it_vbep[] IS INITIAL.
    SELECT *
                   FROM vbak
                   INTO TABLE it_vbak
                   FOR ALL ENTRIES IN it_vbep
                   WHERE vbeln = it_vbep-vbeln
                   AND kunnr IN so_kunnr.
  ENDIF.
  IF NOT it_vbak[] IS INITIAL.
    SELECT *
            FROM vbpa
            INTO TABLE it_vbpa
            FOR ALL ENTRIES IN it_vbak
            WHERE vbeln = it_vbak-vbeln
            AND   posnr = space.
    SELECT *
             FROM vbap
             INTO TABLE it_vbap
             FOR ALL ENTRIES IN it_vbak
             WHERE vbeln = it_vbak-vbeln.
Select all Customer Data
    SELECT * FROM kna1 INTO TABLE it_kna1
    FOR ALL ENTRIES IN it_vbak
    WHERE kunnr = it_vbak-kunnr .
    SELECT *
             FROM vbkd
             INTO TABLE it_vbkd
             FOR ALL ENTRIES IN it_vbap
             WHERE vbeln = it_vbap-vbeln.
           and posnr = IT_VBAP-POSNR.
    SELECT *
             FROM vbbe
             INTO TABLE it_vbbe
             FOR ALL ENTRIES IN it_vbap
             WHERE vbeln = it_vbap-vbeln
             AND posnr = it_vbap-posnr.
    SELECT *
             FROM vbup
             INTO TABLE it_vbup
             FOR ALL ENTRIES IN it_vbap
             WHERE vbeln = it_vbap-vbeln
             AND posnr = it_vbap-posnr.
    SELECT *
             FROM konv
             INTO TABLE it_konv
             FOR ALL ENTRIES IN it_vbak
             WHERE knumv = it_vbak-knumv
             AND kinak = space .
    SELECT *
          FROM vbrp
          INTO TABLE it_vbrp
          FOR ALL ENTRIES IN it_vbak
          WHERE aubel = it_vbak-vbeln.
    IF NOT it_vbrp[] IS INITIAL.
      SELECT * FROM likp
                        INTO TABLE it_likp
                        FOR ALL ENTRIES IN it_vbrp
                        WHERE vbeln = it_vbrp-vgbel.
      SELECT * FROM lips
                        INTO TABLE it_lips
                        FOR ALL ENTRIES IN it_vbrp
                        WHERE vbeln = it_vbrp-vgbel
                        AND posnr = it_vbrp-vgpos.
                       itab-lfimg = it_lips-lfimg.
  ENDIF.  ENDIF.
  LOOP AT it_vbap.
    itab-posnr = it_vbap-posnr.
    itab-posar = it_vbap-posar.
    itab-brgew = it_vbap-brgew.
    itab-ntgew = it_vbap-ntgew.
    itab-KWMENG = it_vbap-kwmeng.
    itab-LFMNG = it_vbap-LFMNG.
    itab-LFIMG = it_lips-LFIMG.
    itab-op_qty = it_vbap-kwmeng - it_lips-LFIMG.
    READ TABLE it_vbak WITH KEY vbeln = it_vbap-vbeln.
    itab-vbeln = it_vbak-vbeln.
    itab-netwr = it_vbak-netwr.
    itab-kunnr = it_vbak-kunnr.
    READ TABLE it_vbep WITH KEY vbeln = it_vbap-vbeln.
    itab-edatu = it_vbep-edatu.
    READ TABLE it_kna1 WITH KEY kunnr = it_vbak-kunnr.
    itab-name1 = it_kna1-name1.
    READ TABLE it_vbkd WITH KEY vbeln = it_vbap-vbeln .
    itab-bstdk = it_vbkd-bstdk.
    itab-bstkd = it_vbkd-bstkd.
    READ TABLE it_vbrp WITH KEY aubel = it_vbap-vbeln aupos = it_vbap-posnr.
    READ TABLE it_lips WITH KEY vbeln = it_vbrp-aubel posnr = it_vbrp-aupos.
    itab-delivery = it_lips-vbeln.
   itab-del_qty = it_lips-lfimg.
   itab-del_qty = LIPS-LFIMG.
    READ TABLE it_likp WITH KEY vbeln = it_vbrp-aubel   .
    itab-lfdat = it_likp-lfdat.
   itab-ntgew = it_likp-ntgew.
    break mtabap.
    READ TABLE it_vbup WITH KEY vbeln = it_vbap-vbeln posnr = it_vbap-posnr.
    itab-lfsta = it_vbup-lfsta.
    READ TABLE it_vbep WITH KEY vbeln = it_vbap-vbeln posnr = it_vbap-posnr.
    itab-wmeng = it_vbap-kwmeng .
    itab-bmeng = it_vbep-bmeng.
    READ TABLE it_vbbe WITH KEY vbeln = it_vbap-vbeln posnr = it_vbap-posnr.
    itab-omeng = it_vbbe-omeng .
    READ TABLE it_konv WITH KEY knumv = it_vbak-knumv
                                kposn = it_vbap-posnr
                                kschl = 'PR00'.
   ITAB-KBETR = IT_KONV-KBETR / 10. " CONDITION RATE
    itab-kbetr = it_konv-kbetr.
    itab-kwert = it_konv-kwert . "CONDITION VALUE
   itab-pending_val =  ITAB-OMENG * ITAB-KWERT .
    itab-pending_val =  itab-omeng * itab-kbetr .
    APPEND itab.
  ENDLOOP.
ENDFORM. "data_retrieval
*&      Form  build_listheader
      text
     -->IT_LISTHEADER  text
Show quoted text -
FORM build_listheader USING it_listheader TYPE slis_t_listheader.
DATA HLINE TYPE SLIS_LISTHEADER.
  DATA: ls_line TYPE slis_listheader.
bhavesh
HLINE-INFO = 'report Developed by Bhavesh'.
HLINE-TYP = 'H'.
Header
Bhavesh
  CLEAR ls_line.
  ls_line-typ = 'H'.
LS_LINE-KEY: not used for this type
  ls_line-info = 'Sales ORDER Report'.
  APPEND ls_line TO it_listheader.
bhavesh
***Selection
  CLEAR ls_line.
  ls_line-typ = 'S'.
  ls_line-key = 'Key 1'.
  ls_line-info = 'SFEL'.
  APPEND ls_line TO it_listheader.
  ls_line-key = 'Key 2'.
  ls_line-info = 'SFEL'.
  APPEND ls_line TO it_listheader.
***Action
  CLEAR ls_line.
  ls_line-typ = 'A'.
LS_LINE-KEY: not used for this type
  ls_line-info = 'Status list'.
  APPEND ls_line TO it_listheader.
ENDFORM. "BUILD_LISTHEADER
*ENDFORM. "build_listheader
*&      Form  display
*&       text
FORM display.
  CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
        EXPORTING
          i_callback_program      = sy-repid
        i_callback_top_of_page  = 'TOP_OF_PAGE'
          is_layout               = alv_layout
          it_fieldcat             = i_fieldcat
        it_events               = gt_events[]
          i_callback_user_command = 'USER_COMMAND'
          i_grid_title            = 'BHAVESH REPORT'
          TABLES
          t_outtab                = itab[].
  CLEAR : itab .
ENDFORM.                    "display
*&      Form  top_of_page
      text
FORM top_of_page.
  CALL FUNCTION 'REUSE_ALV_COMMENTARY_WRITE'
    EXPORTING
      it_list_commentary = it_listheader[].
i_logo = 'ENJOYSAP_LOGO'.
I_END_OF_LIST_GRID =
ENDFORM. "TOP_OF_PAGE

Similar Messages

  • How to avoid time out error in abap program

    How to avoid time out error in abap program
    based on performance wise i want please help

    Timeout occurs when a statement exceeds its time limit.To avoid this we need to tune the statements.
    I can give give you few tips for tune a select stament.
    1.The order of the feilds in the select statement should be same as the order of fields in the database table.
    2.It is always advisible to use the key fields when you are using the where clause.
    3. Sort the internal table while using the for all entreis statements.
    4.Use index in where clause if necessary.
    5.When you have a read statement user binary search but before this a sort statement should be there.
    6. Check your program with the Tcode ST05 and check which statement takes much time based on that tune that.

  • Program to Print Preview from Spool

    Hello gurus,
    I hope you guys could help me out...my requirement is to write an ABAP program that receives a spool number and displays its print preview to the user from there user can choose to print or delete the spool number
    Any advices ?:)

    Hi ..
    Call this FM to generate the Print preview from SPOOL
        CALL FUNCTION 'RSPO_OUTPUT_SPOOL_REQUEST'
          EXPORTING
            spool_request_id = hrqident
          EXCEPTIONS
            OTHERS           = 0.
    <b>REWARD IF HELPFUL</b>

  • Ho to find script and the related print program for print preview of PO

    Hi All,
    We are getting some text output on the print preview of a purchase order.
    How can we determine the driver script and the corresponding print program for this.
    Can you please guide on this.
    Thanks in advance.
    Regards,
    Sanjeet

    U Can check Driver program and form related to that program table is TNAPPR
    Goto NACE t.code
    Selct Application ---> click on output types
    then u wil get one window there select proper output type and
    double click on  processing  routines u wil get form name and related driver program name also
    Plz try this....
    Edited by: Upender Verma on Feb 9, 2009 1:33 PM
    Edited by: Upender Verma on Feb 9, 2009 1:37 PM

  • Error in ABAP program CL_UC_VERSIONS_FACTORY, no UCMON/UCWB

    Hi guys,
    I was changing the data stream in UCWB, but when I quit I did NOT save my changes because I was not sure if they will be ok.
    Now I am not able to enter UCWB or UCMON anymore.  I have looked this error in google, toolbox for IT, OSS Notes with no success.  This error appears:
    Runtime Errors         DATREF_NOT_ASSIGNED  
    Short text                                              
         No access possible via the 'NULL' data reference      
    What happened?  
      Error in the ABAP Application Program                                                                               
    The current ABAP program "CL_UC_VERSIONS_FACTORY========CP" had to be
      terminated because it has                                          
    come across a statement that unfortunately cannot be executed.
    Error analysis                                                         
        There was an attempt to access a data object via a 'NULL' data     
        reference (points to 'nothing').                                   
        A data reference must point to data object before it can be used to
        access the referenced data object.                                 
        The reference was either never set or it was set to 'NULL' using the
        CLEAR statement.                                                   
    Trigger Location of Runtime Error                                                       
        Program                                 CL_UC_VERSIONS_FACTORY========CP            
        Include                                 CL_UC_VERSIONS_FACTORY========CM007         
        Row                                     254                                         
        Module type                             (METHOD)                                    
        Module Name                             VRS_SET_AREA                                
    Any help will be greatly appreciated,
    David Guerra

    Hi,
    It looks to me as a typical picture of data basis and/ or ConsArea inconsistency. Try to regenerate them.
    For access to the DB and ConsArea screen you may use UCWB01 and UCWB02 t-codes.

  • Error while displaying PO smartform print preview

    Hi,
    In th PO smartform iam trying to display the service PO. the data is coming in runtime but it is not displaying the print preview only for the service POs the error iam getting is "<b>system message 042 from work area SSFCOMPOSER does not exict</b>". other POs are displaying correctly. pl. help me inthis its urgent .. rewards for every correct guidence
    Message was edited by:
            satish k

    Hi
    pls check if you are using any checks or conditions under which a node gets executed only for service PO's. problem may be like some colums or rows may be missing in the table node etc.

  • Runtime Errors         ITAB_DUPLICATE_KEY ABAP Program           CL_BSP_WD_REPOSITORY==========CP

    We are doing the CRM Upgrade from EHp1 to EHp3
    after running the TC: WCF_CC as post upgrade activity
    Enhancement Set      ZXXX  and UI Component BP_ADDR  i got a short dump while trying to open the views in the component workbench as following
    What happened?
        Error in the ABAP Application Program
        The current ABAP program "CL_BSP_WD_REPOSITORY==========CP" had to be
         terminated because it has    come across a statement that unfortunately cannot be executed.
    Error analysis
        An attempt was made to insert an entry into table
         "\CLASS=CL_BSP_WD_REPOSITORY\METHOD=CREATE_INSTANCE_FROM_XML\DATA=LT_VIEWS".
         Updating
        unique table key "PRIMARY_KEY" resulted in a duplicate entry however. The key
         in
        question could be either the primary key or a secondary key.
        The key components of the duplicate entry have the values "{BP_A;X}" " " " "
        With primary keys, termination can occur during block insert
        operations. The can affect numerious statements, for example
        (1) MOVE
        (2) INSERT/APPEND ... LINES OF ... INTO/TO
        (3) SELECT ... INTO/APPENDING ...
        With secondary keys, termination can also occur due to a single record
        insert operation. In particular, the following modifying statements can
        cause the system to terminate due to duplicate key values as soon as
        the key is used again (delayed update):
     Please advice me how to solve it

    Hello Madhuri,
    Can you please deactivate your enhancement via setting user parameter WCF_IGNORE_ENHANCEMT =A using transaction code SU3? Then retest the issue? If it's works, then the error is happening due to your enhancement.
    If the error persist please check if note 1941320 can be applied in your system.
    thanks
    Willie

  • Error:Dataflows abap program

    Hi,
    Dataservices 4.2
    Sql server 2008
    SAP (4.6
    I make a migration of dataservices 11.5 towards 4.2 on new waiter.
    when I try to execute my dataflow abap, I have this message  error :
    error:"RFC Call Receive error<Function/BODS/ABAP_RUB:RFC_ABAP_EXCEPTION( PROGRAM_DOES_NOT_EXIT)aucun numéro de pager n'est généré pour cette adresse
    I have make install on the Server SAP 2 functions ( K900187.R22 and R900187.R22) which allowed me to import my SAP tables on the datastore and
    reading the data.
    I use "execute preloaded " option for execute my dataflows
    since migration the dataflows abap do not function any more
    it would have installations or configuration has to make on the Server SAP
    Somebody  has an idea
    Thanks you

    Dear Marie,
    You will have to have to import the new ABAP Program group "BODS/BOS" which you can find in the local install folder...
    Here are some details:
    Installing Functions on the SAP Server
    SAP BusinessObjects Data Services provides functions that support the use of the ABAP, BAPI, and
    IDoc interfaces on SAP servers. You will need some or all of these functions in the normal operation
    of the software in an SAP environment. These functions perform such operations as dynamically loading
    and executing ABAP programs from Data Services, efficiently running preloaded ABAP programs,
    allowing for seamless metadata browsing and importing from SAP servers, and reporting the status of
    running jobs. Some of these functions read data from SAP NetWeaver BW sources.
    You must upload the provided functions to your SAP server in a production environment. It is
    recommended that you always upload the functions to your SAP server whether you are in a
    development, test, or production environment. The functions provide seamless integration between
    Data Services and SAP servers.
    The default installation places two function module files for SAP servers in the ...\Data
    Services\Admin\R3_Functions\transport directory. You then upload these files to SAP servers
    using the SAP Correction and Transport System (CTS) or manually. Using CTS allows for version
    control as the functions evolve across releases.
    The installation provides two versions of transport files (depending on the server version you are using)
    to install the functions on the SAP server. To obtain the names of the latest transport files for installing
    or upgrading these SAP server functions, see the readme.txt file
    And I've found those files and text files in the local install folder....in:
    Program Files\SAP BusinessObjects\Data Services\admin\R3_Functions
    (that's where I've installed it).
    There you'll find some descriptive txt as how to proceed.
    After installing, it might happen that the executing user is missing some authorizations.
    Here my authorizations team helped me by tracing the user and then adding the necessary rights.
    Sure hope this will help you.
    Notes to check:
    see SAP Note 1919255
    Note 1916294

  • Forcing an error on ABAP program (SE38)

    Hi all,
    i'm creating an ABAP program on SE38 and i'm going to use it on a process chain.
    I need that under certain condition the program return error so the process gets red and the chain don't continue.
    How do i generate the error on the program ?
    thx in advance

    Hi Juan,
    you use the "MESSAGE" statement to give out any kind of messages (error, warning or information). I think you need to have a custom message class and a custom message in the class. Please look into SAP help for syntax and usage.
    Thanks and Regards
    Subray Hegde

  • Adobe Form- Error while clicking on the print preview option

    Hi,
    An exception is being raised as shown below-
    ADS: SOAP Runtime Exception:
    CSoapExceptionTransport :(100101)
    when i am trying to view the print preview of the invoice form (adobe form) in VF03 transaction.Please let me know the reason why this is occurring. I thought may be the form is inactive, but the form is in active state only.

    Hi,
    Have you seen SAP note 944221?  It has some advice on this error.
    Regards,
    Nick

  • Error in ABAP Program

    hi ,
    I am a basis person and very new to ABAP.
    Pls let me know the error in the folllowing program
    REPORT  Z_ROLES.
    data : count type i.
    data : begin of it_role occurs 0,
                agr_name type AGR_NAME,
           end of it_role.
           data : begin of obj_table occurs 0,
                objct type XUOBJECT,
           end of obj_table.
    select OBJCT from TOBJ into table obj_table
      where OCLSS IN ('RS','RSR', 'RSBC').
      clear count.
      loop at obj_table.
    add 1 to count.
    endloop.
    select AGR_NAME from AGR_1250
    into   table it_role
    for all entries in obj_table
      where OBJECT = obj_table.objct
         AND
    AGR_NAME LIKE 'Z%'.
    clear count.
    loop at it_role.
    add 1 to count.
    endloop.
    write : count.

    Hi,
    I've boldened the mistakes, plz make the changes accordingly,
    REPORT Z_ROLES.
    data : count type i.
    data : begin of it_role occurs 0,
    agr_name type AGR_NAME,
    end of it_role.
    data : begin of obj_table occurs 0,
    objct type XUOBJECT,
    end of obj_table.
    select OBJCT from TOBJ into table obj_table
    where OCLSS IN ('RS','RSR', 'RSBC').
    clear count.
    loop at obj_table.
    add 1 to count.
    endloop.
    select AGR_NAME from AGR_1250
    into table it_role
    for all entries in obj_table
    where OBJECT = <b>obj_table-objct</b>
    AND
    AGR_NAME LIKE 'Z%'.
    clear count.
    loop at it_role.
    add 1 to count.
    endloop.
    write : count.
    <b>Reward points if this helps,</b>
    Kiran

  • Syntatical error in ABAP program

    Hi,
    I have a table called ZEX1_DEPT. Now I am trying to design a screen and written the follwoing program to insert data in the table ZEX1_DEPT. The structure of the table ZEX1_DEPT is DEPTNO NUMC, DEPTNAME CHAR.
    REPORT  Y_INSERT_INTO_DEPT_TABLE.
    TABLES  ZEX1_DEPT.
    DATA: ok_code TYPE sy-ucomm,
          save_ok LIKE ok_code,
          v_dept_no TYPE n,
          v_dept_name TYPE c,
          v_dept TYPE ZEX1_DEPT.
    CALL SCREEN 100.
    MODULE init_screen_0100 OUTPUT.
      CLEAR v_dept_no.
      CLEAR v_dept_name.
    ENDMODULE.
    MODULE user_command_0100 INPUT.
      save_ok = ok_code.
      CLEAR ok_code.
      CASE save_ok.
        WHEN 'BUTTON_EXIT'.
          LEAVE PROGRAM.
        WHEN 'BUTTON_INSERT'.
          v_dept.deptno = v_dept_no.
          v_dept.deptname = v_dept_name.
          INSERT INTO ZEX1_DEPT VALUES v_dept.
      ENDCASE.
    ENDMODULE.
    But I am getting the following error during chek syntax.
    Program Y_INSERT_INTO_DEPT_TABLE     33     @0A\QError@
    Statement "V_DEPT" is not defined. Check your spelling. spelling.          
    spelling. spelling.          
    Can you please tell me why I am getting the error and how can I get rid of it.
    Regards,
    Koushik

    Hi,
    Try like below
    MODULE user_command_0100 INPUT.
    save_ok = ok_code.
    CLEAR ok_code.
    CASE save_ok.
    WHEN 'BUTTON_EXIT'.
    LEAVE PROGRAM.
    WHEN 'BUTTON_INSERT'.
    v_dept-deptno = v_dept_no.
    v_dept-deptname = v_dept_name.
    INSERT INTO ZEX1_DEPT VALUES v_dept.
    ENDCASE.
    ENDMODULE.
    Instaed of (v_dept.deptno) write (v_dept-deptno)
    In all case when you are assigning values to structure.
    Regards,
    Sujit

  • 'OBJECTS_OBJREF_NOT_ASSIGNED_NO' Runtime Error in abap program

    When my dubugger goes on this line..it gives me Runtime error'
    'OBJECTS_OBJREF_NOT_ASSIGNED_NO'
    CX_SY_REF_IS_INITIAL
    Code :
    CALL METHOD determine_budget_values->determine_budget_values
      EXPORTING
         plvar  = '.:'
         butyp  = 'BU'
         begda  = '20060101'  "'01.01.2006'
         endda  = '20061231'  "'31.12.2006'
         kcurr  = 'X'
         budot  = 'BU'
         budid  = '50012433'  "objektid
         oldam  = 1000
         oldcu  = 'USD'
         oldno  = 10
         oldsu  = 'USD'
      IMPORTING
        NEWAM  = newam
        NEWCU  = newcu.
      NEWNO  =
      NEWSU  =
    Thanx in advance....Its very urgent..

    Thanks a lott...for u r rhelp///
    but one thing i would like to know after executing properly this method....will my HRP1520 will get those new values of budget of i will have to code it in Method ..specifically.
    i m sending code for Method...
    method IF_EX_HRECM00_BDG0001~DETERMINE_BUDGET_VALUES.
      DATA: BEGIN OF fs_budgets               ,
              objid(8) TYPE n                 ,             " Object Id
              flag     TYPE c                 ,             " Monetary/Non Monetary
              newam    TYPE CHAR22            ,             " Budgeted Amount,
              newcu    TYPE CHAR05            ,             " Currency Key,
            END OF fs_budgets                 ,
            t_budgets LIKE TABLE OF fs_budgets.
      DATA: w_sobid   TYPE hrp1001-sobid      ,             " Org. Unit
            w_file    TYPE rlgrap-filename    .             " File Name
      DATA: t_orgunit      TYPE hap_t_hrsobid    ,          " Id of Org. unit
            t_suborgunits  TYPE hap_t_hrsobid    ,          " Ids of Sub Org Units
            fs_orgunit     LIKE LINE OF t_orgunit.          " Work Area of orgunit
      REFRESH: t_orgunit,
               t_suborgunits.
      CLEAR  : fs_orgunit..
    The Budget values are stored in the file 'BUDGETS' on the App Server*
    This data will be read from the App Server                          *
      w_file = 'BUDGETS'.
      OPEN DATASET w_file FOR INPUT IN TEXT MODE ENCODING DEFAULT.
    Fetching the corresponding Org Unit for the Budget Id               *
      SELECT sobid                         " Org. Unit
        FROM hrp1001
        INTO w_sobid
       WHERE plvar EQ '01'
         AND otype EQ 'BU'
         AND objid EQ  budid
         AND rsign EQ 'B'
         AND relat EQ '300'
         AND istat EQ '1'
         AND begda LE  endda
         AND endda GE  begda.
      ENDSELECT.                           " SELECT sobid
      IF sy-subrc EQ 0.
        fs_orgunit-plvar = '01'.
        fs_orgunit-otype = 'O'.
        fs_orgunit-sobid = w_sobid.
        APPEND fs_orgunit TO t_orgunit.
        CLEAR  fs_orgunit.
    Fetching the Sub Org units for a given Org unit                     *
        CALL FUNCTION 'HRHAP_SEL_OBJECTS_OF_EVAL_PATH'
          EXPORTING
            T_OBJECTS_BASE   =  t_orgunit
            EVALUATION_PATH  = 'ORGEH'
            FROM_DATE        =  begda
            TO_DATE          =  endda
          IMPORTING
            T_OBJECTS        =  t_suborgunits.
      ENDIF.                               " IF sy-subrc EQ 0.
      CLEAR newam.
    Accumulating the budget values of all the Sub org units for a given *
    Org unit and populating the fields 'newam' and 'newcu'.             *
      LOOP AT t_suborgunits INTO fs_orgunit.
        CLOSE DATASET w_file.
        OPEN DATASET w_file FOR INPUT IN TEXT MODE ENCODING DEFAULT.
        DO.
          READ DATASET w_file INTO fs_budgets.
          IF sy-subrc EQ 0.
            IF fs_budgets-objid EQ fs_orgunit-sobid.
              ADD fs_budgets-newam TO newam.
              newcu = fs_budgets-newcu.
              EXIT.
            ENDIF.
          ELSE.
            EXIT.
          ENDIF.                           " IF sy-subrc EQ 0.
        ENDDO.                             " DO
      ENDLOOP.                             " LOOP AT t_suborgunits
    Giving default values for the Budget Amount and Currency if they are*
    containing Initial values                                           *
      IF newam IS INITIAL.
        newam = 0.
      ENDIF.                               " IF newam IS INITIAL.
      IF newcu IS INITIAL.
        newcu = 'USD'.
      ENDIF.                               " IF newcu IS INITIAL.
      CLOSE DATASET w_file.
    endmethod.
    After this code will i require to code anything specific to get this newam(new amount) uploaded to HRP1520 infotype or automatically it will upload if i write above mentioned code only...
    Please revert......thanx  a lot

  • Error in Print Preview of PO

    hi,
    i am getting an error while am seeing the print preview of PO.
    "Processig routine ENTRY_NEU in program/smb40/FM06P does not exist"
    can any one suggest me how to fix this.
    regards
    subhash

    Hello,
    you have to install the Best Practice Baseline package to have the functionality in namespace /SMB40/ available.
    Have a look at http://service.sap.com/bestpractices, http://help.sap.com/bestpractices and this thread Smartforms In ECC6.0

  • Error: Error in OPEN_FORM for document '123456789' in ME9A(print preview)

    Hello Experts,
    I am encountering an error when I try to print preview my RFQ form via ME9A. What
    I did was to just copy the existing custom form to my own custom form then assign my form
    to our output type via NACE transaction. So when I click the display message button in
    ME9A, ther eis an error saying 'Error in OPEN_FORM for document...'
    What maybe the cause for this? Hope you can help out guys. Thank you and take care!

    HI,
       Specify the print program name in the script form. To specify the program in script form Form->Check->Texts->Select all->ok->Enter the Print Program Name and try.
       This might be the problem.
    Regards,
    Saran

Maybe you are looking for

  • CS5.5 Download hang at ~50%

    Hello, I'm trying to download CS5.5 design premium trial, but the adobe dowloader hang at ~50%, the size of file created is 4.080.784Kb. I've tried 5 times to download this, and it always hang at ~50%. Is it really possible to download it? Isn't it p

  • How do you modify the appearance of a control

    I want to add a red arc on the outer edge of a meter control.  The arc should only cover about 120 degrees.  Is there a way to modify the graphics of a control? Thanks in advance.

  • How to check scheduled job

    Hi, I have scheduled my logon job using dbms_scheduler,later completion of job,how could i view that particular job?

  • Accessing data from TabularDataSupport

    I've created an MXBean that exposes a Map<String, CustomClass> where the custom class uses basic types. This all works nicely in JConsole; I can browse the keys in the TabularDataSupport map and then dig deeper in to the child objects. Great. Now tha

  • Hands on training class coming up: what to expect?

    Hi: Finally, after more than 2 years, I am at the final stage of my OCP path, namely the Hands on Training. What should we expect from this class? My class will be Performance Tuning for 10g. Is there some kind of exam at the end? Are there specific