cancel
Showing results for 
Search instead for 
Did you mean: 

Add Z-fields to production order head in CO01/2/3

former_member504450
Participant
0 Kudos

Hello experts,

I want to add some z-fields to the production order head in CO01/2/3.

How can i do that? maybe a short instructions.

Thanks for help.

Regards, Sven

Accepted Solutions (1)

Accepted Solutions (1)

sjeevan
Active Contributor
0 Kudos

You can only add a tab in the production order screen. In the tab view you need to add your z-fields. You need to do that with exit PPCO0012. Sit with your ABAP developer, it should be pretty straight forward.

Example:

former_member504450
Participant
0 Kudos

Hello Jeevan

How can i create this subscreen SAPLXCO1? with se80?

Can you give me a short descirpiton.

Regards, Sven

sjeevan
Active Contributor
0 Kudos

Use SE51, enter program name as SAPLXCO1 and screen name as 0100 and create it as subscreen (attributes section).

Click on the Layout button create field descriptions and fields. The field names will appear in element list tab.

You can control these fields (if you want to allow input or make them grey-out) in the include ZXCO1O01

Sample code below:

module screen_fields output.

*

   loop at screen.

     if screen-name = 'AUFK-ZZ_YOUR_FIELD1'    or

        screen-name = 'AUFK-ZZ_YOUR_FIELD2'    or

        screen-name = 'AUFK-ZZ_YOUR_FIELD3'.

       if sy-tcode = 'CO03'.

         screen-input = '0'.

       else.

         screen-input = '1'.

       endif.

       modify screen.

     endif.

   endloop.

*

endmodule.   

former_member504450
Participant
0 Kudos

Hello

I define module test in ZXCO1O01, but i is not called. what do i wrong?

Thanks Sven

sjeevan
Active Contributor
0 Kudos

Did you activate the entire project in CMOD?

User_exits

Screen_exits

(or)

Customer_exits

Also, you need to add the customer fields to in the structure CI_AUFK.

in the includes ZXCO1U11 and ZXCO1U12and write code like below (the includes belong to FMs EXIT_SAPLCOKO1_001 and EXIT_SAPLCOKO1_002):

aufk-zz_your_field1    = i_caufvd-zz_your_field1.

aufk-zz_your_field2    = i_caufvd-zz_your_field2.

aufk-zz_your_field3    = i_caufvd-zz_your_field3.

Former Member
0 Kudos

Hi Jeevan,

Is possible to create more than 1 tab in production order? how to do?

I saw in your example that has more than one.

Regards,

Kleber

Answers (5)

Answers (5)

former_member184752
Active Participant
0 Kudos

Dear Villeroy ,

As suggested by the  Jeevan and others ,

You can only add a tab in the production order screen.

In this new customized tab view you can add your z-fields.

This new tab screen would be available in CO01/2/3.

You need to do that with exit PPCO0012.

It could be addressed with  your ABAP developer,

Regard's

Tallha Sonalkar

Former Member
0 Kudos

Hi

With exit PPCO0012 and help of technical person, you can add upto 8 extra field for production order.

Regards,
Srini

krishna_chandra5
Active Contributor
0 Kudos

Hi,

     I think the following enhancement can satisfy your requirement.

PPCO0012     Production Order: Display/Change Order Header Data

After activating this, a new sub screen will be created in the production order header, where you can add your Z fields.

Check and revert back.

Regards,

Krishna Chandra

former_member928196
Active Participant
0 Kudos

Hi,

CAn you check for the screen exits option in the SPRO or you can ask the technical person to check for this, they can help you in this.

Regards,

Amol Kale

former_member504450
Participant
0 Kudos

Can nobody help me?