cancel
Showing results for 
Search instead for 
Did you mean: 

Print Address in adobeforms

kishore_usa
Explorer
0 Kudos

Hi,

I have to print address on adobeforms based on some conditions.

For condition 1, I have to get address data from SAP tables using ADRNR

for condition 2, I have to use pre-defined address(hard-coded) to print.

What is the best way to print address in this scenario? I thought of using Text module/standard text to print address(for the case of pre-defined address)

but, this won't suitable for my above condition 1.

If i create internal table, formatting is not coming correctly (address lines have more gap between lines) - How to reduce gap between lines?

Can you please help me .

Thank you in advance...

Regards,

Kumar

Accepted Solutions (0)

Answers (2)

Answers (2)

prajeshdesai
Contributor
0 Kudos

Condition 1: You can make use of ADDRESS type context node.

Condition 2: If it's hard coded, do it hard coded.

Hope this helps.

kishore_usa
Explorer
0 Kudos

Hi Prajesh Desai,

Thank you for the reply.

How can i use 'Address node' & 'hard coded' methods for a single address box?

I mean which element i need to give during form design for address? so that it should be used for both?

Thank you.

prajeshdesai
Contributor
0 Kudos

i believe that you know how to use Address Node, that will solve your first condition.

for second one try below java script,

It means, if you did't set address, display this hard coded address.

Hope this helps.

kishore_usa
Explorer
0 Kudos

Hi Prajesh,

Thank you for your reply.

I understood your point. But in my case, I have 10 to 15 hard coded company code address for each company code.

Is it okay to use Java script in this case OR

I am planing to use internal table, so that it can be filled in ABAP Program(Address from SAP tables & also for hard coded address)

I just want to make sure to use best method(Performance point of view).

Thank you so much.

Regards,

Kumar

prajeshdesai
Contributor
0 Kudos

i always like to place all my logic at one place when ever possible, in your both case for me there is no big difference in performance, because finally it is hard coded.

And addresses are may be change in future, so it's good to have them with your abap logic.

Hope this make sense.

kishore_usa
Explorer
0 Kudos

Thank you for reply and it helps.

I would create custom table to maintain addresses, this way i can avoid hardcoding and it would be easy to maintain/update using table maintenance in future.

Thank you.

Regards,

Kumar

kishore_usa
Explorer
0 Kudos

Hi,

I have adjusted the margins in layout and it reduced the gaps between lines.

Thank you.

Former Member
0 Kudos

Since you anyways need data in internal table for condition 1, so it's better to keep the conditional logic restricted to ABAP only.

One of the ways of doing this is using standard text. You can have dynamic content in standard texts. These links below should help you

Using of Standard Text (SO10) in Adobe Form - ABAP Development - SCN Wiki

Variable field in text module | SCN

kishore_usa
Explorer
0 Kudos

Hi Mohammad Arshid Ansari,

Thank you for the reply.

But how can i use Standard text for address which is coming from table(ADRC) during execution of the program?

Thank you.