Ansicht
Dokumentation

CRM_BWA_SFLOW - BAdI: BW Adapter: Enhancement of DataSources in the Synchronization Flow

CRM_BWA_SFLOW - BAdI: BW Adapter: Enhancement of DataSources in the Synchronization Flow

ABAP Short Reference   RFUMSV00 - Advance Return for Tax on Sales/Purchases  
This documentation is copyright by SAP AG.
SAP E-Book

You have the option of extending the mapping of DataSources from SAP Content. As an initial step, you have to enhance the extract structure using the IMG activities Edit DataSources and Maintain DataSource and Enhance BW Adapter Metadata. You can then define the mapping between the BDoc segment field and the extract structure.

The system calls up the BAdI implementation directly after the delivered SAP standard mapping.

If you have created a new DataSource in the IMG activity Maintain DataSource and Enhance BW Adapter Metadata, you define here the complete mapping between BDoc and the extract structure.

Import Parameter
I_DATASOURCE,,Type,,RSIOBJNM

Changing Parameters
CT_DATA,, ,,Type,,ANY TABLE
CT_BDOC,, ,,Type,,ANY
CT_RETURN ,,Type,,BAPIRET2_T

You distinguish between the individual DataSources using a case statement with the value I_DATASOURCE.

CT_DATA corresponds to the data of the extract structure in the form of an internal table. If an enhancement is made, the imported data from the structure are changed. If a new DataSource is created, this structure serves as an export parameter.

CT_BDoc corresponds to the content of the BDoc.

If no errors occur during mapping, CT_Return remains empty.

If errors do occur, the value "E" appears in the TYPE field.

Parameters using the ANY type must be copied to internal structures of the extract structure type or of the BDoc structure type in order that they can be edited in the implementation.

data: it_extract type table of EXTRACT_STRUCTURE,
wa_extract like line of it_extract.
it_bdoc type BDOC_STRUCTURE.

case i_datasource.
when 'NAME1'.
it_extract = C_T_DATA[].
it_bdoc  = C_T_BDOC[].
.........
when others.
endcase.






CPI1466 during Backup   CPI1466 during Backup  
This documentation is copyright by SAP AG.

Length: 2226 Date: 20240523 Time: 170725     sap01-206 ( 55 ms )