ABAP OO Class Methods

CREATE_NF_ITEM SAP Method - Create NF item called from MAP_DATA_TO_NF







Below is documentation, parameters and attributes of ABAP Method CREATE_NF_ITEM within SAP class J1BCONSI. There is also a number of example ABAP code snipts to help you implement this method.

This method is available within SAP systems depending on your version and release level and you can view further information by entering the class name J1BCONSI into relevant SAP transactions such as SE24 or SE80, and then selecting the method you are interested in. Also check out the contributions below to view or add related hints, tips, example screen shots and any other information.


SAP Class method belongs too

J1BCONSI

Method Name

CREATE_NF_ITEM

Method Type

Instance Method:   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.






Importing Parameters:

Below is a list of importing parameters associated with this method, including its name, description and data type


I_WAERS " Currency Key TYPE WAERS
I_SPRAS " Language Key TYPE SPRAS
I_REGIO " Region (State, Province, County) TYPE REGIO
I_PSTDAT " Posting date TYPE J_1BPSTDAT
I_LAND1 " Country Key TYPE LAND1
I_KALSM " Procedure (pricing, output control, acct. det., costing,...) TYPE KALSM_D
I_ITMTYP " Nota Fiscal Item Type TYPE J_1BITMTYP
I_DOCDAT " Document date TYPE J_1BDOCDAT
IT_RKWA " Table type for RKWA TYPE J1BRKWA_TAB
IT_MSEG " MSEG TYPE TY_MSEG

Changing Parameters:


IFS_J1BAO " CFOP determination for incoming movements and their return TYPE J_1BAO

Exceptions:



Example ABAP coding


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


DATA:
ld_I_WAERS TYPE WAERS ,
ld_I_SPRAS TYPE SPRAS ,
ld_I_REGIO TYPE REGIO ,
ld_I_PSTDAT TYPE J_1BPSTDAT ,
ld_I_LAND1 TYPE LAND1 ,
ld_I_KALSM TYPE KALSM_D ,
ld_I_ITMTYP TYPE J_1BITMTYP ,
ld_I_DOCDAT TYPE J_1BDOCDAT ,
ld_IT_RKWA TYPE J1BRKWA_TAB ,
ld_IT_MSEG TYPE TY_MSEG ,
ld_IFS_J1BAO TYPE J_1BAO.

" ld_I_WAERS = "
" ld_I_SPRAS = "
" ld_I_REGIO = "
" ld_I_PSTDAT = "
" ld_I_LAND1 = "
" ld_I_KALSM = "
" ld_I_ITMTYP = "
" ld_I_DOCDAT = "
" ld_IT_RKWA = "
" ld_IT_MSEG = "

DATA: lo_J1BCONSI TYPE REF TO J1BCONSI .
CALL METHOD lo_J1BCONSI->CREATE_NF_ITEM(
EXPORTING
I_WAERS = ld_I_WAERS
I_SPRAS = ld_I_SPRAS
I_REGIO = ld_I_REGIO
I_PSTDAT = ld_I_PSTDAT
I_LAND1 = ld_I_LAND1
I_KALSM = ld_I_KALSM
I_ITMTYP = ld_I_ITMTYP
I_DOCDAT = ld_I_DOCDAT
IT_RKWA = ld_IT_RKWA
IT_MSEG = ld_IT_MSEG
CHANGING
IFS_J1BAO = ld_IFS_J1BAO ).