Skip to Content
avatar image
Former Member

which user exit can be use before production order creating?

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.

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

1 Answer

  • Best Answer
    avatar image
    Former Member
    Sep 03, 2008 at 03:48 PM

    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

    Add comment
    10|10000 characters needed characters exceeded