Ansicht
Dokumentation
BADI_ORDREQOUT_MAP_T - BAdI: Mapping of Purchase Order Text ID to XML Text Type
TXBHW - Original Tax Base Amount in Local Currency rdisp/max_wprun_time - Maximum work process run timeThis documentation is copyright by SAP AG.
With this BAdI, you can define new mapping entries for Text IDs to XML Text Type (External Representation) apart from the existing standard mappings available in the SSCUI and adjusting the existing mappings from the SSCUI with other XML Text Type values.
Parameters:
Importing Parameters:
- STANDARD_MAPPING_ENTRIES: This parameter carries the existing configuration.
Changing Parameters:
- ADJUSTED_MAPPING_ENTRIES: Use this parameter to change existing configuration.
- CUSTOM_MAPPING_ENTRIES: Use this parameter to add new settings for mapping.
- MESSAGES: Use this parameter to raise information (errors and warnings) messages.
Sample Implementation
METHOD if_mmpur_ordreqout_map_text_id~map_text_id_to_xml_text_type.
" an example of extending and modifying an existing configuration
LOOP AT standard_mapping_entries ASSIGNING FIELD-SYMBOL(
" find the entry by key in the adjustment table
READ TABLE adjusted_mapping_entries ASSIGNING FIELD-SYMBOL(
WITH KEY rowidentifier =
IF sy-subrc = 0.
" exclude record from processing
IF
<fs_adjust>-xmltexttype = 'SalesNote'.
" replace XML Text Type
ELSEIF
ENDIF.
ELSE.
CONTINUE.
ENDIF.
ENDLOOP.
" example of adding new entries, creating a new configuration
" the possible values for textobject is 'HEADER' or 'ITEM'.
custom_mapping_entries = VALUE #( ( textobject = 'HEADER'
textid = 'F03'
textpriority = '4'
xmltexttype = 'ShippingInstructions' )
( textobject = 'ITEM'
textid = 'F04'
textpriority = '5'
xmltexttype = 'MaterialText' ) ).
ENDMETHOD.
Addresses (Business Address Services) Addresses (Business Address Services)
This documentation is copyright by SAP AG.
Length: 6349 Date: 20240607 Time: 234743 sap01-206 ( 40 ms )