Application Development and Automation 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: 
Read only

exit regarding iw31

Former Member
0 Likes
845

hi,

can somebody tell me how to capture the order number before commit.

ex. i am using exit regarding iw31 ..after save only i will get the order number by rule.

but i want the number before save so that i can use this number in my exit program.

find below details:

so here i am fetching aufnr value from aufk table in where conditionn CAUFVD_IMP-aufnr.

but the value is not coming in iw31 but coming in iw32.

i want at the time of iw31...how to get ?????

FUNCTION EXIT_SAPLCOIH_009.

*"----


""Lokale Schnittstelle:

*" IMPORTING

*" VALUE(CAUFVD_IMP) LIKE CAUFVD STRUCTURE CAUFVD

*" VALUE(TRTYP) LIKE TC10-TRTYP

*" EXPORTING

*" REFERENCE(RELEASE_ORDER) TYPE XFLAG

*"----


INCLUDE ZXWOCU07.

ENDFUNCTION.

hi,

can somebody tell me how to capture the order number before commit.

ex. i am using exit regarding iw31 ..after save only i will get the order number by rule.

but i want the number before save so that i can use this number in my exit program.

find below details:

so here i am fetching aufnr value from aufk table in where conditionn CAUFVD_IMP-aufnr.

but the value is not coming in iw31 but coming in iw32.

i want at the time of iw31...how to get ?????

FUNCTION EXIT_SAPLCOIH_009.

*"----


""Lokale Schnittstelle:

*" IMPORTING

*" VALUE(CAUFVD_IMP) LIKE CAUFVD STRUCTURE CAUFVD

*" VALUE(TRTYP) LIKE TC10-TRTYP

*" EXPORTING

*" REFERENCE(RELEASE_ORDER) TYPE XFLAG

*"----


INCLUDE ZXWOCU07.

ENDFUNCTION.

3 REPLIES 3
Read only

Former Member
0 Likes
660

Hi ,

Only when the data in iw31 is saved Ordered No is generated.

So i tried this exit ( IWOC0003 )at point of save .. still order no is not captured .

So you can try Implicit Enhancement at the end of the output.

Regards,

Vinu.R.

Read only

0 Likes
660

hi,

thanks for ur valuable reply..

can u just suggest how to write the logic for implicit enhancement.

just give some idea..because user wants it ..

please..

Read only

peter_atkin
Active Contributor
0 Likes
660

ramkunat,

You can do it in IWO10009 by using a PERFORM XYZ ON COMMIT statement.

Or you can use user-exit PPCO0001.

PeteA

[www.pjas.com]