Skip to Content
0
Former Member
May 18, 2010 at 11:47 AM

Adding a line in SAP Standard Include's FORM ...ENDFORM

149 Views

I have a requirement that in Program SAPMV13R Include MV13RF00_READ_BOM_150 Form tree_bom_read_150, I need to add a line where i am assigning value to Y field added to structure KOMPR.

Client has suggested to create an implicit enhancement at the start of the form and copy all the code of the form into it, add the line needed and then end the form execution.

Problem i am facing is I created the enhancement and wrote Include ZTEST.

In ZTEST i wrote the code of the form with my new line to be added.

However when i tried to activate its saying data declarations already there.

This is because duplicate declaration there in the Include i created for the enhancement and the SAP standard code which i cannot comment out.

Can someone suggest how to fulfill this requirement of adding a line to SAP standard code of a form through an enhancement.

Thanks in advance