cancel
Showing results for 
Search instead for 
Did you mean: 

Type 4 entity data is not getting stored .

0 Kudos

Hi,

In my custom MDG solution I have made the type 4 entity fields editable through feeder class. It is now coming in editable mode but even if I enter a value, the moment I click submit or check or even the new button of other type 4 entities it will be blank again. Can anyone please help me in solving the issue.

when I checked it in the debugging mode what I found is mo_entity is initial and there is one place where it is checking whether the data is changed and it assigning cs_data = ls_data. Here since ls_data is not having any values cs_data is getting overwritten.

Please help me in solving this issue.

Thanks and Regards,

Veena

Accepted Solutions (0)

Answers (4)

Answers (4)

Former Member
0 Kudos

Hi Experts,

I am facing the same issue and I have activated the DM, generated structures again and also made proper wiring but the issue persists . Can anybody please give any suggestion as to how this issue can be addressed?

Former Member
0 Kudos

Hi Veena,

did you maintain correct wiring in UI configuration?

Br,

Marco

0 Kudos

Hi Marco,

The wiring is correct. I checked it again.

Thanks and Regrds,

Veena

h_h_ak
Participant
0 Kudos

Hello Aneesh,

how Looks your DM? What Count of relation do you have between your entity type 1 and entity type 4?

Normaly the entity fields will be editable, if you open a Change request with Logical Action Create. You do not need to Change in Feeder class.

I would prefer to check your DM. Activate it again, adjust staging area and generate the MDG specific structures again for the new entity.

BR,

Hasan

0 Kudos

Hi Hasan,

Thank you for your reply. The relation between type 1 and type 4 is 1:1. I have given the logical action create but only the type 1 fields are coming in editable mode. If I want to make the type 4 fields editable i have to add the 'NEW' button. Since it doesn't look good i made it editable through the feeder class. Then i can enter values but the moment i click any other button it will be refreshed. I have activated my DM adjusted the staging area and also generated the structures again. Still the issue is there....

Thanks and Regards,

Veena

h_h_ak
Participant
0 Kudos

Hello Veena,

I saw on your screen that you want have created a new button for a form? Why do you not use a list UIBB?

Normally, if you open your CR with the correct business acticity your screen will be open in edit mode. You use a form UIBB, your fields should be open.

Do you get an CR Header, if you open your CR? It can be possible that you have problems with the CR generation, and the Screen opens in Read only mode. You should check also the importing parameter iv_edit_mode.

MO_ENTITY should be also bound with initial values. Check this variable before you call the super method in your get_data method.

BR,

Hasan

0 Kudos

Hi Hasan,

For list UIBB in the screen it is not greyed out. but if i want to enter any values i have to click the 'NEW' button. The form component is greyed out. That is why i changed it in the feeder.

LOOP AT CT_FIELD_USAGE ASSIGNING <LS_FIELD_USAGE>.
<LS_FIELD_USAGE>-read_only = ABAP_FALSE.
<LS_FIELD_USAGE>-fixed_values_changed = ABAP_TRUE.
ENDIF.

Endloop

ev_field_usage_changed = abap_true.

This is the piece of code i am writing for making it editable. I don't know whether i have to write anything more.

If i use the NEW button i can enter values create a CR and Process the CR. In that case my solution is working. But i want the form Guibb to come in the editable mode and i don't want it to get refreshed at any click. iv_edit_mode is coming as 'X' . In the FPM page i have set it as edit-mode.

I raised an OSS request and the response i got was , they made it like that and if we want to get it in editable mode we have to do it in feeder. That is why I did like that.

Thanks for paying attention to my problem. i'll check the mo_entity value in getdata method once more.

Thanks and Regards,

Veena

loga201
Contributor
0 Kudos

Hi Veena,

Not sure whether you are using flex model or reuse one. If it is resue one check your reuse class.

To understand exact error message , Put break point in the get_instance method of the class which initilizes object of mo_entity.

Thank you

0 Kudos

Hi Loga,

Thanks for your reply. But I couldn't solve the issue. I didn't get a clue from debugging. I inserted a New (_crea_) button. when I click the new button and enter the values , it will not be erased. But if I try to enter directly without clicking new it will be erased. I don't understand why it is happening like this. Please help

Mine is a reuse one. I checked my reuse class. It looks fine.

Thanks in advance.

Veena