Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

What are forms, interfaces, conversions and enhancements?

aris_hidalgo
Contributor
0 Kudos

Hello Experts,

Please enlighten me on what are those terms. Any examples would be highly appreciated. Thanks guys and take care!

1 ACCEPTED SOLUTION

Former Member
0 Kudos

hi ,

Forms :

1. They r Client Independent.

2. It contains more than one main window.

3. Multiple layout is possible in smart form.

4. Colors can be given in script form.

5. Function modules can be generated automatically.

6. background is possible.

coming up to an Interface:

Interface is a system or a device that is used to connect two unrelated or non-understanding entities.

This definition to an interface could be the key to your answer.

As you might already know, Interface does not provide any implementation but just defines a set of protocols that can be implemented by any class.

Let us consider a few examples...

You and the bicycle. Both of you are not related in anyway. But you want to ride the bicycle. How do you interact with the bicycle? You do it via the pedal which is an interface between you and the bicycle.

You could extend this concept to 'You' and the 'Television' where the interface is a remote control.

conversions :

SAP provides a conversion for SAPscript documents to SMARTforms.

This is basically a function module, called FB_MIGRATE_FORM. You can start this function module by hand (via SE37), or create a small ABAP which migrates all SAPscript forms automatically.

You can also do this one-by-one in transaction SMARTFORMS, under

Utilities -> Migrate SAPscript form.

You could also write a small batch program calling transaction SMARTFORMS and running the migration tool.

Enhancements :

CMOD is the Project Management of SAP Enhancements (i.e., SMOD Enhancements). SMOD contains the actual enhancements and CMOD is the grouping of those SMOD enhancements.

User exits (Function module exits) are exits developed by SAP. The exit is implementerd as a call to a function module. The code for the function module is written by the developer. You are not writing the code directly in the function module, but in the include that is implemented in the function module.

The naming standard of function modules for function module exits is:

EXIT_<program name><3 digit suffix>

The call to a functionmodule exit is implemented as:

CALL CUSTOMER.-FUNCTION ❤️ digit suffix>

For Example:

The program for transaction VA01 Create salesorder is SAPMV45A

1. If you search for CALL CUSTOMER-FUNCTION program SAPMV45A you will find ( Among other user exits):

CALL CUSTOMER-FUNCTION '003'

exporting

xvbak = vbak

xvbuk = vbuk

xkomk = tkomk

importing

lvf_subrc = lvf_subrc

tables

xvbfa = xvbfa

xvbap = xvbap

xvbup = xvbup.

The exit calls function module EXIT_SAPMV45A_003

2. How to find user exits

Display the program where you are searching for and exit and search for CALL CUSTOMER-EXIT

If you know the Exit name, go to transaction CMOD. Choose menu Utillities->SAP Enhancements.

Enter the exit name and press enter.

You will now come to a screen that shows the function module exits for the exit.

or use this ABAP program to search for user exits :-

Finding the user-exits of a SAP transaction code

3. Using Project management of SAP Enhancements

You want to create a project to enhance transaction VA01

- Go to transaction CMOD

- Create a project called ZVA01

- Choose the Enhancement assign radio button and press the Change button

In the first column enter V45A0002 Predefine sold-to party in sales document . Note that an enhancement can only be used for 1 project. If the enhancement is allready in use, and error message will be displayed

- Press Save

- Press Components. You can now see that enhancement uses user exit EXIT_SAPMV45A_002.

- Double Click on the exit.

Now the function module is displayed. Double click on include ZXVVAU04 in the function module

Insert the following code into the include: E_KUNNR = '2155'.

Activate the include program. Go back to CMOD and activate the project.

Goto transaction VA01 and create a salesorder. Note that Sold-to-party now automatically is "2155"

if u find tht its an helpful answer dont forget to reward points for it.

with regards,

madhuri

2 REPLIES 2

Former Member
0 Kudos

Hi,

<b>Conversion and interface</b>

https://forums.sdn.sap.com/click.jspa?searchID=1982861&messageID=3255157

https://forums.sdn.sap.com/click.jspa?searchID=1982861&messageID=3251787

https://forums.sdn.sap.com/click.jspa?searchID=1982861&messageID=2841468

https://forums.sdn.sap.com/click.jspa?searchID=1982861&messageID=3239305

http://www.erpgenie.com/sap/sapedi/index.htm

Example of Interfaces (EDI)

<a href="http://www.erpgenie.com/sap/sapedi/message_types_bp_lo.htm">SD</a>

<a href="http://www.erpgenie.com/sap/sapedi/message_types_bp_ac.htm">FICO</a>

<a href="http://www.erpgenie.com/sap/sapedi/message_types_bp_hr.htm">HR</a>

<b>USEREXIT:</b>

https://forums.sdn.sap.com/click.jspa?searchID=2193690&messageID=3287043

Example: User-exit and BADIs

http://help.sap.com/saphelp_46c/helpdata/en/1c/f62c7dd435d1118b3f0060b03ca329/frameset.htm

http://help.sap.com/saphelp_46c/helpdata/en/33/cc2d28e4ded31184080004aca6e0d1/frameset.htm

<b>Forms: SAPScript and Smartforms</b>

Please ferer to these links for more information about SapScript.

http://www.sappoint.com/PHPWebUI/Documents/SAPScript%20-%20Introduction.pdf

http://www.sappoint.com/PHPWebUI/Documents/SAPScript%20-%20Introduction%20-%20II.pdf

http://www.sappoint.com/PHPWebUI/Documents/SAPScript%20-%20Layout%20Sets.pdf

http://www.sappoint.com/PHPWebUI/Documents/SAPScript%20-%20Symbols.pdf

http://www.sappoint.com/PHPWebUI/Documents/SAPScript%20-%20Control%20Commands.pdf

http://www.sappoint.com/PHPWebUI/Documents/SAPScript%20-%20Exercise.pdf

Here are the links to SAP HELP.

http://help.sap.com/saphelp_46c/helpdata/en/d6/0db74a494511d182b70000e829fbfe/frameset.htm

http://help.sap.com/saphelp_46c/helpdata/en/d6/0db303494511d182b70000e829fbfe/frameset.htm

The best place to see SAPScript example is SAP. Check out PO output form MEDRUCK.

<b>Smartform:</b>

http://help.sap.com/saphelp_46c/helpdata/en/a5/de6838abce021ae10000009b38f842/frameset.htm

Let me know if you need any other information.

Regards,

RS

Former Member
0 Kudos

hi ,

Forms :

1. They r Client Independent.

2. It contains more than one main window.

3. Multiple layout is possible in smart form.

4. Colors can be given in script form.

5. Function modules can be generated automatically.

6. background is possible.

coming up to an Interface:

Interface is a system or a device that is used to connect two unrelated or non-understanding entities.

This definition to an interface could be the key to your answer.

As you might already know, Interface does not provide any implementation but just defines a set of protocols that can be implemented by any class.

Let us consider a few examples...

You and the bicycle. Both of you are not related in anyway. But you want to ride the bicycle. How do you interact with the bicycle? You do it via the pedal which is an interface between you and the bicycle.

You could extend this concept to 'You' and the 'Television' where the interface is a remote control.

conversions :

SAP provides a conversion for SAPscript documents to SMARTforms.

This is basically a function module, called FB_MIGRATE_FORM. You can start this function module by hand (via SE37), or create a small ABAP which migrates all SAPscript forms automatically.

You can also do this one-by-one in transaction SMARTFORMS, under

Utilities -> Migrate SAPscript form.

You could also write a small batch program calling transaction SMARTFORMS and running the migration tool.

Enhancements :

CMOD is the Project Management of SAP Enhancements (i.e., SMOD Enhancements). SMOD contains the actual enhancements and CMOD is the grouping of those SMOD enhancements.

User exits (Function module exits) are exits developed by SAP. The exit is implementerd as a call to a function module. The code for the function module is written by the developer. You are not writing the code directly in the function module, but in the include that is implemented in the function module.

The naming standard of function modules for function module exits is:

EXIT_<program name><3 digit suffix>

The call to a functionmodule exit is implemented as:

CALL CUSTOMER.-FUNCTION ❤️ digit suffix>

For Example:

The program for transaction VA01 Create salesorder is SAPMV45A

1. If you search for CALL CUSTOMER-FUNCTION program SAPMV45A you will find ( Among other user exits):

CALL CUSTOMER-FUNCTION '003'

exporting

xvbak = vbak

xvbuk = vbuk

xkomk = tkomk

importing

lvf_subrc = lvf_subrc

tables

xvbfa = xvbfa

xvbap = xvbap

xvbup = xvbup.

The exit calls function module EXIT_SAPMV45A_003

2. How to find user exits

Display the program where you are searching for and exit and search for CALL CUSTOMER-EXIT

If you know the Exit name, go to transaction CMOD. Choose menu Utillities->SAP Enhancements.

Enter the exit name and press enter.

You will now come to a screen that shows the function module exits for the exit.

or use this ABAP program to search for user exits :-

Finding the user-exits of a SAP transaction code

3. Using Project management of SAP Enhancements

You want to create a project to enhance transaction VA01

- Go to transaction CMOD

- Create a project called ZVA01

- Choose the Enhancement assign radio button and press the Change button

In the first column enter V45A0002 Predefine sold-to party in sales document . Note that an enhancement can only be used for 1 project. If the enhancement is allready in use, and error message will be displayed

- Press Save

- Press Components. You can now see that enhancement uses user exit EXIT_SAPMV45A_002.

- Double Click on the exit.

Now the function module is displayed. Double click on include ZXVVAU04 in the function module

Insert the following code into the include: E_KUNNR = '2155'.

Activate the include program. Go back to CMOD and activate the project.

Goto transaction VA01 and create a salesorder. Note that Sold-to-party now automatically is "2155"

if u find tht its an helpful answer dont forget to reward points for it.

with regards,

madhuri