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.

Similar Messages

  • Address in smartform

    Hi Friends,
    I have the following code in SAPScript but I need to change it to SmartForms. Can anybody tell me how to handle?
    /:   ADDRESS PARAGRAPH AS
    /:        TITLE             &SERVICE_ADDRESS-ANRED&
    /:        NAME            &SERVICE_ADDRESS-NAME1&,
                                   &SERVICE_ADDRESS-NAME2&,
                        &SERVICE_ADDRESS-NAME3&,
                                   &SERVICE_ADDRESS-NAME4&
    /:        STREET        &SERVICE_ADDRESS-STRAS&
    /:        POBOX         &SERVICE_ADDRESS-PFACH&
    /:        CITY             &SERVICE_ADDRESS-ORT01&,
                                  &SERVICE_ADDRESS-ORT02&
    /:        POSTCODE  &SERVICE_ADDRESS-PSTLZ&
    /:        COUNTRY    &SERVICE_ADDRESS-LAND1&
    /:        REGION       &SERVICE_ADDRESS-REGIO&
    /:        FROMCOUNTRY &SERVICE_ADDRESS-SLAND&
    /:  ENDADDRESS
    I have created one text element under address window of my smartform and I inserted above code.
    it's not displaying in the smartform. I checked in debug mode untill smartform calling by the function module. The data is there in that structure.
    I don't know how to debug address window.
    Could you pls help me. can we use ADDRESS and END ADDRESS in smartform.
    Thanks in advance.
    Regards
    Raghu

    Thanks robert !
    In my situation the data is comming from form interface. So, no need to write the select statement again.
    What my question is...
    if you want to display address in proper format in sap script, will use the below code in the text element editor. am I right? The same way I want to paste the below code in smatform in address window. how?
    text node is enough or we have to create program lines code in address window. hope my question .. you understtod.
    /: ADDRESS PARAGRAPH AS
    /: TITLE &SERVICE_ADDRESS-ANRED&
    /: NAME &SERVICE_ADDRESS-NAME1&,
    &SERVICE_ADDRESS-NAME2&,
    &SERVICE_ADDRESS-NAME3&,
    &SERVICE_ADDRESS-NAME4&
    /: STREET &SERVICE_ADDRESS-STRAS&
    /: POBOX &SERVICE_ADDRESS-PFACH&
    /: CITY &SERVICE_ADDRESS-ORT01&,
    &SERVICE_ADDRESS-ORT02&
    /: POSTCODE &SERVICE_ADDRESS-PSTLZ&
    /: COUNTRY &SERVICE_ADDRESS-LAND1&
    /: REGION &SERVICE_ADDRESS-REGIO&
    /: FROMCOUNTRY &SERVICE_ADDRESS-SLAND&
    /: ENDADDRESS
    Thanks in advance.

  • Name of the standard FM called for displaying address in Smartform.

    Hi all..
    Wat is the name pf the standard FM that is called wen we use address in smartform,inputting the address number...
    Regards
    Rudra

    Hi,
    if we Inclue Address in Address Node, System reads address data directly from the data base tables.
    Inserting addresses:
    One can use the address node to insert an address into the form. This guarantees that the address is formatted according to the postal rules of the sender country.
    1) To create an address node , call the context menu for that node in the tree structure that one wants to contain the text and choose create->text
    2) Enter a name for the node and a description
    3) Determine the address type on the general attributes tab
    4) For organizational addresses one has to specify the address number, for any other one has to specify the person number and the address number
    5) In the box additional addresses one can maintain other attributes to specify how to display the address
    Addresses are printed using the ADDRESS_INTO_PRINTFORM function module.
    To enable the ADDRESS_INTO_PRINTFORM function module to call existing versions of an address for print output, the application program has to transfer the address number for address type 1, or the address number and person number for address types 2 and 3, to the function module or to SAPscript/SAP Smart Forms.
    If SAPscript/SAP Smart Forms are used for printing, the address number (or address number and person number) is to be specified here as a parameter. The ADDRESS_INTO_PRINTFORM function module then controls internally which version of an address is printed:
    In the standard system, printing of address versions is only supported for Japan. Besides the default version, the versions Kanji (K) or International (I) can also be printed.
    follow these links for brief information.
    http://www.sap-press.com/downloads/h955_preview.pdf
    Regards,
    Omkar.

  • A query with "insert..select" run with dqp?

    I would like to know if a query with "insert cluase select clause" is operated with the function of the dqp.
    I think that a query portion with "select clause" is possible to run with dqp.
    if anybody knows about this case, please let me know.
    Thanks in advance,
    Dokon Kim

    There is no such thing as pl/sql 5.1.4, at that time pl/sql didn't even exist.
    You also state it works in Sql*plus but it doesn't work in PL/SQL as PL/SQL is using OCI7. Which isn't true.
    Please stop playing games and withhelding information.
    Post the real info. Not what you think is important.
    Why are you using a (desupported) 9.0.1 client against a 10GR2 database?}
    Sybrand Bakker
    Senior Oracle DBA

  • QUERY FOR INSERT INTO  SQL TABLE

    Hi all,
    i want to insert some records into SQL table but not SAP database table. This table is only present in SQL database &
    not present in SAP database.
      i want to write a program in SAP to update the SQL table(not present in SAP database). is it possible?
       if yes, plz give me the query for inserting records into SQL table.
    Regards

    Hello,
    working on the same issue:
    Try this:
    DATA : Begin Of XY Occurs 1000,
            id(15)    TYPE C,
            Name(50)  TYPE C,
            ArtNr(50) TYPE C,
            lieferant TYPE I,
         End Of XY.
    Fill this internal Table with the SAP-Table
    START Connection to your Database
      EXEC SQL.
          Connect TO 'TEST_FH'
      ENDEXEC.
      IF SY-SUBRC EQ 0.
        EXEC SQL.
        Set Connection 'TEST_FH'     " <-- this is defines with TCode dbco
        ENDEXEC.
        IF SY-SUBRC EQ 0.
        Else.
          " OUT_Msg = '... won't connect'.
          Exit.
        EndIf.  " Else IF SY-SUBRC EQ 0
      Else.
        " OUT_Msg =  'Error at Set Connection Test_FH'.
        Exit.
      EndIf.  " IF SY-SUBRC EQ 0
    ENDE  Connection to your Database
    START Insert your table XY to an external database
        Loop AT XY.
          Try.
           EXEC SQL.
               INSERT INTO stoff
               (id, name , artnr, lieferant)
               VALUES
               ( :XY-ID,  :XY-Name, :XY-ArtNr, :XY-Lieferant )
           ENDEXEC.
           COMMIT WORK AND WAIT.     " <=== Maybe VERY important
          CATCH cx_sy_native_sql_error INTO exc_ref.
              error_text = exc_ref->get_text( ).
              Concatenate 'Table-INSERT: ' error_text Into error_text.
              MESSAGE error_text TYPE 'I'.
          ENDTRY.
        ENDLoop.     " Loop AT XY     
    END   Insert your table XY to an external database
    START: Clear Connection
        EXEC SQL.
          DISCONNECT 'TEST_FH'
        ENDEXEC.
    END : Clear Connection
    Hope it works
    Best wishes
    Frank

  • Change Address in SmartForms

    Hai,
    i have a doubt in smartforms   'if u want to change the address in smartforms what can i do? is there any event or not.
    plz tell me.
    Edited by: Alvaro Tejada Galindo on Apr 2, 2008 6:10 PM

    hi reddy,
    It seems like you are using an address node, and not a free-form text node with explicit address fields, which was the way things used to be done in SAPscript. This is good. The key strength in address nodes is the standardized way they rely upon address numbers and a few other key pieces of information to format addresses properly and consistently. However, a minor negative is that we lose some of the fine-tuned control available to us with explicit address formatting from SAPscript (e.g. deliberately suppressing certain lines).
    Here is a simple test to simulate how a vendor address will look on output:
    Go to vendor display (transaction FK03)
    Select a vendor
    Click on the address option under 'General data' and press enter
    On the next screen, click the 'print preview' icon
    The address which appears should resemble the one you see on your Smart Form output. From here you can click on the 'change parameters' icon to tweak the settings. One of these settings, maximum number of lines, is something which you have control over in your Smart Form's address node. Perhaps reducing this number will squeeze out the blank lines you currently see. Once you determine the proper value, update it within your form's address node. If the address appears fine in vendor display, but not on your form, double-check the address node to see if something else might be wrong with it (e.g. sending country).
    regards
    karthik
    <REMOVED BY MODERATOR>
    Incidentally, the 'print preview' and 'change parameters' icons are available for other address types in SAP as well. They provide a quick diagnostic to determine if addresses are printing correctly on a form
    Edited by: Alvaro Tejada Galindo on Apr 2, 2008 6:10 PM

  • When trying to send an email I can not access "insert addresses" link, what is wrong?

    I am using Windows XP and when trying to send an email using Yahoo email I can not insert address from that link. It will not open. I can not find a way to solve this. Help. Thanks

    See this:
    [http://support.mozilla.com/en-US/kb/Changing+the+e-mail+program+used+by+Firefox]

  • Can't use "Insert addresses" in Yahoo mail.

    I can't use "Insert addresses" in Yahoo mail using Firefox. Nothing happens at all when I click on it. However, I can using Internet Explorer and it also works in Linux so it must be a problem with Firefox only! I have rebooted many times and even started up in "Debugging Mode". No luck so far with anything. Help PLEASE!

    Yahoo may want to make their site work with Firefox. Please contact Yahoo for further assistance. Or check your plug-ins.
    Please check if all your plugins are up-to-date. To do this, go to the [http://mozilla.com/plugincheck Mozilla Plugin Check site].
    Once you're there, the site will check if all your plugins have the latest versions.
    If you see plugins in the list that have a yellow ''Update'' button or a red ''Update now'' button, please update these immediately.
    To do so, please click each red or yellow button. Then you should see a site that allows you to download the latest version. Double-click the downloaded file to start the installation and follow the steps mentioned in the installation procedure.

  • Message:execute non-query failure(insert into EDCSESSIONSTOREENTITY

    Hi , my error is
    Adobe Reader Extensions ES2
    ERROR.....
    [com.adobe.idp.common.errors.exception.IDPLoggedException] UserM:GENERIC_WARNING: [Thread Hashcode: 975924454] com.adobe.idp.common.errors.exception.IDPLoggedException| [com.adobe.idp.storeprovider.jdbc.DBStatement] errorCode:12290 errorCodeHEX:0x3002 message:execute non-query failure(insert into EDCSESSIONSTOREENTITY ( id , sequencenumber , renewalcount , sessiondata , sessionendtime) values(?, ?, ?, ?, ?)) chainedException:java.sql.SQLException: Binary logging not possible. Message: Transaction level 'READ-COMMITTED' in InnoDB is not safe for binlog mode 'STATEMENT'chainedExceptionMessage:Binary logging not possible. Message: Transaction level 'READ-COMMITTED' in InnoDB is not safe for binlog mode 'STATEMENT' chainedException trace:java.sql.SQLException: Binary logging not possible. Message: Transaction level 'READ-COMMITTED' in InnoDB is not safe for binlog mode 'STATEMENT'.
    why????

    Hello,
    Theproblem seems to be with isolation level, the below post may help here.
    https://confluence.atlassian.com/pages/viewpage.action?pageId=251724630
    -Vijay

  • I created an envelope template and want to print envelopes inserting addresses from a contact group in address book

    I created an envelope template in Pages and want to print envelopes inserting addresses from a contact group in address book. How do I do that?

    On what word processor will that be?

  • Company Address and sold party address in smartforms

    Hi Experts,
    How to fetch the Company Address in Heading window based on Plant . Sold to party address in smartform
    How to do this .
    Pls helpme
    Thanks in Advance
    purnaneelu

    Hi,
    Plant address you can get from table T001W by passing the plant name ( WERKS ).
    Sold-to-party is nothing but customer, so you have to fetch the ADRNR from table KNA1 passing customer number ( KUNNR ), and pass ADRNR to table ADRC to get all address details.
    Regards
    Karthik D

  • Customer address in smartform

    hi all,
    i need to show customer address in the smartform for tht i need to fetch address no from table vbpa on the basis of vbeln n according to tht address no i need to fetch address from adrc
    how to write the query for this

    Hi,
    data:v_adrnr type adrnr.
    select ADRNR
    from vbpa
    into v_adrnr
    up to 1 rows
    where vbeln = '0000010106'
    and parvw = '1A'.
    endselect.
    if sy=subrc eq 0 and V_adrnr is not intial.
    Select <Fields>
           from adrc
           into table <Internal tbale>
           where adrnr = v_adrnr.
    endif.
    Regards
    Jana

  • What is the query of insertion in oracle

    I want to insert the values dynamically into the database.
    I have written the code like this:
    cid=jFormattedTextField1.getText();
    cname=jFormattedTextField2.getText();
    address=jTextArea1.getText();
    state=jFormattedTextField3.getText();
    zip=jFormattedTextField4.getText();
    phone=jFormattedTextField5.getText();
    mobile=jFormattedTextField6.getText();
    email=jFormattedTextField7.getText();
    new_address=jTextArea2.getText();
    new_state=jFormattedTextField8.getText();
    new_zip=jFormattedTextField9.getText();
    new_phone=jFormattedTextField10.getText();
    new_mobile=jFormattedTextField11.getText();
    new_email=jFormattedTextField12.getText();
    try
    Class.forName("oracle.jdbc.driver.OracleDriver");
    String url="jdbc:oracle:thin:@localhost:1521:oracle";
    Connection con=DriverManager.getConnection(url,"scott","root");
    Statement st=con.createStatement();
    int n=st.executeUpdate("insert into Customer_details values( cid='"+cid+"', cname='"+cname+"' ,address='"+address+"', state='"+state+"', zip='"+zip+"' ,phone='"+phone+"', mobile='"+mobile+"', email='"+email+"' ,new_address='"+new_address+"', new_state='"+new_state+"', new_zip='"+new_zip+"', new_phone='"+new_phone+"', new_mobile='"+new_mobile+"', new_email='"+new_email+"') ");
    System.out.println("data saved successfully"+n);
    am getting the error like this plz help me;
    java.sql.SQLException: ORA-00917: missing comma

    Oracle SQL requires single quotes instead of double quotes around strings.
    But that's irrelevant as you should have used a PreparedStatement rather than parsing everything into the SQL query by hand, which would have had the JDBC driver generate the actual SQL as needed.

  • DYNAMIC QUERY FOR INSERT USING SELECT

    Hi All,
    I am facing an issue...I am un bale to do an dynamic query. i have explained my code and the sample create, insert statements. I shud insert values in a table using a select statement dynamically..
    create table listing (tel_no varchar2(16), list_key varchar2(30));
    create table dummy_extract ( extract_name varchar2(10),extract_query varchar2(400),extract_date date );
    create table dummy_query (tel_no varchar2(16), list_key varchar2(30));
    insert into listing (tel_no ,header_key) values ('123456','123.23');
    insert into dummy_extract (extract_name,extract_query,extract_date) values ('SP','SELECT TEL_NO, LIST_KEY FROM LISTING','10-DEC-2010');
    SET SERVEROUTPUT ON
    declare
    CURSOR CUR_QUERY IS
    SELECT * FROM DUMMY_EXTRACT ;
    V_STMT VARCHAR2(4000);
    BEGIN
    FOR I IN CUR_QUERY LOOP
    V_STMT := 'INSERT INTO DUMMY_QUERY VALUES ' ||(I.EXTRACT_QUERY ) ;
    EXECUTE IMMEDIATE V_STMT using i.extract_query;
    DBMS_OUTPUT.PUT_LINE (V_STMT);
    END LOOP;
    END ;

    Hi Blue shadow and Saubik,
    I tried my query.It shows missing expression...Could you tell me the reason...
    SET SERVEROUTPUT ON
    declare
    CURSOR CUR_QUERY IS
    SELECT * FROM DUMMY_EXTRACT ;
    V_STMT VARCHAR2(4000);
    BEGIN
    FOR I IN CUR_QUERY LOOP
    --V_STMT := 'INSERT INTO'|| DUMMY_QUERY ||'VALUES ' ||(I.EXTRACT_QUERY ) ;
    EXECUTE IMMEDIATE 'INSERT INTO DUMMY_QUERY VALUES ' ||(I.EXTRACT_QUERY ) ;
    DBMS_OUTPUT.PUT_LINE (V_STMT);
    END LOOP;
    END ;
    Error report:
    ORA-00936: missing expression
    ORA-06512: at line 14
    00936. 00000 - "missing expression"
    *Cause:   
    *Action:                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               

  • Insert query for insert all data into table in vb6 but it insert 1 row in table

    This is My insert query in vb6 but it insert 1 row in table
    But i want insert all data in the table which contain the id =1.
    Note that billtabsuport is blank
    i want solution for this
    strSQL = " select * from billtabsuport1 where StockID=" & lblid.Caption
    Set DBrecordset = DBConnection.Execute(strSQL)
    strSQL = " Insert into billtabsuport values('" & DBrecordset("StockID") & "','" & DBrecordset("C_Name") & "','" & DBrecordset("C_Add") & "','" & DBrecordset("C_Mobile") & "','" & DBrecordset("Invoice_No") & "','" & DBrecordset("Date") & "','" & DBrecordset("Order_No") & "','" & DBrecordset("T_Name") & "','" & DBrecordset("Dest") & "','" & DBrecordset("D_Date") & "','" & DBrecordset("Tyres_Serial_No") & "','" & DBrecordset("P_Desc") & "','" & DBrecordset("PR") & "','" & DBrecordset("Branded_NonBranded") & "','" & DBrecordset("Claim_No") & "','" & DBrecordset("Qty") & "','" & DBrecordset("U_Price") & "','" & DBrecordset("I_Value") & "','" & DBrecordset("V_Rate") & "','" & DBrecordset("V_Amt") & "','" & DBrecordset("Size") & "','" & DBrecordset("Pattern") & "','" & DBrecordset("TypesOfStock") & "','" & DBrecordset("TypesOfTube_Flap") & "','" & DBrecordset("VatAmount") & "')"
    DBConnection.Execute (strSQL)

    The syntax for inserting from one set of tables to a new table is:
    insert into newtable
    (field1, field2, etc)
    select somefield1, somefield2, etc
    from some other tables
    where whatever

Maybe you are looking for

  • Auto update of Schedule Agreements

    Once a schedule agreement has been created will MRP auto update the delivery date (for JIT) if the lead time is zero days and the new need date is today?

  • Charts: how do I determine when the mouse is in the plot area

    I'm trying to implement logic that will do the following: Panning plot within plot display area by clicking and dragging mouse If the user clicks and drags in the chart plot area (the region where the chart plot actually displays, not including the a

  • The bottom of my white macbook callus

    Hi, The bottom of my macbook white callus was like rubberglued to the aluminum and I can not get prodrian desir grabbing me or where to get that part

  • Webservice problems under Business Connector 4.6

    Hi. I've done this scenario Webservice (request) --> BC --> R3 --> Webservice (response). With Business developer i've made my wsdl (very strange, because i get two files .. wsdl and xsd). When i use a client such as SOAPUI, input parameters of the B

  • Error while extracting bits

    Hi, I am getting the following error when I try to run the downloaded weblogic binary server910_solaris32.bin onto my solaris 9 sparc64 machine - " End-of-central-directory signature not found. ** Error during init, error code = 2." Any ideas what co