Application Development and Automation 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: 
Read only

Problem with script form

Former Member
0 Likes
1,020

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
Read only

Former Member
0 Likes
974

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
Read only

Former Member
0 Likes
974

Hi sudhakar

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

Regards

marco

Read only

0 Likes
974

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

Read only

0 Likes
974

The code is below

ADDRESS DELIVERY PARAGRAPH AS 6 LINES

ADDRESSNUMBER &PEEKO-ADRNR(K)&

ENDADDRESS

The above code is printing entire address except STRAS

Read only

0 Likes
974

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

Read only

0 Likes
974

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

Read only

0 Likes
974

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

best regards

Marco

Read only

Former Member
0 Likes
975

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...

Read only

Former Member
0 Likes
974

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.