Smartforms address

Hi experts,
I have created ITAB(T_EQUP) to get the customer addresses.
Same structure(T_PVT) i have created for smartforms.
  call function fm_private
    tables
      t_pvt = t_equp.
In the smartforms ,sap address number i have given &T_PVT-CADRNR& to get the address dynamically.While executing iam getting the error "Error in address output (address not found)." But there are values in T_EQUP.
Where might be the problem?If i give direct address number like 24354 , iam getting the address.
Can i give &T_PVT-CADRNR& directly in the address number?Or is there any other way?
reward guaranteed
kaki

debug ur smartform n c if &T_PVT-CADRNR& is having any value. i guess there may be a problem. or else the format of the address number may need a little modificaton.just chk it in debugging mode.
Regards,
Bikash
did u check the value of &T_PVT-ADRNR& in ur smartform ??
Message was edited by: Bikash  Agarwal

Similar Messages

  • In smartform address element ?

    hi guru's.
                  i am doing purchase order smartform in that address window displaying like this
                                   The Post Office
                                   Post Office Headquarters
                                   33 Grosvenor Place
                                   London
               but i want to modify like this
               ADDRESS:     The Post Office
                                     Post Office Headquarters
                                     33 Grosvenor Place
                                     London
    please let me how to proceed for this requirement.
    regards,
    satheesh.

    Hi Satheesh,
          Are you using ADDRESS WINDOW to display the address????
    If Yes ...
    Then CREATE two windows and allighn it side by side .
    Create one Text element on the left side Window and write "ADDRESS" inside the text.
    The Right side window will contain the ADDRESS .
    It will be displayed as given below.
    ADDRESS:  The Post Office
               Post Office Headquarters
               33 Grosvenor Place
               London.
    If U are not using ADDRESS window,
    then the only way to display like this is
    to create a TEMPLATE with 4 columns, create TEXT elements for each columns
    and in the text element of FIRST column write ADDRESS: &wa_post_office&.
    The advantage when we use Address is we need to just pass the address number , but if we use
    template then we need to write select statement , and fill some workarea with
    the address  details and display those work area fields in the TEMPLATE.
    Regards.
    Avi....

  • SMARTFORM Address

    Hello.
    Is there any way to reorder the lines of the address structure of the smartform?
    It prints the street as Street2, Street3, Street.
    Is there a way to make it print Street, Street2, Street3.
    Thank you
    Nuno Silva

    hi
    Use function module
    <b>ADDRESS_INTO_PRINTFORM</b> which act like ADDRESS ENDADDRESS
    In which all options are available like no line ...etc.
    ADDRESS_INTO_PRINTFORM Address format according to Post Office guidelines Note. It's enough to import two parameters:
    ADDRESS_TYPE = 1 (Firm or Organization, SAP Address)
    ADDRESS_NUMBER
    regards
    vind

  • Smartform address style

    hi!
    haven't found a solution for the following problem:
    I'd like to use a style on an address node in smartforms! how can i do that?
    Another question:
    Is it right, that the vertical allignment in a smartforms table can't be changed?
    regards,
    jacko

    Hi
    u can use Smartstyles for Address Node , when u create it  USe OUTPUT OPTIONS TAB  Next to GENERAL TAB and include the Smartstyle and use the Paragraph format in the GENERAL Tab and Output Starts with Paragraph:
    surya

  • Smartform Address-spro

    Hi A
    In spro under Defination under SD under Maintain Sales Office
    Under Sales Office  4000 the Address is given:
    Name                         : Honeywell Technologies Sàrl
                                      : ECC EMEA - HFM 302731.
    Street/House number   : Z.A. La Pièce 16
    Postal Code/City         : 1180       Rolle
    Country                      : CH Switzerland
    And in smartform the output is as fallows under Address:
    Honeywell Technologies Sàrl
    Z.A. La Pièce 16
    CH-1180       Rolle
    Switzerland.
    Here the 2nd line is not printing means ECC EMEA - HFM 302731 .and for only 4000 sales office only it should print rest of them they r not printing ,no need to print rest of sales office,
    Please tell me where to do the changes in spro or in smartform .
    and how to do.please explain ?
    Thanks in Advance,

    Hi,
    In address tab thr is one input field called
    "Number of lines to be used" Try to give grater value into that.

  • Smartform address in a single line

    I am having a window where I have address as 3 lines..but I want to keep in the footer in a single line with comma.
    I am using the address node's for it.
    do you have any idea how to do it.

    Hi mark,
    Using ADDRESS NODE the text cannot not be displayed as per your requirement.If you want to display the address in a single line with comma then use TEXT NODE.
    Regards,
    Sravanthi

  • How to eliminate "Company" text in smartform "address" node

    Hi all,
    I got a problem.
    I want to display company address using "Organization Address" in address node.
    However, the address node displayed "Company" text automatically when company address contains incomplete info. Eg, the company address only contains city='new city' info.
    Then the address node will displayed as below:
    Company
    city
    Anyone know how to remove "Company" text if no incomplete company address data?
    Any suggestion/comment will be greatly appreciated!
    Thanks.
    best regards,
    Xiang Li Heah

    read addres using  internal tables. dont use address node..
    refer this code.
      SELECT SINGLE ADRNR FROM KNA1
      INTO ADDRNUM
      WHERE KUNNR EQ WA_VBPA1-KUNNR.
      SELECT * FROM ADRC INTO TABLE IT_ADRC
      WHERE ADDRNUMBER = ADDRNUM.
      READ TABLE IT_ADRC INTO WA_ADRC INDEX 1.
    then print wa_adrc-city.
                  wa_adrc-street like this.
    if u want to remove company andall dat is already therein fields then please contact urfunctional consultant. they will give u the tcode to remove that.
    some  usefulinformation. hopeu will get tcode from here also. to remove company from address.
    Client
    SCC4
    Tools > Administration > Administration > Client Admin > Client Maintenance
    Change the name of the client you are using (updates T000) Client Independent
    Company Code
    OX02
    IMG > Enterprise Structure > Maintain Structure > Definition > Financial Accounting > Define, copy, delete, check Company Code > Define Company Code
    Change the name, city and country to your company details (updates T001)
    Company Code Address
    OBY6
    IMG > Financial Accounting > Financial Accounting Global Settings > Company Code > Enter Global Parameters > Click on address button
    Maintain the complete address details here (updates SADR)
    Credit Control Area
    OB45
    IMG > Enterprise Structure > Maintain Structure > Definition > Financial Accounting > Maintain Credit Control Area
    Change the description (updates T014)
    Controlling Area
    OX06
    IMG > Enterprise Structure > Maintain Structure > Definition > Controlling > Maintain Controlling Area
    Change the name (updates TKA01)
    Plant
    OX10
    IMG > Enterprise Structure > Maintain Structure > Definition > Logistics u2013 General > Define, copy, delete, check plant > Define Plant. Select the plant of choice and go into the detail screen.
    Change Name 1 and Name 2 and detailed information (updates T001W)
    Plant address
    OX10
    IMG > Enterprise Structure > Maintain Structure > Definition > Logistics u2013 General > Define, copy, delete, check plant > Define Plant. Select the plant of choice and go into the detail screen. Click the address button.
    Maintain the complete address details here (updates SADR)
    Division
    OVXB
    IMG > Enterprise Structure > Maintain Structure > Definition > Logistics u2013 General > Define, copy, delete, check division > Define Division
    Change the name (update TSPA)
    Storage Location
    OX09
    IMG > Enterprise Structure > Maintain Structure > Definition > Materials Management > Maintain Storage Location
    Change the description (updates T001L)
    Purchasing Organization
    OX08
    IMG > Enterprise Structure > Maintain Structure > Definition > Materials Management > Maintain Purchasing Organization
    Change the description (updates T024E)
    Sales Organization
    OVX5
    IMG > Enterprise Structure > Maintain Structure > Definition > Sales and Distribution > Define, copy, delete, check Sales Organization > Define Sales Organization
    Change the name and replace the standard texts ADRS_* with ZXYZ_* (updates TVKO)
    Sales Organization Address
    OVX5
    IMG > Enterprise Structure > Maintain Structure > Definition > Sales and Distribution > Define, copy, delete, check Sales Organization > Define Sales Organization > Click the address button
    Maintain the complete address details here (updates SADR)
    Distribution Channel
    OVXI
    IMG > Enterprise Structure > Maintain Structure > Definition > Sales and Distribution > Define, copy, delete, check Distribution Channel > Define Distribution Channel
    Change the name (updates TVTW)
    Sales Office
    OVX1
    IMG > Enterprise Structure > Maintain Structure > Definition > Sales and Distribution > Maintain Sales Office
    Change the description (updates TVBUR)
    Sales Office Address
    OVX1
    IMG > Enterprise Structure > Maintain Structure > Definition > Sales and Distribution > Maintain Sales Office > Click the address button
    Maintain the complete address details here (updates SADR)
    Sales group
    OVX4
    IMG > Enterprise Structure > Maintain Structure > Definition > Sales and Distribution > Maintain Sales Group
    Change the description (updates TVKGR)
    Shipping Point
    OVXD
    IMG > Enterprise Structure > Maintain Structure > Definition > Sales and Distribution > Define, copy, delete, check Shipping Point > Define Shipping Point
    Change the description and replace the standard texts ADRS_* with ZXYZ_* (updates TVST)

  • Telephone number in smartform address

    I am using an address element text to show the address information, but i want to include the telephone number in the showed information, is there any posibility to  indicate that i want to show ALL the information of the vendor?
    Thanks in advance

    Add teh TELF1(first telephone number)  field from kna1 table in the script.
    Cheers.

  • Smartform Address Node

    Hi all,
            I need to add address node which should come infront of a text.
    Delivery address => ................(here i need to place).
    how to proced..
    Regards
    Suprith

    Hi
    Create a Paragraph format and have it Right Alignment...and You have to place the text element in such a way that next to delivery address the address gets printed.
    Delivery Address:                                    "here the address gets printed
    Or, create two new windows side by side...Have them in same position. In one window, have the text "delivery address", in the other window have the address node.
    hope it works.
    Vishwa.

  • Smartforms address node language

    Hi,
    I need to display standard address.
    I use address node to display this informations on form.
    It display address but in language wich I have logged.
    I have to chenage language is there any way to change this language ??
    Regards,
    Greg.

    Hi Greg,
    In the attibutes of the address node is a field "Different Recipient Language", where you can specify a language code or a variable.  This should display the address in that language.
    Regards,
    Nick

  • Query on inserting Address in SMARTFORMS.

    Hi All,
    In my Smartform there is an Address Node of type( Organization Address ) which fetches the Address of Sold-to or Ship-to party based on Country..
    Now we want that the Address which is fetched should all be converted to upper-case irrespective of the entry.
    Is there any tab in the standard Address node in smartform through which we can convert the address fetched to upper-case.
    OR
    Is it possible to check out for the fields which have been used in Organization Address so as to code it with variables from tables.
    Please let me know for the most appropriate solutions for this.
    Thanking you in advance.
    Sudip.

    Hi Sree,
    This is a standard Address-node which is being used.If you have seen any standard Address-node then you will remember.
    It appears as I have described below in the SMARTFORM Address-Node.
    Address         CUSTOMER_ADDRESS
    Description     Customer Address
    Type : Organization Address (Radio-button)
               Personal Address(Radio-button)
               Workplace Address(Radio-button)
               Determine Dynamically (Radio-button)
    Address Number       &Z_CUST_ADDR_NUMBER&
    Person Number
       Output Starts with Paragraph             *
       Number of Lines to be Used               4
       Sending Country                          US
       If PO Box and Street Exist:
       Fixed Language for Country Indicator
       Different Recipient Language
       Priority of Lines
    This is what is there in the SMARTFORM.I need to convert the Address fetched to uppercase.Is there any option in the Address node where we can convert to uppercase or any other way.If not then I need to get the exact fields from the Organization Address and code it.But as there can be many customers or Addressee from different countries like US or Africa then they can use different formats for Address like some can use Region in there Address some might not use it.
    So how do I code it also.
    Thanking in advance,
    Sudip.

  • How to populate address in address window.

    Hi all,
    I just want to populate the address in the address window with the adress number adrnr in the driver program. Plz guide me regarding this.
    Thanking u all in advance...
    chandru

    Hi,
    What I get is that you are using the smartforms.
    Create address in the window where you want to print the address.
    right click on window>create>address.
    You can just pass the address number adrnr in the smartforms address window.
    Regards,
    Suruchi

  • Purchase order - print preview problem

    Hi friends,
    i have created  a Purchase Order, when im trying to view the print preview, im getting the message ' <b>Specify address number or Address handle'</b> .
    Please specify where i have to give these details in PO.
    Regards
    kumar.

    Depends on what address information you are displaying on the Smartform if you are displaying the Plant address then you have to go to T001W and pick up the ADRNR from the Same table and display it in the Smartform Address Window same thing for the Vendor address you have to pick up the ADRNR in the LFA1 for that particular Vendor.. Remember to check if the ADRNR is not initial before you display a address window..
    Hope That Helps
    Anirban M.

  • Smart forms - Reg.

    Hi,
       I used protect and end protect, address and end address in script. I would like to know how these things used in smartforms?
    Thanks and regards,
    Sudhan

    Hi,
    We can not use these commands in the SMARTFORMS, while creating the node in the smartforms, there is a check box for the Protect, just click that then the protect and endprotect will applicable for that texts, there is no need to write the code for this in the Smartform,
    ADDRESS, there is a Address window, you can create that window, here if you pass the Address number then the Address will come bydefault in the Smartform
    Regards
    Sudheer

  • Can't send smartform to external mail address

    Hi, everyone.
    Now, after creating some self-defined smartforms, we want to send its
    PDF copy to
    our external mail address. From this point, I had some try.
    Reference to SAP Library, I make a testing program named 'YPDF_TEST'.
    However, one exception always exists when running and error message id
    is 'XS806' - means
    "No delivery to &, invalid recipient address"
    I filled the address with following fields.
    [ dev_mail_recipient-logsys = 'CLNT600'.
    dev_mail_recipient-objtype = 'RECIPIENT'.
    dev_mail_recipient-objkey = '[email protected]'. ]
    I just can't understand the real reason why it doesn't work.
    Through debugging, I found the error occurs when handling the following
    codes
    in function "SX_ADDRESS_TO_DEVTYPE".
    [ swc_create_object o_recipient 'RECIPIENT' recipient_id-objkey.
    swc_get_property o_recipient 'CommunicationType' m_recipient-type.
    get_property_longvalue o_recipient m_recipient-address. ]
    On the current situation, if can't come over this problem,
    we may not build the connection and don't provide information in time.
    Failed to send, I yet try another function - added the tail but on earthdidn't get it ~~~
    Would you give me some hints or advice ?
    Any help is appreciated.
    ====================
    <i>REPORT ypdf_test .
    DATA: fm_name TYPE rs38l_fnam.
    DATA: my_control_pars TYPE ssfctrlop. "for CONTROL_PARAMETERS
    DATA: my_output_info TYPE ssfcrescl. "for JOB_OUTPUT_INFO
    DATA: output_options TYPE ssfcompop.
    DATA: e_devtype TYPE rspoptype.
    DATA: gw_lcprint TYPE ziebsflc001.
    DATA: bin_file TYPE xstring,
    bin_filesize TYPE i,
    ndiv TYPE i, offset TYPE i,
    nmod TYPE i.
    DATA: BEGIN OF bin_table OCCURS 0,
    x TYPE xstring,
    END OF bin_table.
    DATA: lines LIKE tline OCCURS 0.
    DATA: dev_mail_sender LIKE swotobjid, "B20K061818
    dev_mail_recipient LIKE swotobjid.
    DATA: dev_mail_applobj_tab LIKE swotobjid OCCURS 10 WITH HEADER LINE.
    DATA: param LIKE itcpp.
    my_control_pars-no_dialog = 'X'.
    my_control_pars-getotf = 'X'.
    Get genereated function name of Smartform
    CALL FUNCTION 'SSF_FUNCTION_MODULE_NAME'
    EXPORTING
    formname = 'ZDEMO_SMART_FORM_PPF'
    IMPORTING
    fm_name = fm_name
    EXCEPTIONS
    no_form = 1
    no_function_module = 2
    OTHERS = 3.
    IF sy-subrc <> 0.
    ENDIF.
    Get Device type
    CALL FUNCTION 'SSF_GET_DEVICE_TYPE'
    EXPORTING
    i_language = sy-langu
    I_APPLICATION = 'SAPDEFAULT'
    IMPORTING
    e_devtype = e_devtype
    EXCEPTIONS
    no_language = 1
    language_not_installed = 2
    no_devtype_found = 3
    system_error = 4
    OTHERS = 5 .
    IF sy-subrc <> 0.
    ENDIF.
    output_options-tdprinter = e_devtype.
    set needed mail option
    my_control_pars-device = 'MAIL'.
    dev_mail_sender-logsys = 'CLNT600'.
    dev_mail_sender-objtype = 'RECIPIENT'.
    dev_mail_sender-objkey = 'CHI_DEV03'.
    dev_mail_recipient-logsys = 'CLNT600'.
    dev_mail_recipient-objtype = 'RECIPIENT'.
    dev_mail_recipient-objkey = '[email protected]'.
    CALL FUNCTION fm_name
    EXPORTING
    control_parameters = my_control_pars
    mail_recipient = dev_mail_recipient
    mail_sender = dev_mail_sender
    output_options = output_options
    ip_carrid = 'ID'
    ip_connid = '8290'
    ip_fldate = sy-datum
    ip_bookid = '12345678'
    ip_customid = '09876521'
    ip_luggweight = 90
    ip_wunit = 'KG'
    ip_smoker = 'X'
    IMPORTING
    job_output_info = my_output_info
    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.
    Another try ***
    *DATA: param LIKE itcpp.
    *DATA: BEGIN OF off_obj.
    INCLUDE STRUCTURE soodk.
    *DATA: END OF off_obj,
    ok TYPE c,
    msgid TYPE symsgid,
    msgno TYPE symsgno,
    msgv1 TYPE symsgv,
    msgv2 TYPE symsgv,
    msgv3 TYPE symsgv,
    msgv4 TYPE symsgv.
    *DATA: dev_mail_applobj_tab LIKE swotobjid OCCURS 10 WITH HEADER LINE.
    *CALL FUNCTION 'CONVERT_OTF_AND_MAIL'
    EXPORTING
    mailoptions = param
    mail_sender = dev_mail_sender
    mail_recipient = dev_mail_recipient
    IMPORTING
    office_objid = off_obj
    mail_ok = ok
    msgno = msgno
    msgid = msgid
    msgv1 = msgv1
    msgv2 = msgv2
    msgv3 = msgv3
    msgv4 = msgv4
    TABLES
    mail_application_object_ids = dev_mail_applobj_tab
    otf = my_output_info-otfdata.</i>

    Hi,
    You can follow a different approach. Send the output of the Smartform to the spool.
    You have a Function Module to read the spool and convert it to PDF . Then there is one more function module to attach the PDF and send it as a mail.
    You need to configure SMTP in Tcode : SCOT.
    Search the forum with emailpdfattachment
    You have umpteen postings available.
    Pls reward if useful.
    Regards,
    Laxman Nayak

Maybe you are looking for