Coding With Fun
Home Docker Django Node.js Articles Python pip guide FAQ Policy

How to select data from sap table bseg into internal table?


Asked by Blaise Atkinson on Dec 02, 2021 FAQ



SELECT * *restrict ABAP select to first 10 rows UP TO 10 ROWS FROM BSEG INTO TABLE IT_BSEG. *Select data and declare internal table using in-line method @DATA *SELECT * * FROM BSEG * INTO TABLE @DATA (IT_BSEG2).
Just so,
SAP BSEG Table Fields structure Field Note Data Element Domain MANDT Client MANDT MANDT BUKRS Company Code BUKRS BUKRS BELNR Accounting Document Number BELNR_D BELNR GJAHR Fiscal Year GJAHR GJAHR 39 more rows ...
Thereof, Key fields are marked in blue. Additionally we provide an overview of foreign key relationships, if any, that link BSEG to other SAP tables. BSEG stores the line items for accounting documents. Accounting documents make up the financials of your organisation. Header lines are stored in table BKPF.
Accordingly,
Append the data in the work area to the declared internal table We pass an internal table to script in the form of standard text Declare a work area of type thead. Fill standard text header with following values. Call function 'SAVE TEXT' to save the value of internal table in a standard text Ø Call this standard text in the script form
And,
You can set a breakpoint to let SAPup or SAPehpi stop just after finishing phase PARDIST_SHD, and check the entry for BSEG in table DDXTT on shadow instance. If there is no entry with MODEFLAG=U for BSEG in table DDXTT, you can ensure that conversion will not happen on BSEG afterwards.