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: 

Problem with script form

Former Member
0 Kudos

Hi All,

I have a problem with the script form please find below coding

ADDRESS DELIVERY PARAGRAPH AS 6 LINES

ADDRESSNUMBER &PEEKO-ADRNR(K)&

ENDADDRESS

in the address window for the field value of STRAS not printing correctly. it is trucation first 4 values and it is printing remaining text .

ex : actual text : 44, sidney road.

it was printing : sidney road....

Please guid me how to print first 3 vaules.

Advanced Thanks for you all

Regards

Sudhakar

1 ACCEPTED SOLUTION

Former Member
0 Kudos

You probably should specify the fromcountry parameter.... Check table ADRC contents for the failing and the work addresses. You may find that the house number field is being used inconsistently in your master data....e.g., sometimes house number may be populated but not included in ADRC-STREET, and sometimes populated into ADRC-STREET.

SAPScript uses FM ADDRESS_INTO_PRINTFORM....test that with your address number and look at what the FM is returning...

8 REPLIES 8

former_member196079
Active Contributor
0 Kudos

Hi sudhakar

what's the code you use for print stras???

Regards

marco

0 Kudos

It is not Printing stars .. it is printing only sidney road

0 Kudos

The code is below

ADDRESS DELIVERY PARAGRAPH AS 6 LINES

ADDRESSNUMBER &PEEKO-ADRNR(K)&

ENDADDRESS

The above code is printing entire address except STRAS

0 Kudos

hi sudhakar v

maybe the address is printed in the country format...you not see 44 because it is on the footer of the

address and the window is not large enough for all the text

regards

Marco

0 Kudos

Hi,

Yes you are correct the address is printing by passing country..

some text of STRAS is truncating... but same window for SOME PO'S it is printing correctly

Regards

Sudhakar

0 Kudos

Maybe because the text is smaller then your example...try to make larger the window..

best regards

Marco

Former Member
0 Kudos

You probably should specify the fromcountry parameter.... Check table ADRC contents for the failing and the work addresses. You may find that the house number field is being used inconsistently in your master data....e.g., sometimes house number may be populated but not included in ADRC-STREET, and sometimes populated into ADRC-STREET.

SAPScript uses FM ADDRESS_INTO_PRINTFORM....test that with your address number and look at what the FM is returning...

Former Member
0 Kudos

Hi,

Just go to the function module addr_get.

Execute the function module n click on address _selection.

Enter ur address number go back n again execute.

Now u wil get ur output in sadr.Click on sadr n jus check what is coming in stras field.