Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Enhancing standard infotype

Former Member
0 Likes
3,477

Hi all,

I'm a noob to ABAP and for my project I needed to use the SAP standard table, but I also need to append some custom fields to the table. For now I'm using the table pernr and infotypes 0001, 0002, and 0006 for my programs.

1) I tried adding fields to the CI_p0002 include in the p0002 infotype, but when I tried activating it, an error pops up saying that I needed to convert the table if I wanted to do that. But the new fields are still created.

2) After than when I want to view the contents of the pa0002 table, I can't because of internal error.

I can only view the contents after deleting all the changes I made.

I know for a fact you can't directly edit a standard table and needed to use the include provided. But I still can't. Converting the table using SE14 would effect other users' programs within the system.

Can anyone help me on how I can append custom fields in the include or in the table without having to convert everything?

Thanks!

Edited by: Kazu_03 on Jan 19, 2012 10:23 AM

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
3,021

Hi

Simply follow the below mentioned step

1.Go to se11

2.Open the std table where fields to be added

3.Double click on the ci_XXXXX structure name included in the table

4.it will ask you to create the new structure is structure is not already created

5.click yes

6.add the custom fileds starting with Z and the corresponding data element to the Zfields

7.Simply save and activate the structure.

8.Now activate the table also.

9.go to se14 and adjust the standard table also

OR

1.) Go to transation PM01.

2.) Go to the tab "Enhance Infotype"(The third tab)

3.) Give the Infotype No as '0002'.

4.) In SubObjects select CI Include and click Edit.

5.) Give the field you need to add in the CI_P0002 structure.

6.) Save the structure and activate it.

7.) Go back and in Subobjects select the Screen Radiobutton,then modify screens 200,300 accordingly.

now your structure is appended into the std table.

just check this links you will get the idea

for append structure

<http://help.sap.com/saphelp_nw04/helpdata/en/cf/21eb61446011d189700000e8322d00/frameset.htm>

for include structure

<http://help.sap.com/saphelp_nw04/helpdata/en/cf/21eb54446011d189700000e8322d00/content.htm>

Regards

NZAB

Edited by: Zulfikhar Ali Bhutto.N on Jan 20, 2012 6:06 AM

4 REPLIES 4
Read only

manubhutani
Active Contributor
0 Likes
3,021

Double click on CI include and enter the new felds and activate that structure

then go to PM01 tcode and generate objects.

Read only

Former Member
0 Likes
3,022

Hi

Simply follow the below mentioned step

1.Go to se11

2.Open the std table where fields to be added

3.Double click on the ci_XXXXX structure name included in the table

4.it will ask you to create the new structure is structure is not already created

5.click yes

6.add the custom fileds starting with Z and the corresponding data element to the Zfields

7.Simply save and activate the structure.

8.Now activate the table also.

9.go to se14 and adjust the standard table also

OR

1.) Go to transation PM01.

2.) Go to the tab "Enhance Infotype"(The third tab)

3.) Give the Infotype No as '0002'.

4.) In SubObjects select CI Include and click Edit.

5.) Give the field you need to add in the CI_P0002 structure.

6.) Save the structure and activate it.

7.) Go back and in Subobjects select the Screen Radiobutton,then modify screens 200,300 accordingly.

now your structure is appended into the std table.

just check this links you will get the idea

for append structure

<http://help.sap.com/saphelp_nw04/helpdata/en/cf/21eb61446011d189700000e8322d00/frameset.htm>

for include structure

<http://help.sap.com/saphelp_nw04/helpdata/en/cf/21eb54446011d189700000e8322d00/content.htm>

Regards

NZAB

Edited by: Zulfikhar Ali Bhutto.N on Jan 20, 2012 6:06 AM

Read only

Former Member
0 Likes
3,021

Hi Kazu,

The steps provided above is more than enough to resolve your issue.

If still face any issues in that, reply to the thread or close it please.

Regards,

Raja.D

Read only

0 Likes
3,021

Hi everyone...

Thanks for the replies,

Zulfikhar's step by step is especially helpful, thanks a lot!

I needed to edit the subobjects to make it work.

Thanks a lot!

Will be closing the thread now.