BADI_ENJ_ALT_ADR SAP Method of class IF_EX_BADI_ENJ_ALT_ADR









Below is documentation, parameters and attributes of ABAP Method BADI_ENJ_ALT_ADR within SAP class IF_EX_BADI_ENJ_ALT_ADR. There is also a number of example ABAP code snipts to help you use the functionality of this method.

This is a private Method so can only be executed from within the class itself. I.e. You could access it from another method of the class.

This method is available within SAP systems depending on your version and release level, you can view further information by entering the class name IF_EX_BADI_ENJ_ALT_ADR into the relevant SAP transactions such as SE24 or SE80, and then selecting the method you are interested in.


Method Type - Instance

This is an Instance Method so needs to be instantiated first before you can access any of the methods. I.e. you need to create a local variable of TYPE ref to the class.

The following technical details of method BADI_ENJ_ALT_ADR can also be found below:

  • Importing parameters
  • Exporting parameters
  • Changing parameters
  • Returning parameters
  • Exceptions
  • Coding Examples


Parameters of Method BADI_ENJ_ALT_ADR

.

NameTypeData TypeDescriptionDefault Value
I_ACCNTImportingTYPE
NEWKO
Account or Matchcode for the Next Line Item
I_BELNRImportingTYPE
BKPF-BELNR
Accounting Document Number
I_BLARTImportingTYPE
BKPF-BLART
Document Type
I_BLDATImportingTYPE
BKPF-BLDAT
Document Date in Document
I_BUDATImportingTYPE
BKPF-BUDAT
Posting Date in the Document
I_BUKRSImportingTYPE
BKPF-BUKRS
Company Code
I_EMPFBImportingTYPE
BSEG-EMPFB
Payee/Payer
I_GJAHRImportingTYPE
BKPF-GJAHR
Fiscal Year
I_GSBERImportingTYPE
BSEG-GSBER
Business Area
I_KOARTImportingTYPE
BSEG-KOART
Account Type
I_MONATImportingTYPE
BKPF-MONAT
Fiscal Period
I_OKCODEImportingTYPE
C
I_SHKZGImportingTYPE
BSEG-SHKZG
Debit/Credit Indicator
I_WAERSImportingTYPE
BKPF-WAERS
Currency Key
I_XBLNRImportingTYPE
BKPF-XBLNR
Reference Document Number
I_XREF1ImportingTYPE
BSEG-XREF1
Business Partner Reference Key
I_XREF2ImportingTYPE
BSEG-XREF2
Business Partner Reference Key
I_XREF3ImportingTYPE
BSEG-XREF3
Reference Key for Line Item
E_RCExportingTYPE
C



Exceptions of Method BADI_ENJ_ALT_ADR

This method does not have any exceptions

Example ABAP coding

This is a private Method so the below code can only be executed from within the class itself. I.e. from another method of the class.

DATA: lo_class TYPE REF TO IF_EX_BADI_ENJ_ALT_ADR.
DATA: lv_E_RC TYPE C,
lv_I_ACCNT TYPE NEWKO,
lv_I_BELNR TYPE BKPF-BELNR,
lv_I_BLART TYPE BKPF-BLART,
lv_I_BLDAT TYPE BKPF-BLDAT,
lv_I_BUDAT TYPE BKPF-BUDAT,
lv_I_BUKRS TYPE BKPF-BUKRS,
lv_I_EMPFB TYPE BSEG-EMPFB,
lv_I_GJAHR TYPE BKPF-GJAHR,
lv_I_GSBER TYPE BSEG-GSBER,
lv_I_KOART TYPE BSEG-KOART,
lv_I_MONAT TYPE BKPF-MONAT,
lv_I_OKCODE TYPE C,
lv_I_SHKZG TYPE BSEG-SHKZG,
lv_I_WAERS TYPE BKPF-WAERS,
lv_I_XBLNR TYPE BKPF-XBLNR,
lv_I_XREF1 TYPE BSEG-XREF1,
lv_I_XREF2 TYPE BSEG-XREF2,
lv_I_XREF3 TYPE BSEG-XREF3,
lv_other TYPE c.

CALL METHOD lo_class=>BADI_ENJ_ALT_ADR(
EXPORTING
I_ACCNT = lv_I_ACCNT
I_BELNR = lv_I_BELNR
I_BLART = lv_I_BLART
I_BLDAT = lv_I_BLDAT
I_BUDAT = lv_I_BUDAT
I_BUKRS = lv_I_BUKRS
I_EMPFB = lv_I_EMPFB
I_GJAHR = lv_I_GJAHR
I_GSBER = lv_I_GSBER
I_KOART = lv_I_KOART
I_MONAT = lv_I_MONAT
I_OKCODE = lv_I_OKCODE
I_SHKZG = lv_I_SHKZG
I_WAERS = lv_I_WAERS
I_XBLNR = lv_I_XBLNR
I_XREF1 = lv_I_XREF1
I_XREF2 = lv_I_XREF2
I_XREF3 = lv_I_XREF3
IMPORTING
E_RC = lv_E_RC ).

Links to Related Class(s)

IF_EX_BA...
Full list of available SAP object classes

Search for further information about these or an SAP related objects



Comments on this SAP object

What made you want to lookup this SAP object? Please tell us what you were looking for and anything you would like to be included on this page!