cancel
Showing results for 
Search instead for 
Did you mean: 

Hiding confirmation number, while creating confirmation

Former Member
0 Kudos

Hello All,

currently we are in SRM 7.3 implementation, here we got requirement called : 

Confirmation number & shopping cart number to be hidden at the beginning of Confirmation creation & Shopping cart creation , it should only be available when the requester confirm or save (Hold) the Confirmation & Shopping cart.

Please share your thoughts how can I achieve this requirement & where I need to do the changes.

Thanks in advance.

Confirmation creation:

Confirmation Saved/Confirmed:

Thanks & Regards

Siva.

Accepted Solutions (1)

Accepted Solutions (1)

laurent_burtaire
Active Contributor
0 Kudos

Hello,

field you are talking about is part of FPM IDR: you cannot manage those fields with metadata.

Use /SAPSRM/BD_FPM_IDR_FIELD_DEF BAdI from Enhancement Spot /SAPSRM/BD_FPM_IDR_OIF_EXT.

For changing parameter CT_FIELD_DEF, put true for field IS_METADATA_HANDLED.

Regards.

Laurent.

Former Member
0 Kudos

Thanks Laurent,

For your response, I will go through as mentioned, if any help required, I will reply to you back.

Thanks & Regards

Siva.

Former Member
0 Kudos

Thank you very much Laurent,

I was able to solve this issue.

Thanks & Regards

Siva.

Tamas_Koban
Employee
Employee
0 Kudos

Dear Siva,

please mark the response from Laurent as the correct answer and not your own.

Thanks,

Tamas

Former Member
0 Kudos

Hi Tamas,

i didn't find the mark response from Laurent as the correct answer, Please tell me, where can i mark like that.

Thank you.

Thanks & Regards

Siva.

Former Member
0 Kudos

Hi Laurent,

I have implemented the code in Enhancement spot mentioned by you. i am able to hide confirmation number. But i am facing below issues.

1. it is hiding Confirmation Label and Confirmation Number (Example : Confirmation Number : 100000678), but i wanted to hid only Confirmation Number.

2. Confirmation Number is hiding for all modes like Creation, Save,Display, but i wanted to hide only for Creation time.

Please suggest me, how can i acheive this? Thanks in advance.

Code written by me to hide Confirmation Number

------------------------------------------------------------------

Data :  wa_ct type /SAPSRM/S_CH_WD_IDR_FIELD.

read table ct_field_def into wa_ct index 1.

if sy-subrc eq 0.

   wa_ct-field_name = space.

   MODIFY ct_field_def INDEX 1 FROM wa_ct TRANSPORTING field_name.

endif.

Thanks & Regards

Siva.

Answers (1)

Answers (1)

Former Member
0 Kudos
Former Member
0 Kudos

Hi Lisandro,

Thank you for your quick response, I have checked all above links, it will not be suitable to my requirement.

actually my requirement is -->

Confirmation/shopping cart number to be hidden at the beginning of Confirmation/ Shopping cart creation , it should only be available when the requester confirm or save the Confirmation & Shopping cart.

Please help me on this, where can I do the required changes.

Thanks & Regards

Siva.

Former Member
0 Kudos

Hi Siva,

To hide a standard field, you should configure

There, do something like this

That means that you should create your own class and method where you define when the field should be shown and when should be hidden.

Regards,

Lisandro

Former Member
0 Kudos

Hi Lisandro,

For your quick reply, could you please send me some examples, procedure  to create own class & method to incorporate code.

Thanks & Regards

Siva.