Print Mailing Address in Print Invoice (R42565)

Purpose of Document


The audience for this note is someone with developer level knowledge.

Report Variables Used in Printing an Invoice

Below is a listing of report variables that can be printed through Invoice Print (R42565):

ColumnReport VariableColumnReport Variable
Sold To Sold To Addr Alpha Name Ship To Ship To Addr Alpha Name
  Sold To Addr Line 1   Ship To Addr Line 1
  Sold To Addr Line 2   Ship To Addr Line 2
  Sold To Addr Line 3   Ship To Addr Line 3
  Sold To Addr Line 4   Ship To Addr Line 4
  Sold To Addr Line 5   Ship To Addr Line 5
  Sold To Addr Line 6   Ship To Addr Line 6
  Sold To Addr Line 7   Ship To Addr Line 7
  Sold To Addr Line 8   Ship To Addr Line 8
  Sold To Addr Line 9   Ship To Addr Line 9

 

Note: Currently 'RV Sold To Addr Line 9' is not implemented.

Address Type Used in Printing Invoices

The Address Type will indicate the address number that is associated with the order address information. The possible values are defined in UDC (40|AN) - "Type - Address Number"

Most commonly used codes are:

Note:

Printing 'Invoice To' and/or 'Forward To' in the Sold To Position in R42565

First of all, you have to turn on 'Customer Set' . For more information on Customer Sets see E1: 42: Date Sensitive Customer Sets (P4210/P42101/R42565/R0018I1) (Doc ID 625649.1):

So The Hierarchy in printing sold to on invoice print with Customer Sets on:

Note: Internally this routine will be specified by setting 'Addres Type' (F4006.ANTY) and F4201.SHAN (or F42019.SHAN) will not be affected by Customer Set parameter.

Settings from the Customer Master Table (F03012) Affecting the Mailing Address in R42565


Country Specific Address Type Printing

Yes. Country specific address format will be handled through B0100067 (refer below question). But note that the value returned by this BSFN will be overridden again. Currently only Address Format ID '15' which is meant for Japan has output which meets country requirement


Mailing Address of the Sold To When Override Address (F4006) is Populated

<Internal_Only>Refer detail routine for this in E1: 40: Labeling/Formatting Mailing Address in EnterpriseOne (R42565/R43500/R47011) (Doc ID 1157643.1) which is referring BSFN B0100021 - FormattedAddress (F0116 Get Mailing Address Format).
</Internal_Only>
Simplified routines are:

  1. Get data from F4006 through BSFN B4006 - GetOrderAddress (F4006 Get Order Address).
  2. Format Address Lines through BSFN B0100021 - FormattedAddress (F0116 Get Mailing Address Format).
F4006 Get Order Address
   BC Document (Order No, Invoice, etc.) (F42565)(DOCO) -> BF mnDocumentNumber
   BC Order Type (F42565)(DCTO) -> BF szDocumentType
   BC Order Company (Order Number) (F42565)(KCOO) -> BF szDocumentCompany
   VA evt_cTypeAddressNumber_ANTY -> BF cAddressNumberType
   RV Sold To Addr Alpha Name <- BF szMailingName(#1)
   RV Sold To Addr Line 1 <- BF szAddressLine1 (#2)
   RV Sold To Addr Line 2 <- BF szAddressLine2 (#3)
   RV Sold To Addr Line 3 <- BF szAddressLine3 (#4)
   RV Sold To Addr Line 4 <- BF szAddressLine4 (#5)
   RV Zip Code WF <- BF szPostalCode (#6)
   RV City (WF) <- BF szCity (#7)
   RV State WF <- BF szState (#8)
   RV Country WF <- BF szCountry (#9)  

 

F0116 Get Mailing Address Format
   RV Sold To Addr Alpha Name <> BF szNameMailing (#1)
   RV Sold To Addr Line 1 <> BF szAddressLine1 (#2)
   RV Sold To Addr Line 2 <> BF szAddressLine2 (#3)
   RV Sold To Addr Line 3 <> BF szAddressLine3 (#4)
   RV Sold To Addr Line 4 <> BF szAddressLine4 (#5)
   RV Sold To Addr Line 5 <> BF szAddressLine5
   RV Sold To Addr Line 6 <> BF szAddressLine6
   RV Sold To Addr Line 7 <> BF szAddressLine7
   RV City (WF) -> BF szCity (#7)
   RV State WF -> BF szState (#8)
   RV Zip Code WF -> BF szZipCodePostal (#6)
   RV Country WF -> BF szCountry (#9)

Mailing Address of the Sold To when the Override Address (F4006) is not Populated

A. Determine which address number to be used to pull out mailing address (F03012.SITO: Send Invoice to C/P):

Note: This value will be used in calling B0100067 by assigning above return value to RV AN8 For Address Lines WF (Refer B)


B. Get AddressLine 1 through 7 through BSFN B0100067 - FormattedAddressWithWhosWho (Formatted Address With Who's Who)

Refer to E1: BSFN: Information on Business Function B0100067-Formatted Address With Who's Who (Doc ID 1173464.1) which make use of B0100067 - FormattedAddressWithWhosWho (Formatted Address With Who's Who).

Formatted Address With Who's Who
   VA sec_szWhosWhoMailingName_ALPH <- BF szNameMailing
   RV Sold To Addr Alpha Name <- BF szNameAlpha
   VA sec_szAddressLine1_ADD1 <- BF szAddressLine1
   VA sec_szAddressLine2_ADD2 <- BF szAddressLine2
   VA sec_szAddressLine3_ADD3 <- BF szAddressLine3
   VA sec_szAddressLine4_ADD4 <- BF szAddressLine4
   VA sec_szAddressLine5_ADD5 <- BF szAddressLine5
   VA sec_szAddressLine6_ADD6 <- BF szAddressLine6
   VA sec_szAddressLine7_ADD7 <- BF szAddressLine7
   RV AN8 For Address Lines WF -> BF mnAddressNumber (Ref #1)
   VA evt_szSoldToCountry_CTR <- BF szCountry
   VA sec_szWhoWhoTitle_ALPH <- BF szContactTitle
   VA sec_cWhoWhoType_EV01 -> BF cTypeCode (Ref #2)
   VA sec_cWhosWhoInfoFlag_EV01 <- BF cWhosWhoInformation
   VA sec_szWhoWhoName_DESC <- BF szSalutationName
   BC Customer Contact Line Number ID (F4201)(CCIDLN) -> BF mnWhosWhoLineID (Ref #3)

 

Note:


C. Read F0070 - Country Constant to get F0070.ADID (Address Format ID) based on F0116.CTR then assign variables returned from B0100067 to Report Variables as below.

If F0070.ADID = 15€™ which is F0116.CTR = JP - Japan then:
If F0070.ADID <> 15™ (which is other than Japan),

Mailing Address of the Ship To when the Override Address (F4006) is Populated

This routine is same with routine to print Sold To address. For this case, it is not affected by SITO (Send Invoice To) value from F03012 - Customer Master.

  1. Get data from F4006 through BSFN B4006 - GetOrderAddress (F4006 Get Order Address)
  2. Format Address Lines through BSFN B0100021 - FormattedAddress (F0116 Get Mailing Address Format)

Mailing Address of the Ship To when the Override Address (F4006) is Not Populated

Same routine with Sold To address printing.

For this case:

  1. Get VA sec_cWhoWhoType_EV01 (CTY - Type Code) from F0111 ON (F0111.AN8 = F4201.SHAN AND F0111.IDLN = F4201.CCIDLN)
  2. Get variable through BSFN B0100067 based on F4201.SHAN
  3. Format it with above routine for Sold To
Note:

To discuss information further with Oracle experts and industry peers, we encourage you to review, join or start a discussion in the JDE1 Distribution Community.

To look at upcoming or archived Advisor Webcasts please see Advisor Webcast Details (Doc ID 548764.1) if your topic is not currently scheduled please suggest it.