Skip to Content
0

How to read CR specific data in SAP-MDGM in case of parallel processing scenario.

Dec 18, 2017 at 07:11 PM

153

avatar image
Former Member

Hi All,

background:

We have defined a Change Request(Z_MAT02) of MDG-M of business type 'MAT2' and declared as Active for 'Parallel Change Request Processing' .

Scenario :

Material No : 7000012345

Mentioned material has been locked in 2 CR for extension on different plant.

like

CR1: extension for Plant 'P1'

CR2: Extension for plant 'P2'

CR1 and CR2 are active and of same type = Z_MAT02.

Issue :

When in code we want to fetch CR specific data using

CALL METHOD io_model->read_entity_data_all(
EXPORTING
i_fieldname = 'MATERIAL'
if_active = abap_false
i_crequest = l_crequest_id
IMPORTING
et_data_entity = li_data_entity ).

in LI_DATA_ENTITY we get both PLANT (P1 & P2) even if we pass CR1 or CR2 in I_CREQUEST_ID.

Query : How to get CR specific data in code, i.e if we pass CR1 as request ID then only P1 should be populated in LI_DATA_ENTITY.

Challenge/Reason : On UI of CR1 we are getting validation error for P2 where as it doesn't exist in that CR.

Thanks in advance.

Saurabh

10 |10000 characters needed characters left characters exceeded
* Please Login or Register to Answer, Follow or Comment.

1 Answer

Loga Nathan Duraisamy Dec 19, 2017 at 09:19 AM
0

Hi Saurabh,

To read parallel change request use method read_char_value.

Thanks and Regards,

Logan.D

Share
10 |10000 characters needed characters left characters exceeded