Urgent: BSIS and MSEG link

Hello,
I cannot get the material number of the GR line in FI documents.
I am using the tables BSIS and BSAS but cannot find any material number associated with them.
BSEG is an option but it is giving time-out dump when data of more than 10 days are selected.
Any suggestions will be appreciated.
Regards,
Sukriti

Hi Sukriti,
Never use BSEG or MSEG directly to fetch data as they always have huge data and it takes lot of time to fetch data.
the link between BSIS and MSEG is as follows.
BSIS-BELNR = MSEG-BELNR
BSIS-GJAHR = MSEG-GJAHR
BSIS-BUZEI   = MSEG-BUZEI
BSIS-BUKRS = MSEG-BUKRS
and filter in where condition based on MSEG-MATNR = materials from Select option or Parameters.
May be you can create an index with the above 4 fields and also BSIS-HKONT in BSIS table.
This would definitely give you the exact number of entries as in BSIS and MSEG.
You can notice that in MSEG the Fields are not Key fields but they will give you unique entries.
So you should be using join for BSIS and MSEG tables on the above 4 fields.
hope this will solve your problem.
If useful please dow reward
Thanks
Venugopal

Similar Messages

  • How are BSIS and COEP linked?

    Is there a link between BSIS and COEP tables?
    Any reference doc number can be populated from COEP to BSIS automatically?
    My requirement is to find how the BSIS-XBLNR can be linked to COEP?
    pl advise.
    Ven

    To put my question in a better way,
    when I enter a document with FB50, it generates controlling docs and also populates the FI doc number in the reference field of COEP.
    When I post a document with KB21N, it does generate the FI docs but does not populate the reference doc field.
    I need to find how is FB50 behaving. I tried to do a debug but not of much help.
    - Ven

  • Link b/w QALS and MSEG TABLE

    hi,
    i want to make a link up between QALS AND MSEG table as i want to those inspection lot which have the UD = REJECTED and stored in SC01 etc storage locations. Till now i am able to find that the Item which are rejected having material documents present in the MSEG table but not present in QALS.
    I had tried to make a link up with fields such as MATRN,CHARG,KDAUF, KDPOS etc.. but the right data is not displayed in it.
    Please provide me guidelines to solve this problem.

    this i Functional question asked at wrong place .
    but i will gice you the relation :
    MSEG: Document Segment: Material
    Fields:      MBLNR
         MJAHR                               
         ZEILE
    Relation :
    MATNR      EBELN     EBELP  MJAHR MBLNR                         
    QALS:  Inspection lot record
    Fields:      PRUEFLOS
    can use this table also
    QAVE:  Inspection processing
    Fields:      PRUEFLOS
                    KZART
         ZAEHLER
    rgds aryan
    Edited by: Aryan@sap on Jun 4, 2009 8:21 AM

  • JOIN for BSEG, BSIS, BSAS, MSEG, BKPF and MKPF

    I am developing a report related to G/L . i am using the Tables BSEG BSIS BSAS MSEG BKPF MKPF ............please give me the Joinings of these tables.......how exactly we can join and get the prefect Data....
    Thank U waiting for ur replies....
    Title edited by: Alvaro Tejada Galindo on Jun 3, 2008 3:41 PM

    I have given the tables, internal tables and the select queries which can give you the join conditions of your requirement.
    tables: bsis,
            bsas,
            bkpf,
            bseg,
            ekbe,
            mkpf,
            mseg.
    select-options: s_hkont  for bseg-hkont,
                    s_bldat  for bkpf-budat,
                    s_budat  for bkpf-bldat obligatory,
                    s_lifnr  for bseg-lifnr,
                    s_lfbnr  for ekbe-lfbnr no intervals no-extension.
    data: begin of i_bsis_bsas occurs 0,
            bukrs like bsis-bukrs,
            hkont like bsis-hkont,
            gjahr like bsis-gjahr,
            belnr like bsis-belnr,
            budat like bsis-budat,
            bldat like bsis-bldat,
            xblnr like bsis-xblnr,
            wrbtr like bsis-wrbtr,
            buzei like bsis-buzei,
          end   of i_bsis_bsas,
          begin of i_bkpf     occurs 0,
            bukrs like bsis-bukrs,
            belnr like bsis-belnr,
            gjahr like bsis-gjahr,
            xblnr like bkpf-xblnr,
            stblg like bkpf-stblg,
            awtyp like bkpf-awtyp,
            tcode like bkpf-tcode,
          end   of i_bkpf,
          begin of i_bseg     occurs 0,
            bukrs like bsis-bukrs,
            belnr like bsis-belnr,
            gjahr like bsis-gjahr,
            buzei like bseg-buzei,
            buzid like bseg-buzid,
            koart like bseg-koart,
            zuonr like bseg-zuonr,
            hkont like bseg-hkont,
            lifnr like bseg-lifnr,
            sgtxt like bseg-sgtxt,
            ebeln like bseg-ebeln,
            ebelp like bseg-ebelp,
            wrbtr like bseg-wrbtr,
          end   of i_bseg,
          begin of i_ekbe    occurs 0,
            ebeln like ekbe-ebeln,
            ebelp like ekbe-ebelp,
            gjahr like ekbe-gjahr,
            belnr like ekbe-belnr,
            buzei like ekbe-buzei,
            lfgja like ekbe-lfgja,
            lfbnr like ekbe-lfbnr,
            lfpos like ekbe-lfpos,
            matnr like ekbe-matnr,
          end   of i_ekbe,
          begin of i_mkpf_mseg occurs 0,
            mblnr like mkpf-mblnr,
            mjahr like mkpf-mjahr,
            bktxt like mkpf-bktxt,
            xblnr like mkpf-xblnr,
            frbnr like mkpf-frbnr,
            zeile like mseg-zeile,
            matnr like mseg-matnr,
            erfmg like mseg-erfmg,
          end   of i_mkpf_mseg.
    *data: wa_ekbe like i_ekbe.
    select  bukrs
              hkont
              gjahr
              belnr
              budat
              bldat
              xblnr
              wrbtr
              buzei appending corresponding fields of table i_bsis_bsas
                    from  bsis
                    where bukrs eq p_bukrs
                      and hkont in s_hkont
                      and gjahr eq p_gjahr
                      and budat in s_budat
                      and shkzg eq 'S'.
      select  bukrs
              hkont
              gjahr
              belnr
              budat
              bldat
              xblnr
              wrbtr appending corresponding fields of table i_bsis_bsas
                    from  bsas
                    where bukrs eq p_bukrs
                      and hkont in s_hkont
                      and gjahr eq p_gjahr
                      and budat in s_budat
                      and shkzg eq 'S'.
    endform.                    " f_get_bsis_bsas_data
    *&      Form  f_get_bkpf_bseg_data
          Subroutine to get BKPF and BSEG data
    form f_get_bkpf_bseg_data.
      check not i_bsis_bsas[] is initial.
      select  bukrs
              belnr
              gjahr
              xblnr
              stblg
              awtyp
              tcode into table i_bkpf
                    from bkpf
                     for all entries in i_bsis_bsas
                   where bukrs eq i_bsis_bsas-bukrs
                     and belnr eq i_bsis_bsas-belnr
                     and gjahr eq i_bsis_bsas-gjahr.
                    and awtyp = 'BKPFF'
                    and tcode = 'J1IE'.
      check not i_bkpf[] is initial.
      select  bukrs
              belnr
              gjahr
              buzei
              buzid
              koart
              zuonr
              hkont
              lifnr
              sgtxt
              ebeln
              ebelp
              wrbtr  into corresponding fields of table i_bseg
                     from bseg
                      for all entries in i_bsis_bsas
                    where bukrs eq i_bsis_bsas-bukrs
                      and belnr eq i_bsis_bsas-belnr
                      and gjahr eq i_bsis_bsas-gjahr.
                     and buzei eq i_bsis_bsas-buzei
                     and hkont eq i_bsis_bsas-hkont.
      delete i_bseg where not hkont in s_hkont.
    endform.                    " f_get_bkpf_bseg_data
    *&      Form  f_get_ekbe_data
          Subroutine to get EKBE data
    form f_get_ekbe_data.
      data: $i_bseg like i_bseg occurs 0 with header line.
      $i_bseg[]  =  i_bseg[].
      delete $i_bseg where ebeln is initial.
      check not $i_bseg[] is initial.
      select ebeln
             ebelp
             gjahr
             belnr
             buzei
             lfgja
             lfbnr
             lfpos
             matnr into table i_ekbe
                   from ekbe
                    for all entries in $i_bseg
                  where ebeln eq $i_bseg-ebeln
                    and ebelp eq $i_bseg-ebelp
                    and gjahr eq $i_bseg-gjahr
                    and bwart = '101'.
                   and belnr eq $i_bseg-belnr.
    check not i_ekbe[] is initial.
      select a~mblnr
             a~mjahr
             a~bktxt
             a~xblnr
             a~frbnr
             b~zeile
             b~matnr
             b~werks
             b~erfmg  into table i_mkpf_mseg
                      from mkpf as a inner join
                           mseg as b on amblnr eq bmblnr
                                    and amjahr eq bmjahr
                       for all entries in i_ekbe
                       where a~mblnr eq i_ekbe-lfbnr
                      and a~mjahr eq i_ekbe-gjahr
                      and b~zeile eq i_ekbe-lfpos
                        and b~werks eq p_werks.
    <REMOVED BY MODERATOR>
    Edited by: Srikanth Kadiyala on Jun 3, 2008 7:24 AM
    Edited by: Alvaro Tejada Galindo on Jun 3, 2008 3:40 PM

  • BSAK link to BSIS and BSAS...

    Hello Experts,
    I am doing 2 FOR ALL ENTRIES to get records from BSIS and BSAS based on the records
    that I got in BSAK. Currently, I only know of 3 fields to link which is BUKRS, BELNR, AND GJAHR
    but I is still any more fields that I can link to BSAK from BSIS and BSAS? Because we are
    experiencing performance issues in my program. I am using index for the 3 tables but still it gives us
    performance issues. Below is my code:
    *   Get previous year
        lv_year = p_gjahr - 1.
    *   Get records from PAYR
        SELECT zbukr vblnr gjahr lifnr zaldt
          FROM payr
          INTO TABLE gt_payr
         WHERE zbukr = p_bukrs
           AND gjahr IN (lv_year, p_gjahr).
        DELETE gt_payr WHERE zaldt+4(2) > p_monat.
        SORT gt_payr BY zbukr vblnr gjahr lifnr zaldt.
        DELETE ADJACENT DUPLICATES FROM gt_payr COMPARING zbukr vblnr gjahr lifnr zaldt.
        IF NOT gt_payr[] IS INITIAL.
    *     Get records from BSAK
          SELECT bukrs blart gjahr monat belnr lifnr dmbtr shkzg
            FROM bsak
            INTO TABLE gt_bsak
             FOR ALL ENTRIES IN gt_payr
            WHERE lifnr = gt_payr-lifnr
              AND bukrs = gt_payr-zbukr
              AND augdt = gt_payr-zaldt
              AND augbl = gt_payr-vblnr
              AND gjahr = gt_payr-gjahr.
        ENDIF.
        DELETE gt_bsak WHERE monat > p_monat.
        DELETE gt_bsak WHERE shkzg <> 'H'.
        gt_payments[] = gt_bsak[].
        IF NOT gt_payments[] IS INITIAL.
    *   Get records from BSIS(Open items)
        SELECT bukrs blart gjahr monat dmbtr hkont
          FROM bsis
          INTO TABLE gt_bsis
           FOR ALL ENTRIES IN gt_payments
         WHERE bukrs = gt_payments-bukrs
           AND belnr = gt_payments-belnr
           AND gjahr = gt_payments-gjahr
           AND blart IN (lc_su, lc_px).
    *   Get records from BSAS(Cleared items)
        SELECT bukrs blart gjahr monat dmbtr hkont
          FROM bsas
          INTO TABLE gt_bsas
           FOR ALL ENTRIES IN gt_payments
         WHERE bukrs = gt_payments-bukrs
           AND belnr = gt_payments-belnr
           AND gjahr = gt_payments-gjahr
           AND blart IN (lc_su, lc_px).
        ENDIF.
    Hope you can help me guys. Thank you and take care!

    In a statement with a SELECTstatement with FOR ALL ENTRIES, the addition ORDER BY can only be used with the addition PRIMARY KEY
    bsis
    select MANDT
    BUKRS
    HKONT
    AUGDT
    AUGBL
    ZUONR
    GJAHR
    BELNR
    BUZEI
    bsak
    select MANDT
    BUKRS
    LIFNR
    UMSKS
    UMSKZ
    AUGDT
    AUGBL
    ZUONR
    GJAHR
    BELNR
    BUZEI
    bsas
    select MANDT
    BUKRS
    HKONT
    AUGDT
    AUGBL
    ZUONR
    GJAHR
    BELNR
    BUZEI
    Message was edited by:
            Karthikeyan Pandurangan

  • How to remove connect and workbook link after pressing Save as,Print,Export

    I have to remove the connect link and workbook link which appear AFTER pressing Save as,Printable Page,Export in a discoverer viewer report. I had already removed the link in the report itself with changing the uix files, but after pushing the link for export, save as or print the link Connect and Workbook still appear.
    I know that I have to change something in UIX Files, but which one and what I have to change...? Have anyone an idea? Thanx for fast reply, it´s a urgent problem.
    in addition: In metalink,otn and google were no solution...

    If the tone really is a single (or at least narrow band) frequency like the picture shows, I'd try the Notch Filter on the Audition/Effects/Filter and EQ menu.  It might take some playing around to get the exact frequency and tweak the amount of cut you apply vs. the effect it will have on surrounding frequencies--but if you can get the right balance, you can then easily apply this to the whole of every file.
    Sorry, can't help on the Premiere Pro question since I only use Audition.

  • Oracle Hint on Table MKPF and MSEG : force index MSEG~M to be utilize

    Hi Experts, I'm quite new to ABAP performance tuning, I try to put details as much as I can in my question below, just to have a quick overview of my problem below, I want to use/force in my SQL below to force the utilization of index MSEG~M.
    added an Oracle Hint forcing index MSEG~M
      SELECT MATNR BWART MENGE
      FROM   MKPF
      INNER JOIN MSEG
         ON MKPFMANDT EQ MSEGMANDT
        AND MKPFMBLNR EQ MSEGMBLNR
        AND MKPFMJAHR EQ MSEGMJAHR
       INTO CORRESPONDING FIELDS OF TABLE T_MSEG2
      WHERE MKPF~BUDAT IN S_GSTRP    "(index bud should be used)
       AND  MSEG~MJAHR IN R_DOCYEAR
       AND  BWART IN ('931', '932',
                      '901', '902',
                      '701', '702',
                      '703', '704',
                      '707', '708',
                      '711', '712',
                      '713', '714',
                      '715', '716',
                      '717', '718',
                      '551', '552',
                      '553', '554',
                      '555', '556') "ZZCHK: Constants Not Applicable
             AND  MATNR IN R_MATNR3
             AND  MATNR IN R_COMPNTS
             AND  WERKS EQ P_WERKS
      %_hints oracle u2018INDEX(u201CMKPFu201D u201CMSEG~Mu201D)u2019.
    Note: I'm assuming that you'll take not some comments on further enhancement:
    - " INTO CORRESPONDING FIELDS "
    - use of field symbols
    - I didn't modify it yet since my focus if for MSEG~M
    - cannot make material number as mandatory field
    Objective: Force to use index MSEG~M
    Problem:
    After adding the Oracle Hint, I did the analysis in ST05 and it seems like index M is still not being forcefully
    utilize instead MSEG~0 is being used.
    I replaced the Oracle Hint with:
      %_hints oracle u2018INDEX(u201CT_01u201D u201CMSEG~Mu201D)u2019.
    In ST05, I can get see that index MSEG~M is now being utilize BUT worst thing happened after applying this, the program timed out.
    I already take a look on the following Notes: 129385, 130480, 772497, 162034, 818321 but nothing seems to be helpful in my problem.
    Questions:
    1.  In syntax %_hints oracle u2018INDEX(u201CT_01u201D u201CMSEG~Mu201D)u2019. T_01 stands for MKPF right which is the first table, do you what's the reason for the program time out after adding this Oracle Hint?  Is this the proper syntax?
    2.  How can I force in my code to use index MSEG~M without any program timeout?
    For the whole source code of my question above, please see the link:
    http://rapidshare.com/files/211740852/ZDXX0028.txt.html

    Hi Thomas, thanks with the prompt reply (even if it's Saturday )
    Yes, MKPF~BUD is being used.
    The budat selection is narrowed to 28 days though users can input any date range, a warning message will just be displayed if budat selection exceeded.
    Yes, optimizer usually chooses the right index; I'm not in as the same experience as you are though, but I find it interesting that after I added the Oracle hints (several combination) the performance of the program was optimize up to 40% to 50%.
    I uploaded a detailed SQL trace and the ABAP change done in my program, if you'll notice in the summary of the changes, after adding some hints, the duration of the program was improved..
    (SQL Trace Summary of my program) this worth taking a look
    http://rapidshare.com/files/211870091/ZD28_SQL_Trace.zip.html
    I made a custom index in MSEG, but unfortunately I doubt that it will be approve by our performance capacity team.  But I somehow have a hunch that this will further optimize the program.
    MSEG~Z03
    MANDT     Client
    WERKS     Plant
    BWART     Movement Type (Inventory Management)
    LGORT     Storage Location
    What do you think Thomas and SAP experts?
    **Sorry for pasting the whole ST05 result
         SELECT STATEMENT          ( Estimated Costs = 131.250 , Estimated #Rows = 450 )
                        6          FILTER
                        Filter Predicates
                        5          NESTED LOOPS
                        ( Estim. Costs = 131.249 , Estim. #Rows = 450 )
              Estim. CPU-Costs = 1.885.249.948 Estim. IO-Costs = 129.700
                        2          TABLE ACCESS BY INDEX ROWID          MKPF
                        ( Estim. Costs = 14.442 , Estim. #Rows = 288.570 )
                   Estim. CPU-Costs = 206.401.140 Estim. IO-Costs = 14.272
                   1          INDEX RANGE SCAN          MKPF~BUD
                        ( Estim. Costs = 655 , Estim. #Rows = 519.426 )
              Search Columns: 2
              Estim. CPU-Costs = 30.640.783 Estim. IO-Costs = 630
              Access Predicates          Filter Predicates
                        4          TABLE ACCESS BY INDEX ROWID          MSEG
                        Estim. CPU-Costs = 5.818 Estim. IO-Costs = 0
              Filter Predicates
              3          INDEX RANGE SCAN          MSEG~0
                   Search Columns: 3     
         Estim. CPU-Costs = 1.564 Estim. IO-Costs = 0
         Access Predicates          Filter Predicates

  • Why text and button links on a PDF do not work in the iPad

    I have Acrobat Pro 9.2.3 and InDesign CS5.
    I've tried creating both button and text links directly from InDesign (Window > Interactive > Hyperlinks). I then export the multi-page PDF with "Acrobat 6 and Above" selected as well as the "Hyperlinks" and "Interactive Elements" checked. When I open the PDF in my iPad, none of the text or button links work.
    Then . . .
    I tried opening the same multi-page PDF in Acrobat Pro, and manually created the link boxes (Tools > Advanced Editing > Link Tool). The iPad still can't interprete these two interactive elements.
    Any clues what I'm doing wrong?

    Try exporting as ePub - now test inside Digital Editions and if OK - drag the file into iTunes and synch to iPhone/iPad.
    It's probably a Preview issue as mentioned but exporting to ePub is good fun!
    J.

  • How to display URL images and URL link (html) from Smartforms?

    Hi Gurus,
    I'm having difficulty on how to display targeted URL images and URL link from the smartforms, after i sending it out as html mail. The mail i sent just can be preview as a plain text, which can't execute the html code that i put inside the smartforms itself. I follow a few step from this very useful blog.. Hopefully, you guys can give me some solutions or ideas on this.
    /people/pavan.bayyapu/blog/2005/08/30/sending-html-email-from-sap-crmerp -thanks to Pavan for his useful blog.
    My code is like this..
    <--- Start Code.
    FORM call_smartforms.
      DATA : lv_subject TYPE so_obj_des,
             lc_true(1) VALUE 'X',
             lw_control_parameters TYPE ssfctrlop,
             lw_output_options TYPE ssfcompop,
             lc_graphics(8) VALUE 'GRAPHICS',
             lw_xsfparam_line TYPE ssfxsfp,
             lc_extract(7) VALUE 'EXTRACT',
             lc_graphics_directory(18) VALUE 'GRAPHICS-DIRECTORY',
             lc_mygraphics(11) VALUE 'mygraphics/',
             lc_content_id(10) VALUE 'CONTENT-ID',
             lc_enable(6) VALUE 'ENABLE',
             lw_job_output_info TYPE ssfcrescl,
             lw_html_data TYPE trfresult,
             lw_graphics TYPE ssf_xsf_gr,
             lt_graphics TYPE tsf_xsf_gr,
             lv_html_xstr TYPE xstring,
             lw_html_raw LIKE LINE OF lw_html_data-content,
             lv_incode TYPE tcp00-cpcodepage VALUE '4110',
             lv_html_str TYPE string,
             lv_html_len TYPE i,
             lc_utf8(5) VALUE 'utf-8',
             lc_latin1(6) VALUE 'latin1',
             lv_offset TYPE i,
             lv_length TYPE i,
             lv_diff TYPE i,
             lt_soli TYPE soli_tab,
             lw_soli TYPE soli,
             lc_mime_helper TYPE REF TO cl_gbt_multirelated_service,
             lv_name TYPE mime_text VALUE 'sapwebform.htm',
             lv_xstr TYPE xstring,
             lw_raw TYPE bapiconten,
             lt_solix TYPE solix_tab,
             lw_solix TYPE solix,
             lv_filename TYPE string,
             lv_content_id TYPE string,
             lv_content_type TYPE w3conttype,
             lv_obj_len TYPE so_obj_len,
             lv_bmp TYPE so_fileext VALUE 'BMP',
             lv_description TYPE so_obj_des VALUE 'Graphic in BMP format',
             lc_doc_bcs TYPE REF TO cl_document_bcs,
             lc_bcs TYPE REF TO cl_bcs,
             lc_send_exception TYPE REF TO cx_root,
             lw_adsmtp TYPE lty_adsmtp,
             lv_mail_address TYPE ad_smtpadr,
             lc_recipient TYPE REF TO if_recipient_bcs,
             lc_send_request TYPE REF TO cl_bcs,
             lv_sent_to_all TYPE os_boolean.
      DATA : v_language TYPE sflangu VALUE 'E',
             v_e_devtype TYPE rspoptype.
      v_form_name = 'ZTEST_EMAIL'.
      CALL FUNCTION 'SSF_FUNCTION_MODULE_NAME'
        EXPORTING
          formname           = v_form_name
        IMPORTING
          fm_name            = v_namef
        EXCEPTIONS
          no_form            = 1
          no_function_module = 2
          OTHERS             = 3.
      IF sy-subrc = 0.
       break mhusin.
      ENDIF.
    starting here. ***
    Set title for the output
      lv_subject = 'Smartforms.'.
    Set control parameters to "no dialog"
      lw_control_parameters-no_dialog = lc_true.
    IF lw_service_subject-code = lc_fm1.
    *--- To get output device type
      CALL FUNCTION 'SSF_GET_DEVICE_TYPE'
        EXPORTING
          i_language    = v_language
          i_application = 'SAPDEFAULT'
        IMPORTING
          e_devtype     = v_e_devtype.
      lw_output_options-tdprinter = v_e_devtype.
      lw_control_parameters-getotf = 'X'.
      IF sy-subrc = 0.
       break mhusin.
      ENDIF.
    Set output options
      lw_output_options-xsf        = lc_true.
      lw_output_options-xsfcmode   = lc_true.
      lw_output_options-xsfoutmode = 'A'.
      lw_output_options-xsfoutdev  = space.
      lw_output_options-xsfformat  = lc_true.
      lw_xsfparam_line-name  = lc_graphics.
      lw_xsfparam_line-value = lc_extract.
      APPEND lw_xsfparam_line TO lw_output_options-xsfpars.
      lw_xsfparam_line-name  = lc_graphics_directory.
      lw_xsfparam_line-value = lc_mygraphics.
      APPEND lw_xsfparam_line TO lw_output_options-xsfpars.
      lw_xsfparam_line-name  = lc_content_id.
      lw_xsfparam_line-value = lc_enable.
      APPEND lw_xsfparam_line TO lw_output_options-xsfpars.
    Get the smartform content
      CALL FUNCTION v_namef
        EXPORTING
          control_parameters   = lw_control_parameters
          output_options       = lw_output_options
    *pass other application specific parameters (eg order number, items ).
      IMPORTING
          job_output_info    = lw_job_output_info
      TABLES
          tt_tabh              = tt_tabh
          tt_tabb              = tt_tabb
          tt_tabf              = tt_tabf
      EXCEPTIONS
          formatting_error = 1
          internal_error   = 2
          send_error       = 3
          user_canceled    = 4
          OTHERS           = 5.
      IF sy-subrc = 0.
       break mhusin.
      ENDIF.
      lw_html_data  = lw_job_output_info-xmloutput-trfresult.
      lt_graphics[] = lw_job_output_info-xmloutput-xsfgr[].
      CLEAR lv_html_xstr.
      LOOP AT lw_html_data-content INTO lw_html_raw.
        CONCATENATE lv_html_xstr lw_html_raw INTO lv_html_xstr IN BYTE MODE.
      ENDLOOP.
      lv_html_xstr = lv_html_xstr(lw_html_data-length).
      CALL FUNCTION 'SCP_TRANSLATE_CHARS'
        EXPORTING
          inbuff       = lv_html_xstr
          incode       = lv_incode
          csubst       = lc_true
          substc_space = lc_true
        IMPORTING
          outbuff      = lv_html_str
          outused      = lv_html_len
        EXCEPTIONS
          OTHERS       = 1.
    *HACK THE HTML CODE GENERATED BY SMARTFORM TO MAKE THE
    *EXTERNAL IMAGES APPEAR AS <IMG> TAG IN HTML
      REPLACE ALL OCCURRENCES OF '<IMG' IN lv_html_str WITH '<IMG' IGNORING CASE.
      REPLACE ALL OCCURRENCES OF '/>' IN lv_html_str WITH '/>' IGNORING CASE.
      REPLACE ALL OCCURRENCES OF '</A>' IN lv_html_str WITH '' IGNORING CASE.
      REPLACE ALL OCCURRENCES OF '<' IN lv_html_str WITH '<' IGNORING CASE.
      REPLACE ALL OCCURRENCES OF '>' IN lv_html_str WITH '>' IGNORING CASE.
    CALL METHOD html_control - >load_mime_object
       EXPORTING
         object_id  = 'ZWN'
         object_url = 'ZWN.GIF'
       EXCEPTIONS
         OTHERS     = 1.
      REPLACE ALL OCCURRENCES OF lc_utf8 IN lv_html_str WITH lc_latin1.
    REPLACE ALL OCCURRENCES OF lc_utf8 IN lv_html_str WITH 'iso-8859-1'.
       break mhusin.
      lv_html_len = STRLEN( lv_html_str ).
      lv_offset = 0.
      lv_length = 255.
      WHILE lv_offset < lv_html_len.
        lv_diff = lv_html_len - lv_offset.
        IF lv_diff > lv_length.
          lw_soli-line = lv_html_str+lv_offset(lv_length).
        ELSE.
          lw_soli-line = lv_html_str+lv_offset(lv_diff).
        ENDIF.
        APPEND lw_soli TO lt_soli.
        ADD lv_length TO lv_offset.
      ENDWHILE.
      CREATE OBJECT lc_mime_helper.
      CALL METHOD lc_mime_helper->set_main_html
        EXPORTING
          content     = lt_soli
          filename    = lv_name
          description = lv_subject.
      LOOP AT lt_graphics INTO lw_graphics.
        CLEAR lv_xstr.
        LOOP AT lw_graphics-content INTO lw_raw.
          CONCATENATE lv_xstr lw_raw-line INTO lv_xstr IN BYTE MODE.
        ENDLOOP.
        lv_xstr = lv_xstr(lw_graphics-length).
        lv_offset = 0.
        lv_length = 255.
        CLEAR lt_solix[].
        WHILE lv_offset < lw_graphics-length.
          lv_diff = lw_graphics-length - lv_offset.
          IF lv_diff > lv_length.
            lw_solix-line = lv_xstr+lv_offset(lv_length).
          ELSE.
            lw_solix-line = lv_xstr+lv_offset(lv_diff).
          ENDIF.
          APPEND lw_solix TO lt_solix.
          ADD lv_length TO lv_offset.
        ENDWHILE.
        CONCATENATE lc_mygraphics lw_graphics-graphics text-001 INTO lv_filename.
        CONCATENATE lc_mygraphics lw_graphics-graphics text-001 INTO lv_content_id.
        lv_content_type = lw_graphics-httptype.
        lv_obj_len      = lw_graphics-length.
    *Add images to the email
        CALL METHOD lc_mime_helper->add_binary_part
          EXPORTING
            content      = lt_solix
            filename     = lv_filename
            extension    = lv_bmp
            description  = lv_description
            content_type = lv_content_type
            length       = lv_obj_len
            content_id   = lv_content_id.
      ENDLOOP.
      TRY.
          lv_subject = lv_subject.
          lc_doc_bcs = cl_document_bcs=>create_from_multirelated(
                   i_subject          = lv_subject
                   i_multirel_service = lc_mime_helper ).
        CATCH cx_document_bcs INTO lc_send_exception.
        CATCH cx_bcom_mime INTO lc_send_exception.
        CATCH cx_gbt_mime INTO lc_send_exception.
      ENDTRY.
    Create send request
      TRY.
          lc_bcs = cl_bcs=>create_persistent( ).
        CATCH cx_send_req_bcs INTO lc_send_exception.
      ENDTRY.
      TRY.
          lc_bcs->set_document( i_document = lc_doc_bcs ).
        CATCH cx_send_req_bcs INTO lc_send_exception.
      ENDTRY.
    Set-up email receiver
      lv_mail_address = '[email protected]'.
    TRANSLATE lv_mail_address TO UPPER CASE.
      TRY.
          lc_recipient = cl_cam_address_bcs=>create_internet_address(
              i_address_string = lv_mail_address ).
        CATCH cx_address_bcs INTO lc_send_exception.
      ENDTRY.
      TRY.
          lc_bcs->add_recipient( i_recipient = lc_recipient ).
        CATCH cx_send_req_bcs INTO lc_send_exception.
      ENDTRY.
    Send smartforms as HTML email
      TRY.
          lc_bcs->send( ).
        CATCH cx_send_req_bcs INTO lc_send_exception.
      ENDTRY.
      COMMIT WORK.
      WRITE:/ 'Mail sent'.
    ENDFORM.                    "call_smartforms
    End Code --->
    Thanks and Regards.

    1- put your images in a directory under the web app directory. Example: app/images/
    2- in your jsp, use: String file = application.getRealPath("/images/"); to get the images directory. See http://java.sun.com/j2ee/sdk_1.3/techdocs/api/javax/servlet/ServletContext.html#getRealPath(java.lang.String)
    3- it's not the right forum to post this kind of question. Post them in the JSP/Servlet JSTL forum instead

  • I pre ordered a album and got songs then it came out so itunes sent me a confirmation and it said to go to available downloads and gave link so I did and it did nothing for me and when I went to the album I wanted it said it was purchased so how do I get

    I pre ordered a album and got songs then it came out so itunes sent me a confirmation and it said to go to available downloads and gave link so I did and it did nothing for me and when I went to the album I wanted it said it was purchased so how do I get my music and don't even see available downloads in the iTunes Store

    Check this link, http://www.apple.com/support/itunes/ and go to the contact page.
    Sorry, here you go https://ssl.apple.com/emea/support/itunes/contact.html
    Message was edited by: ChrisJ4203

  • BSIS and BSAS

    Hi Experts
    1) Is there any difference between BSIS and BSAS table?
    2) What are open items and closed items?
    pallavi

    BSIS : Open Items Available for GL
    BSAS: Cleared Items Available  for GL
    Gl Acoount Open Line Items Available in Table BSIS,
    GL Account Cleared Line Items Available in BSAS,
    Ex: while Using T. Code F-02,
    Dr 400500 Rs 1000
    Cr 500100 Rs 1000
    This Data Is Availeble In BSIS
    Reverse Above Entry
    Dr 500100 Rs 1000
    Cr 400500 Rs 1000
    This Data is Available In BSAS,
    Regards,
    Viswa

  • In FF 34.0.5 I use to be able to click on a link within an e-mail and the link would open in a new tab; it now opens in the same tab; how can i change it back?

    I'm using FF 34.0.5 (I like it). I use to be able to right click on a link, within an e-mail, and the link would open in a new tab. Now when I click on the link it opens in the same tab replacing my e-mail.
    Example - a friend sends me an e-mail containing a link to a web site he thinks I'd like. I click on the link and go to the web site and then go back to the e-mail tab and reply to him. Now, when clicking that link, my e-mail disappears and is replaced by the new site.
    How can I fix this? When this happened once before I was told to change the 'value' for a specific 'preference name' through the about:config page.
    Can anyone help jog my memory?
    Thanks!

    Is this about clicking a link in an external program?
    You can check this pref on the about:config page for external links.
    * browser.link.open_newwindow.override.external (-1)
    If this pref has the default value -1 then browser.link.open_newwindow is used.
    * http://kb.mozillazine.org/browser.link.open_newwindow
    *1: current tab; 2:new window; 3:new tab;
    You can open the <b>about:config</b> page via the location/address bar.
    You can accept the warning and click "I'll be careful" to continue.
    *http://kb.mozillazine.org/about:config

  • Using firefox 14.0.1. Loading a link using right-click and "Open Link In New Window", results in new window opening but address bar does not show URL..

    Using firefox 14.0.1. Loading a link using right-click and "Open Link In New Window", results in new window opening but address bar does not show URL. However, if I right click on a link and select "Open Link In New Tab", the Tab shows URL in address bar. So it's working when it's a New Tab but not a New Window.

    The Reset Firefox feature can fix many issues by restoring Firefox to its factory default state while saving your essential information.
    Note: ''This will cause you to lose any Extensions, Open websites, and some Preferences.''
    To Reset Firefox do the following:
    #Go to Firefox > Help > Troubleshooting Information.
    #Click the "Reset Firefox" button.
    #Firefox will close and reset. After Firefox is done, it will show a window with the information that is imported. Click Finish.
    #Firefox will open with all factory defaults applied.
    Further information can be found in the [[Reset Firefox – easily fix most problems]] article.
    Did this fix your problems? Please report back to us!

  • When I click on an active link from another application, it opens the firefox application, but won't open open the page - it just opens Firefox or takes me to Firefox. No new tab or window is opened and the link is not displayed.

    When I click on an active link from another application, it opens the firefox application, but won't open open the page - it just opens Firefox or takes me to Firefox. No new tab or window is opened and the link is not displayed.

    Firefox sent an email to me to confirm that I had asked the above question. The email had a link to click. When I clicked it from Firefox, nothing happened. Then I opened IE, signed into Comcast, opened the email, clicked the link, and it brought me here.

  • Can't find the storage and backup link to start an icloud backup

    Why is it that when you create an icloud account the Storage and Backup link isn't always there.  I need to create an icloud account and then create an icloud backup right away so that I can setup multiple ipads using the icloud backup.  How do I force an icloud backup?
    Thanks

    You can check your Junk/Spam folders, sometimes the e-mail gets sent there. Also, double check that the primary e-mail address in your Apple ID account is hers. If none of this works, I suggest to wait it out, sometimes it can take up to 24 hours!

Maybe you are looking for