Ansicht
Dokumentation

GFD_BADI_07 - BAdI: Application URL Redirection

GFD_BADI_07 - BAdI: Application URL Redirection

CL_GUI_FRONTEND_SERVICES - Frontend Services   rdisp/max_wprun_time - Maximum work process run time  
This documentation is copyright by SAP AG.
SAP E-Book

This business add- in is used to prepare the redirect URL for the application to where it has to be navigated, whenever an action is performed on the application.

Requirements

Only perform this activity if the following conditions are satisfied:

",,The SAP standard processes do not cover your requirements.

",,You have an in-depth knowledge of the ABAP programming language.

",,BAdI implementations are code extensions and therefore apply across clients. If you have a multiclient system, you must define how the customer enhancement is to be used within the implementation for each client using the system variable SY-MANDT.

Note: BAdIs without multiple usages can have several implementations. However, only one of these implementations may be active at any one time.

",,You must also make sure that instance creation for the implementing class (Properties tab page) is declared as Public and not as Private, Protected, or Abstract. Otherwise, unwanted short dumps may occur during runtime.

For more information on BAdIs, see SAP Library at help.sap.com -> SAP Netweaver 7.0 library -> SAP NetWeaver by Key Capability -> Application Platform by Key capability -> ABAP Technology -> ABAP Workbench -> Changing the SAP Standard (BC) -> Classic BAdIs.

You can also access this documentation from the initial BAdI Builder screen by choosing Help -> Application Help.

Importing Parameters

IV_FORM_ID,,,,,,Type,,GFDID

IV_ACTION,,,,,,Type,,J_STATUS

IT_FORM_SUB_FIELD,,,,Type,,GFD_FORM_SUBMISSION_FIELD_T

IV_CONTEXT_ID,,,,,,Type,,GFDCONTEXT_ID

Exporting Parameters

ES_ERROR_MSG,,Type,,BAPIRET2

EV_REDIRECT_URL,,Type,,AD_URI

Filter parameters

Context Id is the filter parameter which has to be passed to this BAdI.

When you execute the activity in Customizing, a dialog box appears in which you can enter a name for the implementation.

If you have already made other implementations for this BAdI, another dialog box appears, in which the existing implementations are displayed. In this case, choose Create, and proceed as follows:

1. Enter a name for the BAdI implementation in the Implementation field, and choose Create.

2. The screen for creating BAdI implementations is displayed.

3. Enter a short text for the implementation.

4. From the tab index, choose Interface.

5. The Name of Implemented Class field is already filled on the tab page, as a class name was automatically assigned to the implementation when you named it.

6. Save your entries, and assign the implementation to a development class.

7. Place the cursor on the method, and double-click to enter method processing.

8. Enter the code for the implementation between the statements method ~ and endmethod.

9. Save and implement your code. Return to the Edit Implementation screen.

10. Save the entries.

Note: You can also create an implementation, and then activate it at a later time. In such a case, end the processing stage at this point.

11. Choose Activate.

The code you stored in the method will be run when the application program is executed.






General Data in Customer Master   TXBHW - Original Tax Base Amount in Local Currency  
This documentation is copyright by SAP AG.

Length: 3597 Date: 20240523 Time: 194300     sap01-206 ( 53 ms )