I have created a condition table with the combination created by (sales document created by) and sales organisation, added it to my access sequence and populated it with data.
When i look at the 'analysis output' in the sales order i notice that the field 'ernam' is not filled in by SAP.
I added the field ernam in the field catalog manually --> KOMB-ERNAM.(so general). I also tried with KOMPBV1-ERNAM (item) but this field doesn't work either.
Anybody knows about this problem ?
I used include RVCOMFZZ with USEREXIT_KOMKBV1_FILL.
In this user exit i fill the field KOMKBV1-PARNR with sy-uname. I couldn't use ERNAM as this is a field at item level and as we only print at header level it was impossible to fill that field.
1. condition table with PARNR
2. userexit saying PARNR = username.
did the job for me.
thanks for the help
adding the field ERNAM in field catlog measn have u followed the standad procedure to update a feild or just like that you have added please calrify
if you havent followed the procdure pleae follow the following stpes on adding the feild to feild catalog.
to add this field, check the structure KOMG, whether you have the relevant field. If you have this field in KOMG, then simply go to field catalog -> say new entries and add your field to it.
If in case the field you are talking about is not in structure KOMG. then you will have to append this structure with the new field. appending is very simple. If its a header field then you will have to add it to Include KOMKAZ (pls check - i dont remember exactly) and if it is item field then add it to Include KOMPAZ. once they are added to the include, you will have to add them to the allowed fields in field catalog.
Probably you also have to activate the user exit pricing prepare for KOMP/KOMK, assign a value to your new field.