How to  include a report  into the  SAP-SCRIPT

plz tell me 
How to  include a report  into the  SAP-SCRIPT
ASAP

creat a z report like this....................
REPORT  zmmgl_picklist1.
TABLES : likp,ltap,ltak.
data : lv_NUM1 type c .
data : lv_NUM type c.
*&      Form  get_data1
      text
     -->IN_DATA    text
     -->OUT_DATA   text
FORM get_data1 TABLES in_data STRUCTURE  itcsy
                     out_data STRUCTURE itcsy.
READ TABLE in_data WITH KEY name = 'LTAP-VBELN'.
lv_NUM = lv_NUM1 + 1.
out_data-name = 'lv_NUM'.
  out_data-value = lv_NUM .
APPEND out_data.
endform.
*&      Form  get_data
      This form is to read  details from  LIKP    *
     -->IN_DATA    text
     -->OUT_DATA   text
FORM get_data TABLES in_data STRUCTURE  itcsy
                     out_data STRUCTURE itcsy.
  READ TABLE in_data WITH KEY name = 'LTAK-VBELN'.
  Select single bldat from likp into likp-bldat where lgnum = ltap-lgnum.
  out_data-name = 'LIKP-BLDAT'.
  out_data-value = likp-bldat.
  APPEND out_data.
   READ TABLE in_data WITH KEY name = 'LTAK-VBELN'.
  Select single vstel from likp into likp-vstel where lgnum = ltak-lgnum .
  out_data-name = 'LIKP-VSTEL'.
  out_data-value = likp-vstel.
  APPEND out_data.
READ TABLE in_data WITH KEY name = 'LTAK-VBELN'.
  Select single kunnr from likp into likp-kunnr where lgnum = ltap-lgnum.
  out_data-name = 'LIKP-KUNNR'.
  out_data-value = likp-kunnr.
  APPEND out_data.
ENDFORM.                    "get_data.
after this go to the script editor......
/: perform get_data in program zmmgl_picklist1.
/: using &ltap-vbeln&                 (Reference field.this field          should be there in both program and script.....)
/:changing &likp-bldat&         
/:changing &likp-vstel&
/:changing &likp-kunnr&
\[removed by moderator\]
Regards
Anbu
Edited by: Jan Stallkamp on Jun 10, 2008 2:26 PM

Similar Messages

  • How to add a report into the SAP-SCRIPT .using PERFORM ......ENDPERFORM

    My question is that How to add a report into the SAP-SCRIPT .
    by using PERFORM ......ENDPERFORM
    I don't know how to used it .

    Hi Sandeep,
    Please check this link
    http://help.sap.com/saphelp_40b/helpdata/en/d1/803279454211d189710000e8322d00/content.htm
    http://www.allinterview.com/showanswers/37425.html
    Calling ABAP Subroutines: PERFORM
    You can use the PERFORM command to call an ABAP subroutine (form) from any program, subject to the normal ABAP runtime authorization checking. You can use such calls to subroutines for carrying out calculations, for obtaining data from the database that is needed at display or print time, for formatting data, and so on.
    PERFORM commands, like all control commands, are executed when a document is formatted for display or printing. Communication between a subroutine that you call and the document is by way of symbols whose values are set in the subroutine.
    Syntax in a form window:
    /: PERFORM <form> IN PROGRAM <prog>
    /: USING &INVAR1&
    /: USING &INVAR2&
    /: CHANGING &OUTVAR1&
    /: CHANGING &OUTVAR2&
    /: ENDPERFORM
    INVAR1 and INVAR2 are variable symbols and may be of any of the four SAPscript symbol types.
    OUTVAR1 and OUTVAR2 are local text symbols and must therefore be character strings.
    The ABAP subroutine called via the command line stated above must be defined in the ABAP report prog as follows:
    FORM <form> TABLES IN_TAB STRUCTURE ITCSY
    OUT_TAB STRUCTURE ITCSY.
    ENDFORM.
    The values of the SAPscript symbols passed with /: USING... are now stored in the internal table IN_TAB . Note that the system passes the values as character string to the subroutine, since the field Feld VALUE in structure ITCSY has the domain TDSYMVALUE (CHAR 80). See the example below on how to access the variables.
    The internal table OUT_TAB contains names and values of the CHANGING parameters in the PERFORM statement. These parameters are local text symbols, that is, character fields. See the example below on how to return the variables within the subroutine.
    From within a SAPscript form, a subroutine GET_BARCODE in the ABAP program QCJPERFO is called. Then the simple barcode contained there (u2018First pageu2019, u2018Next pageu2019, u2018Last pageu2019) is printed as local variable symbol.
    Definition in the SAPscript form:
    /: PERFORM GET_BARCODE IN PROGRAM QCJPERFO
    /: USING &PAGE&
    /: USING &NEXTPAGE&
    /: CHANGING &BARCODE&
    /: ENDPERFORM
    / &BARCODE&
    Coding of the calling ABAP program:
    REPORT QCJPERFO.
    FORM GET_BARCODE TABLES IN_PAR STUCTURE ITCSY
    OUT_PAR STRUCTURE ITCSY.
    DATA: PAGNUM LIKE SY-TABIX, "page number
    NEXTPAGE LIKE SY-TABIX. "number of next page
    READ TABLE IN_PAR WITH KEY u2018PAGEu2019.
    CHECK SY-SUBRC = 0.
    PAGNUM = IN_PAR-VALUE.
    READ TABLE IN_PAR WITH KEY u2018NEXTPAGEu2019.
    CHECK SY-SUBRC = 0.
    NEXTPAGE = IN_PAR-VALUE.
    READ TABLE IN_PAR WITH KEY u2018BARCODEu2019.
    CHECK SY-SUBRC = 0.
    IF PAGNUM = 1.
    OUT_PAR-VALUE = u2018|u2019. "First page
    ELSE.
    OUT_PAR-VALUE = u2018||u2019. "Next page
    ENDIF.
    IF NEXTPAGE = 0.
    OUT_PAR-VALUE+2 = u2018Lu2019. "Flag: last page
    ENDIF.
    MODIFY OUT_PAR INDEX SY-TABIX.
    ENDFORM.
    Best regards,
    raam

  • How to add a page in the SAP Scripts

    Hi All,
    I want to know how to add a page in the sap scripts. there is already sap script developed by some other person.
    Now I have to add a page in front of that and have to add some more data.I added a page in page windows but thats not at all working.
    Please help me out in this.
    Thanks,
    Praveen

    new page will create in sap scripts using new page command.
    you have to set condition like after some number of records displayed in page new page has to be trigger.
    ex:YOU HAVE SO MANY RECORDS FOR PRINTING BUT YOU WANT TO DISPLAY 100 RECORDS IN FIRST PAGE REMAINING IN SECOND PAGE LIKE THAT.
    Here you can use NEW PAGE COMMAND .
    IT IS OPPOSITE PURPOSE OF PROTECT AND ENDPOTECT.
    Reward if useful.

  • How to integrate BW reports into the Portal ???

    Hi all,
      I need to integrate the BW (3.5) Reports into the Portal. If any one has good documents could you please pass it to my e-mail id: [email protected]
    Thanks in advance.

    Hi Venkat,
    Integration of BW Components into the Portal
    http://help.sap.com/saphelp_nw04/helpdata/en/a8/37e1082163c54abce581a54d6b771a/frameset.htm
    Configuration for the Integration of SAP BW and SAP EP
    http://help.sap.com/saphelp_nw04/helpdata/en/2f/741a403233dd5fe10000000a155106/frameset.htm
    How to Integrate BW Web Applications into EP 5.0
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/af073962-0b01-0010-f7a4-f4c1023ed0a4
    Keys for Integrating SAP BW 3.5 and SAP Enterprise Portal 6.0
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/6b1472a7-0301-0010-64bd-dc96509db6f7
    Enterprise Portal Integration into BW(e-class)
    https://media.sdn.sap.com/eclasses/ebw201/main.htm
    Hope this helps.
    Regards
    Hari

  • How to download project template into the SAP NetWeaver Developer Studio

    Hi,
          I want to download project template into the SAP NetWeaver Developer Studio related to invoice detail get detail,get list etc.
    How to do so?Actualy my requirement is to create an iView whcih contain the detail about the invoice.
    Thank,
    Kundan

    Hi
    If you have zip file of the project then unzip it into your project  location where all projects are there .then in NWDS go to file->import->multiple existing project into workspace->browse the file where you have saved it and select the comp folder inside the project folder->click finish.Now you are able to see the webdynpro project in the webdynpro explorer.If its not appearing then go to Navigatore and right click on project and click on open project, it will open the project in webDynpro explorer.
    Thanks
    Susmita

  • How to add a report into the tree??

    Hi all,
    Pls help me add a report into the tree same as standard report that we can click icon on tree to run.
    Thank you!

    Hi,
    use FM HR_ALV_HIERSEQ_LIST_DISPLAY
    there are 2 internal table , one for header and one for detail
    below is code for reference
    REPORT zinsd_quot_cont.
    TYPES : BEGIN OF ty_vbak,
    vbeln TYPE vbeln_va,
    vkorg TYPE vkorg,
    vtweg TYPE vtweg,
    spart TYPE spart,
    vkbur TYPE vkbur,
    vkgrp TYPE vkgrp,
    angdt TYPE angdt_v,
    bnddt TYPE bnddt,
    kunnr TYPE kunnr,
    kwmeng TYPE kwmeng,
    meins TYPE meins,
    kunwe TYPE kunnr,
    name1 TYPE name1_gp ,
    name2 TYPE name1_gp ,
    sel(1),
    expand(1),
    salesdocument TYPE bapivbeln-vbeln,
    message TYPE bapi_msg,
    END OF ty_vbak.
    DATA : w_vbak TYPE ty_vbak,
    t_vbak TYPE TABLE OF ty_vbak.
    DATA : w_update TYPE ty_vbak,
    t_update TYPE TABLE OF ty_vbak.
    TYPES : BEGIN OF ty_kna1,
    kunnr TYPE kunnr,
    name1 TYPE name1_gp ,
    END OF ty_kna1.
    DATA : w_kna1 TYPE ty_kna1,
    t_kna1 TYPE TABLE OF ty_kna1.
    TYPES : BEGIN OF ty_vbap,
    vbeln TYPE vbeln_va,
    posnr TYPE posnr_va,
    matnr TYPE matnr,
    matkl TYPE matkl,
    werks TYPE werks_ext,
    kwmeng TYPE kwmeng,
    meins TYPE meins,
    mvgr5 TYPE mvgr5,
    maktx TYPE maktx,
    END OF ty_vbap.
    DATA : w_vbap TYPE ty_vbap,
    t_vbap TYPE TABLE OF ty_vbap.
    TYPES : BEGIN OF ty_makt,
    matnr TYPE matnr,
    maktx TYPE maktx,
    END OF ty_makt.
    DATA : w_makt TYPE ty_makt,
    t_makt TYPE TABLE OF ty_makt.
    TYPES : BEGIN OF ty_sum,
    vbeln TYPE vbeln_va,
    kwmeng TYPE kwmeng,
    END OF ty_sum.
    DATA : w_sum TYPE ty_sum,
    t_sum TYPE TABLE OF ty_sum.
    TYPES : BEGIN OF ty_vbpa,
    vbeln TYPE vbeln,
    posnr TYPE posnr,
    parvw TYPE parvw,
    kunnr TYPE kunnr,
    END OF ty_vbpa.
    DATA : w_vbpa TYPE ty_vbpa,
    t_vbpa TYPE TABLE OF ty_vbpa.
    TYPES : BEGIN OF ty_vbup,
    vbeln TYPE vbeln,
    posnr TYPE posnr ,
    gbsta TYPE gbsta ,
    END OF ty_vbup.
    DATA : w_vbup TYPE ty_vbup,
    t_vbup TYPE TABLE OF ty_vbup.
    TYPE-POOLS slis.
    DATA: t_fieldcatalog TYPE slis_t_fieldcat_alv,
    w_fieldcatalog TYPE slis_fieldcat_alv,
    w_layout TYPE slis_layout_alv,
    gs_keyinfo TYPE slis_keyinfo_alv.
    DATA: g_tabname_header TYPE slis_tabname,
    g_tabname_item TYPE slis_tabname.
    data definition
    Batchinputdata of single transaction
    DATA: bdcdata LIKE bdcdata OCCURS 0 WITH HEADER LINE.
    messages of call transaction
    DATA: messtab LIKE bdcmsgcoll OCCURS 0 WITH HEADER LINE.
    DATA : g_lines TYPE i.
    *Selection Screen
    TABLES : vbak,vbap.
    SELECTION-SCREEN BEGIN OF BLOCK b1 WITH FRAME TITLE text-000.
    SELECT-OPTIONS s_vkorg FOR vbak-vkorg. " Sales Org
    SELECT-OPTIONS s_vtweg FOR vbak-vtweg. " Dist Channel
    SELECT-OPTIONS s_spart FOR vbak-spart. " Division
    SELECT-OPTIONS s_vkbur FOR vbak-vkbur. " Sales Off
    SELECT-OPTIONS s_vkgrp FOR vbak-vkgrp. " Sales Grp
    SELECT-OPTIONS s_matkl FOR vbap-matkl. " Mat Grp
    SELECT-OPTIONS s_werks FOR vbap-werks. " Plant
    SELECT-OPTIONS s_period FOR vbak-angdt. " Sales Off
    SELECTION-SCREEN END OF BLOCK b1.
    START-OF-SELECTION.
    PERFORM f_getdata.
    PERFORM f_initdata.
    END-OF-SELECTION.
    PERFORM f_createalv.
    PERFORM f_dispalv.
    *& Form f_getdata
    text
    --> p1 text
    <-- p2 text
    FORM f_getdata .
    *Sales Header
    SELECT
    vbeln
    vkorg
    vtweg
    spart
    vkbur
    vkgrp
    angdt
    bnddt
    kunnr
    INTO TABLE t_vbak
    FROM vbak
    WHERE
    vkorg IN s_vkorg " Sales Org
    AND vtweg IN s_vtweg " Dist Channel
    AND spart IN s_spart " Division
    AND vkbur IN s_vkbur " Sales Off
    AND vkgrp IN s_vkgrp " Sales Grp
    AND angdt IN s_period
    AND bnddt IN s_period
    AND auart = 'ZQMO'
    AND vbtyp = 'B'.
    *CUST NAME
    SELECT
    kunnr
    name1
    INTO TABLE t_kna1
    FROM kna1
    FOR ALL ENTRIES IN t_vbak
    WHERE
    kunnr = t_vbak-kunnr
    *Sales Item
    SELECT
    vbeln
    posnr
    matnr
    matkl
    werks
    kwmeng
    meins
    mvgr5
    INTO TABLE t_vbap
    FROM vbap
    FOR ALL ENTRIES IN t_vbak
    WHERE
    vbeln = t_vbak-vbeln
    AND matkl IN s_matkl " Mat Grp
    AND werks IN s_werks " Plant
    *Partners
    SELECT
    vbeln
    posnr
    parvw
    kunnr
    INTO TABLE t_vbpa
    FROM vbpa
    FOR ALL ENTRIES IN t_vbak
    WHERE
    vbeln = t_vbak-vbeln.
    IF t_vbpa[] IS NOT INITIAL.
    SELECT
    kunnr
    name1
    APPENDING TABLE t_kna1
    FROM kna1
    FOR ALL ENTRIES IN t_vbpa
    WHERE
    kunnr = t_vbpa-kunnr
    ENDIF.
    *Status - Sales Doc
    SELECT
    vbeln
    posnr
    gbsta
    INTO TABLE t_vbup
    FROM vbup
    FOR ALL ENTRIES IN t_vbap
    WHERE
    vbeln = t_vbap-vbeln
    AND posnr = t_vbap-posnr
    AND gbsta NE 'C'.
    SELECT
    matnr
    maktx
    INTO TABLE t_makt
    FROM makt
    FOR ALL ENTRIES IN t_vbap
    WHERE
    matnr = t_vbap-matnr
    AND spras = 'E'.
    ENDFORM. " f_getdata
    *& Form f_initdata
    text
    --> p1 text
    <-- p2 text
    FORM f_initdata .
    SORT t_vbap BY vbeln DESCENDING.
    *delete all closed stat items
    LOOP AT t_vbap INTO w_vbap.
    READ TABLE t_vbup INTO w_vbup
    WITH KEY
    vbeln = w_vbap-vbeln
    posnr = w_vbap-posnr.
    IF sy-subrc <> 0.
    DELETE t_vbap.
    CONTINUE.
    ELSE.
    READ TABLE t_makt INTO w_makt
    WITH
    KEY matnr = w_vbap-matnr.
    IF sy-subrc = 0.
    w_vbap-maktx = w_makt-maktx.
    MODIFY t_vbap FROM w_vbap.
    ENDIF.
    ENDIF.
    ENDLOOP.
    *find the total quantity
    LOOP AT t_vbap INTO w_vbap.
    w_sum-vbeln = w_vbap-vbeln.
    w_sum-kwmeng = w_vbap-kwmeng.
    COLLECT w_sum INTO t_sum.
    CLEAR w_sum.
    ENDLOOP.
    *populate header
    LOOP AT t_vbak INTO w_vbak.
    Quantity - Total
    READ TABLE t_sum INTO w_sum
    WITH KEY
    vbeln = w_vbak-vbeln.
    IF sy-subrc = 0.
    w_vbak-kwmeng = w_sum-kwmeng.
    ELSE.
    CLEAR w_vbak-kwmeng.
    ENDIF.
    UoM
    READ TABLE t_vbap INTO w_vbap
    WITH KEY
    vbeln = w_vbak-vbeln.
    IF sy-subrc = 0.
    w_vbak-meins = w_vbap-meins.
    ELSE.
    CLEAR w_vbak-meins.
    ENDIF.
    Partner
    READ TABLE t_vbpa INTO w_vbpa
    WITH KEY
    vbeln = w_vbak-vbeln
    parvw = 'WE'.
    IF sy-subrc = 0.
    w_vbak-kunwe = w_vbpa-kunnr.
    ELSE.
    CLEAR w_vbak-kunwe.
    ENDIF.
    SHIP TO PARTY NAME
    READ TABLE t_kna1 INTO w_kna1
    WITH KEY
    kunnr = w_vbak-kunwe.
    IF sy-subrc = 0.
    w_vbak-name2 = w_kna1-name1.
    ENDIF.
    CUST NAM - SOLD TO PARTY
    READ TABLE t_kna1 INTO w_kna1
    WITH KEY
    kunnr = w_vbak-kunnr.
    IF sy-subrc = 0.
    w_vbak-name1 = w_kna1-name1.
    ENDIF.
    MODIFY t_vbak FROM w_vbak.
    ENDLOOP.
    DELETE t_vbak WHERE kwmeng IS INITIAL.
    SORT t_vbak BY vbeln DESCENDING.
    SORT t_vbap BY vbeln DESCENDING posnr ASCENDING.
    ENDFORM. " f_initdata
    *& Form f_createalv
    Create Field Cat.
    --> p1 text
    <-- p2 text
    FORM f_createalv .
    g_tabname_header = 't_vbak'.
    g_tabname_item = 't_vbap' .
    CLEAR gs_keyinfo.
    gs_keyinfo-header01 = 'VBELN'.
    gs_keyinfo-item01 = 'VBELN'.
    *VBAK
    w_fieldcatalog-fieldname = 'VBELN'.
    w_fieldcatalog-tabname = 't_vbak'.
    w_fieldcatalog-seltext_l = 'Sales Document'.
    APPEND w_fieldcatalog TO t_fieldcatalog.
    CLEAR: w_fieldcatalog.
    w_fieldcatalog-fieldname = 'VKORG'.
    w_fieldcatalog-tabname = 't_vbak'.
    w_fieldcatalog-seltext_l = 'Sales Org'.
    APPEND w_fieldcatalog TO t_fieldcatalog.
    CLEAR: w_fieldcatalog.
    w_fieldcatalog-fieldname = 'VTWEG'.
    w_fieldcatalog-tabname = 't_vbak'.
    w_fieldcatalog-seltext_l = 'Dist Channel'.
    APPEND w_fieldcatalog TO t_fieldcatalog.
    CLEAR: w_fieldcatalog.
    w_fieldcatalog-fieldname = 'SPART'.
    w_fieldcatalog-tabname = 't_vbak'.
    w_fieldcatalog-seltext_l = 'Division'.
    APPEND w_fieldcatalog TO t_fieldcatalog.
    CLEAR: w_fieldcatalog.
    w_fieldcatalog-fieldname = 'VKBUR'.
    w_fieldcatalog-tabname = 't_vbak'.
    w_fieldcatalog-seltext_l = 'Sales Office'.
    APPEND w_fieldcatalog TO t_fieldcatalog.
    CLEAR: w_fieldcatalog.
    w_fieldcatalog-fieldname = 'VKGRP'.
    w_fieldcatalog-tabname = 't_vbak'.
    w_fieldcatalog-seltext_l = 'Sales GRP'.
    APPEND w_fieldcatalog TO t_fieldcatalog.
    CLEAR: w_fieldcatalog.
    w_fieldcatalog-fieldname = 'KUNNR'.
    w_fieldcatalog-tabname = 't_vbak'.
    w_fieldcatalog-seltext_l = 'Sold to Party'.
    APPEND w_fieldcatalog TO t_fieldcatalog.
    CLEAR: w_fieldcatalog.
    w_fieldcatalog-fieldname = 'NAME1'.
    w_fieldcatalog-tabname = 't_vbak'.
    w_fieldcatalog-outputlen = 35.
    w_fieldcatalog-seltext_l = 'Sold to Party Code - Name'.
    APPEND w_fieldcatalog TO t_fieldcatalog.
    CLEAR: w_fieldcatalog.
    w_fieldcatalog-fieldname = 'KUNWE'.
    w_fieldcatalog-tabname = 't_vbak'.
    w_fieldcatalog-seltext_l = 'Ship to Party'.
    APPEND w_fieldcatalog TO t_fieldcatalog.
    CLEAR: w_fieldcatalog.
    w_fieldcatalog-fieldname = 'NAME2'.
    w_fieldcatalog-tabname = 't_vbak'.
    w_fieldcatalog-seltext_l = 'Ship Party Code - Name'.
    w_fieldcatalog-outputlen = 35.
    APPEND w_fieldcatalog TO t_fieldcatalog.
    CLEAR: w_fieldcatalog.
    w_fieldcatalog-fieldname = 'KWMENG'.
    w_fieldcatalog-tabname = 't_vbak'.
    w_fieldcatalog-seltext_l = 'Quantity'.
    w_fieldcatalog-outputlen = 25.
    APPEND w_fieldcatalog TO t_fieldcatalog.
    CLEAR: w_fieldcatalog.
    w_fieldcatalog-fieldname = 'MEINS'.
    w_fieldcatalog-tabname = 't_vbak'.
    w_fieldcatalog-seltext_l = 'UoM'.
    APPEND w_fieldcatalog TO t_fieldcatalog.
    CLEAR: w_fieldcatalog.
    w_fieldcatalog-fieldname = 'SALESDOCUMENT'.
    w_fieldcatalog-tabname = 't_vbak'.
    w_fieldcatalog-seltext_l = 'Document'.
    APPEND w_fieldcatalog TO t_fieldcatalog.
    CLEAR: w_fieldcatalog.
    w_fieldcatalog-fieldname = 'MESSAGE'.
    w_fieldcatalog-tabname = 't_vbak'.
    w_fieldcatalog-seltext_l = 'Log'.
    APPEND w_fieldcatalog TO t_fieldcatalog.
    CLEAR: w_fieldcatalog.
    *VBAP
    w_fieldcatalog-fieldname = 'POSNR'.
    w_fieldcatalog-tabname = 't_vbap'.
    w_fieldcatalog-seltext_l = 'POS'.
    w_fieldcatalog-outputlen = 6.
    APPEND w_fieldcatalog TO t_fieldcatalog.
    CLEAR: w_fieldcatalog.
    w_fieldcatalog-fieldname = 'MATNR'.
    w_fieldcatalog-tabname = 't_vbap'.
    w_fieldcatalog-seltext_l = 'Material'.
    w_fieldcatalog-outputlen = 18.
    APPEND w_fieldcatalog TO t_fieldcatalog.
    CLEAR: w_fieldcatalog.
    w_fieldcatalog-fieldname = 'MAKTX'.
    w_fieldcatalog-tabname = 't_vbap'.
    w_fieldcatalog-seltext_l = 'Material Desc'.
    w_fieldcatalog-outputlen = 40.
    APPEND w_fieldcatalog TO t_fieldcatalog.
    CLEAR: w_fieldcatalog.
    w_fieldcatalog-fieldname = 'MATKL'.
    w_fieldcatalog-tabname = 't_vbap'.
    w_fieldcatalog-seltext_l = 'Material Grp'.
    w_fieldcatalog-outputlen = 9.
    APPEND w_fieldcatalog TO t_fieldcatalog.
    CLEAR: w_fieldcatalog.
    w_fieldcatalog-fieldname = 'MVGR5'.
    w_fieldcatalog-tabname = 't_vbap'.
    w_fieldcatalog-seltext_l = 'MCNO'.
    w_fieldcatalog-outputlen = 4.
    APPEND w_fieldcatalog TO t_fieldcatalog.
    CLEAR: w_fieldcatalog.
    w_fieldcatalog-fieldname = 'WERKS'.
    w_fieldcatalog-tabname = 't_vbap'.
    w_fieldcatalog-seltext_l = 'Plant'.
    w_fieldcatalog-outputlen = 91.
    APPEND w_fieldcatalog TO t_fieldcatalog.
    CLEAR: w_fieldcatalog.
    w_fieldcatalog-fieldname = 'KWMENG'.
    w_fieldcatalog-tabname = 't_vbap'.
    w_fieldcatalog-seltext_l = 'Quantity'.
    w_fieldcatalog-outputlen = 25.
    APPEND w_fieldcatalog TO t_fieldcatalog.
    CLEAR: w_fieldcatalog.
    w_fieldcatalog-fieldname = 'MEINS'.
    w_fieldcatalog-tabname = 't_vbap'.
    w_fieldcatalog-seltext_l = 'UoM'.
    APPEND w_fieldcatalog TO t_fieldcatalog.
    CLEAR: w_fieldcatalog.
    LAYOUT
    w_layout-colwidth_optimize = 'X'.
    w_layout-zebra = 'X'.
    w_layout-expand_fieldname = 'EXPAND'.
    w_layout-box_fieldname = 'SEL'.
    w_layout-box_tabname = 't_vbak'.
    ENDFORM. " f_createalv
    *& Form f_dispalv
    Call ALV
    --> p1 text
    <-- p2 text
    FORM f_dispalv .
    CALL FUNCTION 'REUSE_ALV_HIERSEQ_LIST_DISPLAY'
    EXPORTING
    i_callback_program = sy-repid
    i_callback_pf_status_set = 'SET_PF_STATUS'
    i_callback_user_command = 'USER_COMMAND'
    is_layout = w_layout
    it_fieldcat = t_fieldcatalog
    IT_EXCLUDING =
    IT_SPECIAL_GROUPS =
    IT_SORT =
    IT_FILTER =
    IS_SEL_HIDE =
    I_SCREEN_START_COLUMN = 0
    I_SCREEN_START_LINE = 0
    I_SCREEN_END_COLUMN = 0
    I_SCREEN_END_LINE = 0
    I_DEFAULT = 'X'
    I_SAVE = ' '
    IS_VARIANT =
    IT_EVENTS =
    IT_EVENT_EXIT =
    i_tabname_header = g_tabname_header
    i_tabname_item = g_tabname_item
    is_keyinfo = gs_keyinfo
    TABLES
    t_outtab_header = t_vbak
    t_outtab_item = t_vbap
    EXCEPTIONS
    program_error = 1
    OTHERS = 2
    IF sy-subrc <> 0.
    ENDIF.
    ENDFORM. " f_dispalv
    *& Form set_pf_status
    PF stat
    -->RT_EXTAB text
    FORM set_pf_status USING rt_extab TYPE slis_t_extab.
    SET PF-STATUS 'ZINSD_QUOT_CONT_ST'.
    ENDFORM. "set_pf_status
    *& Form user_command
    Process List UCOMM
    -->R_UCOMM text
    -->RS_SELFIELD text
    FORM user_command USING r_ucomm LIKE sy-ucomm
    rs_selfield TYPE slis_selfield.
    REFRESH t_update.
    IF r_ucomm = 'EXIT'.
    LEAVE PROGRAM.
    ENDIF.
    IF r_ucomm = 'EXECUTE'.
    LOOP AT t_vbak INTO w_update
    WHERE
    sel = 'X'
    AND salesdocument = ' '.
    APPEND w_update TO t_update.
    ENDLOOP.
    IF t_update[] IS NOT INITIAL.
    LOOP AT t_update INTO w_update.
    PERFORM f_bapi_contract_createfromdata USING w_update.
    PERFORM f_bdc_contract_from_quotation.
    MODIFY t_update FROM w_update.
    ENDLOOP.
    ELSE.
    ENDIF.
    PERFORM f_dispalv.
    ENDIF.
    IF r_ucomm = '&IC1'.
    IF rs_selfield-sel_tab_field = 't_vbak-VBELN'.
    SET PARAMETER ID 'AGN' FIELD rs_selfield-value.
    CALL TRANSACTION 'VA23' AND SKIP FIRST SCREEN.
    ENDIF.
    IF rs_selfield-sel_tab_field = 't_vbak-SALESDOCUMENT' AND
    rs_selfield-value NE ' '.
    SET PARAMETER ID 'KTN' FIELD rs_selfield-value.
    CALL TRANSACTION 'VA43' AND SKIP FIRST SCREEN.
    ENDIF.
    ENDIF.
    ENDFORM. "user_command
    *& Form F_BAPI_CONTRACT_CREATEFROMDATA
    BAPI CALL
    -->P_W_UPDATE text
    FORM f_bapi_contract_createfromdata USING p_w_update STRUCTURE w_update .
    DATA : w_contract_header_in TYPE bapisdhd1 ,
    w_contract_header_inx TYPE bapisdhd1x ,
    t_contract_items_in TYPE TABLE OF bapisditm WITH HEADER LINE,
    t_contract_items_inx TYPE TABLE OF bapisditmx WITH HEADER LINE,
    t_contract_partners TYPE TABLE OF bapiparnr WITH HEADER LINE,
    t_return TYPE TABLE OF bapiret2 WITH HEADER LINE.
    CLEAR : w_contract_header_in,
    w_contract_header_inx.
    REFRESH : t_contract_items_in,
    t_contract_items_inx,
    t_contract_partners,
    t_return.
    w_contract_header_in-doc_type = 'ZCNT'.
    w_contract_header_in-sales_org = p_w_update-vkorg.
    w_contract_header_in-distr_chan = p_w_update-vtweg.
    w_contract_header_in-division = p_w_update-spart.
    w_contract_header_in-ct_valid_f = p_w_update-angdt.
    w_contract_header_in-ct_valid_t = p_w_update-bnddt.
    w_contract_header_inx-doc_type = 'X'.
    w_contract_header_inx-sales_org = 'X'.
    w_contract_header_inx-distr_chan = 'X'.
    w_contract_header_inx-division = 'X'.
    w_contract_header_inx-ct_valid_f = 'X'.
    w_contract_header_inx-ct_valid_t = 'X'.
    LOOP AT t_vbap INTO w_vbap
    WHERE
    vbeln = p_w_update-vbeln.
    t_contract_items_in-material = w_vbap-matnr.
    t_contract_items_in-plant = w_vbap-werks.
    t_contract_items_in-target_qty = w_vbap-kwmeng.
    t_contract_items_in-target_qu = w_vbap-meins.
    t_contract_items_in-ref_doc = w_vbap-vbeln.
    t_contract_items_in-ref_doc_it = w_vbap-posnr.
    t_contract_items_in-ref_doc_ca = 'B'.
    t_contract_items_in-prc_group5 = w_vbap-mvgr5.
    t_contract_items_inx-material = 'X'.
    t_contract_items_inx-plant = 'X'.
    t_contract_items_inx-target_qty = 'X'.
    t_contract_items_inx-target_qu = 'X'.
    t_contract_items_inx-ref_doc = 'X'.
    t_contract_items_inx-ref_doc_it = 'X'.
    t_contract_items_inx-ref_doc_ca = 'X'.
    t_contract_items_inx-prc_group5 = 'X'.
    APPEND t_contract_items_in.
    APPEND t_contract_items_inx.
    ENDLOOP.
    LOOP AT t_vbpa INTO w_vbpa
    WHERE
    vbeln = p_w_update-vbeln.
    AND posnr = w_vbap-posnr.
    t_contract_partners-partn_role = w_vbpa-parvw.
    t_contract_partners-partn_numb = w_vbpa-kunnr.
    t_contract_partners-itm_number = w_vbpa-posnr.
    APPEND t_contract_partners.
    ENDLOOP.
    CALL FUNCTION 'BAPI_CONTRACT_CREATEFROMDATA'
    EXPORTING
    SALESDOCUMENTIN =
    contract_header_in = w_contract_header_in
    contract_header_inx = w_contract_header_inx
    SENDER =
    BINARY_RELATIONSHIPTYPE = ' '
    INT_NUMBER_ASSIGNMENT = ' '
    BEHAVE_WHEN_ERROR = ' '
    LOGIC_SWITCH =
    TESTRUN =
    CONVERT = ' '
    IMPORTING
    salesdocument = p_w_update-salesdocument
    TABLES
    return = t_return
    contract_items_in = t_contract_items_in
    contract_items_inx = t_contract_items_inx
    contract_partners = t_contract_partners
    CONTRACT_CONDITIONS_IN =
    CONTRACT_CONDITIONS_INX =
    CONTRACT_CFGS_REF =
    CONTRACT_CFGS_INST =
    CONTRACT_CFGS_PART_OF =
    CONTRACT_CFGS_VALUE =
    CONTRACT_CFGS_BLOB =
    CONTRACT_CFGS_VK =
    CONTRACT_CFGS_REFINST =
    CONTRACT_DATA_IN =
    CONTRACT_DATA_INX =
    CONTRACT_TEXT =
    CONTRACT_KEYS =
    EXTENSIONIN =
    PARTNERADDRESSES =
    IF p_w_update-salesdocument NE ' ' .
    p_w_update-message = 'SUCCESS'.
    ELSE.
    READ TABLE t_return INDEX 1.
    p_w_update-message = t_return-message.
    ENDIF.
    READ TABLE t_vbak INTO w_vbak
    WITH KEY
    vbeln = p_w_update-vbeln.
    IF sy-subrc = 0.
    MODIFY t_vbak INDEX sy-tabix FROM p_w_update .
    ENDIF.
    CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'
    EXPORTING
    wait = 'X'.
    ENDFORM. " F_BAPI_CONTRACT_CREATEFROMDATA
    *& Form f_bdc_contract_from_Quotation
    BAPI CALL
    -->P_W_UPDATE text
    FORM f_bdc_contract_from_quotation.
    DATA : l_date TYPE char10.
    REFRESH : messtab, bdcdata.
    CLEAR : messtab, bdcdata.
    PERFORM bdc_dynpro USING 'SAPMV45A' '0101'.
    PERFORM bdc_field USING 'BDC_OKCODE'
    '=COPY'.
    PERFORM bdc_field USING 'VBAK-AUART'
    'ZCNT'.
    PERFORM bdc_dynpro USING 'SAPLV45C' '0100'.
    PERFORM bdc_field USING 'BDC_OKCODE'
    '=RANG'.
    PERFORM bdc_dynpro USING 'SAPLV45C' '0100'.
    PERFORM bdc_field USING 'BDC_OKCODE'
    '=UEBR'.
    PERFORM bdc_field USING 'LV45C-VBELN'
    w_update-vbeln.
    PERFORM bdc_dynpro USING 'SAPMV45A' '4001'.
    PERFORM bdc_field USING 'BDC_OKCODE'
    '=SICH'.
    IF NOT w_update-angdt IS INITIAL.
    CALL FUNCTION 'CONVERT_DATE_TO_EXTERNAL'
    EXPORTING
    date_internal = w_update-angdt
    IMPORTING
    date_external = l_date
    EXCEPTIONS
    date_internal_is_invalid = 1
    OTHERS = 2.
    PERFORM bdc_field USING 'VBAK-GUEBG'
    l_date.
    ENDIF.
    IF NOT w_update-bnddt IS INITIAL.
    CALL FUNCTION 'CONVERT_DATE_TO_EXTERNAL'
    EXPORTING
    date_internal = w_update-bnddt
    IMPORTING
    date_external = l_date
    EXCEPTIONS
    date_internal_is_invalid = 1
    OTHERS = 2.
    PERFORM bdc_field USING 'VBAK-GUEEN'
    l_date.
    ENDIF.
    CALL TRANSACTION 'VA41' USING bdcdata
    MODE 'E'
    UPDATE 'S'
    MESSAGES INTO messtab.
    break abap.
    READ TABLE messtab WITH KEY msgid = 'V1'
    msgnr = '311'.
    IF sy-subrc EQ 0.
    w_update-message = 'SUCCESS'.
    w_update-salesdocument = messtab-msgv2.
    ELSE.
    READ TABLE messtab WITH KEY msgtyp = 'E'.
    IF sy-subrc EQ 0.
    DATA : l_info TYPE einfo.
    CLEAR l_info.
    l_info-msgid = messtab-msgid.
    l_info-msgty = messtab-msgtyp.
    l_info-msgno = messtab-msgnr.
    l_info-msgv1 = messtab-msgv1.
    l_info-msgv2 = messtab-msgv2.
    l_info-msgv3 = messtab-msgv3.
    l_info-msgv4 = messtab-msgv4.
    CALL FUNCTION 'MESSAGE_GET_TEXT'
    EXPORTING
    ieinfo = l_info
    ilangu = sy-langu
    IMPORTING
    etext = w_update-message
    EXCEPTIONS
    no_t100_found = 1
    OTHERS = 2.
    ENDIF.
    ENDIF.
    READ TABLE t_vbak INTO w_vbak WITH KEY vbeln = w_update-vbeln.
    IF sy-subrc = 0.
    MODIFY t_vbak INDEX sy-tabix FROM w_update transporting message
    salesdocument.
    ENDIF.
    ENDFORM. " f_bdc_contract_from_Quotation
    Start new screen *
    FORM bdc_dynpro USING program dynpro.
    CLEAR bdcdata.
    bdcdata-program = program.
    bdcdata-dynpro = dynpro.
    bdcdata-dynbegin = 'X'.
    APPEND bdcdata.
    ENDFORM. "bdc_dynpro
    Insert field *
    FORM bdc_field USING fnam fval.
    CLEAR bdcdata.
    bdcdata-fnam = fnam.
    bdcdata-fval = fval.
    APPEND bdcdata.
    ENDFORM. "bdc_field
    Also, check the following:
    http://www.sapdevelopment.co.uk/reporting/alv/alvtree.htm
    You can get help as programs also.
    hope this helps.
    cheers,
    Hema.

  • Wht is the tcode to include and report on the sap main screen?

    Hi all,
    What is the Tcode to include any program on sap main screen?
    like when we logon to the sap, it will display abap editor, etc.... i want to include one more item there, can anybody let me know how to do that?
    thanks

    I placed the cursor on desired node and select EDIT->INSERT MENU ENTRY->INSERT AS SUB NODE
    but it says node cannot be inserted at desired position.
    I tried with same level as well, but its not working.
    If i click on change nodes, its saying "changes nodes change be done through Enhancement ID"
    can suggestions?
    thanks

  • How to open Crystal Report from the SAP GUI ?

    Hi experts,
        We have developed some reports for our ECC 6.0 system by using Crystal Report 2008 and SAP integration kit , these reports are published to BO edge 3.1 server.  To view the report, our user have to open IE and login Infoview first.
       For convenience, we want to open Crystal report from SAPGUI directly without login BOE, How can we do it? 
    Thanks.

    Hi
    please take a look here
    Crystal Reports
    Regards,
    STratos

  • How to generate a mail into the SAP Inbox

    Hi everyone,
    I have an MM Workflow that is starting correctly and a mail is supposed to be generated in the user Inbox in SAP after the completion of a material enhancement but it does not. The Workflow was copied from another system and it was working fine.
    I tried to see any event (step) that is sending a mail in the Workflow and I found only 1 but it seem correctly configured from what I can see. I am not even sure this is the right event that I am looking at.
    Does anyone have an idea of what I should look for and how I could manage to see why no mail is generated?
    I am still a beginner in Workflow so try to give me as much detail as possible.
    Thank you in advance for your answers.
    Best regards,
    Sylvain

    Hi Sylvain,
    The issue could be at many places.
    Check the workflow step that needs to send the mail to the desired user.
    Check if the agent who needs to recieve the mail is pesent in the current system. If the user is not hard-coded, check how the user is getting fetched in the step. If it is through rules, etc you need to debug the same.
    Also check the authorizations of the user in SU01. Check the agent assignment for the task as well.
    You can find much information in the workflow  log to start with the debugging.
    Hope this helps!
    Regards,
    Saumya

  • How to include a Header in the Open Script

    Hi
    I have a header called "X-Forwarded For", and i want it to be used in the script, i have tried the following statements to do so:
    1) http.headers(http.header("X-Forwarded-For", "12.1.1.1",Header.HeaderAction.Modify));
    2) http.headers(http.header("X-Forwarded-For", "12.1.1.1",Header.HeaderAction.Add));
    But none of the ways worked for me. Can you please help me out to deal with this problem?
    Thanks & Regards
    - Fahim

    Perhaps I was not clear in my previous reply. You must send the header with the first navigation, and then it will be sent with all future navigations. Your cannot call http.headers() directly unless you save the return of the headers, and then pass the returned headers to the first navigation. After that first navigation, you will not need to send the new header in any subsequent navigations assuming the proper HeaderAction.
    http.get(1, "http://testserver2",
      http.querystring(http.param("QueryString1", "QueryValue1")),
      http.headers(http.header("X-Forwarded-For", "12.1.1.1", Header.HeaderAction.SetIfNotSet)),
      false, "ASCII", "ASCII");The 12.x OpenScript users guide explains the http.get and http.post in full detail in sections "6.6.2 Adding HTTP Get Navigation", and "6.6.3 Adding HTTP Post Navigation", which includes setting http.headers()

  • Can we release a report in the SAP BOR ?

    How to release a report in the SAP BOR ?
    tell me the steps.

    Hi,
    The report you get in BOR is accessible through SE38 also. You can work with it as usual reports.
    Regards,
    Renjith Michael.

  • How to create table in the sap script

    Hi,
    How to create a table in the  sap script layout, i Have to use table in the main window with  7 columns. can any one send sample code.
    How to calculate the number of line items which are displaying in the main window, if the number of line items are exceed in the main window then the amount has to be calculate and print as "BALANCE FORWARD" and the next page had to be displayed as "CARRY FORWARD" that amount. if this is the last page not subsequent page the amount had to be calculated the carry forward amount and total amount and print as "TOTAL AMOUNT". i am creating the new layout and the program is the standrad driver program i have to use and i have to use the standard Text elements only, can any one help me on this issue

    hi
    good
    there is no "pattern" option in SAPscript. All you have at your disposal are the following SAPscript commands: BOX, POSITION and SIZE. Not only are these commands both confusing and tedious to implement, they also are limited in what they can achieve. For instance, although you can suppress a box during printout (by making it conditional), there is no simple way to adjust it dynamically instead. Thus, to divide sequential line items, you may wish to use an underline (ULINE) or simply white space.
    thanks
    mrutyun

  • How to submit a report ,Passing the internal tables from parent report

    How to submit a report ,Passing the internal tables from the parent report ?

    The SUBMIT statement executes a report from within a report. i.e. you could have a drill-down which
    calls another report. Can only execute reports of type '1'.
    *Code used to execute a report
    SUBMIT Zreport.
    *Code used to populate 'select-options' & execute report
    DATA: seltab type table of rsparams,
          seltab_wa like line of seltab.
      seltab_wa-selname = 'PNPPERNR'.
      seltab_wa-sign    = 'I'.
      seltab_wa-option  = 'EQ'.
    load each personnel number accessed from the structure into
    parameters to be used in the report
      loop at pnppernr.
        seltab_wa-low = pnppernr-low.
        append seltab_wa to seltab.
      endloop.
      SUBMIT zreport with selection-table seltab
                                    via selection-screen.
    *Code used to populate 'parameters' & execute report
    SUBMIT zreport with p_param1 = 'value'
                    with p_param2 = 'value'.
    Other additions for SUBMIT
    *Submit report and return to current program afterwards
    SUBMIT zreport AND RETURN.
    *Submit report via its own selection screen
    SUBMIT zreport VIA SELECTION-SCREEN.
    *Submit report using selection screen variant
    SUBMIT zreport USING SELECTION-SET 'VARIANT1'.
    *Submit report but export resultant list to memory, rather than
    *it being displayed on screen
    SUBMIT zreport EXPORTING LIST TO MEMORY.
    Once report has finished and control has returned to calling
    program, use function modules LIST_FROM_MEMORY, WRITE_LIST and
    DISPLAY_LIST to retrieve and display report.
    *Example Code (Retrieving list from memory)
    DATA  BEGIN OF itab_list OCCURS 0.
            INCLUDE STRUCTURE abaplist.
    DATA  END OF itab_list.
    DATA: BEGIN OF vlist OCCURS 0,
            filler1(01)   TYPE c,
            field1(06)    TYPE c,
            filler(08)    TYPE c,
            field2(10)    TYPE c,
            filler3(01)   TYPE c,
            field3(10)    TYPE c,
            filler4(01)   TYPE c,
            field4(3)     TYPE c,
            filler5(02)   TYPE c,
            field5(15)    TYPE c,
            filler6(02)   TYPE c,
            field6(30)    TYPE c,
            filler7(43)   TYPE c,
            field7(10)    TYPE c,
          END OF vlist.
    SUBMIT zreport EXPORTING LIST TO MEMORY.
    CALL FUNCTION 'LIST_FROM_MEMORY'
      TABLES
        listobject = itab_list
      EXCEPTIONS
        not_found  = 4
        OTHERS     = 8.
    CALL FUNCTION 'LIST_TO_ASCI'
      EXPORTING
        list_index         = -1
      TABLES
        listasci           = vlist
        listobject         = itab_list
      EXCEPTIONS
        empty_list         = 1
        list_index_invalid = 2
        OTHERS             = 3.
    IF sy-subrc NE '0'.
      WRITE:/ 'LIST_TO_ASCI error !! ', sy-subrc.
    ENDIF.
    Submit report as job
    *Submit report as job(i.e. in background)
    data: jobname like tbtcjob-jobname value
                                 ' TRANSFER TRANSLATION'.
    data: jobcount like tbtcjob-jobcount,
          host like msxxlist-host.
    data: begin of starttime.
            include structure tbtcstrt.
    data: end of starttime.
    data: starttimeimmediate like btch0000-char1.
    Job open
      call function 'JOB_OPEN'
           exporting
                delanfrep        = ' '
                jobgroup         = ' '
                jobname          = jobname
                sdlstrtdt        = sy-datum
                sdlstrttm        = sy-uzeit
           importing
                jobcount         = jobcount
           exceptions
                cant_create_job  = 01
                invalid_job_data = 02
                jobname_missing  = 03.
      if sy-subrc ne 0.
                                           "error processing
      endif.
    Insert process into job
    SUBMIT zreport and return
                    with p_param1 = 'value'
                    with p_param2 = 'value'
                    user sy-uname
                    via job jobname
                    number jobcount.
      if sy-subrc > 0.
                                           "error processing
      endif.
    Close job
      starttime-sdlstrtdt = sy-datum + 1.
      starttime-sdlstrttm = '220000'.
      call function 'JOB_CLOSE'
           exporting
                event_id             = starttime-eventid
                event_param          = starttime-eventparm
                event_periodic       = starttime-periodic
                jobcount             = jobcount
                jobname              = jobname
                laststrtdt           = starttime-laststrtdt
                laststrttm           = starttime-laststrttm
                prddays              = 1
                prdhours             = 0
                prdmins              = 0
                prdmonths            = 0
                prdweeks             = 0
                sdlstrtdt            = starttime-sdlstrtdt
                sdlstrttm            = starttime-sdlstrttm
                strtimmed            = starttimeimmediate
                targetsystem         = host
           exceptions
                cant_start_immediate = 01
                invalid_startdate    = 02
                jobname_missing      = 03
                job_close_failed     = 04
                job_nosteps          = 05
                job_notex            = 06
                lock_failed          = 07
                others               = 99.
      if sy-subrc eq 0.
                                           "error processing
      endif.

  • How to  Export/Import "report for the query" to another company

    Hello,
    I do this:
    1.create query in SQL analizer
    2.copy paste into SBO query generator and save
    3.create report for the query
    Then, How to Export/Import "report for the query" to another company ?
    Thanks for your HELP.

    Look for SAP Note number 600813
    That's the note Adele means, I guess.
    <b>Edit (@13:18)</b>
    The direct link:
    https://websmp101.sap-ag.de/~sapidb/012006153200000183292003E.ITF
    ---- Replace *SOURCE* with the source database name.
    ---- Replace *DEST* with the destination database name.
    insert into [*DEST*].[dbo].[RDOC]
    select [*SOURCE*].[dbo].[RDOC].*
    from
    [*SOURCE*].[dbo].[RDOC],[*DEST*].[dbo].[cinf],[*SOURCE*].[dbo].[cinf]
    where [*DEST*].[dbo].[cinf].[lawsset]=[*SOURCE*].[dbo].[cinf].[lawsset]and [*DEST*].[dbo].[cinf].[version]=[*SOURCE*].[dbo].[cinf].[version] and [*SOURCE*].[dbo].[RDOC].[Doccode]NOT IN (SELECT Doccode from [*DEST*].[dbo].[RDOC])
    insert into [*DEST*].[dbo].[RITM]
    select [*SOURCE*].[dbo].[RITM].*
    from [*SOURCE*].[dbo].[RITM],[*DEST*].[dbo].[cinf],[*SOURCE*].[dbo].[cinf] where [*SOURCE*].[dbo].[RITM].[Doccode] NOT IN (select Doccode from [*DEST*].[dbo].[RITM])AND [*SOURCE*].[dbo].[RITM].[Doccode]IN (SELECT Doccode from [*DEST*].[dbo].[RDOC])
    Hope it helps...
    Grtz, Rowdy

  • Integrating crystal report into the visual studio standard edition IDE

    I have visual studio 2005 standard edition. I need to upgrade some asp.net reports that were done using visual studio 2003.
    I have just install Crystal Reports XI developer edition version 11.0.0.1282.  How can I integrate Crystal into the Visual Studio 2005 IDE?

    Hi
    I would like to inform you that VS 2005 is only compatible with CR XI R2 and CR 2008.
    Have look in supported platform guide:
    https://websmp105.sap-ag.de/bosap-support
    You need to upgrade CRXI to CRXIR2 then try to solve this issue.
    To download the CR XI R2 follow the instructions given below:-
    Crystal Reports XI is installed on your computer. You need to manually uninstall Crystal Reports XI for one of the following reasons:
    u2022 To verify that all Crystal Reports XI components have been completely removed prior to installing a later version of Crystal Reports.
    u2022 To remove the remaining Crystal Reports XI components that have not been removed using the 'Add/Remove Programs' command (Start > Settings > Control Panel).
    u2022 To remove the remaining Crystal Reports XI components that have not been removed using the Setup.exe file from Crystal Reports XI installation CD.
    How do you manually uninstall Crystal Reports XI?
    Resolution
    Before getting started, uninstall Crystal Reports XI by launching the Setup.exe file from the installation CD or by using the 'Add/Remove Programs' command. If either of these methods fails to remove all Crystal Reports directories, files and registry keys, then continue with the resolution of this article.
    ==========
    WARNING:
    This resolution can be applied if Crystal Reports XI is the only software installed on the computer that uses the Business Objects directories, files and registry keys.
    For example, Crystal Analysis, Crystal Enterprise and BusinessObjects Enterprise XI are applications that may share the same directories, files and registry keys.
    Removing these directories, files and registry keys may cause other software to function incorrectly.
    ==========
    1. To manually uninstall Crystal Reports XI, delete the following directories:
    u2022 C:\Program Files\Common Files\Business Objects\3.0
    u2022 C:\Program Files\Business Objects
    ====================
    NOTE:
    Do not remove the directory C:\Program Files\Common Files\Business Objects\3.0 if you have BusinessObjects Enterprise XI or Crystal Reports Server XI installed. These files are shared by both applications and removal of these files will cause Business ObjectsEnterprise XI and Crystal Reports Server XI to function incorrectly.
    ====================
    2. Delete the following registry keys:
    ====================
    WARNING:
    The following resolution involves editing the registry. Using the Registry Editor incorrectly can cause serious problems that may require you to reinstall the Microsoft Windows operating system. Use the Registry Editor at your own risk.
    HELP:
    For information on how to edit the registry key, view the 'Changing Keys And Values' online Help topic in the Registry Editor (Regedit.exe).
    RECOMMENDATION:
    It is strongly recommended that you make a backup copy of the registry files (System.dat and User.dat on Win9x computers) before you edit the registry.
    ====================
    u2022 HKEY_LOCAL_MACHINE\SOFTWARE\Business Objects
    u2022 HKEY_CURRENT_USER\Software\Business Objects
    u2022 HKEY_USERS\S-#-#-##-...-####\Software\Business Objects
    (The number signs (#) represent a series of numbers that are different on each computer.)
    ====================
    NOTE:
    After making changes to the registry, restart the affected service or application as required.
    After deleting the CR XI from the system install the CR XI R2 full build and provide the same key as you provided in CR XI.
    URL to download CR XI R2 is: - http://resources.businessobjects.com/support/additional_downloads/service_packs/crystal_reports_en.asp#CRXIR2
    Click on
    Service Pack 2 - Full build  - ZIP - 1.03 GB - released April 2007
    I would suggest to use the latest service pack of CR XI R2 i.e. Service Pack 4.
    to download SP4 click [here|http://resources.businessobjects.com/support/additional_downloads/service_packs/crystal_reports_en.asp#CRXIR2].
    Note:- before installing SP4 - you must have installed CR XI R2 SP2
    Hope this helps!!
    Regards,

Maybe you are looking for

  • HT4007 How do I export images from Aperture to my iPad Mini?

    How do I export images from aperture to my iPad Mini? Berndpeter

  • Missing icons

    since taking my macbook air to the apple store to have the data transfered onto my external hard drive.  have noticed that all of the icons are missing. EXAMPLE:when i write an email, the little boxes that should say, 'send' 'delete' etc, these are n

  • Does Portal support syndicated content?

    My users would like to be able to push syndicated content out to various client's portals (or web sites) while maintaining control over that content. I recall reading that such support would be provided in a later release ( i.e. 9i time frame) via Co

  • Pan two separate .mp3 files in Garageband

    I have two separate .mp3s one with vocals and one instrumental. I want to merge these into one w/vocals panned L and instrumental R.  I used the track pan knob to do this. But when I send to iTunes both tracks play in both speakers rather than one in

  • Opening photo cd created on a pc

    I am trying to open a photo cd created on a pc. The disk opens fine on my mother-in-law's pc, but when I insert it into my iMac, I get an error message stating that the disk is not readable by my computer. I know that the photo files are in JPEG form