cancel
Showing results for 
Search instead for 
Did you mean: 

Mapping Table between 'Device Name(or Device ID)' and 'assigned DM SWCVs'

Former Member
0 Kudos

Hi,

I'm developing some modules(the direct query program) on NetWeaver Mobile 7.1.

The direct query program I am working on is selecting MBO node table data from device request.

What I want to know is how to recognize mapping information between device name and MBO of SWCV.

I have to get the mapping table.

In other words, I want to know mapping table between 'Device ID(or Device name)' and 'assigned DM SWCVs.' (or the function module to find the mapping information.)

For example If I send request from some device, I need to find linked MBO of specific SWCV for selecting data. following table:

-


Device Name (or Device ID) || DM SWCV ID (or DMSWCV name) || MBO ID || MBO Trans .... etc

-


DEVICE_01......................|| ZSP_SWCV_SD, 1.0 of com ..........|| 37298374 .........||... ...

DEVICE_02......................|| ZTEST_SWCV, 1.0 of com .............|| 33S30P30. .......|| ... ...

DEVICE_TEST..................|| ZSP_SWCV_SD, 1.0 of com ..........|| ............. ..........||... ...

-


I tried to find mapping tables, and I found some tables.

...1) MMW_MBO_SWCV

...2) SMMW_SCV

...3) SMMW_DEVMBOMAPER:

But I think '3)' is a log table.

And '1) and 2)' are not enough information.

Until now I haven't find mapping table or function module and so on.

If I solve that issue. I can select specific data with imported parameters from device and response XML code I made out of selected data.

Does anyone know

what is the table which have those fields... (not a log table)?

or what is the function module which found that information?

or How do I find the table?

Please reply to me.

Best regards,

Liah Cha

Accepted Solutions (1)

Accepted Solutions (1)

sivasatyaprasad_yerra
Active Contributor
0 Kudos

Use following steps to find out the table name.

1. Search for DM_SWCV attribute in SMMW_RMM_ATTR table with following criteria

RMM_ID = 'EB5C714339AA644CE10000000A15539D'.

ACTIVE = 'X'

ATTRIBUTE_NAME = 'DM_SWCV'

DELETED = 0.

Copy the ATTRIBUTE_ID column value.

2. Use SMGF_GENOBJ_GET function module to retrieve the table name.

I_GUID should be the value retrieved in previous step.

I_GENKEY = 'GEN_RMM_ATTR_TABLE'.

Output parameter C_TMGN_OBJREG contains the table name. NAME column of the output parameter table contains the table name.

You can use this table to get the device id - DM SWCV mapping.

Here RECEIVER_ID is the device id.

V1 is the SWCV guid.

Regards,

Siva.

Answers (1)

Answers (1)

sivasatyaprasad_yerra
Active Contributor
0 Kudos

Use the following steps to find out the specific values.

1. Use CL_RECEIVER_STORE_FACTORY=>GET_RECEIVER_STORE method to get the RMM object.

Parameters should be RMM = 'EB5C714339AA644CE10000000A15539D'

RMM_NAME = 'RMM_NAME'.

2. RECEIVER_STORE parameter holds the RMM object.

3. Now execute "IF_RECEIVER_STORE~GET_DEVICE_ATTRIBUTE_VALUE" method to get any device attribute value.

Parameters should be

ID = Device id.

ATTRIBUTE_NAME = RMM attribute name (Eg: DM_SWCV for SWCV's assigned). You can find device attributes from SDOE_RMM01 transaction.

GROUP_NAME = Custom group name (This should be filled only the attributes which are part of custome groups. For standard device attributes this should be blank).

Return parameter VALUE will contain the values assigned to the device.

Regards,

Siva.

sivasatyaprasad_yerra
Active Contributor
0 Kudos

Adding to the above:

In Step 1 RMM_NAME should be given as 'MOBILE'.

Object retrived in step 2 contains methods with which we can retrieve the device values.

Regards,

Siva.

Edited by: Siva Satya Prasad Yerra on May 19, 2009 2:22 PM