Application Development and Automation 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: 
Read only

Passing data from Standard program to Custom program

sudha_naik
Product and Topic Expert
Product and Topic Expert
0 Likes
1,425

Hello All,

We are developing some custom screen in material master as a business need. The screen is developed in a different function group. We need to populate some data in our custom screen with the values from the standard screen. Currently we follow the steps given below,

1. Execute MM01, fill the standard screens and save the data. Material is created.

2. Execute MM02. update the fields in custom screen and save again.

When executing MM02, we have all the data in the database and I populate the custom tab, enter input values and save it.

This is becoming a tedious task and I am here asking for expert advice.

Is there any way in which we can create the material at once populating all the screens. This way I can avoid executing the second step of executing the transaction MM02.

In short, is it possible to pass data from a standard program to a custom function group and if yes, how ??

Experts, please share your views on this.

Many thanks in advance

Sudha

1 ACCEPTED SOLUTION
Read only

praveen_hannu
Contributor
0 Likes
875

use EXport and IMPORT.

4 REPLIES 4
Read only

Former Member
0 Likes
875

Hi,

You can use the enhancement framework.

In your enhancement, you can either call your program, or you can Export it to a memory ID.

Declare lv_variable in the enhancement.

EXPORT lv_varialbe TO MEMORY ID 'Z_MEM_ID'.

Then, you must import it in your program.

IMPORT lv_variable FROM MEMORY ID 'Z_MEM_ID'.

Hope this helps.

Benedict

Read only

praveen_hannu
Contributor
0 Likes
876

use EXport and IMPORT.

Read only

sudha_naik
Product and Topic Expert
Product and Topic Expert
0 Likes
875

Does export work for structures and tables ?

Read only

0 Likes
875

yes it will work