Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

Address data in sap script

Former Member
0 Kudos

Dear All,

As per current layout already printing / display below information .

Name Already Printing

Street/House Already Printing

District Already Printing

City Already Printing

Region Already Printing

Post Code Already Printing

now I want

Name Already Printing

Street/House Already Printing

Street2 Need To Print

Street3 Need To Print

District Already Printing

City Already Printing

Region Already Printing

Post Code Already Printing

I have selected the data from adrc table.and it is selecting properly.

Now I have wrote in adress window is

street2 &adrc-str_suppl1&

street3 &adrc-str_suppl2&

but it is not printing in form.

when i debugg it. It shows ;TEXT command street2 stree3 is not defined.

please tell me what should i do?

1 ACCEPTED SOLUTION

former_member585060
Active Contributor
0 Kudos

As all the Address details

Name Already Printing

Street/House Already Printing

District Already Printing

City Already Printing

Region Already Printing

Post Code Already Printing

must be in /: ADDRESS and /: ENDADDRESS your fields are not getting printed.

So comment all the lines from ADDRESS to ENDADDRESS and define all the fields using DEFINE statement,

Then use subroutine to get all the details from the ADRC table.

8 REPLIES 8

former_member182426
Active Contributor
0 Kudos

hi,

check out your itab structure weather those two fields are specified or not and Check it out weather your itab is getting those 2 fields are not.

Regards,

Shankar.

Former Member
0 Kudos

Could it be that instead of using a normal user defined or default paragraph (the ones you normally use for printing data) you used the /: paragraph that's reserved for commands?

former_member585060
Active Contributor
0 Kudos

As all the Address details

Name Already Printing

Street/House Already Printing

District Already Printing

City Already Printing

Region Already Printing

Post Code Already Printing

must be in /: ADDRESS and /: ENDADDRESS your fields are not getting printed.

So comment all the lines from ADDRESS to ENDADDRESS and define all the fields using DEFINE statement,

Then use subroutine to get all the details from the ADRC table.

0 Kudos

can you explain in detail................?

0 Kudos

Hi

In SAP address details can be set in the minutest way but everything is not displayed while useing ADDRESS and ENDADDRESS because it gives priorities to fields. e.g. it will not display street or ther things if POBOX is given. These setting can be changed where you maintain the address. One method to solve your peoblem if you are using ADDESS and ENDADDRESS is to use LOCATION just before STREET field.

where you can assign Street to LOCATION and street2 to STREET.

Try if it solves your problem.

regards

Vijai

Former Member
0 Kudos

SAP Note 562015 contains an example of how to add the c/o field to your address with a BADI. You could adapt it to add Street2 and Street3.

former_member203501
Active Contributor
0 Kudos

hi use this function module ADDRESS_INTO_PRINTFORM

Former Member
0 Kudos

Hi its possible that its not maintained ...

check in table for adrc-str_suppl1 ...

in debug mode check the value of adrc-str_suppl1