cancel
Showing results for 
Search instead for 
Did you mean: 

FWO Business Partner table fields are not holding entered values

Former Member
0 Kudos

Hi All,

I have added few columns in business partner table at FWO screen but when I type any value in those text boxes and press enter, now entered values from those boxes are removed automatically. I can type text but on enter event it gets black again.

Can not understand how we can resolve it.

Kindly Guide for same.

Thanks,

Maharshi

Accepted Solutions (0)

Answers (1)

Answers (1)

0 Kudos

Hi Maharshi,

     In what level of node you have done your enhancement in the BO /SCMTMS/BUPA?

     When i see the Business Object /SCMTMS/BUPA. We can able to do the enhancement at the two nodes. one is the COMMON_TM and other is COMPANY.

     As per your explanation, I think you have done the enhancement  at the COMMON_TM node.Please confirm.

     Also do the enhancement at the BO structure and also if you have any UI structure at the FBI view. please do the enhancement at the UI structure as well.

Thanks,

Dinesh

Former Member
0 Kudos

Hi Dinesh,

Thanks for information but I have appended Z structure in standard UI structure (/SCMTMS/S_UI_CMN_BP) for Business Partner and from UI component customization, I have made them visible.

I found many standard fields behaving same. When I input some text and press enter, value gets disappeared.

I debugged class view exit class /SCMTMS/CL_UI_VIEWEXIT_BP and UI Helper Class
/SCMTMS/CL_UIH_CMN_BUPA but could not find the actual issue.

Let me know if you have any clue to this kind of issue.

  

Thanks,

Maharshi

0 Kudos

Hi Maharshi,

     Whatever you have done is absolutely right. But that is not enough to display the information's, because that has not been moved to database even not to the buffer, You have done only the enhancement at the UI but i think you haven't done any enhancement with the Business object.

     Also doing enhancement at the Business object level is not even enough, because we are not storing the business partner information's at the  Business object level, instead we are reading the business partner information's from the master data using the Data access class of the business object and we are pushing those information's to the UI.

    Please let me know what type of enhancement you want to do?

Thanks,

Dinesh

Former Member
0 Kudos

Yes Dinesh, I have created ZBO as ZENH_TRQ and for this, base BO is /SCMTMS/TRQ.

Now within Root>Party I have Combined Structure /SCMTMS/S_TRQ_PARTY_K. Which is already having Extension structure /SCMTMS/INCL_EEW_TRQ_PARTY where Z structure is appended.

So ideally enhancement is done at BO level. Correct me if I am wrong.

It seems field property setting is managed at code level and I need to identify this.

bharath_k6
Active Participant
0 Kudos

Hi Maharshi,

What do you mean by not holding values?

Is it like after values are entered and clicked on SAVE, they are not getting saved in database?

Is it like after values are entered and you move to another tab and come back then values are not appearing?

If your problem is first one, then make sure you have done below steps.

1. Make sure your Z fields are added in the extension include of that node.In your case, i guess extension include name is - /SCMTMS/INCL_EEW_TRQ_PARTY.

2.Make sure you have populated internal table IT_MODIFICATION and passing it to method - DO_MODIFY.

Then when you click on SAVE, the values which you have passed will get stored in the database.

Coming to second point, if your values are saved succesfully in Database, but not get displayed in screen when you open the FWO next time.

To correct/check the above issue, Keep a breakpoint in VIEWEXIT class and find out.

Let me know if you still have any challenges.

Thanks,

Bharath.K

Former Member
0 Kudos

Hello Bharath,

My issue is when I enter some value in text box and when I press Enter key, value whichever I have entered in text box. is getting cleared. means entered value is not hold by the box on enter event. it disappears form the text box.

-Maharshi

bharath_k6
Active Participant
0 Kudos

Dear Maharshi,

Did you try my steps?

Did you write the code to pass your zfield values to BOPF buffer / database in method - ADAPT_DATA in VIEWEXIT class (Viewexit class for FWO - /SCMTMS/CL_UI_VIEWEXIT_TRQ)

If you have already written code, Did you try putting a breakppoint /debugging in VIEWEXIT class to check whether your values are considered by system or not?

Then check my above steps.

Thanks,

Bharath.K

Former Member
0 Kudos

Hi Bharat,

Question was raised to SAP and they have asked to change/enhance class method /SCMTMS/CL_UIH_CMN_BUPA-TRQ_PREPARE_MODIFICATION.

Here I am able to find entered data even within internal table lt_change but not sure how it can be enhanced in UI structure.

- Maharshi