Bill to Address field in Marketing Document
Chi Fai Cheung
Hi,In the standard marketing layout of Coresuite for field 'Address' there's a generatescript created for automatically take the bill to address of the Businsess Partner.
billToAdr = Document("CardName") & vbcrlf & "t.a.v. " + GetData("B1_Data.Document.PayToCode") & vbcrlf & LD.MultiLine(Document("Address"))
' Lieferadresse
' Falls ein ShipCode vorhanden ist, (Lieferadresse auf GP)
' wird der CardName angedruckt.
' Falls Detailsdaten der Shippingadresse benötigt werden
' -> DatenSource "ShipToAdress" verwenden
If Document("Address2")="" Then
' Falls Lieferadresse leer
If GetData("LD.Par.FormType")<>"140" Then
' Und Beleg <> Lieferschein
' wird der Text "Rechnungsadresse = Lieferadresse in die Lieferadresse gedruckt)
shipToAdr = GetData("LD.Txt.T0000083")
Else
' Falls Beleg = Lieferschein wird die Rechnungsadresse in die Lieferadresse übernommen
' Und der Text in die Rechnungsadresse übernommen
billToAdr = GetData("LD.Txt.T0000083")
End If
End If
' In case of delivery, shipToAdr has to be on the top left in the BillToAddress TextBox
Select GetData("LD.Par.FormType")
Case "140":
BillToAdress.Value = shipToAdr
AddressDescription.Value = GetData("LD.Txt.T0000094")
Case Else:
BillToAdress.Value = billToAdr
End Select
Is it's possible to remove the country when the country is The Netherlands and if it's not NL then the country have to filled in the layout.
Thanks in advance,
Chi Fai
Philipp Emmenegger
Hi Chi FaiYes it is possible.
The Designer address field is referring to the addressfield in the document (eg. A/R Invoice). If the country is not in this filed it won't appear in reports either.
If you want to avoid those country-remarks, you simple need to change the SAP Standard-Settings which you find in administration-modul. The settings can be made in the "address formats" console.
I hope we could help you on this.
regards, Philipp
Chi Fai Cheung
Thanks Philipp for your help, i will take a look.
0
Please sign in to leave a comment.
Comments
0 comments