Skip to Content
0
Former Member
Dec 01, 2008 at 03:39 PM

[HELP] - PPCO0001

77 Views

Hello SAP Gurus,

I am using exit PPCO0001 with the following code:

data: mid type sy-msgid value 'Z_PP_001',

mtype type sy-msgty value 'I',

num type sy-msgno value '012'.

if header_table-werks = 'A080' and position_table-charg = ''.

select * from mara into corresponding fields of zmara

where matnr = header_table-plnbez

and xchpf = 'X'.

if sy-subrc = 0.

message id mid type mtype number num.

endif.

endselect.

endif.

In CO01 if I don't have the batch number I receive a message, when i click OK and BACK the system gives me a dump...

Can someone help me with this?

Thanks in advance,

Adelmo