on 04-10-2006 2:57 PM
Guyz,
I'm having a weird problem with smartforms....
Firstly I can't use Address node functionality of Smartforms as our address printing has got some custom functionality based on which i'll have to filter out few stuff in printing address.
Thus I created a structure and passed the same to smartforms thru program...but the thing is i'm not able to suppress the blank lines.....that is if Address line 4 is space I don't want to print it....I know Address node has got inbuilt functionaliyt...similar one i 'd like to simulate...
i'm using following code in smartforms inside a text element.....
/: IF &CONTACT-LINE4& NE &SPACE&
N8 &CONTACT-LINE4&
/: ENDIF
BUT when i'm printing the invoice i'm getting blank line for above LINE4 address aswell
kindly help me out....
thanks in advance
Hi Sreedhar,
Instead of the if statement in the text elements, use the alternative node of the smartform.
Regards
Aadarsh
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi sreedhar,
Use the FM 'ADDRESS_INTO_PRINTFORM' and delete the line which u dont need(blank line).
CALL function 'ADDRESS_INTO_PRINTFORM'
EXPORTING
ADDRESS_TYPE = '1'
ADDRESS_NUMBER = adrnr
SENDER_COUNTRY = 'TW'
NUMBER_OF_LINES = 6
IMPORTING
ADDRESS_PRINTFORM_TABLE = it_address.
Thanks,
Vamsi.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Sreedhar,
Can you try specifying &CONTACT-LINE& # INITIAL in the output options for the text-element?
Regards,
Raj
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Sreedhar,
In SAP scripts, we have an option of not letting blanks lines to be printed in the paragraph format properties.
Check if such an option is available in smartforms also.
REgards,
Ravi
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
84 | |
10 | |
10 | |
9 | |
7 | |
6 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.