Ansicht
Dokumentation

RDSV_QRC_SOURCE_TYPE - BAdI: QR Code Custom Source Types

RDSV_QRC_SOURCE_TYPE - BAdI: QR Code Custom Source Types

Fill RESBD Structure from EBP Component Structure   General Material Data  
This documentation is copyright by SAP AG.
SAP E-Book

This Business Add-In (BAdI) allows you to use your own source document types for generating QR codes which can be used, for example, on print layouts.

The corresponding interface IF_RDSV_QRC_SOURCE_TYPE provides the following method:

GET_QRCODE_CUSTOM
By implementing this BAdI and this method you are developing your own source document types for generating QR codes.

The way to call an own source type in your print program or another of your programs or tools, is by calling the main entry method GET_QRCODE of the CL_RDSV_QRCODE class. This BAdI implementation will be automatically called by it.
The parameters of this BAdI method are the same as this main entry method.

  • Import Parameter:

- GET_PARAM – fields INTCA and SOURCE_TYPE will be used for filtering BAdI-implementation
- KEY – you can fill the key(s) of your source object and use them in the BAdI-implementation
- SOURCE_OBJECT – you can fill here the complete source object data to use in your BAdI
- ADDITIONAL_PARAM – you can add additional data here that you would like to use in your BAdI
  • Export Parameter:

- QRCODE – common structure for result, VISIBLE flag controls if QRSTRING may display or print
- ADDITIONAL_RESULT – you can take back additional results prepared in your BAdI

NOTE: In case of any error you must throw exception CX_RDSV_QRCODE

  • As mentioned above you must call the main entry method GET_QRCODE of the CL_RDSV_QRCODE class with your own source document type in your print program - or another of your programs or tools - where you wish to use QR code(s)
  • We recommend that you reuse the standard country-specific central QR code class when available for your country - by inheriting or instantiating and calling.

Note:Where you would like to use the same or a very similar source object to a pre-delivered source type (for example, an SD billing document), you can reuse the country- and source-object-specific class (for example, delivered by SAP for a SD billing document for your country) by inheriting or instantiating and calling.
Example:for Portugal you can inherit or call the methods in class CL_SIPT_QRCODE_PT for any source document type -or its child CL_SIPT_QRCODE_PT_SD - for a SD billing document.

For more information about the standard settings (filters, single or multiple uses), see the Enhancement Spot Element Definitions tab in the BAdI Builder (transaction SE18).

You can check the source types and assigned classes delivered by SAP calling the view cluster RDSVVC_QRC_SRC via SM34.

For more detailed information about the QR codes and custom implementation, refer to the cookbook attached to SAP Note 2981450.






BAL_S_LOG - Application Log: Log header data   Fill RESBD Structure from EBP Component Structure  
This documentation is copyright by SAP AG.

Length: 3286 Date: 20240523 Time: 191259     sap01-206 ( 54 ms )