cancel
Showing results for 
Search instead for 
Did you mean: 

BP:Value not getting held, its dissapearing

Former Member
0 Kudos

Hello,

I need to add a sales area dependant field in the Shiping Terms assignment block of Business Partner. I appended a strucuture with my field to the structure CRMM_BUT_SET0020 and added the field to the configuration . The field is now appearing in the web ui shipping terms block. But when I enter any value and press enter the value is not getting held, its dissapearing. Could you please let me know the reason for this.

Many Thanks,

Neeraj

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

Hi Vishal,

You neesd not write any logic if the field is getting shown up in the UI.

In all the backend same and modify modules,the new fields are automatically taken care since aMOVE-CORRESPONDING statement is used in all modules.

I am not sure if you are talkign about data being lost in the UI or in the backedn.

If its the backedn,then you need to chekc the work structure first,if the fields are added there correctly,and then the modify and save APIs.

Thats the only place where a flaw might exist.

If its the UI ur talkign about,then you should put a breakpoint in the set_attribute and get_attibute method of each attribute,and see where do they get aclled from whn you lose the values.

Thsi way you should be able to identify what uis triggerign the loss of the values.

Suvidha

matthias_schmalz
Employee
Employee
0 Kudos

Hi Suvidha,

unfortunately especially the business partner is NOT using MOVE-CORRESPONDING everywhere.

Here sometimes they have hardcoded move logics. So you might get trouble there.

The thing is that there is not only one UI and work structure. There are several layers in the application which all have their own structures which you need to extend and please don't forget the database table itself.

Just compare with the one and only field extensible table for BUPA which is BUT000 (Header data): The central extension include (INCL_EEW_BUT000) where customer fields are added is included in 30 structures.

Additionally for BUPA there is usually an additional X-structure which contains every field as a flag whether there are changes.

You need to extend them as well.

Regards Matthias

nisha_vinod
Advisor
Advisor
0 Kudos

Hi Neeraj

Can you please check this thread that also talks about field added through append structure?

As far as I am aware, a field added through append structure does not get persisted. you have to write your on logic for persisting it.

As an alternative, can u please try adding the field through AET/EEWB (as also suggested in the thread above) ?

Regards,

Nisha

Former Member
0 Kudos

Hi Nisha,

Thanks for the reply.

The field which I need should be sales area dependant . If i create fields through AET, it will create in BuilHeader(But000) but I need the fields in the context node BuilShippingTerms. Could you please help.

Regards,

Neeraj