Problem in printing Address Type 3

Hi Experts,
This post is in context of Address type 3 (Contact Person).
Please see the below mentioned code  which has been coded in the script :
/:           IF &VBDKA-ZZADRND& EQ &SPACE&
/:           IF &VBDKA-ADRNP_2& EQ &SPACE&
/:           ADDRESS *TYPE 3* PARAGRAPH AS
/:             FROMCOUNTRY &VBDKA-SLAND&
/:             PERSONNUMBER &VBDKA-ZZPRSNR&
/:             ADDRESSNUMBER &VBDKA-ADRNR&
/:            ENDADDRESS
/:           ELSE
/:           ADDRESS *TYPE 2* PARAGRAPH AS
/:             FROMCOUNTRY &VBDKA-SLAND&
/:             PERSONNUMBER &VBDKA-ZZPRSNR&
/:            ADDRESSNUMBER &VBDKA-ADRNP_2&
/:            ENDADDRESS
/:           ENDIF
Now as per the above code, Address of Type 2 is coming fine but when it comes to Address TYPE 3 i.e. Contact Person address is not getting displayed on the form. I have checked in ADRC table, record exists.
Can I have some valuable inputs  on the same and please let me know if you need any other relevant info.
THanks in Advance!!!
Cheers
VJ

Check the standa saphelp for priority and number of lines toprint it correctly.
Thanks
Nabheet

Similar Messages

  • Problem importing printer device type using RSTXSCRP

    Hello,
    Referring to sapnote 8928 I have extracted 6 printer device types that I wish to import into our dev box.
    (note: I am trying this on our sandbox first).
    However, the readme instructions for performing the import using RSTXSCRP are out of date or not complete for all SAP versions. For one they refer to a radio button that does not exist in our version of . (note: RSTXSCRP is also the ABAP called when doing the import from SPAD).
    In addition, when attempting the import, I receive a popup box requesting a package. Since I have never used packages I am at a loss. There is no option to create a new one, as when I created transports back when I did ABAP.
    I can save these as local objects, but they are then not transportable. I wish to be able to transport these through the landscape as they go to production. I really do not want to do a bunch of individual imports in every system, since I would need to do so for R3, BW, APO, etc.
    So long into short: How do I import printer device types using either  RSTXSCRP or SPAD and have them transportable?

    Prabhu, Thank you, but this does not answer the question. It only repeats the information I already have.
    How do I enter the package information when I do not have it, do not know how to get it or how to create a new one.
    I have been out of directly working with SAP for a couple years and have only recently returned.
    This is apparently such a basic thing it is not even in any of the documentation I can find.

  • Having problem with the printer with type "PDF Publisher"

    Hi,
    We are having problem with printing PDF reports with print style as "PDF Publishrer". The concurrent program errors out after it generates the report. But when we try that with style "PORTRAIT" then it prints successfully. We have tried with a number of printers and a number of reports. The results are same. So my understanding is it has something to do with the printer configuration from the EBS side.
    Any help in this regard is highly appreciated.
    Pratap

    Hi Hussein ,
    Thanks for the response. The details are provided below.
    The application is R12.1, Database 11.1.0.7, OS is Solaris 10.
    The database characterset is US7ASCII.
    The printer type is --PASTA Universal Printer Type
    The log file does not give any error but the program completes with error. I am coping the log file below.
    Receivables: Version : 12.0.0
    Copyright (c) 1979, 1999, Oracle Corporation. All rights reserved.
    RAXINV_SEL module: Invoice Print Selected Invoices
    Current system time is 20-JUN-2011 14:23:10
    +-----------------------------
    | Starting concurrent program execution...
    +-----------------------------
    Arguments
    p_order_by='TRX_NUMBER'
    p_trx_number_low='10100'
    p_trx_number_high='10100'
    p_open_invoice='Y'
    p_check_for_taxyn='N'
    p_choice='SEL'
    p_header_pages='1'
    p_debug_flag='N'
    p_message_level='10'
    Forcing NLS_NUMERIC_CHARACTERS to: '.,' for XDO processing
    APPLLCSP Environment Variable set to :
    Current NLS_LANG and NLS_NUMERIC_CHARACTERS Environment Variables are :
    American_America.AL32UTF8
    Enter Password:
    MSG-00100: DEBUG: AfterPForm_Trigger +
    MSG-00100: DEBUG: Multi Org established.
    MSG-00100: DEBUG: AfterParam_Procs.Get_Country_Details
    MSG-00100: DEBUG: AfterParam_Procs.Switch_On_Debug
    MSG-00100: DEBUG: AfterParam_Procs.Get_Trx_Number_Low
    MSG-00100: DEBUG: AfterParam_Procs.Get_Trx_Number_High
    MSG-00100: DEBUG: AfterParam_Procs.Get_Tax_Option
    MSG-00100: DEBUG: BeforeReport_Trigger.Build_Where_Clause
    MSG-00100: DEBUG: P_Choice: SEL
    MSG-00100: DEBUG: Choice is other than ADJ, setting ORDER BY.
    MSG-00100: DEBUG: AfterPForm_Trigger -
    MSG-00100: DEBUG: BeforeReport_Trigger +
    MSG-00100: DEBUG: BeforeReport_Procs.Populate_Printing_Option
    MSG-00100: DEBUG: BeforeReport_Procs.Populate_Tax_Printing_Option
    MSG-00100: DEBUG: BeforeReport_Trigger.Get_Message_Details
    MSG-00100: DEBUG: BeforeReport_Trigger.Get_Org_Profile.
    MSG-00100: DEBUG: Organization Id: 96
    MSG-00100: DEBUG: BeforeReport_Trigger -
    MSG-05000: DEBUG: Trx No... 10100
    MSG-00010: 14:23 1 Transaction: 10100
    Report Builder: Release 10.1.2.3.0 - Production on Mon Jun 20 14:23:26 2011
    Copyright (c) 1982, 2005, Oracle. All rights reserved.
    Start of log messages from FND_FILE
    End of log messages from FND_FILE
    Executing request completion options...
    ------------- 1) PUBLISH -------------
    Beginning post-processing of request 895365 on node PAUPRJ01 at 20-JUN-2011 14:23:48.
    Post-processing of request 895365 completed at 20-JUN-2011 14:23:51.
    ------------- 2) PRINT   -------------
    Printing output file.
    Request ID : 895365      
    Number of copies : 1      
    Printer : SPOT
    ##################################################################

  • Unable to find appropriate driver for my mcbook air using a ricoh aficio mp36501SP network printer.  had similar problem with another ricoh copier/printer, but was able to resolve that problem entering ip address.  this one wants job code

    unable to find appropriate driver for my mcbook air using a ricoh aficio mp36501SP network printer.  had similar problem with another ricoh copier/printer, but was able to resolve that problem entering ip address.  this one wants job code.  i don't believe mac allows for input on job code or printer code for permission to print

    I'm having similar problems with an HP OfficeJet 6500. One suggestion that improved the situation, but did not totally solve the problem, was to select "OfficeJet Pro L7700" for its drivers.
    One other suggestion is to turn off the printer, then simultaneously hold down the "#" and "9" keys and turn the printer back on. This hot key seems to reset the printer to factory defaults, allowing you to set things up anew.
    Finally, kvetch to HP. Their networking software clearly has problems in its relationship to OSX, but nobody on either side seems motivated to bring in a good therapist.

  • Printing addresses on envelopes

    Want to print addresses on half-card envelopes. Set the program for 8.25x5.75 inches. Insert envelope on right side of printer tray. Snug it in. Click on "print." Get a message that says paper size or type is incorrect. Go to devices/printers>select HP>select printer actions>view, pause, or cancel>printing defaults>features>resizing options>custom>set size. Will not let me click on OK.  Other than buying a printer from someone else, how do I address my Christmas cards. Please do not suggest writing. Mine is so bad, I can't read it.

    I have a HP Photosmart C6280 All-In-One and am also having the same problems.  I didn't have these problems before I got Windows 7.  However, I have discovered that after I have set my envelope size (custom or whatever) , I then  go to "properties" and select "fast and economical printing" and it prints it out correctly!  Hope this solution works for you too!

  • Use Numbers to print Address Labels

    I know Excel allows you to export a spreadsheet to print labels with, but being a die-hard Apple guy, there's no way I'm going to fork over that much money for a M$ product when I have a perfectly good spreadsheet app right here.
    Does anyone know of a way to use a Numbers spreadsheet to print address labels? I have a list of names and addresses that I want to print on some postcards but I can't seem to find an option to do that.
    Thanks

    If I took time to build a script to do the trick it's because I undersatand that some users wish to be able to print labels from an other source than AddressBook.
    But, given that, it's not because some users wish to have this feature available that the fact that it isn't is "inacceptable". Remember what is written in Apple Human Interface Guide.
    +-+-+-+-+-+-+-+-+
    Apple Human Interface Guidelines:
    Apply the 80 Percent Solution
    During the design process, if you discover problems with your product design, you might consider applying the 80 percent solution—that is, designing your software to meet the needs of at least 80 percent of your users. This type of design typically favors simpler, more elegant approaches to problems.
    If you try to design for the 20 percent of your target audience who are power users, your design may not be usable by the other 80 percent of users. Even though that smaller group of power users is likely to have good ideas for features, the majority of your user base may not think in the same way. Involving a broad range of users in your design process can help you find the 80 percent solution.
    -+-+-+-+-+-+-+-
    It just seems that you doesn't fit in the 80%. Is it serious doctor ?
    Yvan KOENIG (from FRANCE mardi 9 septembre 2008 21:03:56)

  • Problem in printing SMARTFORM

    Hello experts,
    I am having problem in print preview when I am calling a SMARTFORM from a program where I have used selection screen. I don't know what I am doing wrong. Please help me out.
    This is the code----
    REPORT YL_CN_FI .
    TABLES : BKPF,    "Accounting Header Data
             BSEG,    "Accounting Item Data
             SKAT,   "GL Text
             T001W,
             ADDR,
             YADDR,
             BSEC.
    DATA : AMT_IN_WRD LIKE SPELL,
           AMT_LINE1 LIKE ADDR-LINE0,
           AMT_LINE2 LIKE ADDR-LINE0,
           GL1 LIKE BSEG-HKONT,
           GL2 LIKE BSEG-HKONT,
           GLDESC1 LIKE SKAT-TXT50,
           GLDESC2 LIKE SKAT-TXT50,
           AMT1    LIKE BSEG-WRBTR,
           AMT2    LIKE BSEG-WRBTR,
           ORD1    LIKE BSEG-AUFNR,
           ORD2    LIKE BSEG-AUFNR,
           CC1     LIKE BSEG-KOSTL,
           CC2     LIKE BSEG-KOSTL,
           W_IND,
           CNT    TYPE N,
           TAXCNT TYPE N,
           OFFICE LIKE YADDR-ADD6,
           TADR_NUM LIKE T001W-ADRNR,
           RADI .
    --header text--
    DATA BEGIN OF TLINES OCCURS  0.
            INCLUDE STRUCTURE TLINE.
    DATA END OF TLINES.
    DATA : HDTEXT LIKE THEAD-TDNAME,
           HLINE1 LIKE TLINE-TDLINE,
           HLINE2 LIKE TLINE-TDLINE,
           HLINE3 LIKE TLINE-TDLINE,
           HLINE4 LIKE TLINE-TDLINE,
           HLINE5 LIKE TLINE-TDLINE.
    DATA : MTEXT LIKE THEAD-TDNAME,
           MLINE1 LIKE TLINE-TDLINE,
           MLINE2 LIKE TLINE-TDLINE,
           MLINE3 LIKE TLINE-TDLINE,
           MLINE4 LIKE TLINE-TDLINE,
           MLINE5 LIKE TLINE-TDLINE.
    DATA: POST_DT     LIKE BKPF-BUDAT,
          FM_NAME     TYPE RS38L_FNAM,
          LF_FORMNAME TYPE TDSFNAME.
    ----   pricing   -
    DATA BEGIN OF IT_BSEG OCCURS 0.
            INCLUDE STRUCTURE BSEG.
    DATA END OF IT_BSEG.
    DATA BEGIN OF IT_YADDR OCCURS 0.
            INCLUDE STRUCTURE YADDR.
    DATA END OF IT_YADDR.
    DATA BEGIN OF BR_YADDR OCCURS 0.
            INCLUDE STRUCTURE YADDR.
    DATA END OF BR_YADDR.
    --end of internal table declaration--
    SELECTION-SCREEN BEGIN OF BLOCK B1 WITH FRAME TITLE TEXT-001.
    PARAMETERS OPT_CN  RADIOBUTTON GROUP RADI .
    PARAMETERS OPT_DN  RADIOBUTTON GROUP RADI .
    SELECT-OPTIONS  DOCNO FOR BSEG-BELNR DEFAULT '0007100000'.
    PARAMETERS      YEAR LIKE BSEG-GJAHR DEFAULT '2006' .
    PARAMETERS      COMP LIKE BSEG-BUKRS DEFAULT 'FCL'.
    SELECTION-SCREEN END OF BLOCK B1.
    --main--
    SELECT * FROM BSEG INTO TABLE IT_BSEG
    WHERE BUKRS = COMP AND BELNR IN DOCNO
    AND   GJAHR = YEAR AND KOART = 'D'.
    LOOP AT IT_BSEG.
      CALL FUNCTION 'Y_ADDRESS'        " Customer Address
           EXPORTING
               VC_FLAG     = 'C'
                PARTY_CODE = IT_BSEG-KUNNR
           IMPORTING
               IT_YADDR   = IT_YADDR
           EXCEPTIONS
                OTHERS     = 1.
      IF IT_BSEG-KUNNR EQ '0000005001' .
        SELECT SINGLE * FROM BSEC WHERE BUKRS = IT_BSEG-BUKRS
        AND BELNR = IT_BSEG-BELNR AND GJAHR = IT_BSEG-GJAHR.
        IF SY-SUBRC EQ 0.
          IT_YADDR-ADD1 = BSEC-NAME1.
          IT_YADDR-ADD2 = BSEC-NAME2.
          IT_YADDR-ADD3 = BSEC-NAME3.
          IT_YADDR-ADD4 = BSEC-NAME4.
          IT_YADDR-ADD5 = BSEC-ORT01.
          IT_YADDR-ADD6 = BSEC-PSTLZ.
        ENDIF.
      ENDIF.
    ----  Branch Address  -
      SELECT SINGLE * FROM T001W
                 where werks = 'PCAB'.
      WHERE WERKS = IT_BSEG-GSBER .
      TADR_NUM = T001W-ADRNR.
      CALL FUNCTION 'Y_ADDRESS'
        EXPORTING
          VC_FLAG    = 'P'
          PARTY_CODE = TADR_NUM
        IMPORTING
          IT_YADDR   = BR_YADDR
        EXCEPTIONS
          OTHERS     = 1.
    ----  Branch Address  -
      SELECT BUDAT BLART INTO (BKPF-BUDAT, BKPF-BLART) FROM BKPF
      WHERE BUKRS = IT_BSEG-BUKRS
      AND   BELNR = IT_BSEG-BELNR AND GJAHR = IT_BSEG-GJAHR.
      ENDSELECT.
      POST_DT = BKPF-BUDAT.
      CASE BKPF-BLART.
        WHEN 'C1' OR 'D1'. OFFICE = '****'.
        WHEN 'C2' OR 'D2'. OFFICE = '*****'.
        WHEN 'C3' OR 'D3'. OFFICE = '*******'.
      ENDCASE.
      PERFORM READ_HEADER_TEXT.
      PERFORM GET_ITEM.
      CALL FUNCTION 'SPELL_AMOUNT'
        EXPORTING
          AMOUNT    = IT_BSEG-WRBTR
          CURRENCY  = 'INR'
          FILLER    = ' '
          LANGUAGE  = SY-LANGU
        IMPORTING
          IN_WORDS  = AMT_IN_WRD
        EXCEPTIONS
          NOT_FOUND = 1
          TOO_LARGE = 2
          OTHERS    = 3.
      CONCATENATE AMT_IN_WRD-WORD ' ONLY' INTO AMT_IN_WRD-WORD.
      CALL FUNCTION 'RKD_WORD_WRAP'
           EXPORTING
                TEXTLINE            = AMT_IN_WRD-WORD
                 DELIMITER           = ' '
                OUTPUTLEN           = 70
           IMPORTING
                OUT_LINE1           = AMT_LINE1
                OUT_LINE2           = AMT_LINE2
                 OUT_LINE3           =
            TABLE
                 OUT_LINES           =
           EXCEPTIONS
                OUTPUTLEN_TOO_LARGE = 1
                OTHERS              = 2.
      IF OPT_CN = 'X'.
        PERFORM ITEM_PRINT_CN.
      ELSEIF OPT_DN = 'X'.
        PERFORM ITEM_PRINT_DN.
      ENDIF.
      PERFORM INITALIZE.
    ENDLOOP.
    --end of main--
    *&      Form  GET_ITEM
    FORM GET_ITEM.
      NETVAL   = 0.
      MATVAL   = 0.
      DISVAL   = 0.
      BEDVAL   = 0.
      FGTURS   = 0.
      TAXABLE  = 0.
      FGTVAL   = 0.
      ENTRYTAX = 0.
      SALTAX   = 0.
      SURCHG   = 0.
      SALTOT   = 0.
      TAXCNT = 0.
      CNT = 1.
      SELECT HKONT WRBTR BSCHL AUFNR KOSTL
      INTO (BSEG-HKONT, BSEG-WRBTR, BSEG-BSCHL, BSEG-AUFNR, BSEG-KOSTL)
      FROM BSEG
      WHERE BUKRS = IT_BSEG-BUKRS
      AND   GJAHR = IT_BSEG-GJAHR
      AND   BELNR = IT_BSEG-BELNR
      AND   KOART NE 'D'.
        CASE BSEG-HKONT.
          WHEN '0000600000' OR '0000601000' OR '0000603000' OR
               '0000604000' OR '0000606000' OR '0000609000'.
            MATVAL = BSEG-WRBTR.
          WHEN '0000764100'.
            IF BSEG-BSCHL = '50'.
              DISVAL = BSEG-WRBTR.
            ELSE.
              PERFORM GLACC.
            ENDIF.
          WHEN '0000611000'.
            FGTVAL = FGTVAL + BSEG-WRBTR. "Changed on 24.08.2007
          WHEN '0000760003'.
            FGTURS = BSEG-WRBTR.
          WHEN  '0000570001' OR '0000570002' OR '0000570003' OR
                '0000570000' OR '0000570004' OR '0000570005' OR
                '0000570006' OR '0000570007' OR '0000570008' OR
                '0000570009' OR '0000570010' OR '0000570011' OR
                '0000570012' OR '0000570013' OR '0000570014' OR
                '0000570015' OR '0000570016' OR '0000570017' OR
                '0000570018' OR '0000570019' OR '0000570020'.
            TAXCNT = TAXCNT + 1.
            CASE TAXCNT.
              WHEN 1.  SALTAX = BSEG-WRBTR.
              WHEN 2.  SURCHG = BSEG-WRBTR.
              WHEN 3.  SALTOT = BSEG-WRBTR.
            ENDCASE.
          WHEN  '0000571001' OR '0000571002' OR '0000571003' OR
                '0000571000' OR '0000571004' OR '0000571005' OR
                '0000571006' OR '0000571007' OR '0000571008' OR
                '0000571009' OR '0000571010' OR '0000571011' OR
                '0000571012' OR '0000571013' OR '0000571014' OR
                '0000571015' OR '0000571016' OR '0000571017' OR
                '0000571018' OR '0000571019' OR '0000571020'.
            TAXCNT = TAXCNT + 1.
            CASE TAXCNT.
              WHEN 1.  SALTAX = BSEG-WRBTR.
              WHEN 2.  SURCHG = BSEG-WRBTR.
              WHEN 3.  SALTOT = BSEG-WRBTR.
            ENDCASE.
          WHEN '0000610000'.
            BEDVAL = BSEG-WRBTR.
          WHEN '0000491110'.
            ENTRYTAX = BSEG-WRBTR.
          WHEN '0000764500'.
            IF BSEG-BSCHL = '50'.
              NETVAL = NETVAL - BSEG-WRBTR.
            ELSE.
              NETVAL = NETVAL + BSEG-WRBTR.
            ENDIF.
          WHEN OTHERS.
            PERFORM GLACC.
        ENDCASE.
      ENDSELECT.
      IF ENTRYTAX EQ 0.
        W_IND = '0'.
      ELSE.
        W_IND = '1'.
      ENDIF.
      TAXABLE = MATVAL - DISVAL + BEDVAL + ENTRYTAX + FGTURS.
      NETVAL = NETVAL + IT_BSEG-WRBTR.
    ENDFORM.                    " GET_ITEM
    *&      Form  READ_HEADER_TEXT
    FORM READ_HEADER_TEXT.
      CLEAR : HLINE1 ,HLINE2 ,HLINE3, HLINE4, HLINE5 , HDTEXT .
      CLEAR TLINES.
      REFRESH TLINES.
      CONCATENATE  IT_BSEG-BELNR IT_BSEG-GJAHR INTO HDTEXT.
      CONCATENATE  IT_BSEG-BUKRS HDTEXT INTO HDTEXT SEPARATED BY SPACE.
      CALL FUNCTION 'READ_TEXT'
           EXPORTING
            CLIENT                  = SY-MANDT
                ID                      = '0002'
                LANGUAGE                = SY-LANGU
                NAME                    =  HDTEXT
                OBJECT                  = 'BELEG'
            ARCHIVE_HANDLE          = 0
       IMPORTING
            HEADER                  =
           TABLES
                LINES                   = TLINES
           EXCEPTIONS
                ID                      = 1
                LANGUAGE                = 2
                NAME                    = 3
                NOT_FOUND               = 4
                OBJECT                  = 5
                REFERENCE_CHECK         = 6
                WRONG_ACCESS_TO_ARCHIVE = 7
                OTHERS                  = 8.
      LOOP AT TLINES.
        CASE SY-TABIX.
          WHEN 1.  HLINE1 = TLINES-TDLINE.
          WHEN 2.  HLINE2 = TLINES-TDLINE.
          WHEN 3.  HLINE3 = TLINES-TDLINE.
          WHEN 4.  HLINE4 = TLINES-TDLINE.
          WHEN 5.  HLINE5 = TLINES-TDLINE.
        ENDCASE.
      ENDLOOP.
    EXTRACT TOWARDS TEXT ELEMENT
      MTEXT = '0061003423'.
      CALL FUNCTION 'READ_TEXT'
           EXPORTING
            CLIENT                  = SY-MANDT
                ID                      = '0004'
                LANGUAGE                = SY-LANGU
                NAME                    =  MTEXT
                OBJECT                  = 'VBBK'
            ARCHIVE_HANDLE          = 0
       IMPORTING
            HEADER                  =
           TABLES
                LINES                   = TLINES
           EXCEPTIONS
                ID                      = 1
                LANGUAGE                = 2
                NAME                    = 3
                NOT_FOUND               = 4
                OBJECT                  = 5
                REFERENCE_CHECK         = 6
                WRONG_ACCESS_TO_ARCHIVE = 7
                OTHERS                  = 8.
      LOOP AT TLINES.
        CASE SY-TABIX.
          WHEN 1.  MLINE1 = TLINES-TDLINE.
          WHEN 2.  MLINE2 = TLINES-TDLINE.
          WHEN 3.  MLINE3 = TLINES-TDLINE.
          WHEN 4.  MLINE4 = TLINES-TDLINE.
          WHEN 5.  MLINE5 = TLINES-TDLINE.
        ENDCASE.
      ENDLOOP.
    ENDFORM.                    " READ_HEADER_TEXT
    *&      Form  GET_GLDESC
          text
    -->  p1        text
    <--  p2        text
    FORM GET_GLDESC USING P1 P2 .
      P2 = ''.
      SELECT TXT50 INTO (P2 ) FROM SKAT
      WHERE SPRAS = SY-LANGU
      AND   KTOPL = 'FCOA' AND SAKNR = P1.
      ENDSELECT.
    ENDFORM.                    " GET_GLDESC
    *&      Form  GLACC
          text
    -->  p1        text
    <--  p2        text
    FORM GLACC.
      IF CNT EQ 1.
        GL1  = BSEG-HKONT.
        AMT1 = BSEG-WRBTR.
        ORD1 = BSEG-AUFNR.
        CC1  = BSEG-KOSTL.
        PERFORM GET_GLDESC CHANGING GL1 GLDESC1.
        CNT = CNT + 1.
      ELSE.
        GL2  = BSEG-HKONT.
        AMT2 = BSEG-WRBTR.
        ORD2 = BSEG-AUFNR.
        CC2  = BSEG-KOSTL.
        PERFORM GET_GLDESC CHANGING GL2 GLDESC2.
      ENDIF.
    ENDFORM.                    " GLACC
    *&      Form  INITALIZE
          text
    -->  p1        text
    <--  p2        text
    FORM INITALIZE.
      CLEAR : HLINE1 ,HLINE2 ,HLINE3, HLINE4, HLINE5 , HDTEXT .
      IT_BSEG-KUNNR = ''.
      MATVAL = 0.
      DISVAL = 0.
      FGTVAL = 0.
      SALTAX = 0.
      GL1     = ''.   GL2     = ''.
      GLDESC1 = ''.   GLDESC2 = ''.
      CC1     = ''.   CC2     = ''.
      ORD1    = ''.   ORD2    = ''.
      AMT1    = 0.    AMT2    = 0.
    ENDFORM.                    " INITALIZE
    *&      Form  ITEM_PRINT
          text
    -->  p1        text
    <--  p2        text
    FORM ITEM_PRINT_CN .
      LF_FORMNAME = 'YL_CN_FI'.
        CALL FUNCTION 'SSF_FUNCTION_MODULE_NAME'
                 EXPORTING  FORMNAME           = LF_FORMNAME
                    variant            = ' '
                    direct_call        = ' '
                 IMPORTING  FM_NAME            = FM_NAME
                 EXCEPTIONS NO_FORM            = 1
                            NO_FUNCTION_MODULE = 2
                            OTHERS             = 3.
        IF SY-SUBRC <> 0.
      error handling
        ENDIF.
        CALL FUNCTION FM_NAME
    ENDFORM.                    " ITEM_PRINT

    I did that...actually It was not coming in that page because of the character limitation. The program is not executing. why??
      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'
          POST_DT                    = POST_DT
          OFFICE                     = OFFICE
          HLINE1                     = HLINE1
          HLINE2                     = HLINE2
          HLINE3                     = HLINE3
          HLINE4                     = HLINE4
          HLINE5                     = HLINE5
          MLINE1                     = MLINE1
          MLINE2                     = MLINE2
          W_IND                      = W_IND
          MATVAL                     = MATVAL
          NETVAL                     = NETVAL
          DISVAL                     = DISVAL
          BEDVAL                     = DISVAL
          FGTURS                     = FGTURS
          TAXABLE                    = TAXABLE
          FGTVAL                     = FGTVAL
          ENTRYTAX                   = ENTRYTAX
          SALTAX                     = SALTAX
          SURCHG                     = SURCHG
          SALTOT                     = SALTOT
          AMT_LINE1                  = AMT_LINE1
          AMT_LINE2                  = AMT_LINE2
          GL1                        = GL1
          GL2                        = GL2
          GLDESC1                    = GLDESC1
          GLDESC2                    = GLDESC2
          AMT1                       = AMT1
          AMT2                       = AMT2
          ORD1                       = ORD1
          ORD2                       = ORD2
          CC1                        = CC1
          CC2                        = CC2
    IMPORTING
      DOCUMENT_OUTPUT_INFO       =
      JOB_OUTPUT_INFO            =
      JOB_OUTPUT_OPTIONS         =
        TABLES
          IT_YADDR                   = IT_YADDR
          IT_BSEG                    = IT_BSEG
          BR_YADDR                   = BR_YADDR
      EXCEPTIONS
        FORMATTING_ERROR           = 1
        INTERNAL_ERROR             = 2
        SEND_ERROR                 = 3
        USER_CANCELED              = 4
        OTHERS                     = 5
    IF SY-SUBRC <> 0.
    ENDIF.

  • Syncing contacts: user defined address type won't show in iPod

    Hey,
    I have contacts in my address book with user defined address types. For example, I defined an address type "parents" to save the postal address of my friend's parents.
    After having synced my contacts using iTunes 7.6, my friend's parental address shows up as her private address whereas her private address isn't displayed at all.
    Is this a bug in the iPod firmware (1.2.3) or in AddressBook (Mac OS 10.5.1)?
    Is there a workaround available?
    Thanks for any hint,
    Markus

    Yep, I had the same problem as sfraize - exactly. Address Book showed in the Dock as being active, but didn't display, and wasn't showing in the Force Quit window either.
    Here's what I did:
    1. removed Address Book from the Dock;
    2. tried to launch it from the Applications folder (but it crashed the Finder and I had to shut down by holding the Start key);
    3. on reboot, launched Address Book again from the Applications folder and this time, magically, it worked;
    4. I've now put it back into the Dock, from where it seems to launch just fine.
    Hope this helps people with similar problems!
    I really don't like this horrible leather-effect-torn-pages appearance of the OS apps, by the way. About as progressive and witty and elegant as printing CDs with images of vinyl records (anyone else remember World Party's 1990 album Goodbye Jumbo?)

  • PL/SQL Network Address Type Functions

    Hi,
    I'm wondering if anyone knows of a PL/SQL package(s) that provides similar capabilities as the following postgreSQL network address type functions:
    http://www.sql.org/sql-database/postgresql/manual/functions-net.html
    I don't see anything in the standard Oracle 10g packages, so I'm wondering if anyone else has dealt with this problem and posted the package.
    Thanks,
    - Greg.

    I think the easiest way of getting some of this functionality would be to write a PL/SQL wrapper to a Java Stored Procedure that implements calls to the Java InetAddress class. It doesn't haven't the full set of operators but I'm not sure what 'less than' actually means in the context of an IP address . If you really need them you could always extend the InetAddress class to implement such tests.
    Cheers, APC

  • How can I print address labels from numbers spread sheet

    How can I print address labels from numbers spread sheet

    CAB,
    The 5163 template has the following dimensional specs:
    Dimensions & Info
    Length: 4.00000"          Height: 2.00000"
    Top Margin: 0.50000"          Bottom Margin: 0.50000"
    Left Margin: 0.18000"          Right Margin: 0.18000"
    Hor. Spacing (gutter): 0.14000"          Vert. Spacing (gutter): 0.00000"
    Intended Use: Mailing Labels, Shipping Labels, Address Labels
    There's a great vendor site with this data readily available, better than the Avery site in my opinion. But, you can get the same info in the Contacts Print dialog pane.
    You can grab a template matching these dimensions from that vendor site, Copy the table after opening the Word Template in Pages and drop the into a blank Numbers Sheet.
    I found that Sheet side margins of 0.15" worked better than 0.18. For some reason the table wanted to flow to the next page to the right with 0.18". Turning off the Headers and Footers and setting Top and Bottom Margins to 0.5" worked well. These adjustments are made in the Sheets Inspector.
    So, that will put the template you specified into a Numbers document and you can print labels properly aligned from there. Since your problem statement is a bit lacking in detail, that's all I can offer you at this point.
    Jerry

  • How to print true type font in smartform with ECC6

    hi,expert:
    I want to use true type font "Comic Sans MS.ttf".
    I upload this font file by SE73 named ZTT2I.
    In SE73.. select the Radio button "Font Families" And click on the "True type Font Installation" button. click the font attribute ITALIC。
    Our print device is LP01 and driver is CNSAPWIN
    when I create a new style in smartform using the font ZTT, in preview window the font still like other font.
    Our system is IDES ECC6, SAP_BASIS SAPKB70014
    Now when I create smartfrom in language EN adn logon with language EN,it can print correct style of that font.
    But if the smartform is base on language ZH or logon with language ZH, the output is not correct.
    why? How to solve it?
    how can I solve this problem?
    thaks a lot

    Hi,
    Is the problem that uploaded true type font ZTT is not used when language is ZH? Did you update the chinese version of the style associated with the smartform? There is a separate style for each language version. So you need to log on in Chinese language and update the style with new paragraph, character formats. Then you need to activate the style and smartform for ZH langauge also.
    Regards,
    Aidan

  • How do i print address returns on envelopes with hp officejet pro 8500

    how do i print address returns on envelopes with hp officejet pro 8500

    This is done with your software that you have to print the envelopes.   MS Word can do this, just use their help facility.
    Say thanks by clicking the Kudos Thumbs Up to the right in the post.
    If my post resolved your problem, please mark it as an Accepted Solution ...
    I worked for HP but now I'm retired!

  • Problem  in Printing the ALV list

    Hi,
       I have one problem with printing the ALV list. While printing the ALV list(thro Print Icon on application Tool bar) ,Fist page of my print out contains some other inforamtion.
      inforamtions included two tables
      first table  contains Sort Criteria, Ascdg, Descnd, Subtotal  columns.
      And second table contains Data statistics , number of
    columns.
    But from Second page onwards , my alv list printed correctly .
      How can i avoid the First page inforamtion and
          what is the Reason of coming like this?
    Thanks,
    Neptune.M

    I assume you are using function module Reuse_alv_grid_display or reuse_alv_list_display for ALV.
    If this is the case, there is a parameter called IS_PRINT that you need to supply while calling the function module.
    you can for exapmle declare
    data:
    printstruc type SLIS_PRINT_ALV.
    printstruc-NO_PRINT_LISTINFOS = 'X'.
    call function 'REUSE_ALV_GRID_DISPLAY'
      EXPORTING
    IS_PRINT = printstruc
    There are many other flags in is_print structures that you can use to manipulate the printing.
    Cheers!

  • How to get full path using HTP.PRINT(' "input type ="file") ....

    Hello everybody,
    I am working on uploading file from page to another one using HTP package, but whenever I submit the form, it only takes the filename without the full path.
    for example :
    if i sent 'c:\dir\a.txt' , the other page receives file parameter as 'a.txt'
    the code is here
    PROCEDURE upload(appno in varchar2,wsct in varchar2) AS
    l_real_name VARCHAR2(1000);
    BEGIN
    HTP.htmlopen;
    HTP.headopen;
    HTP.title('Test Upload');
    HTP.headclose;
    HTP.bodyopen;
    HTP.header(1, 'Test Upload');
    HTP.print('<form action="https://ssltrng.uaeu.ac.ae/trng/document_api.upload1" method="get">');
    HTP.print(' File to upload: <input type="file" name="file" >
    HTP.print(' <input type="submit" value="Upload">');
    HTP.print('</form>');
    HTP.bodyclose;
    HTP.htmlclose;
    END upload;
    the other page see it as
    file is 'Water lilies.jpg'
    Thanks
    Edited by: dtabed on Mar 30, 2011 1:02 AM

    Do not understand the problem.
    The code you've posted is a PL/SQL web enabled procedure that produces a dynamic HTML page. This page contains a form. And a full URL reference to the CGI that will process the form's data.
    This is unusual - as it seems to be that the form is submitted across domains and web servers.. You usually refer to a local CGI procedure to deal with a form - no need for a fully qualified URL that includes web server and domain name.
    If the CGI procedure that receives the form is also a PL/SQL web enabled procedure, that the uploaded file will be placed in the documents table (as defined in the DAD alias) by mod_plsql, prior to the web enabled procedure being called. The documents table will contain the Mime type, file name, file contents and other details.

  • I had a problem with print preview of billing document.

    HI all,
    I had a problem with print preview of billing document which contains two output types ZR1 ZR2..
    For the footer text of billing document I maintained the font size as 7,5 pts, But when i go for print preview from output type ZR1 the font size of footer text is very small and looks good for output type ZR2.
    If i change the print options-->logical destination of output type ZR1 same as Output type ZR2, the footer text looks good.
    I think there is some issue with logical destination in print options for the output type ZR1, how can i resolve  it.

    hi,
    for both the output types , r u using same sapscript or smartform?
    if yes then, u can control it in output options of smartform and also in sapscript , you can control through if condition.
    and if differect sapscript or smartform then you should not get such problem.
    you can check the sapscript or smartfrom in TNAPR table.

Maybe you are looking for