Printing in PM/CS using smartforms (How?)

Hi,
I know that PM/CS uses SAPscript in standard. Now I'd like to switch the printing to Smartforms. The problem is, I have no idea how to manage it or how to confugure the PM/CS printout settings to do so.
Any help is highly appreciated!
Florian

Hi,
This has been answered a few times in the forum -  [thread1|PM ORDER SMARTFORM;, [thread2|Smartform Shop papers;,
[thread3|Shop paper as smartforms;.
-Paul

Similar Messages

  • Label printing at Goods Receipt using SMARTFORMS and Zebra software

    Hi Experts,
    Upon designing a functional design for the printing of labels upon goods receipt and a re-print through MB90 I would like to understand the procedure on how the label gets printed. From what I understand the following steps are done:
    A label is designed in the Zebra application tool.
    The file is downloaded from the application and uploaded into SAP
    A SMARTFORM is created in SAP and assifned to a new output type.
    The new output type is assigned to the Zebra Printer.
    Is there any need for an abap program to be written, if so when and what is its purpose?

    Output Type WEE1 uses sap print program  SAPM07DR.
    Can the following data fields be retrieved from this program:
    Material Number (MSEG-MATNR)
    Bin Number (MSEG-LGPLA)
    Material Description (Feed (MAKT-MATNR) Get (MAKT-MAKTX))
    Supplier Name: Feed (MSEG-MBLNR) get (MSEG-EMLIF)
    MSEG-EMLIF=LFA1-LIFNR
    Feed (LFA1-LIFNR) get (LFA1-NAME1)
    Supplier Material Number: Feed (EKPO-EBELN) get (EKPO-IDNLF)
    PO number and Item: Feed (MSEG-MBLNR) get (MSEG-EBELN) and (MSEG-EBELP)
    GRN Date: Feed (MKPF-MBLNR) get (MKPF-BLDAT)

  • Printing a PDF document using SMARTFORMS

    What is the easiest way to print a PDF document from an ABAP program?  I have the data in the following formats:
    Binary (XSTRING)
    String (from function module HR_KR_XSTRING_TO_STRING)
    OTF
    What format can I use in a smartform to print the PDF in the background?
    Thanks in advance.

    Sandipan,
    If I use the UTF format, what do I use for the device type?  PDF1?  Also, I have the OTF data in an internal table which has to fields (TDPRINTCOM and TDPRINTPAR).  I pass this table into the smartform function module but what do I do with the 2 fields when I loop through the internal table in the smartform?  Do I just output a text node with TDPRINTPAR and ignoreTDPRINTCOM?
    TDPRINTCOM   TDPRINTPAR
    ==========    ==========
    //             XHPLJ4       0700 00000000001
    IN            04E/ERPIS/CARRIERLABEL
    IN            05%PAGE1
    OP            DINA4   P 144  240 1683811906000010000100000
    IN            06MAIN
    IN            03TABLE_BEGIN
    MT            0141701657
    CP           41030000E
    FC           COURIER 120  00144 SF012SF012410300144E

  • HT3771 Our imac is responding "printer offline" with the printer that is always used.  How do we print or fix this?

    I need help in finding the source of a problem:  Imac reads "printer offline"..  Can't figure out how to fix it.  We have re-set the computer but no fix..

    juliettaha,
    Try rebooting everything first, computer, router, modem, also try connecting via USB.
    If no joy then try going to system preferences>printers>and highlight the printer in question (you may have to enter your admin pswd) then click the minus button and delete the printer.
    Next click the plus button and re-add the printer and see if that helps.
    Hope this helps

  • Printing Pictures of materials in smartforms...

    We have a requirement here that is the following:
    1 - All materials in the system will have a picture assigned to it. (tens of thousands of them)
    2 - We need to print a photo catalog (using smartforms); with all these pictures. (around 30 per page)
    3 - We want to store this data(pictures) only once and have it accessed by ECC and BW.
    What is the recommended approach?
    I know I can use SE78 to upload pictures but I probably would not have it shared easily.
    If I use DMS, how can I read from there to put it in my smartforms (only BMAP and TIFF accepted...)?
    Any suggestions?
    Thanks

    Hey Leonardo,
    a lot of other users an I are looking for a solution to print pictures via a ArchiveLink into smartforms. Could you tell us something about your solution?
    Thanks.
    Philipp

  • Probelm in printing tabspace in barcode thro smartforms

    Hi Friends,
    I want to print the Barcode label thro smartforms. My code is as follows,
    I want to use TABSPACE separation in between fields instead of SPACE how do i do this pls guide me for the same. I  am using SAP ECC 5.0 version. So i tried using SEPARATED BY cl_abap_char_utilities=>HORIZONTAL_TAB but i am getting ' # ' sign in it. so pls help how to do it?
    DATA: GT_LINES  TYPE STANDARD TABLE OF TLINE,
    GS_LINES  LIKE LINE OF GT_LINES,
    NAME      LIKE THEAD-TDNAME.
    GS_HD_GEN = IS_BIL_INVOICE-HD_GEN.
    NAME = GS_HD_GEN-BIL_NUMBER.
    CALL FUNCTION 'READ_TEXT'
      EXPORTING
        CLIENT   = SY-MANDT
        ID       = 'ZFOR'
        LANGUAGE = 'E'
        NAME     = NAME
        OBJECT   = 'VBBK'
      TABLES
        LINES    = GT_LINES.
    IF SY-SUBRC = 0.
      LOOP AT GT_LINES INTO GS_LINES.
        IF SY-TABIX = 1.
          TDLINE = GS_LINES-TDLINE.
          G_STR4 = TDLINE."GS_LINES-TDLINE.
        ELSEIF SY-TABIX = 2.
          G_STR4 = TDLINE."GS_LINES-TDLINE.
        ELSEIF SY-TABIX = 3.
          G_STR4 = TDLINE."GS_LINES-TDLINE.
        ELSEIF SY-TABIX = 4.
          G_STR4 = TDLINE."GS_LINES-TDLINE.
        ENDIF.
        CLEAR GS_LINES.
      ENDLOOP.
    ENDIF.
    DATA  LV_DEPEXNUM LIKE J_1IRG23D-DEPEXNUM.
    GS_HD_REF = IS_BIL_INVOICE-HD_REF.
    SELECT SINGLE DEPEXNUM FROM
    J_1IRG23D INTO LV_DEPEXNUM
    WHERE VBELN EQ GS_HD_REF-DELIV_NUMB.
    DATA: GV_DATE(10).
    WRITE GS_HD_GEN-BIL_DATE TO GV_DATE mm/dd/yyyy.
    DATA : LV_STR(15)." LIKE IS_BIL_INVOICE-HD_GEN-DPEND.
    read condition header data
    gs_hd_kond = is_bil_invoice-hd_kond.
    *reading excise data
    CLEAR: GS_HD_REF, GS_HD_GEN.
    READ TABLE gs_hd_kond INTO gs_hd_kond_w WITH KEY kschl = 'JEXT'.
    LV_STR = IS_BIL_INVOICE-HD_GEN-DPEND.
    read ref data
    GS_HD_REF = IS_BIL_INVOICE-HD_REF.
    read gen data
    GS_HD_GEN = IS_BIL_INVOICE-HD_GEN.
    clear: g_str, g_str1, g_str2, g_str3.
    concatenate
    IS_BIL_INVOICE-HD_REF-PURCH_NO
    LV_DEPEXNUM
    *GS_HD_GEN-BIL_DATE
    GV_DATE
    G_STR4
    LV_STR
    into g_str SEPARATED BY SPACE.
    clear: g_str1, g_str2, g_str3.
    LOOP AT IS_BIL_INVOICE-IT_GEN INTO GS_IT_GEN.
      IF SY-TABIX < 10.
        CLEAR G_STR1.
        g_str1 = GS_IT_GEN-FKIMG.
        concatenate g_str
        GS_IT_GEN-CUST_MAT   " AR ++ 29.07
                  GS_IT_GEN-SHORT_TEXT " AR -- 29.07
        g_str1
        into g_str separated by SPACE.
      ELSEIF SY-TABIX < 9.
        CLEAR G_STR1.
        g_str1 = GS_IT_GEN-FKIMG.
        concatenate g_str
        GS_IT_GEN-CUST_MAT    " AR ++ 29.07
                  GS_IT_GEN-SHORT_TEXT  " AR -- 29.07
        g_str1
        into g_str separated by SPACE.
      ELSE.
        CLEAR G_STR1.
        g_str1 = GS_IT_GEN-FKIMG.
        concatenate g_str
        GS_IT_GEN-CUST_MAT    " AR ++ 29.07
                  GS_IT_GEN-SHORT_TEXT  " AR -- 29.07
        g_str1
        into g_str separated by SPACE.
      ENDIF.
    ENDLOOP.

    Hi,
    There are two types are barcode existing in sap like system barcode and printer barcode. Use Tcode SE73 to create any of those.
    If you want to create your own customized barcode then you have to opt system barcode. Here while creating barcode it will ask whether to create new barocde or copy of existing barcode.
    However by taking into consideration your requirement, you have to create system bar code.
    Goto SE73->System barcode->change-> create new barcode->New barcode technology.
    Here you have to mention barcode name and short text. then supported barcode symbology like C39,C128, code93 etc.
    After selecting any of the symbology, you have to choose Bar Code Alignment: like normal. inverted, etc. Then specify other barcode parameters like height,width, barcode ratio etc.
    Then try to print any text element with this customized barcode as per your requirement.
    Like you can print text element with smartform style, here you can include your customized created barcode in character format. While creating charactor format, give name of your customized barcode in standard setting->name.
    Then print text element by using smartform style.
    Hope this works for you.
    Thanks.......

  • How to Print Employee Photo using Smartform

    Dear All,
    I have requirement to print Employee photo using Smartform.
    Here I want to give breif backgorund to uploading employee image procedure,we are uploading employee Image using transaction code OAOH by providing Business Object PREL and Document Type HRICOLFOTO. Click on create button on second screen by providing employee Code XXXXXXX and infotype 0002  after click on enter button system ask path for uploading image file.After storing image we can see the employee image by using transaction code PA30 after passing employee code.
    These employee image  I want to print in Smartform layout.If any body have done this type of the requirement.Pl.explain me .
    Thanks ,
    Regards

    Hi ABAP Programmer,
    Refer this link
    i  want to retrieve a photo image of an Employee to display in smartforms
    Regards,
    Sravanthi

  • How to print  the barcode in a smartform satisfying specific condition

    Hi
    I have a requirement where I need to print the barcode System Bar code = BC_93
    satisfying the following requirement:
    The Bar code is made up of the concatenation of “code1 ”, “dash character”
    and “ code2”. The two codes ( that is some field in a custom table) should be
    eight char long each (put leading zero if the length of the code is shorter).
    This barcode shall be printed always apart from:
    a) code1 material type is ZCPF
    b )Is a combi order, with no code2 stored in storage location “abc”
    please help with example . its very urgent , points will be rewarded.
    Thanks

    To Create a Bar code prefix:
    1) Go to T-code - SPAD -> Full Administration -> Click on Device Type -> Double click the device for which you wish to create the print control -> Click on Print Control tab ->Click on change mode -> Click the plus sign to add a row or prefix say SBP99 (Prefix must start with SBP) -> save you changes , it will ask for request -> create request and save
    2) Now when you go to SE73 if you enter SBP00 for you device it will add the newly created Prefix
    Create a character format C1.Assign a barcode to the character format.Check the check box for the barcode.
    The place where you are using the field value use like this
    <C1> &itab-field& </C1>.
    You will get the field value in the form of barcode.
    Which barcode printer are you using ? Can you download this file and see.
    http://www.servopack.de/Files/HB/ZPLcommands.pdf.
    It will give an idea about barcode commands.
    Check this link:
    http://www.sap-img.com/abap/questions-about-bar-code-printing-in-sap.htm
    Check this link:
    http://help.sap.com/saphelp_nw04/helpdata/en/d9/4a94c851ea11d189570000e829fbbd/content.htm
    Hope this link ll be useful..
    http://help.sap.com/saphelp_nw04/helpdata/en/66/1b45c136639542a83663072a74a21c/content.htm
    go through these links and cose u r previous threads,
    http://www.sap-img.com/abap/questions-about-bar-code-printing-in-sap.htm
    smartform - barcode
    http://www.erpgenie.com/abap/smartforms.htm
    http://sap.ittoolbox.com/groups/technical-functional/sap-basis/print-barcode-with-smartform-634396
    http://sap.ittoolbox.com/groups/technical-functional/sap-dev/printing-barcode-733550
    Detailed information about SAP Barcodes
    A barcode solution consists of the following:
    - a barcode printer
    - a barcode reader
    - a mobile data collection application/program
    A barcode label is a special symbology to represent human readable information such as a material number or batch number
    in machine readable format.
    There are different symbologies for different applications and different industries. Luckily, you need not worry to much about that as the logistics supply chain has mostly standardized on 3 of 9 and 128 barcode symbologies - which all barcode readers support and which SAP support natively in it's printing protocols.
    You can print barcodes from SAP by modifying an existing output form.
    Behind every output form is a print program that collects all the data and then pass it to the form. The form contains the layout as well as the font, line and paragraph formats. These forms are designed using SAPScript (a very easy but frustratingly simplistic form format language) or SmartForms that is more of a graphical form design tool.
    Barcodes are nothing more than a font definition and is part of the style sheet associated with a particular SAPScript form. The most important aspect is to place a parameter in the line of the form that points to the data element that you want to represent as barcode on the form, i.e. material number. Next you need to set the font for that parameter value to one of the supported barcode symbologies.
    Re: how to print barcode using smartform and sapscript...?

  • Check printing using smartform

    Hi All ,
    I have urgent requirement that to convert standard check
    printing program to our custmized check printing program using smartform .
    Please suggest the way , how we can do that?
    Regards
    Mohit Bansal

    Hi,
    For Creating custom check printing you need to do following steps.
    1. Create Custom page format using SPAD.
    2. Created smartform layout using custom page format.

  • SMARTFORM: how to create 3 copy (each copy can print more than one page)

    SMARTFORM: how to create 3 copy (each copy can print more than one page)
    Hello everyone.
    my user want to have form that print 3 copy.
    such as 1 copy description = master,  2 copy description = copy 1 ,3 copy description = copy 2.
    so i create 3 page . I copy from page 1.
    and in each page there is main window which can have data more than 1 page.(such as have a lot of sale data ,it's take 2 page for show output .so it's take 2 page in each copy)
    please help me.
    how to set page and window in each page for print 3 copy and each page can have main window that print more than 1 page

    Hello Vinit.
    thank you very much for your help.
    could you help me more please.
    in below code
      DO NAST_ANZAL TIMES.
    l_counter = l_counter + 1.  " << pass this to FM and use for the TEXT to print
    CALL FUNCTION LF_FM_NAME
               EXPORTING
                         COUNTER = l_COUNTER   " USE this to derive the text into PRINTOUT
    enddo.
    Now i out of office .so i cannot test.
    where do i set NAST_ANZAL for 3 ?
    can i input ?
    NAST_ANZAL = 3.
      DO NAST_ANZAL TIMES.
    l_counter = l_counter + 1.  " << pass this to FM and use for the TEXT to print
    CALL FUNCTION LF_FM_NAME
               EXPORTING
                         COUNTER = l_COUNTER   " USE this to derive the text into PRINTOUT
    enddo.
    Edited by: dittaporn nanasilp on Mar 12, 2011 3:33 PM

  • Print PO using Smartforms?

    Hi Gurus,
    I'm new to smart forms.
    Can smart forms used to print PO(using Transaction ME23N)?
    As I know, the PO is print using SAP Script, can it be done using smartforms?
    thanks in advance.
    Hikaruno

    Hi
    YES, PO can be printed using Smartform also.
    see the related forms and program
    PUCHASE ORDER
    Output type         : NEU
    ScriptForm Name     : MEDRUCK
    Driver Program Name : SAPMF06P
    smartform name      : /SMB40/MMPO_L
    SF creation
    How to create a New smartfrom, it is having step by step procedure
    http://sap.niraj.tripod.com/id67.html
    Here is the procedure
    1. Create a new smartforms
    Transaction code SMARTFORMS
    Create new smartforms call ZSMART
    2. Define looping process for internal table
    Pages and windows
    First Page -> Header Window (Cursor at First Page then click Edit -> Node -> Create)
    Here, you can specify your title and page numbering
    &SFSY-PAGE& (Page 1) of &SFSY-FORMPAGES(Z4.0)& (Total Page)
    Main windows -> TABLE -> DATA
    In the Loop section, tick Internal table and fill in
    ITAB1 (table in ABAP SMARTFORM calling function) INTO ITAB2
    3. Define table in smartforms
    Global settings :
    Form interface
    Variable name Type assignment Reference type
    ITAB1 TYPE Table Structure
    Global definitions
    Variable name Type assignment Reference type
    ITAB2 TYPE Table Structure
    4. To display the data in the form
    Make used of the Table Painter and declare the Line Type in Tabstrips Table
    e.g. HD_GEN for printing header details,
    IT_GEN for printing data details.
    You have to specify the Line Type in your Text elements in the Tabstrips Output options.
    Tick the New Line and specify the Line Type for outputting the data.
    Declare your output fields in Text elements
    Tabstrips - Output Options
    For different fonts use this Style : IDWTCERTSTYLE
    For Quantity or Amout you can used this variable &GS_ITAB-AMOUNT(12.2)&
    5. Calling SMARTFORMS from your ABAP program
    REPORT ZSMARTFORM.
    Calling SMARTFORMS from your ABAP program.
    Collecting all the table data in your program, and pass once to SMARTFORMS
    SMARTFORMS
    Declare your table type in :-
    Global Settings -> Form Interface
    Global Definintions -> Global Data
    Main Window -> Table -> DATA
    Written by : SAP Hints and Tips on Configuration and ABAP/4 Programming
    http://sapr3.tripod.com
    TABLES: MKPF.
    DATA: FM_NAME TYPE RS38L_FNAM.
    DATA: BEGIN OF INT_MKPF OCCURS 0.
    INCLUDE STRUCTURE MKPF.
    DATA: END OF INT_MKPF.
    SELECT-OPTIONS S_MBLNR FOR MKPF-MBLNR MEMORY ID 001.
    SELECT * FROM MKPF WHERE MBLNR IN S_MBLNR.
    MOVE-CORRESPONDING MKPF TO INT_MKPF.
    APPEND INT_MKPF.
    ENDSELECT.
    At the end of your program.
    Passing data to SMARTFORMS
    call function 'SSF_FUNCTION_MODULE_NAME'
    exporting
    formname = 'ZSMARTFORM'
    VARIANT = ' '
    DIRECT_CALL = ' '
    IMPORTING
    FM_NAME = FM_NAME
    EXCEPTIONS
    NO_FORM = 1
    NO_FUNCTION_MODULE = 2
    OTHERS = 3.
    if sy-subrc <> 0.
    WRITE: / 'ERROR 1'.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
    WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    endif.
    call function FM_NAME
    EXPORTING
    ARCHIVE_INDEX =
    ARCHIVE_INDEX_TAB =
    ARCHIVE_PARAMETERS =
    CONTROL_PARAMETERS =
    MAIL_APPL_OBJ =
    MAIL_RECIPIENT =
    MAIL_SENDER =
    OUTPUT_OPTIONS =
    USER_SETTINGS = 'X'
    IMPORTING
    DOCUMENT_OUTPUT_INFO =
    JOB_OUTPUT_INFO =
    JOB_OUTPUT_OPTIONS =
    TABLES
    GS_MKPF = INT_MKPF
    EXCEPTIONS
    FORMATTING_ERROR = 1
    INTERNAL_ERROR = 2
    SEND_ERROR = 3
    USER_CANCELED = 4
    OTHERS = 5.
    if sy-subrc <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
    WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    endif.
    check this:
    http://help.sap.com/saphelp_nw04s/helpdata/en/a5/de6838abce021ae10000009b38f842/content.htm
    http://www.sapbrain.com/ARTICLES/TECHNICAL/SMARTFORMS/smartforms.html
    http://www.sapbrain.com/TUTORIALS/TECHNICAL/SMARTFORMS_tutorial.html
    check this linkls------>
    https://www.sdn.sap.com/irj/sdn/collaboration
    http://help.sap.com/saphelp_erp2004/helpdata/en/a9/de6838abce021ae10000009b38f842/frameset.htm
    http://www.sap-img.com/smartforms/sap-smart-forms.htm
    http://www.sap-img.com/smartforms/sap-smart-forms.htm
    <b>Reward points for useful Answers</b>
    Regards
    Anji

  • Printing dunning notices using SMARTFORMS,error during parameter transfer

    Hi Friends,
                    I face a error message "Include text ZGA_DUN_HDR does not exist (object TEXT, ID ST)" when i run the dunning run.
                    I had searched every node for text ZGA_DUN_HDR in the smartform,I didnt find the text in it.
    However when I execute the smart form for print preview an error message "Printing dunning notices using SMARTFORMS,error during parameter transfer".This error i believe is due to wrong parameter passing in the fm 'GET_SF_DUNN_DATA'.It raises an error no_parameters_found.All parameters are passed correctly.
                    Can you guys help me out.
    Edited by: RAJIV KAUSHAL on Nov 14, 2008 6:03 PM

    you can create this text ZGA_DUN_HDR  in SO10 tcode and try ...

  • Printing Dunning Letters using Smartforms

    Hi all,
    I have a requirement wherein I need to print dunning letters using smartforms; the dunning data are extracted in program SAPF150D2;I modified the subroutine OFI_DUN_ACT to call function module FI_PRINT_DUNNING_NOTICE_SMARTF.
    Now I need to extract the dunning data in program SAPF150D2 to be imported to my new form using GET_SF_DUNN_DATA, my question is where do I code the calling of FM GET_SFG_DUNN_DATA? I'm a little bit confused on the step by step process of the dunning data extraction to printing of the form... Thanks...

    In the INITIALIZATION of the Smartforms, after the call to  GET_SF_DUNN_DATA, you have a many informations back, of which the record of MHNK and an internal table of MHND, which you can use to select other informations from database.
    So fill or enrich your own internal table in the initialization.
    I enclose thereafter a sample to help you
    * Load data
      CALL FUNCTION 'GET_SF_DUNN_DATA'
           EXPORTING
                is_sfparam          = is_sfparam
           IMPORTING
                es_mhnk             = mhnk
                es_t001             = t001
                es_knb5             = knb5
                es_lfb5             = lfb5
                es_t047             = t047
                es_t047c            = t047c
                es_t047i            = t047i
                es_t056z            = t056z
                es_f150d            = f150d
                es_fsabe            = fsabe
                es_adrnr            = adrnr
                es_uadrnr           = uadrnr
                es_adrs             = adrs
                es_uadrs            = uadrs
                es_t047b            = t047b
                eb_testprint        = testprint
                e_langu             = langu
                e_lang2             = lang2
                es_f150d_esr        = f150d_esr
                es_paymi            = paymi
                es_paymo            = paymo
           TABLES
                t_mhnd              = th_mhnd
           EXCEPTIONS
                no_parameters_found = 1
                OTHERS              = 2.
    IF sy-subrc <> 0.
      sy-msgid = 'FM'.
      sy-msgty = 'E'.
      sy-msgno = 461.
      RAISE others.
    ENDIF.
    h_t040a-text1 = space.
    show_interest = space.
    LOOP AT th_mhnd INTO mhnd WHERE xzins = ' '.
      show_interest = 'X'.
      EXIT.
    ENDLOOP.
    * Load user information
    DATA: usr21 LIKE usr21, addr3_sel LIKE addr3_sel.
    CLEAR: usr21, addr3_sel, addr3_val, adr6.
    * Charger fiche profil
    SELECT SINGLE * FROM usr21 WHERE bname = sy-uname.
    * Récupérer l'adresse
    MOVE-CORRESPONDING usr21 TO addr3_sel.
    CALL FUNCTION 'ADDR_PERS_COMP_GET'
         EXPORTING
              address_pers_in_comp_selection = addr3_sel
         IMPORTING
              address_pers_in_comp_value     = addr3_val
         EXCEPTIONS
              OTHERS                         = 1.
    * load SMTP address
    CLEAR adr6.
    SELECT SINGLE * FROM adr6
      WHERE addrnumber = usr21-addrnumber
        AND persnumber = usr21-persnumber.
    * date format
    SET COUNTRY adrs-land1.
    * Group similar posts
    DATA: xbseg TYPE bseg,
          xbkpf TYPE bkpf,
          xpost TYPE th_outtab.
    REFRESH: t_post, t_cumul_waers.
    LOOP AT th_mhnd INTO mhnd.
    * Select lines to use
      IF mhnk-gmvdt IS INITIAL.
        IF mhnd-xzalb <> space OR mhnd-mansp <> space.
          CONTINUE.
        ELSEIF t047b-xpost NE 'X' AND mhnd-xfael <> 'X'.
          CONTINUE.
        ENDIF.
      ENDIF.
    * Map data
      CLEAR xpost.
      MOVE-CORRESPONDING mhnd TO xpost.
    * Load text from bseg
      SELECT SINGLE sgtxt INTO xpost-sgtxt FROM bseg
        WHERE bukrs EQ mhnd-bbukrs AND belnr EQ mhnd-belnr
          AND gjahr EQ mhnd-gjahr  AND buzei EQ mhnd-buzei.
      PERFORM edit_text CHANGING xpost-zuonr mhnd-xblnr xpost-sgtxt.
    * if "Payment difference" get the date of original document
      IF mhnd-bschl = '06'.
        SELECT SINGLE bldat INTO xpost-bldat
          FROM bkpf
          WHERE bukrs = mhnd-bukrs
            AND belnr = mhnd-rebzg
            AND gjahr = mhnd-rebzj.
      ENDIF.
    * Collect posts to print
      COLLECT xpost INTO t_post.
    * Collect amount per currency
      MOVE-CORRESPONDING xpost TO cumul.
      COLLECT cumul INTO t_cumul_waers.
    ENDLOOP.
    * Load customer information
    SELECT SINGLE * FROM kna1 INTO kna1
      WHERE kunnr = mhnk-kunnr.
    SELECT SINGLE * FROM knb1 INTO knb1
      WHERE bukrs = mhnk-bukrs
        AND kunnr = mhnk-kunnr.
    * Convert date to text
    PERFORM convert_date USING control_parameters-langu mhnk-laufd
      CHANGING text_date.
    PERFORM convert_date USING control_parameters-langu mhnk-prndt_before
      CHANGING text_prev.
    PERFORM convert_date USING control_parameters-langu mhnk-grdat
      CHANGING text_extr.
    Regards

  • How to print text on container using oop on alv list

    Hello Guru's,
             pl guide me how to print text on container using alv list-display which have interactive events  using     oop classes/methods ...
                    I want to print hard coded text on coantainer , on double clicking it will call another screen.
    Pl Help..
    Message was edited by:
            paresh sonavane

    Hi Paresh,
           1.      Go to the Layout and Create One custom container box and give name it.
            2. Custom Container is the one type of tool and its used for Displaying the Reports 
                with the use of ABAP Objects.
            3. Go to se38 and Write The Following Code.
    tables ZTEAM_GD.
    DATA : OBJ TYPE REF TO CL_GUI_CUSTOM_CONTAINER,
           OBJ1 TYPE REF TO CL_GUI_ALV_GRID.
    DATA IT_TEAM LIKE TABLE OF ZPLAYER_BAT_DET       .
    SELECT * FROM ZPLAYER_BAT_DET INTO TABLE IT_TEAM.
    CREATE OBJECT OBJ
      EXPORTING
        CONTAINER_NAME              = 'ALV'.          -
    > Give ur Container Name
    CREATE OBJECT OBJ1
      EXPORTING
        I_PARENT          = OBJ.
    CALL METHOD OBJ1->SET_TABLE_FOR_FIRST_DISPLAY
      EXPORTING
        I_STRUCTURE_NAME              = 'ZPLAYER_BAT_DET'
      CHANGING
        IT_OUTTAB                     = IT_TEAM.
    *CALL METHOD OBJ1->SET_DROP_DOWN_TABLE
    EXPORTING
       I_STRUCTURE_NAME = 'ZTEAM_GD'
    CHANGING
       IT_OUTTAB        = IT_TEAM.
    CALL SCREEN 9000.
    *&      Module  USER_COMMAND_9000  INPUT
          text
    MODULE USER_COMMAND_9000 INPUT.
    CASE SY-UCOMM.
    WHEN 'EXT'.
      LEAVE PROGRAM.
    ENDCASE.
    ENDMODULE.                 " USER_COMMAND_9000  INPU     
    Thanks.
    Reward If Helpful.

  • How to print a text file using Java

    How can I print a text file using Java without converting the output to an image format. Is there anyway I can send the characters in the text file as it is for a print job? I did get a listing doing this ... but that converted the text to an image format before printing....
    THanks,.

    Hi I had to write a print api from scratch, and I did not convert the output to image. Go and read up on the following code. I know there is a Tutorial on Sun about the differant sections of the snippet.
    private void printReport()
         Frame tempFrame = new Frame(getName());
         PrintJob printerJob = Toolkit.getDefaultToolkit().getPrintJob(tempFrame, "Liesltext", null);
         Graphics g = printerJob.getGraphics();
                    //I wrote the method below for calculations
         printBasics(g);
         g.dispose();
         printerJob.end();
    }This alone wont print it you have to do all the calculations in the printBasics method. And as I said I wrote this from scratch and all I did was research first the tutorial and the white papers
    Ciao

Maybe you are looking for

  • Informacast 8.3.0 and CUCM 8.6.2 - Cannot live page 6941 devices

    Hello all, I have setup some 7945G, 7965G and 6941 handsets around a particular area.  I have them all configured in Informacast in a recipient group (they all show up in the group when I click view) and the configuration on CUCM all seems good. When

  • Can't print to my Okidata C5200n

    Hello, I've had an Oki C5200n connected and printing from my pc. But just bought a mac for the first time, and connected the printer directly to the mac (OS X.5.5). Installed it and it seems to install fine, but doesn't print. When selecting to print

  • Moving to a new property

    I am purchasing a second property, completing on 3 June. My vendor has phone and broadband from BT. Yesterday I was informed that if I wished to take phone and broadband from BT, I could do one of two things - 1. Place the order now and wait 11 worki

  • The page cannot be displayed: ITS error: SAP GUI for HTML

    Hello, I have created an iView that connects with a ECC system. When I clic on System Administration --> Support --> SAP Application --> SAP Transaction : System: ECC Transaction: su01 SAP GUI Type: SAP GUI for HTML It shows: The page cannot be displ

  • HCM- PD (mass upload of career paths)

    Hi Experts... I am working on carrer & Succession planning in PD. I have developed career paths based on jobs (TCode for creating career path is - OOQ4). Need to upload 500 such paths....but its not possible through LSMW....as the screen is using Net