Application Development 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: 

which user exit can be use before production order creating?

Former Member
0 Kudos

which user exit can be use before production order creating?

i want to check AFPO data,then show error message before production order creating.

1.i try to use PPCO0001( enhancement when saving the order) to check AFPO data, then show some error message,sap system will generate a abap down error.

2.i try to use PPCO0007(Exit when saving production order),

i can show error message,but i can't check AFPO's data.

1 ACCEPTED SOLUTION

Former Member

Hi,

You can access AFPOD structure using field symbols.

Try below mentioned code in routing:

constants: c_afpod TYPE char30 VALUE '(SAPLCOKO1)AFPOD' .

FIELD-SYMBOLS: <fs_afpod> TYPE ANY .

data: wa_afpod TYPE afpod.

ASSIGN (c_afpod) TO <fs_afpod>.

wa_afpod = <fs_afpod>.

Then later you can use wa_afpod in exit PPCO0007. Hope this will work for you.

Sumit

2 REPLIES 2

Former Member

Hi,

You can access AFPOD structure using field symbols.

Try below mentioned code in routing:

constants: c_afpod TYPE char30 VALUE '(SAPLCOKO1)AFPOD' .

FIELD-SYMBOLS: <fs_afpod> TYPE ANY .

data: wa_afpod TYPE afpod.

ASSIGN (c_afpod) TO <fs_afpod>.

wa_afpod = <fs_afpod>.

Then later you can use wa_afpod in exit PPCO0007. Hope this will work for you.

Sumit

0 Kudos

very good solutions.thank you very much!:)