Skip to Content

Type 4 entity data is not getting stored .

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

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

4 Answers

  • Feb 17, 2017 at 10:13 AM

    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

    Add comment
    10|10000 characters needed characters exceeded

    • 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)
  • Feb 21, 2017 at 07:06 PM

    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

    Add comment
    10|10000 characters needed characters exceeded

    • Veena Aneesh 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

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

    Hi Veena,

    did you maintain correct wiring in UI configuration?

    Br,

    Marco

    Add comment
    10|10000 characters needed characters exceeded

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

    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?

    Add comment
    10|10000 characters needed characters exceeded