Skip to Content
0

Type 4 entity data is not getting stored .

Feb 17, 2017 at 05:04 AM

169

avatar image
Former Member

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

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

4 Answers

Loga Nathan Duraisamy Feb 17, 2017 at 10:13 AM
0

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

Show 1 Share
10 |10000 characters needed characters left characters exceeded
Former Member

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

new.png (6.6 kB)
0
Hasan Hüseyin Akhuy Feb 21, 2017 at 07:06 PM
0

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

Show 3 Share
10 |10000 characters needed characters left characters exceeded
Former Member

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

0

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
Former Member
Hasan Hüseyin Akhuy

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

0
avatar image
Former Member Feb 28, 2017 at 09:59 AM
0

Hi Veena,

did you maintain correct wiring in UI configuration?

Br,

Marco

Show 1 Share
10 |10000 characters needed characters left characters exceeded
Former Member

Hi Marco,

The wiring is correct. I checked it again.

Thanks and Regrds,

Veena

0
avatar image
Former Member Dec 15, 2017 at 07:15 AM
0

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?

Share
10 |10000 characters needed characters left characters exceeded