on 05-09-2008 11:34 AM
Hi,
I am using ADDRESS - ENDADDRESS to write company code address.
Now, Postal Code of one of the co code is maintained as
5605 LS. However, in the form it is appearing without space i.e
5605LS.
I just noticed that in function module ADDRESS_INTO_PRINTFORM, once postal code is entered into the string , there is a CONDENSE statement with NO-GAPS that suppresses the spaces.
Kindly advise how i can print postal code with space correctly in form using ADDRESS - ENDADDRESS .
Thanks
Nidhi
Hi Sohit,
We all know that the address will be generated from the FM 'ADDRESS_INTO_PRINTFORM' into a work area. That work area will be of type adrs_print. So that work area contains 10 lines of the address.
Now just observe the line into which the Postal code is populating. Then take that line value i.e for example l_wa_address-line4 into a variable and separate the number(5605) and string (LS).
concatenate v_postalcode0(4) ' ' v_postalcode4(2) INTO v_string.
Then write the below code:
READ TABLE out_tab ASSIGNING <fs_outtab> INDEX l_c_5.
IF sy-subrc = 0.
<fs_outtab>-value = v_string.
ENDIF.
I hope this trick works. Try it out & let me know in case of any issues.
Don't forget to reward if this is useful.
Pavan.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
Refer this:
ADDRESS ... ENDADDRESS
ADDRESS and ENDADDRESS is used to specify the address which will be formatted according to the target country i.e the recipient country.
e.g. /:ADDRESS sales PARAGRAPH C
/:NAME &KNA1-NAME1&
/:STREET &KNA1-STRAS&
/:POSTCODE &KNA1-PSTLZ&
/:CITY &KNA1-ORT01&
/:COUNTRY &KNA1-LAND1&
/:FROMCOUNTRY 'DE'
/:ENDADDRESS.
Regards,
Shiva
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
78 | |
10 | |
9 | |
7 | |
6 | |
6 | |
5 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.