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

Address_Query_in_SAP-SCRIPT??

Former Member
0 Likes
324

Hi..

Please tell me what exactly the FM--> ADDRESS_INTO_PRINTFORM do?

As in SAP-SCRIPT, in the display of sold-to-party, sometimes I am getting the full country name instead of short-form(say Estonia and not ES) and at times I am getting only short-forms instead of full names(Say UZ instead of UZbekistan).

I want a requirement in which I shoukd always get the full country name.

Thanks

Hi..

Please tell me what exactly the FM--> ADDRESS_INTO_PRINTFORM do?

As in SAP-SCRIPT, in the display of sold-to-party, sometimes I am getting the full country name instead of short-form(say Estonia and not ES) and at times I am getting only short-forms instead of full names(Say UZ instead of UZbekistan).

I want a requirement in which I shoukd always get the full country name.

Thanks

1 REPLY 1
Read only

Former Member
0 Likes
294

See the code below. If you want to get full address then give number_of_lines as 10. This FM will print the address according to the Standard address format of the sender_country. So the address format will change depends upon the sender country.

    CALL FUNCTION 'ADDRESS_INTO_PRINTFORM'
         EXPORTING
              address_type        = '1'
              address_number      = adrnr
              sender_country      = sender_country
              number_of_lines     = 10
              street_has_priority = 'X'
         IMPORTING
              address_printform   = wa_address.

Cheers,

Thomas.

Please mark point if you got solution.