SAP Function Modules

NOTAFISCAL_WRITE_DOCUMENT SAP Function module - CHDO NOTAFISCAL => Gen. by RSSCD000







NOTAFISCAL_WRITE_DOCUMENT is a standard SAP function module available within R/3 SAP systems depending on your version and release level. Below is the pattern details for this FM showing its interface including any import and export parameters, exceptions etc as well as any documentation contributions (Comments) specific to the object.

See here to view full function module documentation and code listing, simply by entering the name NOTAFISCAL_WRITE_DOCUMENT into the relevant SAP transaction such as SE37 or SE80.

Associated Function Group: IDNFBR
Released Date: Not Released
Processing type: Start update immediately (start immed)
update module start immediate settings


Pattern for FM NOTAFISCAL_WRITE_DOCUMENT - NOTAFISCAL WRITE DOCUMENT





CALL FUNCTION 'NOTAFISCAL_WRITE_DOCUMENT' "CHDO NOTAFISCAL => Gen. by RSSCD000
  EXPORTING
    objectid =                  " cdhdr-objectid
    tcode =                     " cdhdr-tcode
    utime =                     " cdhdr-utime
    udate =                     " cdhdr-udate
    username =                  " cdhdr-username
    planned_change_number = SPACE  " cdhdr-planchngnr
    object_change_indicator = 'U'  " cdhdr-change_ind
    planned_or_real_changes = SPACE  " cdhdr-change_ind
    no_change_pointers = SPACE  " cdhdr-change_ind
    upd_j_1bcte_d_docref = SPACE  " cdpos-chngind
    upd_j_1bcte_d_res = SPACE   " cdpos-chngind
    upd_j_1bnfadd_info = SPACE  " cdpos-chngind
    upd_j_1bnfcpd = SPACE       " cdpos-chngind
    n_j_1bnfdoc =               " j_1bnfdoc
    o_j_1bnfdoc =               " j_1bnfdoc
    upd_j_1bnfdoc = SPACE       " cdpos-chngind
    upd_j_1bnfftx = SPACE       " cdpos-chngind
    upd_j_1bnffuel = SPACE      " cdpos-chngind
    upd_j_1bnfimport_adi = SPACE  " cdpos-chngind
    upd_j_1bnfimport_di = SPACE  " cdpos-chngind
    upd_j_1bnflin = SPACE       " cdpos-chngind
    upd_j_1bnfnad = SPACE       " cdpos-chngind
    upd_j_1bnfpharmaceut = SPACE  " cdpos-chngind
    upd_j_1bnfref = SPACE       " cdpos-chngind
    upd_j_1bnfrefproc = SPACE   " cdpos-chngind
    upd_j_1bnfstx = SPACE       " cdpos-chngind
    upd_j_1bnfsugardeduc = SPACE  " cdpos-chngind
    upd_j_1bnfsugarsuppl = SPACE  " cdpos-chngind
    upd_j_1bnftradenotes = SPACE  " cdpos-chngind
    upd_j_1bnftrailer = SPACE   " cdpos-chngind
    upd_j_1bnftransvol = SPACE  " cdpos-chngind
    upd_j_1bnfvehicle = SPACE   " cdpos-chngind
  TABLES
    xj_1bcte_d_docref =         " idnfbrj_1bcte_d_docref
    yj_1bcte_d_docref =         " idnfbrj_1bcte_d_docref
    xj_1bcte_d_res =            " idnfbrj_1bcte_d_res
    yj_1bcte_d_res =            " idnfbrj_1bcte_d_res
    xj_1bnfadd_info =           " idnfbrj_1bnfadd_info
    yj_1bnfadd_info =           " idnfbrj_1bnfadd_info
    xj_1bnfcpd =                " idnfbrj_1bnfcpd
    yj_1bnfcpd =                " idnfbrj_1bnfcpd
    xj_1bnfftx =                " idnfbrj_1bnfftx
    yj_1bnfftx =                " idnfbrj_1bnfftx
    xj_1bnffuel =               " idnfbrj_1bnffuel
    yj_1bnffuel =               " idnfbrj_1bnffuel
    xj_1bnfimport_adi =         " idnfbrj_1bnfimport_adi
    yj_1bnfimport_adi =         " idnfbrj_1bnfimport_adi
    xj_1bnfimport_di =          " idnfbrj_1bnfimport_di
    yj_1bnfimport_di =          " idnfbrj_1bnfimport_di
    xj_1bnflin =                " idnfbrj_1bnflin
    yj_1bnflin =                " idnfbrj_1bnflin
    xj_1bnfnad =                " idnfbrj_1bnfnad
    yj_1bnfnad =                " idnfbrj_1bnfnad
    xj_1bnfpharmaceut =         " idnfbrj_1bnfpharmaceut
    yj_1bnfpharmaceut =         " idnfbrj_1bnfpharmaceut
    xj_1bnfref =                " idnfbrj_1bnfref
    yj_1bnfref =                " idnfbrj_1bnfref
    xj_1bnfrefproc =            " idnfbrj_1bnfrefproc
    yj_1bnfrefproc =            " idnfbrj_1bnfrefproc
    xj_1bnfstx =                " idnfbrj_1bnfstx
    yj_1bnfstx =                " idnfbrj_1bnfstx
    xj_1bnfsugardeduc =         " idnfbrj_1bnfsugardeduc
    yj_1bnfsugardeduc =         " idnfbrj_1bnfsugardeduc
    xj_1bnfsugarsuppl =         " idnfbrj_1bnfsugarsuppl
    yj_1bnfsugarsuppl =         " idnfbrj_1bnfsugarsuppl
    xj_1bnftradenotes =         " idnfbrj_1bnftradenotes
    yj_1bnftradenotes =         " idnfbrj_1bnftradenotes
    xj_1bnftrailer =            " idnfbrj_1bnftrailer
    yj_1bnftrailer =            " idnfbrj_1bnftrailer
    xj_1bnftransvol =           " idnfbrj_1bnftransvol
    yj_1bnftransvol =           " idnfbrj_1bnftransvol
    xj_1bnfvehicle =            " idnfbrj_1bnfvehicle
    yj_1bnfvehicle =            " idnfbrj_1bnfvehicle
    .  "  NOTAFISCAL_WRITE_DOCUMENT

ABAP code example for Function Module NOTAFISCAL_WRITE_DOCUMENT





The ABAP code below is a full code listing to execute function module NOTAFISCAL_WRITE_DOCUMENT including all data declarations. The code uses the latest in-line data DECLARATION SYNTAX but I have included an ABAP code snippet at the end to show how declarations would look using the original method of declaring data variables up front. This will allow you to compare and fully understand the new inline method. Please note some of the newer syntax such as the @DATA is not available until a later 4.70 service pack (SP8).

DATA:
it_xj_1bcte_d_docref  TYPE STANDARD TABLE OF IDNFBRJ_1BCTE_D_DOCREF,"TABLES PARAM
wa_xj_1bcte_d_docref  LIKE LINE OF it_xj_1bcte_d_docref ,
it_yj_1bcte_d_docref  TYPE STANDARD TABLE OF IDNFBRJ_1BCTE_D_DOCREF,"TABLES PARAM
wa_yj_1bcte_d_docref  LIKE LINE OF it_yj_1bcte_d_docref ,
it_xj_1bcte_d_res  TYPE STANDARD TABLE OF IDNFBRJ_1BCTE_D_RES,"TABLES PARAM
wa_xj_1bcte_d_res  LIKE LINE OF it_xj_1bcte_d_res ,
it_yj_1bcte_d_res  TYPE STANDARD TABLE OF IDNFBRJ_1BCTE_D_RES,"TABLES PARAM
wa_yj_1bcte_d_res  LIKE LINE OF it_yj_1bcte_d_res ,
it_xj_1bnfadd_info  TYPE STANDARD TABLE OF IDNFBRJ_1BNFADD_INFO,"TABLES PARAM
wa_xj_1bnfadd_info  LIKE LINE OF it_xj_1bnfadd_info ,
it_yj_1bnfadd_info  TYPE STANDARD TABLE OF IDNFBRJ_1BNFADD_INFO,"TABLES PARAM
wa_yj_1bnfadd_info  LIKE LINE OF it_yj_1bnfadd_info ,
it_xj_1bnfcpd  TYPE STANDARD TABLE OF IDNFBRJ_1BNFCPD,"TABLES PARAM
wa_xj_1bnfcpd  LIKE LINE OF it_xj_1bnfcpd ,
it_yj_1bnfcpd  TYPE STANDARD TABLE OF IDNFBRJ_1BNFCPD,"TABLES PARAM
wa_yj_1bnfcpd  LIKE LINE OF it_yj_1bnfcpd ,
it_xj_1bnfftx  TYPE STANDARD TABLE OF IDNFBRJ_1BNFFTX,"TABLES PARAM
wa_xj_1bnfftx  LIKE LINE OF it_xj_1bnfftx ,
it_yj_1bnfftx  TYPE STANDARD TABLE OF IDNFBRJ_1BNFFTX,"TABLES PARAM
wa_yj_1bnfftx  LIKE LINE OF it_yj_1bnfftx ,
it_xj_1bnffuel  TYPE STANDARD TABLE OF IDNFBRJ_1BNFFUEL,"TABLES PARAM
wa_xj_1bnffuel  LIKE LINE OF it_xj_1bnffuel ,
it_yj_1bnffuel  TYPE STANDARD TABLE OF IDNFBRJ_1BNFFUEL,"TABLES PARAM
wa_yj_1bnffuel  LIKE LINE OF it_yj_1bnffuel ,
it_xj_1bnfimport_adi  TYPE STANDARD TABLE OF IDNFBRJ_1BNFIMPORT_ADI,"TABLES PARAM
wa_xj_1bnfimport_adi  LIKE LINE OF it_xj_1bnfimport_adi ,
it_yj_1bnfimport_adi  TYPE STANDARD TABLE OF IDNFBRJ_1BNFIMPORT_ADI,"TABLES PARAM
wa_yj_1bnfimport_adi  LIKE LINE OF it_yj_1bnfimport_adi ,
it_xj_1bnfimport_di  TYPE STANDARD TABLE OF IDNFBRJ_1BNFIMPORT_DI,"TABLES PARAM
wa_xj_1bnfimport_di  LIKE LINE OF it_xj_1bnfimport_di ,
it_yj_1bnfimport_di  TYPE STANDARD TABLE OF IDNFBRJ_1BNFIMPORT_DI,"TABLES PARAM
wa_yj_1bnfimport_di  LIKE LINE OF it_yj_1bnfimport_di ,
it_xj_1bnflin  TYPE STANDARD TABLE OF IDNFBRJ_1BNFLIN,"TABLES PARAM
wa_xj_1bnflin  LIKE LINE OF it_xj_1bnflin ,
it_yj_1bnflin  TYPE STANDARD TABLE OF IDNFBRJ_1BNFLIN,"TABLES PARAM
wa_yj_1bnflin  LIKE LINE OF it_yj_1bnflin ,
it_xj_1bnfnad  TYPE STANDARD TABLE OF IDNFBRJ_1BNFNAD,"TABLES PARAM
wa_xj_1bnfnad  LIKE LINE OF it_xj_1bnfnad ,
it_yj_1bnfnad  TYPE STANDARD TABLE OF IDNFBRJ_1BNFNAD,"TABLES PARAM
wa_yj_1bnfnad  LIKE LINE OF it_yj_1bnfnad ,
it_xj_1bnfpharmaceut  TYPE STANDARD TABLE OF IDNFBRJ_1BNFPHARMACEUT,"TABLES PARAM
wa_xj_1bnfpharmaceut  LIKE LINE OF it_xj_1bnfpharmaceut ,
it_yj_1bnfpharmaceut  TYPE STANDARD TABLE OF IDNFBRJ_1BNFPHARMACEUT,"TABLES PARAM
wa_yj_1bnfpharmaceut  LIKE LINE OF it_yj_1bnfpharmaceut ,
it_xj_1bnfref  TYPE STANDARD TABLE OF IDNFBRJ_1BNFREF,"TABLES PARAM
wa_xj_1bnfref  LIKE LINE OF it_xj_1bnfref ,
it_yj_1bnfref  TYPE STANDARD TABLE OF IDNFBRJ_1BNFREF,"TABLES PARAM
wa_yj_1bnfref  LIKE LINE OF it_yj_1bnfref ,
it_xj_1bnfrefproc  TYPE STANDARD TABLE OF IDNFBRJ_1BNFREFPROC,"TABLES PARAM
wa_xj_1bnfrefproc  LIKE LINE OF it_xj_1bnfrefproc ,
it_yj_1bnfrefproc  TYPE STANDARD TABLE OF IDNFBRJ_1BNFREFPROC,"TABLES PARAM
wa_yj_1bnfrefproc  LIKE LINE OF it_yj_1bnfrefproc ,
it_xj_1bnfstx  TYPE STANDARD TABLE OF IDNFBRJ_1BNFSTX,"TABLES PARAM
wa_xj_1bnfstx  LIKE LINE OF it_xj_1bnfstx ,
it_yj_1bnfstx  TYPE STANDARD TABLE OF IDNFBRJ_1BNFSTX,"TABLES PARAM
wa_yj_1bnfstx  LIKE LINE OF it_yj_1bnfstx ,
it_xj_1bnfsugardeduc  TYPE STANDARD TABLE OF IDNFBRJ_1BNFSUGARDEDUC,"TABLES PARAM
wa_xj_1bnfsugardeduc  LIKE LINE OF it_xj_1bnfsugardeduc ,
it_yj_1bnfsugardeduc  TYPE STANDARD TABLE OF IDNFBRJ_1BNFSUGARDEDUC,"TABLES PARAM
wa_yj_1bnfsugardeduc  LIKE LINE OF it_yj_1bnfsugardeduc ,
it_xj_1bnfsugarsuppl  TYPE STANDARD TABLE OF IDNFBRJ_1BNFSUGARSUPPL,"TABLES PARAM
wa_xj_1bnfsugarsuppl  LIKE LINE OF it_xj_1bnfsugarsuppl ,
it_yj_1bnfsugarsuppl  TYPE STANDARD TABLE OF IDNFBRJ_1BNFSUGARSUPPL,"TABLES PARAM
wa_yj_1bnfsugarsuppl  LIKE LINE OF it_yj_1bnfsugarsuppl ,
it_xj_1bnftradenotes  TYPE STANDARD TABLE OF IDNFBRJ_1BNFTRADENOTES,"TABLES PARAM
wa_xj_1bnftradenotes  LIKE LINE OF it_xj_1bnftradenotes ,
it_yj_1bnftradenotes  TYPE STANDARD TABLE OF IDNFBRJ_1BNFTRADENOTES,"TABLES PARAM
wa_yj_1bnftradenotes  LIKE LINE OF it_yj_1bnftradenotes ,
it_xj_1bnftrailer  TYPE STANDARD TABLE OF IDNFBRJ_1BNFTRAILER,"TABLES PARAM
wa_xj_1bnftrailer  LIKE LINE OF it_xj_1bnftrailer ,
it_yj_1bnftrailer  TYPE STANDARD TABLE OF IDNFBRJ_1BNFTRAILER,"TABLES PARAM
wa_yj_1bnftrailer  LIKE LINE OF it_yj_1bnftrailer ,
it_xj_1bnftransvol  TYPE STANDARD TABLE OF IDNFBRJ_1BNFTRANSVOL,"TABLES PARAM
wa_xj_1bnftransvol  LIKE LINE OF it_xj_1bnftransvol ,
it_yj_1bnftransvol  TYPE STANDARD TABLE OF IDNFBRJ_1BNFTRANSVOL,"TABLES PARAM
wa_yj_1bnftransvol  LIKE LINE OF it_yj_1bnftransvol ,
it_xj_1bnfvehicle  TYPE STANDARD TABLE OF IDNFBRJ_1BNFVEHICLE,"TABLES PARAM
wa_xj_1bnfvehicle  LIKE LINE OF it_xj_1bnfvehicle ,
it_yj_1bnfvehicle  TYPE STANDARD TABLE OF IDNFBRJ_1BNFVEHICLE,"TABLES PARAM
wa_yj_1bnfvehicle  LIKE LINE OF it_yj_1bnfvehicle .


SELECT single OBJECTID
FROM CDHDR
INTO @DATA(ld_objectid).


SELECT single TCODE
FROM CDHDR
INTO @DATA(ld_tcode).


SELECT single UTIME
FROM CDHDR
INTO @DATA(ld_utime).


SELECT single UDATE
FROM CDHDR
INTO @DATA(ld_udate).


SELECT single USERNAME
FROM CDHDR
INTO @DATA(ld_username).


SELECT single PLANCHNGNR
FROM CDHDR
INTO @DATA(ld_planned_change_number).


SELECT single CHANGE_IND
FROM CDHDR
INTO @DATA(ld_object_change_indicator).


SELECT single CHANGE_IND
FROM CDHDR
INTO @DATA(ld_planned_or_real_changes).


SELECT single CHANGE_IND
FROM CDHDR
INTO @DATA(ld_no_change_pointers).


SELECT single CHNGIND
FROM CDPOS
INTO @DATA(ld_upd_j_1bcte_d_docref).


SELECT single CHNGIND
FROM CDPOS
INTO @DATA(ld_upd_j_1bcte_d_res).


SELECT single CHNGIND
FROM CDPOS
INTO @DATA(ld_upd_j_1bnfadd_info).


SELECT single CHNGIND
FROM CDPOS
INTO @DATA(ld_upd_j_1bnfcpd).

DATA(ld_n_j_1bnfdoc) = 'Check type of data required'.
DATA(ld_o_j_1bnfdoc) = 'Check type of data required'.

SELECT single CHNGIND
FROM CDPOS
INTO @DATA(ld_upd_j_1bnfdoc).


SELECT single CHNGIND
FROM CDPOS
INTO @DATA(ld_upd_j_1bnfftx).


SELECT single CHNGIND
FROM CDPOS
INTO @DATA(ld_upd_j_1bnffuel).


SELECT single CHNGIND
FROM CDPOS
INTO @DATA(ld_upd_j_1bnfimport_adi).


SELECT single CHNGIND
FROM CDPOS
INTO @DATA(ld_upd_j_1bnfimport_di).


SELECT single CHNGIND
FROM CDPOS
INTO @DATA(ld_upd_j_1bnflin).


SELECT single CHNGIND
FROM CDPOS
INTO @DATA(ld_upd_j_1bnfnad).


SELECT single CHNGIND
FROM CDPOS
INTO @DATA(ld_upd_j_1bnfpharmaceut).


SELECT single CHNGIND
FROM CDPOS
INTO @DATA(ld_upd_j_1bnfref).


SELECT single CHNGIND
FROM CDPOS
INTO @DATA(ld_upd_j_1bnfrefproc).


SELECT single CHNGIND
FROM CDPOS
INTO @DATA(ld_upd_j_1bnfstx).


SELECT single CHNGIND
FROM CDPOS
INTO @DATA(ld_upd_j_1bnfsugardeduc).


SELECT single CHNGIND
FROM CDPOS
INTO @DATA(ld_upd_j_1bnfsugarsuppl).


SELECT single CHNGIND
FROM CDPOS
INTO @DATA(ld_upd_j_1bnftradenotes).


SELECT single CHNGIND
FROM CDPOS
INTO @DATA(ld_upd_j_1bnftrailer).


SELECT single CHNGIND
FROM CDPOS
INTO @DATA(ld_upd_j_1bnftransvol).


SELECT single CHNGIND
FROM CDPOS
INTO @DATA(ld_upd_j_1bnfvehicle).


"populate fields of struture and append to itab
append wa_xj_1bcte_d_docref to it_xj_1bcte_d_docref.

"populate fields of struture and append to itab
append wa_yj_1bcte_d_docref to it_yj_1bcte_d_docref.

"populate fields of struture and append to itab
append wa_xj_1bcte_d_res to it_xj_1bcte_d_res.

"populate fields of struture and append to itab
append wa_yj_1bcte_d_res to it_yj_1bcte_d_res.

"populate fields of struture and append to itab
append wa_xj_1bnfadd_info to it_xj_1bnfadd_info.

"populate fields of struture and append to itab
append wa_yj_1bnfadd_info to it_yj_1bnfadd_info.

"populate fields of struture and append to itab
append wa_xj_1bnfcpd to it_xj_1bnfcpd.

"populate fields of struture and append to itab
append wa_yj_1bnfcpd to it_yj_1bnfcpd.

"populate fields of struture and append to itab
append wa_xj_1bnfftx to it_xj_1bnfftx.

"populate fields of struture and append to itab
append wa_yj_1bnfftx to it_yj_1bnfftx.

"populate fields of struture and append to itab
append wa_xj_1bnffuel to it_xj_1bnffuel.

"populate fields of struture and append to itab
append wa_yj_1bnffuel to it_yj_1bnffuel.

"populate fields of struture and append to itab
append wa_xj_1bnfimport_adi to it_xj_1bnfimport_adi.

"populate fields of struture and append to itab
append wa_yj_1bnfimport_adi to it_yj_1bnfimport_adi.

"populate fields of struture and append to itab
append wa_xj_1bnfimport_di to it_xj_1bnfimport_di.

"populate fields of struture and append to itab
append wa_yj_1bnfimport_di to it_yj_1bnfimport_di.

"populate fields of struture and append to itab
append wa_xj_1bnflin to it_xj_1bnflin.

"populate fields of struture and append to itab
append wa_yj_1bnflin to it_yj_1bnflin.

"populate fields of struture and append to itab
append wa_xj_1bnfnad to it_xj_1bnfnad.

"populate fields of struture and append to itab
append wa_yj_1bnfnad to it_yj_1bnfnad.

"populate fields of struture and append to itab
append wa_xj_1bnfpharmaceut to it_xj_1bnfpharmaceut.

"populate fields of struture and append to itab
append wa_yj_1bnfpharmaceut to it_yj_1bnfpharmaceut.

"populate fields of struture and append to itab
append wa_xj_1bnfref to it_xj_1bnfref.

"populate fields of struture and append to itab
append wa_yj_1bnfref to it_yj_1bnfref.

"populate fields of struture and append to itab
append wa_xj_1bnfrefproc to it_xj_1bnfrefproc.

"populate fields of struture and append to itab
append wa_yj_1bnfrefproc to it_yj_1bnfrefproc.

"populate fields of struture and append to itab
append wa_xj_1bnfstx to it_xj_1bnfstx.

"populate fields of struture and append to itab
append wa_yj_1bnfstx to it_yj_1bnfstx.

"populate fields of struture and append to itab
append wa_xj_1bnfsugardeduc to it_xj_1bnfsugardeduc.

"populate fields of struture and append to itab
append wa_yj_1bnfsugardeduc to it_yj_1bnfsugardeduc.

"populate fields of struture and append to itab
append wa_xj_1bnfsugarsuppl to it_xj_1bnfsugarsuppl.

"populate fields of struture and append to itab
append wa_yj_1bnfsugarsuppl to it_yj_1bnfsugarsuppl.

"populate fields of struture and append to itab
append wa_xj_1bnftradenotes to it_xj_1bnftradenotes.

"populate fields of struture and append to itab
append wa_yj_1bnftradenotes to it_yj_1bnftradenotes.

"populate fields of struture and append to itab
append wa_xj_1bnftrailer to it_xj_1bnftrailer.

"populate fields of struture and append to itab
append wa_yj_1bnftrailer to it_yj_1bnftrailer.

"populate fields of struture and append to itab
append wa_xj_1bnftransvol to it_xj_1bnftransvol.

"populate fields of struture and append to itab
append wa_yj_1bnftransvol to it_yj_1bnftransvol.

"populate fields of struture and append to itab
append wa_xj_1bnfvehicle to it_xj_1bnfvehicle.

"populate fields of struture and append to itab
append wa_yj_1bnfvehicle to it_yj_1bnfvehicle. . CALL FUNCTION 'NOTAFISCAL_WRITE_DOCUMENT' EXPORTING objectid = ld_objectid tcode = ld_tcode utime = ld_utime udate = ld_udate username = ld_username planned_change_number = ld_planned_change_number object_change_indicator = ld_object_change_indicator planned_or_real_changes = ld_planned_or_real_changes no_change_pointers = ld_no_change_pointers upd_j_1bcte_d_docref = ld_upd_j_1bcte_d_docref upd_j_1bcte_d_res = ld_upd_j_1bcte_d_res upd_j_1bnfadd_info = ld_upd_j_1bnfadd_info upd_j_1bnfcpd = ld_upd_j_1bnfcpd n_j_1bnfdoc = ld_n_j_1bnfdoc o_j_1bnfdoc = ld_o_j_1bnfdoc upd_j_1bnfdoc = ld_upd_j_1bnfdoc upd_j_1bnfftx = ld_upd_j_1bnfftx upd_j_1bnffuel = ld_upd_j_1bnffuel upd_j_1bnfimport_adi = ld_upd_j_1bnfimport_adi upd_j_1bnfimport_di = ld_upd_j_1bnfimport_di upd_j_1bnflin = ld_upd_j_1bnflin upd_j_1bnfnad = ld_upd_j_1bnfnad upd_j_1bnfpharmaceut = ld_upd_j_1bnfpharmaceut upd_j_1bnfref = ld_upd_j_1bnfref upd_j_1bnfrefproc = ld_upd_j_1bnfrefproc upd_j_1bnfstx = ld_upd_j_1bnfstx upd_j_1bnfsugardeduc = ld_upd_j_1bnfsugardeduc upd_j_1bnfsugarsuppl = ld_upd_j_1bnfsugarsuppl upd_j_1bnftradenotes = ld_upd_j_1bnftradenotes upd_j_1bnftrailer = ld_upd_j_1bnftrailer upd_j_1bnftransvol = ld_upd_j_1bnftransvol upd_j_1bnfvehicle = ld_upd_j_1bnfvehicle TABLES xj_1bcte_d_docref = it_xj_1bcte_d_docref yj_1bcte_d_docref = it_yj_1bcte_d_docref xj_1bcte_d_res = it_xj_1bcte_d_res yj_1bcte_d_res = it_yj_1bcte_d_res xj_1bnfadd_info = it_xj_1bnfadd_info yj_1bnfadd_info = it_yj_1bnfadd_info xj_1bnfcpd = it_xj_1bnfcpd yj_1bnfcpd = it_yj_1bnfcpd xj_1bnfftx = it_xj_1bnfftx yj_1bnfftx = it_yj_1bnfftx xj_1bnffuel = it_xj_1bnffuel yj_1bnffuel = it_yj_1bnffuel xj_1bnfimport_adi = it_xj_1bnfimport_adi yj_1bnfimport_adi = it_yj_1bnfimport_adi xj_1bnfimport_di = it_xj_1bnfimport_di yj_1bnfimport_di = it_yj_1bnfimport_di xj_1bnflin = it_xj_1bnflin yj_1bnflin = it_yj_1bnflin xj_1bnfnad = it_xj_1bnfnad yj_1bnfnad = it_yj_1bnfnad xj_1bnfpharmaceut = it_xj_1bnfpharmaceut yj_1bnfpharmaceut = it_yj_1bnfpharmaceut xj_1bnfref = it_xj_1bnfref yj_1bnfref = it_yj_1bnfref xj_1bnfrefproc = it_xj_1bnfrefproc yj_1bnfrefproc = it_yj_1bnfrefproc xj_1bnfstx = it_xj_1bnfstx yj_1bnfstx = it_yj_1bnfstx xj_1bnfsugardeduc = it_xj_1bnfsugardeduc yj_1bnfsugardeduc = it_yj_1bnfsugardeduc xj_1bnfsugarsuppl = it_xj_1bnfsugarsuppl yj_1bnfsugarsuppl = it_yj_1bnfsugarsuppl xj_1bnftradenotes = it_xj_1bnftradenotes yj_1bnftradenotes = it_yj_1bnftradenotes xj_1bnftrailer = it_xj_1bnftrailer yj_1bnftrailer = it_yj_1bnftrailer xj_1bnftransvol = it_xj_1bnftransvol yj_1bnftransvol = it_yj_1bnftransvol xj_1bnfvehicle = it_xj_1bnfvehicle yj_1bnfvehicle = it_yj_1bnfvehicle . " NOTAFISCAL_WRITE_DOCUMENT
IF SY-SUBRC EQ 0. "All OK ENDIF.







ABAP code to compare 7.40 inline data declaration with original syntax

The below ABAP code uses the older none in-line data declarations. This allows you to see the coding differences/benefits of the later inline syntax. It may also be useful if you are using an older version of SAP as some of the newer syntax above, such as the @DATA is not available until 4.70 EHP 8.

DATA:
ld_objectid  TYPE CDHDR-OBJECTID ,
it_xj_1bcte_d_docref  TYPE STANDARD TABLE OF IDNFBRJ_1BCTE_D_DOCREF ,
wa_xj_1bcte_d_docref  LIKE LINE OF it_xj_1bcte_d_docref,
ld_tcode  TYPE CDHDR-TCODE ,
it_yj_1bcte_d_docref  TYPE STANDARD TABLE OF IDNFBRJ_1BCTE_D_DOCREF ,
wa_yj_1bcte_d_docref  LIKE LINE OF it_yj_1bcte_d_docref,
ld_utime  TYPE CDHDR-UTIME ,
it_xj_1bcte_d_res  TYPE STANDARD TABLE OF IDNFBRJ_1BCTE_D_RES ,
wa_xj_1bcte_d_res  LIKE LINE OF it_xj_1bcte_d_res,
it_yj_1bcte_d_res  TYPE STANDARD TABLE OF IDNFBRJ_1BCTE_D_RES ,
wa_yj_1bcte_d_res  LIKE LINE OF it_yj_1bcte_d_res,
ld_udate  TYPE CDHDR-UDATE ,
it_xj_1bnfadd_info  TYPE STANDARD TABLE OF IDNFBRJ_1BNFADD_INFO ,
wa_xj_1bnfadd_info  LIKE LINE OF it_xj_1bnfadd_info,
ld_username  TYPE CDHDR-USERNAME ,
it_yj_1bnfadd_info  TYPE STANDARD TABLE OF IDNFBRJ_1BNFADD_INFO ,
wa_yj_1bnfadd_info  LIKE LINE OF it_yj_1bnfadd_info,
ld_planned_change_number  TYPE CDHDR-PLANCHNGNR ,
it_xj_1bnfcpd  TYPE STANDARD TABLE OF IDNFBRJ_1BNFCPD ,
wa_xj_1bnfcpd  LIKE LINE OF it_xj_1bnfcpd,
ld_object_change_indicator  TYPE CDHDR-CHANGE_IND ,
it_yj_1bnfcpd  TYPE STANDARD TABLE OF IDNFBRJ_1BNFCPD ,
wa_yj_1bnfcpd  LIKE LINE OF it_yj_1bnfcpd,
ld_planned_or_real_changes  TYPE CDHDR-CHANGE_IND ,
it_xj_1bnfftx  TYPE STANDARD TABLE OF IDNFBRJ_1BNFFTX ,
wa_xj_1bnfftx  LIKE LINE OF it_xj_1bnfftx,
ld_no_change_pointers  TYPE CDHDR-CHANGE_IND ,
it_yj_1bnfftx  TYPE STANDARD TABLE OF IDNFBRJ_1BNFFTX ,
wa_yj_1bnfftx  LIKE LINE OF it_yj_1bnfftx,
ld_upd_j_1bcte_d_docref  TYPE CDPOS-CHNGIND ,
it_xj_1bnffuel  TYPE STANDARD TABLE OF IDNFBRJ_1BNFFUEL ,
wa_xj_1bnffuel  LIKE LINE OF it_xj_1bnffuel,
ld_upd_j_1bcte_d_res  TYPE CDPOS-CHNGIND ,
it_yj_1bnffuel  TYPE STANDARD TABLE OF IDNFBRJ_1BNFFUEL ,
wa_yj_1bnffuel  LIKE LINE OF it_yj_1bnffuel,
ld_upd_j_1bnfadd_info  TYPE CDPOS-CHNGIND ,
it_xj_1bnfimport_adi  TYPE STANDARD TABLE OF IDNFBRJ_1BNFIMPORT_ADI ,
wa_xj_1bnfimport_adi  LIKE LINE OF it_xj_1bnfimport_adi,
ld_upd_j_1bnfcpd  TYPE CDPOS-CHNGIND ,
it_yj_1bnfimport_adi  TYPE STANDARD TABLE OF IDNFBRJ_1BNFIMPORT_ADI ,
wa_yj_1bnfimport_adi  LIKE LINE OF it_yj_1bnfimport_adi,
ld_n_j_1bnfdoc  TYPE J_1BNFDOC ,
it_xj_1bnfimport_di  TYPE STANDARD TABLE OF IDNFBRJ_1BNFIMPORT_DI ,
wa_xj_1bnfimport_di  LIKE LINE OF it_xj_1bnfimport_di,
ld_o_j_1bnfdoc  TYPE J_1BNFDOC ,
it_yj_1bnfimport_di  TYPE STANDARD TABLE OF IDNFBRJ_1BNFIMPORT_DI ,
wa_yj_1bnfimport_di  LIKE LINE OF it_yj_1bnfimport_di,
ld_upd_j_1bnfdoc  TYPE CDPOS-CHNGIND ,
it_xj_1bnflin  TYPE STANDARD TABLE OF IDNFBRJ_1BNFLIN ,
wa_xj_1bnflin  LIKE LINE OF it_xj_1bnflin,
ld_upd_j_1bnfftx  TYPE CDPOS-CHNGIND ,
it_yj_1bnflin  TYPE STANDARD TABLE OF IDNFBRJ_1BNFLIN ,
wa_yj_1bnflin  LIKE LINE OF it_yj_1bnflin,
ld_upd_j_1bnffuel  TYPE CDPOS-CHNGIND ,
it_xj_1bnfnad  TYPE STANDARD TABLE OF IDNFBRJ_1BNFNAD ,
wa_xj_1bnfnad  LIKE LINE OF it_xj_1bnfnad,
ld_upd_j_1bnfimport_adi  TYPE CDPOS-CHNGIND ,
it_yj_1bnfnad  TYPE STANDARD TABLE OF IDNFBRJ_1BNFNAD ,
wa_yj_1bnfnad  LIKE LINE OF it_yj_1bnfnad,
ld_upd_j_1bnfimport_di  TYPE CDPOS-CHNGIND ,
ld_upd_j_1bnflin  TYPE CDPOS-CHNGIND ,
it_xj_1bnfpharmaceut  TYPE STANDARD TABLE OF IDNFBRJ_1BNFPHARMACEUT ,
wa_xj_1bnfpharmaceut  LIKE LINE OF it_xj_1bnfpharmaceut,
ld_upd_j_1bnfnad  TYPE CDPOS-CHNGIND ,
it_yj_1bnfpharmaceut  TYPE STANDARD TABLE OF IDNFBRJ_1BNFPHARMACEUT ,
wa_yj_1bnfpharmaceut  LIKE LINE OF it_yj_1bnfpharmaceut,
ld_upd_j_1bnfpharmaceut  TYPE CDPOS-CHNGIND ,
it_xj_1bnfref  TYPE STANDARD TABLE OF IDNFBRJ_1BNFREF ,
wa_xj_1bnfref  LIKE LINE OF it_xj_1bnfref,
it_yj_1bnfref  TYPE STANDARD TABLE OF IDNFBRJ_1BNFREF ,
wa_yj_1bnfref  LIKE LINE OF it_yj_1bnfref,
ld_upd_j_1bnfref  TYPE CDPOS-CHNGIND ,
ld_upd_j_1bnfrefproc  TYPE CDPOS-CHNGIND ,
it_xj_1bnfrefproc  TYPE STANDARD TABLE OF IDNFBRJ_1BNFREFPROC ,
wa_xj_1bnfrefproc  LIKE LINE OF it_xj_1bnfrefproc,
it_yj_1bnfrefproc  TYPE STANDARD TABLE OF IDNFBRJ_1BNFREFPROC ,
wa_yj_1bnfrefproc  LIKE LINE OF it_yj_1bnfrefproc,
ld_upd_j_1bnfstx  TYPE CDPOS-CHNGIND ,
it_xj_1bnfstx  TYPE STANDARD TABLE OF IDNFBRJ_1BNFSTX ,
wa_xj_1bnfstx  LIKE LINE OF it_xj_1bnfstx,
ld_upd_j_1bnfsugardeduc  TYPE CDPOS-CHNGIND ,
it_yj_1bnfstx  TYPE STANDARD TABLE OF IDNFBRJ_1BNFSTX ,
wa_yj_1bnfstx  LIKE LINE OF it_yj_1bnfstx,
ld_upd_j_1bnfsugarsuppl  TYPE CDPOS-CHNGIND ,
ld_upd_j_1bnftradenotes  TYPE CDPOS-CHNGIND ,
it_xj_1bnfsugardeduc  TYPE STANDARD TABLE OF IDNFBRJ_1BNFSUGARDEDUC ,
wa_xj_1bnfsugardeduc  LIKE LINE OF it_xj_1bnfsugardeduc,
ld_upd_j_1bnftrailer  TYPE CDPOS-CHNGIND ,
it_yj_1bnfsugardeduc  TYPE STANDARD TABLE OF IDNFBRJ_1BNFSUGARDEDUC ,
wa_yj_1bnfsugardeduc  LIKE LINE OF it_yj_1bnfsugardeduc,
ld_upd_j_1bnftransvol  TYPE CDPOS-CHNGIND ,
it_xj_1bnfsugarsuppl  TYPE STANDARD TABLE OF IDNFBRJ_1BNFSUGARSUPPL ,
wa_xj_1bnfsugarsuppl  LIKE LINE OF it_xj_1bnfsugarsuppl,
ld_upd_j_1bnfvehicle  TYPE CDPOS-CHNGIND ,
it_yj_1bnfsugarsuppl  TYPE STANDARD TABLE OF IDNFBRJ_1BNFSUGARSUPPL ,
wa_yj_1bnfsugarsuppl  LIKE LINE OF it_yj_1bnfsugarsuppl,
it_xj_1bnftradenotes  TYPE STANDARD TABLE OF IDNFBRJ_1BNFTRADENOTES ,
wa_xj_1bnftradenotes  LIKE LINE OF it_xj_1bnftradenotes,
it_yj_1bnftradenotes  TYPE STANDARD TABLE OF IDNFBRJ_1BNFTRADENOTES ,
wa_yj_1bnftradenotes  LIKE LINE OF it_yj_1bnftradenotes,
it_xj_1bnftrailer  TYPE STANDARD TABLE OF IDNFBRJ_1BNFTRAILER ,
wa_xj_1bnftrailer  LIKE LINE OF it_xj_1bnftrailer,
it_yj_1bnftrailer  TYPE STANDARD TABLE OF IDNFBRJ_1BNFTRAILER ,
wa_yj_1bnftrailer  LIKE LINE OF it_yj_1bnftrailer,
it_xj_1bnftransvol  TYPE STANDARD TABLE OF IDNFBRJ_1BNFTRANSVOL ,
wa_xj_1bnftransvol  LIKE LINE OF it_xj_1bnftransvol,
it_yj_1bnftransvol  TYPE STANDARD TABLE OF IDNFBRJ_1BNFTRANSVOL ,
wa_yj_1bnftransvol  LIKE LINE OF it_yj_1bnftransvol,
it_xj_1bnfvehicle  TYPE STANDARD TABLE OF IDNFBRJ_1BNFVEHICLE ,
wa_xj_1bnfvehicle  LIKE LINE OF it_xj_1bnfvehicle,
it_yj_1bnfvehicle  TYPE STANDARD TABLE OF IDNFBRJ_1BNFVEHICLE ,
wa_yj_1bnfvehicle  LIKE LINE OF it_yj_1bnfvehicle.


SELECT single OBJECTID
FROM CDHDR
INTO ld_objectid.


"populate fields of struture and append to itab
append wa_xj_1bcte_d_docref to it_xj_1bcte_d_docref.

SELECT single TCODE
FROM CDHDR
INTO ld_tcode.


"populate fields of struture and append to itab
append wa_yj_1bcte_d_docref to it_yj_1bcte_d_docref.

SELECT single UTIME
FROM CDHDR
INTO ld_utime.


"populate fields of struture and append to itab
append wa_xj_1bcte_d_res to it_xj_1bcte_d_res.

"populate fields of struture and append to itab
append wa_yj_1bcte_d_res to it_yj_1bcte_d_res.

SELECT single UDATE
FROM CDHDR
INTO ld_udate.


"populate fields of struture and append to itab
append wa_xj_1bnfadd_info to it_xj_1bnfadd_info.

SELECT single USERNAME
FROM CDHDR
INTO ld_username.


"populate fields of struture and append to itab
append wa_yj_1bnfadd_info to it_yj_1bnfadd_info.

SELECT single PLANCHNGNR
FROM CDHDR
INTO ld_planned_change_number.


"populate fields of struture and append to itab
append wa_xj_1bnfcpd to it_xj_1bnfcpd.

SELECT single CHANGE_IND
FROM CDHDR
INTO ld_object_change_indicator.


"populate fields of struture and append to itab
append wa_yj_1bnfcpd to it_yj_1bnfcpd.

SELECT single CHANGE_IND
FROM CDHDR
INTO ld_planned_or_real_changes.


"populate fields of struture and append to itab
append wa_xj_1bnfftx to it_xj_1bnfftx.

SELECT single CHANGE_IND
FROM CDHDR
INTO ld_no_change_pointers.


"populate fields of struture and append to itab
append wa_yj_1bnfftx to it_yj_1bnfftx.

SELECT single CHNGIND
FROM CDPOS
INTO ld_upd_j_1bcte_d_docref.


"populate fields of struture and append to itab
append wa_xj_1bnffuel to it_xj_1bnffuel.

SELECT single CHNGIND
FROM CDPOS
INTO ld_upd_j_1bcte_d_res.


"populate fields of struture and append to itab
append wa_yj_1bnffuel to it_yj_1bnffuel.

SELECT single CHNGIND
FROM CDPOS
INTO ld_upd_j_1bnfadd_info.


"populate fields of struture and append to itab
append wa_xj_1bnfimport_adi to it_xj_1bnfimport_adi.

SELECT single CHNGIND
FROM CDPOS
INTO ld_upd_j_1bnfcpd.


"populate fields of struture and append to itab
append wa_yj_1bnfimport_adi to it_yj_1bnfimport_adi.
ld_n_j_1bnfdoc = 'Check type of data required'.

"populate fields of struture and append to itab
append wa_xj_1bnfimport_di to it_xj_1bnfimport_di.
ld_o_j_1bnfdoc = 'Check type of data required'.

"populate fields of struture and append to itab
append wa_yj_1bnfimport_di to it_yj_1bnfimport_di.

SELECT single CHNGIND
FROM CDPOS
INTO ld_upd_j_1bnfdoc.


"populate fields of struture and append to itab
append wa_xj_1bnflin to it_xj_1bnflin.

SELECT single CHNGIND
FROM CDPOS
INTO ld_upd_j_1bnfftx.


"populate fields of struture and append to itab
append wa_yj_1bnflin to it_yj_1bnflin.

SELECT single CHNGIND
FROM CDPOS
INTO ld_upd_j_1bnffuel.


"populate fields of struture and append to itab
append wa_xj_1bnfnad to it_xj_1bnfnad.

SELECT single CHNGIND
FROM CDPOS
INTO ld_upd_j_1bnfimport_adi.


"populate fields of struture and append to itab
append wa_yj_1bnfnad to it_yj_1bnfnad.

SELECT single CHNGIND
FROM CDPOS
INTO ld_upd_j_1bnfimport_di.


SELECT single CHNGIND
FROM CDPOS
INTO ld_upd_j_1bnflin.


"populate fields of struture and append to itab
append wa_xj_1bnfpharmaceut to it_xj_1bnfpharmaceut.

SELECT single CHNGIND
FROM CDPOS
INTO ld_upd_j_1bnfnad.


"populate fields of struture and append to itab
append wa_yj_1bnfpharmaceut to it_yj_1bnfpharmaceut.

SELECT single CHNGIND
FROM CDPOS
INTO ld_upd_j_1bnfpharmaceut.


"populate fields of struture and append to itab
append wa_xj_1bnfref to it_xj_1bnfref.

"populate fields of struture and append to itab
append wa_yj_1bnfref to it_yj_1bnfref.

SELECT single CHNGIND
FROM CDPOS
INTO ld_upd_j_1bnfref.


SELECT single CHNGIND
FROM CDPOS
INTO ld_upd_j_1bnfrefproc.


"populate fields of struture and append to itab
append wa_xj_1bnfrefproc to it_xj_1bnfrefproc.

"populate fields of struture and append to itab
append wa_yj_1bnfrefproc to it_yj_1bnfrefproc.

SELECT single CHNGIND
FROM CDPOS
INTO ld_upd_j_1bnfstx.


"populate fields of struture and append to itab
append wa_xj_1bnfstx to it_xj_1bnfstx.

SELECT single CHNGIND
FROM CDPOS
INTO ld_upd_j_1bnfsugardeduc.


"populate fields of struture and append to itab
append wa_yj_1bnfstx to it_yj_1bnfstx.

SELECT single CHNGIND
FROM CDPOS
INTO ld_upd_j_1bnfsugarsuppl.


SELECT single CHNGIND
FROM CDPOS
INTO ld_upd_j_1bnftradenotes.


"populate fields of struture and append to itab
append wa_xj_1bnfsugardeduc to it_xj_1bnfsugardeduc.

SELECT single CHNGIND
FROM CDPOS
INTO ld_upd_j_1bnftrailer.


"populate fields of struture and append to itab
append wa_yj_1bnfsugardeduc to it_yj_1bnfsugardeduc.

SELECT single CHNGIND
FROM CDPOS
INTO ld_upd_j_1bnftransvol.


"populate fields of struture and append to itab
append wa_xj_1bnfsugarsuppl to it_xj_1bnfsugarsuppl.

SELECT single CHNGIND
FROM CDPOS
INTO ld_upd_j_1bnfvehicle.


"populate fields of struture and append to itab
append wa_yj_1bnfsugarsuppl to it_yj_1bnfsugarsuppl.

"populate fields of struture and append to itab
append wa_xj_1bnftradenotes to it_xj_1bnftradenotes.

"populate fields of struture and append to itab
append wa_yj_1bnftradenotes to it_yj_1bnftradenotes.

"populate fields of struture and append to itab
append wa_xj_1bnftrailer to it_xj_1bnftrailer.

"populate fields of struture and append to itab
append wa_yj_1bnftrailer to it_yj_1bnftrailer.

"populate fields of struture and append to itab
append wa_xj_1bnftransvol to it_xj_1bnftransvol.

"populate fields of struture and append to itab
append wa_yj_1bnftransvol to it_yj_1bnftransvol.

"populate fields of struture and append to itab
append wa_xj_1bnfvehicle to it_xj_1bnfvehicle.

"populate fields of struture and append to itab
append wa_yj_1bnfvehicle to it_yj_1bnfvehicle.

Contribute (Add Comments)

Please help keep this info upto date and use the comments section below to add useful hints, tips and information specific to this SAP function. This will then be available for you and other users to easily find by simply searching on the object name NOTAFISCAL_WRITE_DOCUMENT or its description.