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

MM01 batch input

Former Member
0 Likes
1,500

Hi,

I am going to copy materials . I need bdc_code of 'BDC_OKCODE' of  purchasing , accounting 1 and  accounting 2 ı cant move with tab cause ı will make too many BI and order of tabs will change . I need exact okcodes of these.

Thanks.

1 ACCEPTED SOLUTION
Read only

Sandra_Rossi
Active Contributor
0 Likes
1,120

Hi,

You can use SHDB transaction to get it. By the way, don't you want to use the BAPI instead (much more performant essentially)?

Regards

Sandra

5 REPLIES 5
Read only

Sandra_Rossi
Active Contributor
0 Likes
1,121

Hi,

You can use SHDB transaction to get it. By the way, don't you want to use the BAPI instead (much more performant essentially)?

Regards

Sandra

Read only

venkateswaran_k
Active Contributor
0 Likes
1,120

Hi

MMO1 - is enabled with BAPI  - BAPI_MATERIAL_SAVEDATA

Use this BAPI to load your Material data.  It is very easy and efficient.

Just one time job for writing the ABAP code and you can reuse many times.. 

Regards

Venkat

Read only

kesavadas_thekkillath
Active Contributor
0 Likes
1,120

Hi,

If you are particular in getting the ok code of the tabs in material master screen, then execute the function SELECTION_VIEWS_FIND with bildsequenz = 21and pass the material maintenance status ( get from mara table ). The output table bildtab will be holding the ok code in the field GUIFU, Donot forget to concatenate "=" to the ok code.

Kesav

Read only

venkateswaran_k
Active Contributor
0 Likes
1,120

Hi

You can easily find  out all the OK CODES of a specific transaction. 

in your case, you can find out all the OK CODES used in the MM01 transacton.

Here is the way...

Go to SE41

Give Progarm name as SAPLMGMM  - which is  a program for MM01

Select the radio button Function List

Execute

You will get all OK Codes..

Then you can pick up the one you are looking for...

Hope this help you...  

Regards,

Venkat

Read only

Former Member
0 Likes
1,120

thanks all to you , folks

ı will try these and bapi .  Then I'll see best results