SAP TTE_4_DOCUMENT_GET_GB Function Module for Get TTE Document









TTE_4_DOCUMENT_GET_GB is a standard tte 4 document get gb SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for Get TTE Document processing and below is the pattern details for this FM, showing its interface including any import and export parameters, exceptions etc. there is also a full "cut and paste" ABAP pattern code example, along with implementation ABAP coding, documentation and contribution comments specific to this or related objects.


See here to view full function module documentation and code listing for tte 4 document get gb FM, simply by entering the name TTE_4_DOCUMENT_GET_GB into the relevant SAP transaction such as SE37 or SE38.

Function Group: CA_TTE_PERS
Program Name: SAPLCA_TTE_PERS
Main Program: SAPLCA_TTE_PERS
Appliation area:
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:



Function TTE_4_DOCUMENT_GET_GB pattern details

In-order to call this FM within your sap programs, simply using the below ABAP pattern details to trigger the function call...or see the full ABAP code listing at the end of this article. You can simply cut and paste this code into your ABAP progrom as it is, including variable declarations.
CALL FUNCTION 'TTE_4_DOCUMENT_GET_GB'"Get TTE Document
EXPORTING
I_REFTOORIGINAL = "Original Document GUID

IMPORTING
O_DOCUMENT_ATR = "TTE Persistency Document

TABLES
* IT_HEADER = "Document header
* IT_TAXVALUE = "Document / Item tax value
* IT_PRODUCT = "Document product
* IT_PRTAXCL = "Document product tax class.
* IT_PRPROP = "Document product property
* IT_PARTNER = "Document business partner
* IT_PATAXCL = "Document business partner tax class.
* IT_PAPROP = "Document business partner property
* IT_PATAXNUM = "Document business partner tax number
* IT_CURRCONV = "Document curruncy conversion
* IT_COUNTRIES = "DocumentCountry Attr.
* IT_ITEM = "Input item
* IT_TAXCODEVALUE = "Document /Item TaxCodeValues
* IT_PAEXEMPVALU = "Document business partner tax exemption values certificate value
* OT_HEADER = "Document header
* OT_ITEM = "Output item
* OT_TAXEVENT = "Document / Item tax event
* OT_TAXEL = "Document / Item tax element
* OT_TAXVALUE = "Document / Item tax value
* OT_CURRCONV = "Document curruncy conversion
* OT_TRACE = "US Tax Interface : Communication Structure for Tax Calc.
* OT_TEXT = "Document document textes
* IT_TRANPROP = "Document transaction property
* OT_EXEMPT = "Output Exemptions
* OT_USITEM = "US Tax Interface : Communication Structure for Tax Calc.
* IT_ORGUNIT = "Document org unit
* IT_ITEMPART = "Document item partner
* IT_PRICEL = "Document / Item pricing element
* IT_TAXDATE = "Document tax date
* IT_TAXEVENT = "Document / Item tax event
* IT_TAXEL = "Document / Item tax element

EXCEPTIONS
NO_TTE_DOCUMENT = 1
.



IMPORTING Parameters details for TTE_4_DOCUMENT_GET_GB

I_REFTOORIGINAL - Original Document GUID

Data type: TTET_REFTOORIGINAL_PD
Optional: No
Call by Reference: Yes

EXPORTING Parameters details for TTE_4_DOCUMENT_GET_GB

O_DOCUMENT_ATR - TTE Persistency Document

Data type: TTEPDT_DOCUMENT
Optional: No
Call by Reference: No ( called with pass by value option)

TABLES Parameters details for TTE_4_DOCUMENT_GET_GB

IT_HEADER - Document header

Data type: TTEPDT_HEADER_COM_TT
Optional: Yes
Call by Reference: No ( called with pass by value option)

IT_TAXVALUE - Document / Item tax value

Data type: TTEPDT_TAXVALUE_COM_TT
Optional: Yes
Call by Reference: No ( called with pass by value option)

IT_PRODUCT - Document product

Data type: TTEPDT_PRODUCT_COM_TT
Optional: Yes
Call by Reference: No ( called with pass by value option)

IT_PRTAXCL - Document product tax class.

Data type: TTEPDT_PRTAXCL_COM_TT
Optional: Yes
Call by Reference: No ( called with pass by value option)

IT_PRPROP - Document product property

Data type: TTEPDT_PRPROP_COM_TT
Optional: Yes
Call by Reference: No ( called with pass by value option)

IT_PARTNER - Document business partner

Data type: TTEPDT_PARTNER_COM_TT
Optional: Yes
Call by Reference: No ( called with pass by value option)

IT_PATAXCL - Document business partner tax class.

Data type: TTEPDT_PATAXCL_COM_TT
Optional: Yes
Call by Reference: No ( called with pass by value option)

IT_PAPROP - Document business partner property

Data type: TTEPDT_PAPROP_COM_TT
Optional: Yes
Call by Reference: No ( called with pass by value option)

IT_PATAXNUM - Document business partner tax number

Data type: TTEPDT_PATAXNUM_COM_TT
Optional: Yes
Call by Reference: No ( called with pass by value option)

IT_CURRCONV - Document curruncy conversion

Data type: TTEPDT_CURRCONV_COM_TT
Optional: Yes
Call by Reference: No ( called with pass by value option)

IT_COUNTRIES - DocumentCountry Attr.

Data type: TTEPDT_COUNTRIES_COM_TT
Optional: Yes
Call by Reference: No ( called with pass by value option)

IT_ITEM - Input item

Data type: TTEPDT_ITEM_COM_TT
Optional: Yes
Call by Reference: No ( called with pass by value option)

IT_TAXCODEVALUE - Document /Item TaxCodeValues

Data type: TTEPDT_TAXCODEVALUE_COM_TT
Optional: Yes
Call by Reference: No ( called with pass by value option)

IT_PAEXEMPVALU - Document business partner tax exemption values certificate value

Data type: TTEPDT_EXEMPVALUE_COM_TT
Optional: Yes
Call by Reference: No ( called with pass by value option)

OT_HEADER - Document header

Data type: TTEPDT_OHEADER_COM_TT
Optional: Yes
Call by Reference: No ( called with pass by value option)

OT_ITEM - Output item

Data type: TTEPDT_OITEM_COM_TT
Optional: Yes
Call by Reference: No ( called with pass by value option)

OT_TAXEVENT - Document / Item tax event

Data type: TTEPDT_TAXEVENT_COM_TT
Optional: Yes
Call by Reference: No ( called with pass by value option)

OT_TAXEL - Document / Item tax element

Data type: TTEPDT_TAXEL_COM_TT
Optional: Yes
Call by Reference: No ( called with pass by value option)

OT_TAXVALUE - Document / Item tax value

Data type: TTEPDT_TAXVALUE_COM_TT
Optional: Yes
Call by Reference: No ( called with pass by value option)

OT_CURRCONV - Document curruncy conversion

Data type: TTEPDT_CURRCONV_COM_TT
Optional: Yes
Call by Reference: No ( called with pass by value option)

OT_TRACE - US Tax Interface : Communication Structure for Tax Calc.

Data type: TTEPDT_TRACE_COM_TT
Optional: Yes
Call by Reference: No ( called with pass by value option)

OT_TEXT - Document document textes

Data type: TTEPDT_TEXT_COM_TT
Optional: Yes
Call by Reference: No ( called with pass by value option)

IT_TRANPROP - Document transaction property

Data type: TTEPDT_TRANPROP_COM_TT
Optional: Yes
Call by Reference: No ( called with pass by value option)

OT_EXEMPT - Output Exemptions

Data type: TTEPDT_EXEMPT_COM_TT
Optional: Yes
Call by Reference: No ( called with pass by value option)

OT_USITEM - US Tax Interface : Communication Structure for Tax Calc.

Data type: TTEPDT_USITEM_COM_TT
Optional: Yes
Call by Reference: No ( called with pass by value option)

IT_ORGUNIT - Document org unit

Data type: TTEPDT_ORGUNIT_COM_TT
Optional: Yes
Call by Reference: No ( called with pass by value option)

IT_ITEMPART - Document item partner

Data type: TTEPDT_ITEMPART_COM_TT
Optional: Yes
Call by Reference: No ( called with pass by value option)

IT_PRICEL - Document / Item pricing element

Data type: TTEPDT_PRICEL_COM_TT
Optional: Yes
Call by Reference: No ( called with pass by value option)

IT_TAXDATE - Document tax date

Data type: TTEPDT_TAXDATE_COM_TT
Optional: Yes
Call by Reference: No ( called with pass by value option)

IT_TAXEVENT - Document / Item tax event

Data type: TTEPDT_TAXEVENT_COM_TT
Optional: Yes
Call by Reference: No ( called with pass by value option)

IT_TAXEL - Document / Item tax element

Data type: TTEPDT_TAXEL_COM_TT
Optional: Yes
Call by Reference: No ( called with pass by value option)

EXCEPTIONS details

NO_TTE_DOCUMENT - TTE document does not exist

Data type:
Optional: No
Call by Reference: No ( called with pass by value option)

Copy and paste ABAP code example for TTE_4_DOCUMENT_GET_GB Function Module

The ABAP code below is a full code listing to execute function module POPUP_TO_CONFIRM including all data declarations. The code uses the original data declarations rather than 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 newer method of declaring data variables on the fly. 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), which i why i have stuck to the origianl for this example.

DATA:
lt_it_header  TYPE STANDARD TABLE OF TTEPDT_HEADER_COM_TT, "   
lv_o_document_atr  TYPE TTEPDT_DOCUMENT, "   
lv_i_reftooriginal  TYPE TTET_REFTOORIGINAL_PD, "   
lv_no_tte_document  TYPE TTET_REFTOORIGINAL_PD, "   
lt_it_taxvalue  TYPE STANDARD TABLE OF TTEPDT_TAXVALUE_COM_TT, "   
lt_it_product  TYPE STANDARD TABLE OF TTEPDT_PRODUCT_COM_TT, "   
lt_it_prtaxcl  TYPE STANDARD TABLE OF TTEPDT_PRTAXCL_COM_TT, "   
lt_it_prprop  TYPE STANDARD TABLE OF TTEPDT_PRPROP_COM_TT, "   
lt_it_partner  TYPE STANDARD TABLE OF TTEPDT_PARTNER_COM_TT, "   
lt_it_pataxcl  TYPE STANDARD TABLE OF TTEPDT_PATAXCL_COM_TT, "   
lt_it_paprop  TYPE STANDARD TABLE OF TTEPDT_PAPROP_COM_TT, "   
lt_it_pataxnum  TYPE STANDARD TABLE OF TTEPDT_PATAXNUM_COM_TT, "   
lt_it_currconv  TYPE STANDARD TABLE OF TTEPDT_CURRCONV_COM_TT, "   
lt_it_countries  TYPE STANDARD TABLE OF TTEPDT_COUNTRIES_COM_TT, "   
lt_it_item  TYPE STANDARD TABLE OF TTEPDT_ITEM_COM_TT, "   
lt_it_taxcodevalue  TYPE STANDARD TABLE OF TTEPDT_TAXCODEVALUE_COM_TT, "   
lt_it_paexempvalu  TYPE STANDARD TABLE OF TTEPDT_EXEMPVALUE_COM_TT, "   
lt_ot_header  TYPE STANDARD TABLE OF TTEPDT_OHEADER_COM_TT, "   
lt_ot_item  TYPE STANDARD TABLE OF TTEPDT_OITEM_COM_TT, "   
lt_ot_taxevent  TYPE STANDARD TABLE OF TTEPDT_TAXEVENT_COM_TT, "   
lt_ot_taxel  TYPE STANDARD TABLE OF TTEPDT_TAXEL_COM_TT, "   
lt_ot_taxvalue  TYPE STANDARD TABLE OF TTEPDT_TAXVALUE_COM_TT, "   
lt_ot_currconv  TYPE STANDARD TABLE OF TTEPDT_CURRCONV_COM_TT, "   
lt_ot_trace  TYPE STANDARD TABLE OF TTEPDT_TRACE_COM_TT, "   
lt_ot_text  TYPE STANDARD TABLE OF TTEPDT_TEXT_COM_TT, "   
lt_it_tranprop  TYPE STANDARD TABLE OF TTEPDT_TRANPROP_COM_TT, "   
lt_ot_exempt  TYPE STANDARD TABLE OF TTEPDT_EXEMPT_COM_TT, "   
lt_ot_usitem  TYPE STANDARD TABLE OF TTEPDT_USITEM_COM_TT, "   
lt_it_orgunit  TYPE STANDARD TABLE OF TTEPDT_ORGUNIT_COM_TT, "   
lt_it_itempart  TYPE STANDARD TABLE OF TTEPDT_ITEMPART_COM_TT, "   
lt_it_pricel  TYPE STANDARD TABLE OF TTEPDT_PRICEL_COM_TT, "   
lt_it_taxdate  TYPE STANDARD TABLE OF TTEPDT_TAXDATE_COM_TT, "   
lt_it_taxevent  TYPE STANDARD TABLE OF TTEPDT_TAXEVENT_COM_TT, "   
lt_it_taxel  TYPE STANDARD TABLE OF TTEPDT_TAXEL_COM_TT. "   

  CALL FUNCTION 'TTE_4_DOCUMENT_GET_GB'  "Get TTE Document
    EXPORTING
         I_REFTOORIGINAL = lv_i_reftooriginal
    IMPORTING
         O_DOCUMENT_ATR = lv_o_document_atr
    TABLES
         IT_HEADER = lt_it_header
         IT_TAXVALUE = lt_it_taxvalue
         IT_PRODUCT = lt_it_product
         IT_PRTAXCL = lt_it_prtaxcl
         IT_PRPROP = lt_it_prprop
         IT_PARTNER = lt_it_partner
         IT_PATAXCL = lt_it_pataxcl
         IT_PAPROP = lt_it_paprop
         IT_PATAXNUM = lt_it_pataxnum
         IT_CURRCONV = lt_it_currconv
         IT_COUNTRIES = lt_it_countries
         IT_ITEM = lt_it_item
         IT_TAXCODEVALUE = lt_it_taxcodevalue
         IT_PAEXEMPVALU = lt_it_paexempvalu
         OT_HEADER = lt_ot_header
         OT_ITEM = lt_ot_item
         OT_TAXEVENT = lt_ot_taxevent
         OT_TAXEL = lt_ot_taxel
         OT_TAXVALUE = lt_ot_taxvalue
         OT_CURRCONV = lt_ot_currconv
         OT_TRACE = lt_ot_trace
         OT_TEXT = lt_ot_text
         IT_TRANPROP = lt_it_tranprop
         OT_EXEMPT = lt_ot_exempt
         OT_USITEM = lt_ot_usitem
         IT_ORGUNIT = lt_it_orgunit
         IT_ITEMPART = lt_it_itempart
         IT_PRICEL = lt_it_pricel
         IT_TAXDATE = lt_it_taxdate
         IT_TAXEVENT = lt_it_taxevent
         IT_TAXEL = lt_it_taxel
    EXCEPTIONS
        NO_TTE_DOCUMENT = 1
. " TTE_4_DOCUMENT_GET_GB




ABAP code using 7.40 inline data declarations to call FM TTE_4_DOCUMENT_GET_GB

The below ABAP code uses the newer in-line data declarations. This allows you to see the coding differences/benefits of the later inline syntax. Please note some of the newer syntax below, such as the @DATA is not available until 4.70 EHP 8.

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 


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!