on 12-08-2008 4:31 AM
Dear Experts,
I have created one address node in my smart form in which i have given the address number.Now it will print that address only.The address may be changing based on different address numbers right.My requirement is how can I print the different address for different customers by passing an address number in the address node and the addess should be printed with out the line gaps.
Correct answers will be appriciated higly.
Regards,
Farook.
By using FM 'ADDRESS_INTO_PRINTFORM' and passing ADRNR to this FM give us Address.
Right After By adding small piece of code we can remove the spaces.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
pass the address number as &<address number>& ,you can pass this number from the program or from the coding in the smartform.Check out the properties of the address node too.
Regards,
Midhun Abraham
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi
You can retreive the Address Number based on Customer/Vendor Number using Program Lines in the Smartform. Then the variable or internal table field which contains address number should be given in address node.
You have a place to give the address number,right??
There Just give the varaible/internal table field like this: &adrnr&.
So, If the customer/vendor number changes..then everytime the address of that particular customer/vendor will be printed.
Regards,
VIshwa.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I tried as u said.And in the address number i passed as u said but its giving the message as field unknown and has no defined value.
Did you declare the field in global definitions?? And as I said, If you are retreiving using Program Lines, then The field should be in Output Parameters of the program lines then you can pass it. Look at this example:
Here in the program lines node, we are writing code to retreive the number:
Input Parameters: Output Parameters:
l_lfa1 gv_adrnr
SELECT SINGLE * FROM lfa1 INTO l_lfa1 where lifnr = nast-parnr.
if sy-subrc = 0.
move l_lfa1-adrnr to gv_adrnr.
Now, from the above example, you pass the gv_adrnr in the address node.
Regards,
Vishwa.
Farooq,
Is that the waning mesage you are getting or an error message.
Have you defined the same in global definitions like
if you are passing &v_adrnr& in the address node.
You have to declare that in the global definitions and not in your code node.
the code can be like this.
read table i_adrnr into w_adrnr with key kunnr = v_kunnr.
if syst-subrc is initial.
v_adrnr = w_adrn-adrnr.
endif.
Regards,
Ravi Kiran
Hi,
Based on address number u can get the address for customer.
Eg: Name1,Name2, Street
After that u can create separate text elements to display the address with out gaps.
In text element condition tab u can check the Vriable.
Name1 ne ' '
Print &name1&
and soon.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
85 | |
10 | |
10 | |
10 | |
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.