ABAP Select data from SAP table FIWTUS_S_1099ODATA_ITEM into internal table
Get Example source ABAP code based on a different SAP table
Below is a number of ABAP code snippets to demonstrate how to select data from SAP FIWTUS_S_1099ODATA_ITEM table and store it within an internal table, including using the newer @DATA inline declaration methods. It also shows you various ways to process this data using ABAP work area, inline declaration or field symbols including executing all the relevant CONVERSION_EXIT routines specific to FIWTUS_S_1099ODATA_ITEM. See here for more generic Select statement tips.
Sometimes data within SAP is stored within the database table in a different format to what it is displayed to the user. These input/output conversation FM routines are what translates the data between the two formats.
There is also a full declaration of the FIWTUS_S_1099ODATA_ITEM table where each field has a char/string type for you to simply copy and paste. This allows you to use processing that is only available to these field types such as the CONCATENATE statement.
DATA: IT_FIWTUS_S_1099ODATA_ITEM TYPE STANDARD TABLE OF FIWTUS_S_1099ODATA_ITEM, WA_FIWTUS_S_1099ODATA_ITEM TYPE FIWTUS_S_1099ODATA_ITEM, GD_STR TYPE STRING. DATA: lo_typedescr type REF TO cl_abap_typedescr. DATA: lv_fieldname type fieldname. FIELD-SYMBOLS: <FIELD> TYPE any. FIELD-SYMBOLS: <FIWTUS_S_1099ODATA_ITEM> TYPE FIWTUS_S_1099ODATA_ITEM. *Process all fields in table header/work area as string values PERFORM process_as_string_field_values CHANGING wa_FIWTUS_S_1099ODATA_ITEM. SELECT * *restrict ABAP select to first 10 rows UP TO 10 ROWS FROM FIWTUS_S_1099ODATA_ITEM INTO TABLE IT_FIWTUS_S_1099ODATA_ITEM. *Select data and declare internal table using in-line method @DATA *SELECT * * FROM FIWTUS_S_1099ODATA_ITEM * INTO TABLE @DATA(IT_FIWTUS_S_1099ODATA_ITEM2). *--Further methods of using ABAP code to select data from SAP database tables *You can also declare the header/work area using the in-line DATA declaration method READ TABLE IT_FIWTUS_S_1099ODATA_ITEM INDEX 1 INTO DATA(WA_FIWTUS_S_1099ODATA_ITEM2). *Demonstrate how to loop at an internal table and update values using a FIELD-SYMBOL LOOP AT IT_FIWTUS_S_1099ODATA_ITEM ASSIGNING <FIWTUS_S_1099ODATA_ITEM>.*To update a field value using a field symbol simply change the value via the field symbol pointer
<FIWTUS_S_1099ODATA_ITEM>-ACCT_LIFNR = 1.
<FIWTUS_S_1099ODATA_ITEM>-PATNR_TAXNUMBER = 1.
<FIWTUS_S_1099ODATA_ITEM>-PATNR_NAME1 = 1.
<FIWTUS_S_1099ODATA_ITEM>-PATNR_NAME2 = 1.
<FIWTUS_S_1099ODATA_ITEM>-PATNR_APT_NUM = 1.
ENDLOOP. LOOP AT IT_FIWTUS_S_1099ODATA_ITEM INTO WA_FIWTUS_S_1099ODATA_ITEM. *Write horizonal line to screen report. WRITE:/ sy-uline. *Write selected data to screen/report before conversion. WRITE:/ sy-vline, WA_FIWTUS_S_1099ODATA_ITEM-PATNR_HOUSE_NUM1, sy-vline,
WA_FIWTUS_S_1099ODATA_ITEM-PATNR_STREET, sy-vline,
WA_FIWTUS_S_1099ODATA_ITEM-PATNR_STREET2, sy-vline,
WA_FIWTUS_S_1099ODATA_ITEM-PATNR_PO_BOX, sy-vline,
WA_FIWTUS_S_1099ODATA_ITEM-PATNR_CITY1, sy-vline,
WA_FIWTUS_S_1099ODATA_ITEM-PATNR_REGION, sy-vline.
ENDLOOP. *Add any further fields from structure WA_FIWTUS_S_1099ODATA_ITEM you want to display... WRITE:/ sy-uline. * Aternatively use generic code to Write field values (and NAME) to screen report DO. ASSIGN COMPONENT sy-index OF STRUCTURE wa_FIWTUS_S_1099ODATA_ITEM TO <field>. IF sy-subrc <> 0. EXIT. ENDIF. WRITE:/ 'Field Value', <field>, sy-vline. gd_str = <field> . lo_typedescr ?= CL_ABAP_DATADESCR=>DESCRIBE_BY_DATA( <field> ). lv_fieldname = lo_typedescr->GET_RELATIVE_NAME( ). WRITE:/ 'Field Name', lv_fieldname. ENDDO. *Redo loop but convert all fields from internal to out value LOOP AT IT_FIWTUS_S_1099ODATA_ITEM INTO WA_FIWTUS_S_1099ODATA_ITEM. *Write horizonal line to screen report. WRITE:/ sy-uline. *Convert all fields to display/output versions using conversion routines PERFORM convert_all_field_values CHANGING wa_EKKO. ENDLOOP. *&---------------------------------------------------------------------* *& Form convert_all_field_values *&---------------------------------------------------------------------* FORM convert_all_field_values CHANGING p_EKKO LIKE wa_EKKO. DATA: ld_input(1000) TYPE c, ld_output(1000) TYPE C.
*Conversion exit AC152, internal->external for field TOT_UNEMPLOYMENT_COMP_AMT CALL FUNCTION 'CONVERSION_EXIT_AC152_OUTPUT' EXPORTING input = WA_FIWTUS_S_1099ODATA_ITEM-TOT_UNEMPLOYMENT_COMP_AMT IMPORTING output = ld_input.
WRITE:/ 'Org Value:', WA_FIWTUS_S_1099ODATA_ITEM-TOT_UNEMPLOYMENT_COMP_AMT.
WRITE:/ 'New Value:', ld_input.
*Conversion exit AC152, internal->external for field TOT_STATE_TAX_REFUNDS_AMT CALL FUNCTION 'CONVERSION_EXIT_AC152_OUTPUT' EXPORTING input = WA_FIWTUS_S_1099ODATA_ITEM-TOT_STATE_TAX_REFUNDS_AMT IMPORTING output = ld_input.
WRITE:/ 'Org Value:', WA_FIWTUS_S_1099ODATA_ITEM-TOT_STATE_TAX_REFUNDS_AMT.
WRITE:/ 'New Value:', ld_input.
*Conversion exit AC152, internal->external for field TOT_TAXABLE_GRANTS_AMT CALL FUNCTION 'CONVERSION_EXIT_AC152_OUTPUT' EXPORTING input = WA_FIWTUS_S_1099ODATA_ITEM-TOT_TAXABLE_GRANTS_AMT IMPORTING output = ld_input.
WRITE:/ 'Org Value:', WA_FIWTUS_S_1099ODATA_ITEM-TOT_TAXABLE_GRANTS_AMT.
WRITE:/ 'New Value:', ld_input.
*Conversion exit AC152, internal->external for field TOT_AGRICULTURE_PAYMENTS_AMT CALL FUNCTION 'CONVERSION_EXIT_AC152_OUTPUT' EXPORTING input = WA_FIWTUS_S_1099ODATA_ITEM-TOT_AGRICULTURE_PAYMENTS_AMT IMPORTING output = ld_input.
WRITE:/ 'Org Value:', WA_FIWTUS_S_1099ODATA_ITEM-TOT_AGRICULTURE_PAYMENTS_AMT.
WRITE:/ 'New Value:', ld_input.
*Conversion exit AC152, internal->external for field TOT_TRADE_OR_BUSINESS_AMT CALL FUNCTION 'CONVERSION_EXIT_AC152_OUTPUT' EXPORTING input = WA_FIWTUS_S_1099ODATA_ITEM-TOT_TRADE_OR_BUSINESS_AMT IMPORTING output = ld_input.
WRITE:/ 'Org Value:', WA_FIWTUS_S_1099ODATA_ITEM-TOT_TRADE_OR_BUSINESS_AMT.
WRITE:/ 'New Value:', ld_input.
*Conversion exit AC152, internal->external for field TOT_ATAA_PAYMENTS_AMT CALL FUNCTION 'CONVERSION_EXIT_AC152_OUTPUT' EXPORTING input = WA_FIWTUS_S_1099ODATA_ITEM-TOT_ATAA_PAYMENTS_AMT IMPORTING output = ld_input.
WRITE:/ 'Org Value:', WA_FIWTUS_S_1099ODATA_ITEM-TOT_ATAA_PAYMENTS_AMT.
WRITE:/ 'New Value:', ld_input.
*Conversion exit AC152, internal->external for field TOT_STATE_W_T CALL FUNCTION 'CONVERSION_EXIT_AC152_OUTPUT' EXPORTING input = WA_FIWTUS_S_1099ODATA_ITEM-TOT_STATE_W_T IMPORTING output = ld_input.
WRITE:/ 'Org Value:', WA_FIWTUS_S_1099ODATA_ITEM-TOT_STATE_W_T.
WRITE:/ 'New Value:', ld_input.
*Conversion exit AC152, internal->external for field TOT_FED_W_T CALL FUNCTION 'CONVERSION_EXIT_AC152_OUTPUT' EXPORTING input = WA_FIWTUS_S_1099ODATA_ITEM-TOT_FED_W_T IMPORTING output = ld_input.
WRITE:/ 'Org Value:', WA_FIWTUS_S_1099ODATA_ITEM-TOT_FED_W_T.
WRITE:/ 'New Value:', ld_input.
*Conversion exit AC152, internal->external for field TOT_RENT_AMT CALL FUNCTION 'CONVERSION_EXIT_AC152_OUTPUT' EXPORTING input = WA_FIWTUS_S_1099ODATA_ITEM-TOT_RENT_AMT IMPORTING output = ld_input.
WRITE:/ 'Org Value:', WA_FIWTUS_S_1099ODATA_ITEM-TOT_RENT_AMT.
WRITE:/ 'New Value:', ld_input.
*Conversion exit AC152, internal->external for field TOT_ROYALTIES_AMT CALL FUNCTION 'CONVERSION_EXIT_AC152_OUTPUT' EXPORTING input = WA_FIWTUS_S_1099ODATA_ITEM-TOT_ROYALTIES_AMT IMPORTING output = ld_input.
WRITE:/ 'Org Value:', WA_FIWTUS_S_1099ODATA_ITEM-TOT_ROYALTIES_AMT.
WRITE:/ 'New Value:', ld_input.
*Conversion exit AC152, internal->external for field TOT_OTHER_INCOME_AMT CALL FUNCTION 'CONVERSION_EXIT_AC152_OUTPUT' EXPORTING input = WA_FIWTUS_S_1099ODATA_ITEM-TOT_OTHER_INCOME_AMT IMPORTING output = ld_input.
WRITE:/ 'Org Value:', WA_FIWTUS_S_1099ODATA_ITEM-TOT_OTHER_INCOME_AMT.
WRITE:/ 'New Value:', ld_input.
*Conversion exit AC152, internal->external for field TOT_FISHING_BOAT_AMT CALL FUNCTION 'CONVERSION_EXIT_AC152_OUTPUT' EXPORTING input = WA_FIWTUS_S_1099ODATA_ITEM-TOT_FISHING_BOAT_AMT IMPORTING output = ld_input.
WRITE:/ 'Org Value:', WA_FIWTUS_S_1099ODATA_ITEM-TOT_FISHING_BOAT_AMT.
WRITE:/ 'New Value:', ld_input.
*Conversion exit AC152, internal->external for field TOT_NONEMPLOYEE_COMP_AMT CALL FUNCTION 'CONVERSION_EXIT_AC152_OUTPUT' EXPORTING input = WA_FIWTUS_S_1099ODATA_ITEM-TOT_NONEMPLOYEE_COMP_AMT IMPORTING output = ld_input.
WRITE:/ 'Org Value:', WA_FIWTUS_S_1099ODATA_ITEM-TOT_NONEMPLOYEE_COMP_AMT.
WRITE:/ 'New Value:', ld_input.
*Conversion exit AC152, internal->external for field TOT_CON_PROD_AMT CALL FUNCTION 'CONVERSION_EXIT_AC152_OUTPUT' EXPORTING input = WA_FIWTUS_S_1099ODATA_ITEM-TOT_CON_PROD_AMT IMPORTING output = ld_input.
WRITE:/ 'Org Value:', WA_FIWTUS_S_1099ODATA_ITEM-TOT_CON_PROD_AMT.
WRITE:/ 'New Value:', ld_input.
*Conversion exit AC152, internal->external for field TOT_EGP_PAYMT_AMT CALL FUNCTION 'CONVERSION_EXIT_AC152_OUTPUT' EXPORTING input = WA_FIWTUS_S_1099ODATA_ITEM-TOT_EGP_PAYMT_AMT IMPORTING output = ld_input.
WRITE:/ 'Org Value:', WA_FIWTUS_S_1099ODATA_ITEM-TOT_EGP_PAYMT_AMT.
WRITE:/ 'New Value:', ld_input.
*Conversion exit AC152, internal->external for field TOT_MD_HEALTH_PAYMT_AMT CALL FUNCTION 'CONVERSION_EXIT_AC152_OUTPUT' EXPORTING input = WA_FIWTUS_S_1099ODATA_ITEM-TOT_MD_HEALTH_PAYMT_AMT IMPORTING output = ld_input.
WRITE:/ 'Org Value:', WA_FIWTUS_S_1099ODATA_ITEM-TOT_MD_HEALTH_PAYMT_AMT.
WRITE:/ 'New Value:', ld_input.
*Conversion exit AC152, internal->external for field TOT_SUB_PAYMT_AMT CALL FUNCTION 'CONVERSION_EXIT_AC152_OUTPUT' EXPORTING input = WA_FIWTUS_S_1099ODATA_ITEM-TOT_SUB_PAYMT_AMT IMPORTING output = ld_input.
WRITE:/ 'Org Value:', WA_FIWTUS_S_1099ODATA_ITEM-TOT_SUB_PAYMT_AMT.
WRITE:/ 'New Value:', ld_input.
*Conversion exit AC152, internal->external for field TOT_CORP_INSUR_AMT CALL FUNCTION 'CONVERSION_EXIT_AC152_OUTPUT' EXPORTING input = WA_FIWTUS_S_1099ODATA_ITEM-TOT_CORP_INSUR_AMT IMPORTING output = ld_input.
WRITE:/ 'Org Value:', WA_FIWTUS_S_1099ODATA_ITEM-TOT_CORP_INSUR_AMT.
WRITE:/ 'New Value:', ld_input.
*Conversion exit AC152, internal->external for field TOT_GPP_ATTORNEY_AMT CALL FUNCTION 'CONVERSION_EXIT_AC152_OUTPUT' EXPORTING input = WA_FIWTUS_S_1099ODATA_ITEM-TOT_GPP_ATTORNEY_AMT IMPORTING output = ld_input.
WRITE:/ 'Org Value:', WA_FIWTUS_S_1099ODATA_ITEM-TOT_GPP_ATTORNEY_AMT.
WRITE:/ 'New Value:', ld_input.
*Conversion exit AC152, internal->external for field TOT_409A_DEFERRALS_AMT CALL FUNCTION 'CONVERSION_EXIT_AC152_OUTPUT' EXPORTING input = WA_FIWTUS_S_1099ODATA_ITEM-TOT_409A_DEFERRALS_AMT IMPORTING output = ld_input.
WRITE:/ 'Org Value:', WA_FIWTUS_S_1099ODATA_ITEM-TOT_409A_DEFERRALS_AMT.
WRITE:/ 'New Value:', ld_input.
*Conversion exit AC152, internal->external for field TOT_409A_INCOME_AMT CALL FUNCTION 'CONVERSION_EXIT_AC152_OUTPUT' EXPORTING input = WA_FIWTUS_S_1099ODATA_ITEM-TOT_409A_INCOME_AMT IMPORTING output = ld_input.
WRITE:/ 'Org Value:', WA_FIWTUS_S_1099ODATA_ITEM-TOT_409A_INCOME_AMT.
WRITE:/ 'New Value:', ld_input.
*Conversion exit AC152, internal->external for field TOT_INT_AMT CALL FUNCTION 'CONVERSION_EXIT_AC152_OUTPUT' EXPORTING input = WA_FIWTUS_S_1099ODATA_ITEM-TOT_INT_AMT IMPORTING output = ld_input.
WRITE:/ 'Org Value:', WA_FIWTUS_S_1099ODATA_ITEM-TOT_INT_AMT.
WRITE:/ 'New Value:', ld_input.
*Conversion exit AC152, internal->external for field TOT_EARLY_WITHDRAWAL_AMT CALL FUNCTION 'CONVERSION_EXIT_AC152_OUTPUT' EXPORTING input = WA_FIWTUS_S_1099ODATA_ITEM-TOT_EARLY_WITHDRAWAL_AMT IMPORTING output = ld_input.
WRITE:/ 'Org Value:', WA_FIWTUS_S_1099ODATA_ITEM-TOT_EARLY_WITHDRAWAL_AMT.
WRITE:/ 'New Value:', ld_input.
*Conversion exit AC152, internal->external for field TOT_INT_SAVINGS_BONDS_AMT CALL FUNCTION 'CONVERSION_EXIT_AC152_OUTPUT' EXPORTING input = WA_FIWTUS_S_1099ODATA_ITEM-TOT_INT_SAVINGS_BONDS_AMT IMPORTING output = ld_input.
WRITE:/ 'Org Value:', WA_FIWTUS_S_1099ODATA_ITEM-TOT_INT_SAVINGS_BONDS_AMT.
WRITE:/ 'New Value:', ld_input.
*Conversion exit AC152, internal->external for field TOT_INVESTMENT_EXPENSES_AMT CALL FUNCTION 'CONVERSION_EXIT_AC152_OUTPUT' EXPORTING input = WA_FIWTUS_S_1099ODATA_ITEM-TOT_INVESTMENT_EXPENSES_AMT IMPORTING output = ld_input.
WRITE:/ 'Org Value:', WA_FIWTUS_S_1099ODATA_ITEM-TOT_INVESTMENT_EXPENSES_AMT.
WRITE:/ 'New Value:', ld_input.
*Conversion exit AC152, internal->external for field TOT_FOREIGN_TAX_AMT CALL FUNCTION 'CONVERSION_EXIT_AC152_OUTPUT' EXPORTING input = WA_FIWTUS_S_1099ODATA_ITEM-TOT_FOREIGN_TAX_AMT IMPORTING output = ld_input.
WRITE:/ 'Org Value:', WA_FIWTUS_S_1099ODATA_ITEM-TOT_FOREIGN_TAX_AMT.
WRITE:/ 'New Value:', ld_input.
*Conversion exit AC152, internal->external for field TOT_FOREIGN_COUNTRY_AMT CALL FUNCTION 'CONVERSION_EXIT_AC152_OUTPUT' EXPORTING input = WA_FIWTUS_S_1099ODATA_ITEM-TOT_FOREIGN_COUNTRY_AMT IMPORTING output = ld_input.
WRITE:/ 'Org Value:', WA_FIWTUS_S_1099ODATA_ITEM-TOT_FOREIGN_COUNTRY_AMT.
WRITE:/ 'New Value:', ld_input.
*Conversion exit AC152, internal->external for field TOT_GROSS_AMT CALL FUNCTION 'CONVERSION_EXIT_AC152_OUTPUT' EXPORTING input = WA_FIWTUS_S_1099ODATA_ITEM-TOT_GROSS_AMT IMPORTING output = ld_input.
WRITE:/ 'Org Value:', WA_FIWTUS_S_1099ODATA_ITEM-TOT_GROSS_AMT.
WRITE:/ 'New Value:', ld_input.
*Conversion exit AC152, internal->external for field TOT_AMOUNT_01 CALL FUNCTION 'CONVERSION_EXIT_AC152_OUTPUT' EXPORTING input = WA_FIWTUS_S_1099ODATA_ITEM-TOT_AMOUNT_01 IMPORTING output = ld_input.
WRITE:/ 'Org Value:', WA_FIWTUS_S_1099ODATA_ITEM-TOT_AMOUNT_01.
WRITE:/ 'New Value:', ld_input.
*Conversion exit AC152, internal->external for field TOT_AMOUNT_02 CALL FUNCTION 'CONVERSION_EXIT_AC152_OUTPUT' EXPORTING input = WA_FIWTUS_S_1099ODATA_ITEM-TOT_AMOUNT_02 IMPORTING output = ld_input.
WRITE:/ 'Org Value:', WA_FIWTUS_S_1099ODATA_ITEM-TOT_AMOUNT_02.
WRITE:/ 'New Value:', ld_input.
*Conversion exit AC152, internal->external for field TOT_AMOUNT_03 CALL FUNCTION 'CONVERSION_EXIT_AC152_OUTPUT' EXPORTING input = WA_FIWTUS_S_1099ODATA_ITEM-TOT_AMOUNT_03 IMPORTING output = ld_input.
WRITE:/ 'Org Value:', WA_FIWTUS_S_1099ODATA_ITEM-TOT_AMOUNT_03.
WRITE:/ 'New Value:', ld_input.
*Conversion exit AC152, internal->external for field TOT_AMOUNT_04 CALL FUNCTION 'CONVERSION_EXIT_AC152_OUTPUT' EXPORTING input = WA_FIWTUS_S_1099ODATA_ITEM-TOT_AMOUNT_04 IMPORTING output = ld_input.
WRITE:/ 'Org Value:', WA_FIWTUS_S_1099ODATA_ITEM-TOT_AMOUNT_04.
WRITE:/ 'New Value:', ld_input.
*Conversion exit AC152, internal->external for field TOT_AMOUNT_05 CALL FUNCTION 'CONVERSION_EXIT_AC152_OUTPUT' EXPORTING input = WA_FIWTUS_S_1099ODATA_ITEM-TOT_AMOUNT_05 IMPORTING output = ld_input.
WRITE:/ 'Org Value:', WA_FIWTUS_S_1099ODATA_ITEM-TOT_AMOUNT_05.
WRITE:/ 'New Value:', ld_input.
*Conversion exit AC152, internal->external for field TOT_AMOUNT_06 CALL FUNCTION 'CONVERSION_EXIT_AC152_OUTPUT' EXPORTING input = WA_FIWTUS_S_1099ODATA_ITEM-TOT_AMOUNT_06 IMPORTING output = ld_input.
WRITE:/ 'Org Value:', WA_FIWTUS_S_1099ODATA_ITEM-TOT_AMOUNT_06.
WRITE:/ 'New Value:', ld_input.
*Conversion exit AC152, internal->external for field TOT_AMOUNT_07 CALL FUNCTION 'CONVERSION_EXIT_AC152_OUTPUT' EXPORTING input = WA_FIWTUS_S_1099ODATA_ITEM-TOT_AMOUNT_07 IMPORTING output = ld_input.
WRITE:/ 'Org Value:', WA_FIWTUS_S_1099ODATA_ITEM-TOT_AMOUNT_07.
WRITE:/ 'New Value:', ld_input.
*Conversion exit AC152, internal->external for field TOT_AMOUNT_08 CALL FUNCTION 'CONVERSION_EXIT_AC152_OUTPUT' EXPORTING input = WA_FIWTUS_S_1099ODATA_ITEM-TOT_AMOUNT_08 IMPORTING output = ld_input.
WRITE:/ 'Org Value:', WA_FIWTUS_S_1099ODATA_ITEM-TOT_AMOUNT_08.
WRITE:/ 'New Value:', ld_input.
*Conversion exit AC152, internal->external for field TOT_AMOUNT_09 CALL FUNCTION 'CONVERSION_EXIT_AC152_OUTPUT' EXPORTING input = WA_FIWTUS_S_1099ODATA_ITEM-TOT_AMOUNT_09 IMPORTING output = ld_input.
WRITE:/ 'Org Value:', WA_FIWTUS_S_1099ODATA_ITEM-TOT_AMOUNT_09.
WRITE:/ 'New Value:', ld_input.
*Conversion exit AC152, internal->external for field TOT_AMOUNT_10 CALL FUNCTION 'CONVERSION_EXIT_AC152_OUTPUT' EXPORTING input = WA_FIWTUS_S_1099ODATA_ITEM-TOT_AMOUNT_10 IMPORTING output = ld_input.
WRITE:/ 'Org Value:', WA_FIWTUS_S_1099ODATA_ITEM-TOT_AMOUNT_10.
WRITE:/ 'New Value:', ld_input.
*Conversion exit AC152, internal->external for field TOT_AMOUNT_11 CALL FUNCTION 'CONVERSION_EXIT_AC152_OUTPUT' EXPORTING input = WA_FIWTUS_S_1099ODATA_ITEM-TOT_AMOUNT_11 IMPORTING output = ld_input.
WRITE:/ 'Org Value:', WA_FIWTUS_S_1099ODATA_ITEM-TOT_AMOUNT_11.
WRITE:/ 'New Value:', ld_input.
*Conversion exit AC152, internal->external for field TOT_AMOUNT_12 CALL FUNCTION 'CONVERSION_EXIT_AC152_OUTPUT' EXPORTING input = WA_FIWTUS_S_1099ODATA_ITEM-TOT_AMOUNT_12 IMPORTING output = ld_input.
WRITE:/ 'Org Value:', WA_FIWTUS_S_1099ODATA_ITEM-TOT_AMOUNT_12.
WRITE:/ 'New Value:', ld_input.
ENDFORM. *&---------------------------------------------------------------------* *& Form process_as_string_field_values *&---------------------------------------------------------------------* FORM process_as_string_field_values CHANGING p_EKKO LIKE wa_EKKO. TYPES: BEGIN OF T_FIWTUS_S_1099ODATA_ITEM_STR,
ACCT_LIFNR TYPE STRING,
PATNR_TAXNUMBER TYPE STRING,
PATNR_NAME1 TYPE STRING,
PATNR_NAME2 TYPE STRING,
PATNR_APT_NUM TYPE STRING,
PATNR_HOUSE_NUM1 TYPE STRING,
PATNR_STREET TYPE STRING,
PATNR_STREET2 TYPE STRING,
PATNR_PO_BOX TYPE STRING,
PATNR_CITY1 TYPE STRING,
PATNR_REGION TYPE STRING,
PATNR_CTRY TYPE STRING,
PATNR_POST_CODE1 TYPE STRING,
PATNR_POST_CODE2 TYPE STRING,
PATNR_PO_BOX_LOC TYPE STRING,
PATNR_PO_BOX_REG TYPE STRING,
TOT_UNEMPLOYMENT_COMP_AMT TYPE STRING,
TOT_STATE_TAX_REFUNDS_AMT TYPE STRING,
TOT_TAXABLE_GRANTS_AMT TYPE STRING,
TOT_AGRICULTURE_PAYMENTS_AMT TYPE STRING,
TOT_TRADE_OR_BUSINESS_AMT TYPE STRING,
TOT_ATAA_PAYMENTS_AMT TYPE STRING,
TOT_STATE_W_T TYPE STRING,
TOT_FED_W_T TYPE STRING,
TOT_RENT_AMT TYPE STRING,
TOT_ROYALTIES_AMT TYPE STRING,
TOT_OTHER_INCOME_AMT TYPE STRING,
TOT_FISHING_BOAT_AMT TYPE STRING,
TOT_NONEMPLOYEE_COMP_AMT TYPE STRING,
TOT_CON_PROD_AMT TYPE STRING,
TOT_EGP_PAYMT_AMT TYPE STRING,
TOT_MD_HEALTH_PAYMT_AMT TYPE STRING,
TOT_SUB_PAYMT_AMT TYPE STRING,
TOT_CORP_INSUR_AMT TYPE STRING,
TOT_GPP_ATTORNEY_AMT TYPE STRING,
TOT_409A_DEFERRALS_AMT TYPE STRING,
TOT_409A_INCOME_AMT TYPE STRING,
TOT_INT_AMT TYPE STRING,
TOT_EARLY_WITHDRAWAL_AMT TYPE STRING,
TOT_INT_SAVINGS_BONDS_AMT TYPE STRING,
TOT_INVESTMENT_EXPENSES_AMT TYPE STRING,
TOT_FOREIGN_TAX_AMT TYPE STRING,
TOT_FOREIGN_COUNTRY_AMT TYPE STRING,
US_1099INT_TAX TYPE STRING,
US_1099INT_PRM TYPE STRING,
US_1099INT_ACT TYPE STRING,
US_1099INT_DIS TYPE STRING,
US_1099INT_BOND TYPE STRING,
US_1099INT_BOND_PRM TYPE STRING,
TOT_GROSS_AMT TYPE STRING,
TOT_AMOUNT_01 TYPE STRING,
TOT_AMOUNT_02 TYPE STRING,
TOT_AMOUNT_03 TYPE STRING,
TOT_AMOUNT_04 TYPE STRING,
TOT_AMOUNT_05 TYPE STRING,
TOT_AMOUNT_06 TYPE STRING,
TOT_AMOUNT_07 TYPE STRING,
TOT_AMOUNT_08 TYPE STRING,
TOT_AMOUNT_09 TYPE STRING,
TOT_AMOUNT_10 TYPE STRING,
TOT_AMOUNT_11 TYPE STRING,
TOT_AMOUNT_12 TYPE STRING,
US_1099K_CARDNA TYPE STRING,
US_1099_FATCA TYPE STRING,
HWAER TYPE STRING,
PAYEEADRESS TYPE STRING,
SECOND_TIN_NOTICE TYPE STRING,END OF T_EKKO_STR. DATA: WA_FIWTUS_S_1099ODATA_ITEM_STR type T_EKKO_STR. DATA: ld_text TYPE string. LOOP AT IT_EKKO INTO WA_EKKO. MOVE-CORRESPONDING wa_EKKO TO WA_EKKO_STR. CONCATENATE: sy-vline
WA_FIWTUS_S_1099ODATA_ITEM_STR-ACCT_LIFNR sy-vline
WA_FIWTUS_S_1099ODATA_ITEM_STR-PATNR_TAXNUMBER sy-vline
WA_FIWTUS_S_1099ODATA_ITEM_STR-PATNR_NAME1 sy-vline
WA_FIWTUS_S_1099ODATA_ITEM_STR-PATNR_NAME2 sy-vline
WA_FIWTUS_S_1099ODATA_ITEM_STR-PATNR_APT_NUM sy-vline
WA_FIWTUS_S_1099ODATA_ITEM_STR-PATNR_HOUSE_NUM1 sy-vline
WA_FIWTUS_S_1099ODATA_ITEM_STR-PATNR_STREET sy-vline
WA_FIWTUS_S_1099ODATA_ITEM_STR-PATNR_STREET2 sy-vline
WA_FIWTUS_S_1099ODATA_ITEM_STR-PATNR_PO_BOX sy-vline
WA_FIWTUS_S_1099ODATA_ITEM_STR-PATNR_CITY1 sy-vline
WA_FIWTUS_S_1099ODATA_ITEM_STR-PATNR_REGION sy-vline
WA_FIWTUS_S_1099ODATA_ITEM_STR-PATNR_CTRY sy-vline
WA_FIWTUS_S_1099ODATA_ITEM_STR-PATNR_POST_CODE1 sy-vline
WA_FIWTUS_S_1099ODATA_ITEM_STR-PATNR_POST_CODE2 sy-vline
WA_FIWTUS_S_1099ODATA_ITEM_STR-PATNR_PO_BOX_LOC sy-vline
WA_FIWTUS_S_1099ODATA_ITEM_STR-PATNR_PO_BOX_REG sy-vline
WA_FIWTUS_S_1099ODATA_ITEM_STR-TOT_UNEMPLOYMENT_COMP_AMT sy-vline
WA_FIWTUS_S_1099ODATA_ITEM_STR-TOT_STATE_TAX_REFUNDS_AMT sy-vline
WA_FIWTUS_S_1099ODATA_ITEM_STR-TOT_TAXABLE_GRANTS_AMT sy-vline
WA_FIWTUS_S_1099ODATA_ITEM_STR-TOT_AGRICULTURE_PAYMENTS_AMT sy-vline
WA_FIWTUS_S_1099ODATA_ITEM_STR-TOT_TRADE_OR_BUSINESS_AMT sy-vline
WA_FIWTUS_S_1099ODATA_ITEM_STR-TOT_ATAA_PAYMENTS_AMT sy-vline
WA_FIWTUS_S_1099ODATA_ITEM_STR-TOT_STATE_W_T sy-vline
WA_FIWTUS_S_1099ODATA_ITEM_STR-TOT_FED_W_T sy-vline
WA_FIWTUS_S_1099ODATA_ITEM_STR-TOT_RENT_AMT sy-vline
WA_FIWTUS_S_1099ODATA_ITEM_STR-TOT_ROYALTIES_AMT sy-vline
WA_FIWTUS_S_1099ODATA_ITEM_STR-TOT_OTHER_INCOME_AMT sy-vline
WA_FIWTUS_S_1099ODATA_ITEM_STR-TOT_FISHING_BOAT_AMT sy-vline
WA_FIWTUS_S_1099ODATA_ITEM_STR-TOT_NONEMPLOYEE_COMP_AMT sy-vline
WA_FIWTUS_S_1099ODATA_ITEM_STR-TOT_CON_PROD_AMT sy-vline
WA_FIWTUS_S_1099ODATA_ITEM_STR-TOT_EGP_PAYMT_AMT sy-vline
WA_FIWTUS_S_1099ODATA_ITEM_STR-TOT_MD_HEALTH_PAYMT_AMT sy-vline
WA_FIWTUS_S_1099ODATA_ITEM_STR-TOT_SUB_PAYMT_AMT sy-vline
WA_FIWTUS_S_1099ODATA_ITEM_STR-TOT_CORP_INSUR_AMT sy-vline
WA_FIWTUS_S_1099ODATA_ITEM_STR-TOT_GPP_ATTORNEY_AMT sy-vline
WA_FIWTUS_S_1099ODATA_ITEM_STR-TOT_409A_DEFERRALS_AMT sy-vline
WA_FIWTUS_S_1099ODATA_ITEM_STR-TOT_409A_INCOME_AMT sy-vline
WA_FIWTUS_S_1099ODATA_ITEM_STR-TOT_INT_AMT sy-vline
WA_FIWTUS_S_1099ODATA_ITEM_STR-TOT_EARLY_WITHDRAWAL_AMT sy-vline
WA_FIWTUS_S_1099ODATA_ITEM_STR-TOT_INT_SAVINGS_BONDS_AMT sy-vline
WA_FIWTUS_S_1099ODATA_ITEM_STR-TOT_INVESTMENT_EXPENSES_AMT sy-vline
WA_FIWTUS_S_1099ODATA_ITEM_STR-TOT_FOREIGN_TAX_AMT sy-vline
WA_FIWTUS_S_1099ODATA_ITEM_STR-TOT_FOREIGN_COUNTRY_AMT sy-vline
WA_FIWTUS_S_1099ODATA_ITEM_STR-US_1099INT_TAX sy-vline
WA_FIWTUS_S_1099ODATA_ITEM_STR-US_1099INT_PRM sy-vline
WA_FIWTUS_S_1099ODATA_ITEM_STR-US_1099INT_ACT sy-vline
WA_FIWTUS_S_1099ODATA_ITEM_STR-US_1099INT_DIS sy-vline
WA_FIWTUS_S_1099ODATA_ITEM_STR-US_1099INT_BOND sy-vline
WA_FIWTUS_S_1099ODATA_ITEM_STR-US_1099INT_BOND_PRM sy-vline
WA_FIWTUS_S_1099ODATA_ITEM_STR-TOT_GROSS_AMT sy-vline
WA_FIWTUS_S_1099ODATA_ITEM_STR-TOT_AMOUNT_01 sy-vline
WA_FIWTUS_S_1099ODATA_ITEM_STR-TOT_AMOUNT_02 sy-vline
WA_FIWTUS_S_1099ODATA_ITEM_STR-TOT_AMOUNT_03 sy-vline
WA_FIWTUS_S_1099ODATA_ITEM_STR-TOT_AMOUNT_04 sy-vline
WA_FIWTUS_S_1099ODATA_ITEM_STR-TOT_AMOUNT_05 sy-vline
WA_FIWTUS_S_1099ODATA_ITEM_STR-TOT_AMOUNT_06 sy-vline
WA_FIWTUS_S_1099ODATA_ITEM_STR-TOT_AMOUNT_07 sy-vline
WA_FIWTUS_S_1099ODATA_ITEM_STR-TOT_AMOUNT_08 sy-vline
WA_FIWTUS_S_1099ODATA_ITEM_STR-TOT_AMOUNT_09 sy-vline
WA_FIWTUS_S_1099ODATA_ITEM_STR-TOT_AMOUNT_10 sy-vline
WA_FIWTUS_S_1099ODATA_ITEM_STR-TOT_AMOUNT_11 sy-vline
WA_FIWTUS_S_1099ODATA_ITEM_STR-TOT_AMOUNT_12 sy-vline
WA_FIWTUS_S_1099ODATA_ITEM_STR-US_1099K_CARDNA sy-vline
WA_FIWTUS_S_1099ODATA_ITEM_STR-US_1099_FATCA sy-vline
WA_FIWTUS_S_1099ODATA_ITEM_STR-HWAER sy-vline
WA_FIWTUS_S_1099ODATA_ITEM_STR-PAYEEADRESS sy-vline
WA_FIWTUS_S_1099ODATA_ITEM_STR-SECOND_TIN_NOTICE sy-vline INTO ld_text SEPARATED BY SPACE. *Add any further fields from structure WA_EKKO_STR you want to CONCATENATE... ENDLOOP. ENDFORM.