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: 

iw42 + user exits

Former Member
0 Kudos

Hello Friends,

I need to know which user-exits or FM is called with in iw42, the conformation is done ?

Regards,

Message was edited by:

Shah H

11 REPLIES 11

Former Member
0 Kudos

Hi

Check the following Exits

CMFU0001 Define customer-specific screen layout

CMFU0002 Set parameters for time confirmation and goods movements

Reward points if useful

Regards

Anji

0 Kudos

Hi Anji,

in user exit CMFU0002, the FM is EXIT_SAPLCMFU_002, and inside this FM there is one include, and I can not enter inside this include ?

Any idea ?

Regards,

Message was edited by:

Shah H

0 Kudos

you have to double click on the inlcude to create it. you get a warning that it doesn't exist which is right because it is not yet created. just continue and you get it

0 Kudos

Hi Shah,

First create a Project in CMOD and save it, enter this Enhancment CMFU0002 in that project.

The exit CMFU0002 is the right one to suit your requirement

use the FM is EXIT_SAPLCMFU_002

double click on the Zinclude

It gives some warning

enter

it will ask for a dev class , give the right one and save

go to the code and write the code

YOU CAN CHECK THE FIELD

C_TCORU-AUERU = 'X' or not

this is the field which tells whether the Confirmation is Partiall or FINAL.

so check this field and write the code.

it will solve your requirement.

Reward points if useful

Regards

Anji

0 Kudos

Hi Anji,

Many thanks for your input...

Actually I have to check also the field ( KTSCH ) in operation ? ( have to check the value of this field ).

And if the ktsch has a right value and is final conformation, then only have to fire one event....

so u think, to check the operation field, it is the correct FM ?

Regards,

0 Kudos

Hi

You better use the Enhancment CONF0001 for your requirement

Its include has the structure I_AFVGD

It has the field KTSCH and you can straight away check this field value

Coming to the field XRAGL

this is in AFRU table

You have to fetch this table field and have to check

Using the RUECK and RMZHL fields (which are key fields in the table AFRU)which are present in the structure I_AFVGD write a select to the table AFRU and fetch the field XRAGL and validate it

I hope this will solve the query of you perfectly.

Reward Points if useful

Regards

Anji

0 Kudos

Hi Anji,

Is there any doc regarding iw42, I have no idea what is going on, and how to prevent good recipt to be happen when it is partially confirmed ?

Regards,

0 Kudos

goods receipt partially confirmed means that you are not yet finished with receiving all the product. the goods that are already received are also actually received so the goods movement also is executed. you are only still waiting for more goods to be delivered . when the rest is delivered you set 'total confirmation'

kind regards

arthur

0 Kudos

hi, smidt,

Thanks for your reply,

Actually is there any way, that I can prevent goods movement to be happened, when it is partially confirmed ?

Regards,

Former Member
0 Kudos

Hi Shah,

look at exits:

CONF0001

CONFPM01

CONFPM02

CONFPM03

CONFPM04

CONFPM05

CMFU0001

CMFU0002

Regards, Dieter

0 Kudos

Hi,

Actually my requirement is that the conformation should only executed when it is final confirmation ? Where I can check that the 'X' is set for the final conformation `?

Secondly can you pls let me know how to find the user.exit when one knows the Tcode ?

Regards,

Message was edited by:

Shah H