cancel
Showing results for 
Search instead for 
Did you mean: 

Address printing with out spaces

Former Member
0 Kudos

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.

Accepted Solutions (1)

Accepted Solutions (1)

former_member181995
Active Contributor
0 Kudos

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.

Answers (3)

Answers (3)

Former Member
0 Kudos

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

Former Member
0 Kudos

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.

former_member181995
Active Contributor
0 Kudos

Right

Cheers,

Amit.

Former Member
0 Kudos

>

> Right

>

> Cheers,

> Amit.

Amit, does that mean in the right sense or in sarcastic way?? :)!!!!!!!

Vishwa.

Former Member
0 Kudos

Hi Vishwa,

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.

in address number i passed d details as wa_adrc-addrnumber .I am not getting the desired out put.

Plz help me.

Regards,

Farook.

Former Member
0 Kudos

Hi Amit,

If u have any sample code plz send me.I will be very thnkful to u.Sample code for printing the address through address node.

Regards,

Farook.

Former Member
0 Kudos
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.

Former Member
0 Kudos

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

Former Member
0 Kudos

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.