Skip to Content
0
Former Member
Apr 12, 2010 at 07:55 AM

How to apply customer field in PPCO0006 at CO01 ?

646 Views

Hi.

I have a question when I attempt to add new customer field in "CI_AUFK" component type , and apply USER-EXIT "PPCO0006" to CO01.

I added new field in "CI_AUFK", new field name is "CHARG" and type is "CHARG_D', because I want to handle Batch Number by force when I execute "CO01".

For example> when I execute CO01 and I input parameters(material, plant, order type) and strike ENTER key, Always the "12345" batch number is input in BATCH field at "Goods receipt" tab automately.

So I acted as the below order.

1. Added new field "CHARG" in "CI_AUFK" structure.

There are Foreign Key with "MCHA".

2. I created new Project "ZPP06" at CMOD.

There are "PPCO0006" Enhancement and "EXIT_SAPLCOZF_003" Function Exit.

3. "EXIT_SAPLCOZF_003" Function Exit have a "ZXCOZU03" include,

and I added some coding like below.

-


IF SY-TCODE = 'CO01'.

IF AFPOD_IMP-CHARG = ''.

HEADER_CUST_EXP-CHARG = '1010400001'.

ENDIF.

ENDIF.

-


4. All Activeted.

5. The result is NOT change when I execute CO01

In other words, the Batch Number field is BLANK... when I execute CO01.

I don't know exactly why didn't apply User-Exit for new field I created??

And How to apply new field??

Thanks and Best Regards.

Mr.KIM.

Edited by: Matt on Apr 12, 2010 10:06 AM - removed "urgency" from title