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

MIGO USER-EXIT

Former Member
0 Likes
2,363

Hi

i am using t-code migo to cancel material document, and i want to add some code user-exit EXIT_SAPMM07M_001 or EXIT_SAPLIE01_007, it need in only cancel of material document.

but i do not know how to distinguish cancel of material document in MIGO,

i can not distinguish process in MIGO because sy-tcode always show MIGO in several process

thanks in advance.

Benjamin

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
1,533

Hi,

Please note in exit EXIT_SAPMM07M_001 control goes there even if you select 'Check' bytton, hence the first statement in your exit shoyld be CHECK sy-ucomm = 'OK_POST'. You can pull the data from the structure from GODYNPRO. copy the following 2 statements as it is.

FIELD-SYMBOLS: <fs> TYPE ANY.

DATA: w_c1(30) VALUE '(SAPLMIGO)GODYNPRO-ACTION'.

ASSIGN (w_c1) TO <fs>.

Now <fs> will contain the action i.e. 'A03' for cancellation.

So check <FS> = 'A03' .

Your logic......

I hope this helps,

Regards

Raju Chitale

Hi,

Please note in exit EXIT_SAPMM07M_001 control goes there even if you select 'Check' bytton, hence the first statement in your exit shoyld be CHECK sy-ucomm = 'OK_POST'. You can pull the data from the structure from GODYNPRO. copy the following 2 statements as it is.

FIELD-SYMBOLS: <fs> TYPE ANY.

DATA: w_c1(30) VALUE '(SAPLMIGO)GODYNPRO-ACTION'.

ASSIGN (w_c1) TO <fs>.

Now <fs> will contain the action i.e. 'A03' for cancellation.

So check <FS> = 'A03' .

Your logic......

I hope this helps,

Regards

Raju Chitale

3 REPLIES 3
Read only

Former Member
0 Likes
1,533

Hi Benjamin,

The user-exits

EXIT_SAPMM07M_001 : Customer Function Exit: Set Segment Text in Material Document : MBCF0002 in t-code SMOD

EXIT_SAPLIE01_007 : Serial Numbers, User Exit in Goods Movement : IQSM0007 in t-code SMOD

doesn't suit the requirement mentioned ...please see the exporting parameters in the 2 cases....

I am not sure which user exit will serve your purpose..also we need to be checking sy-ucomm for the cancel button...for a single transaction the t-code remains the same...

Please check the BADIs also ....

also see if the following exit is helpful

EXIT_SAPLMBMB_001 : Customer Function Exit in the Case of Updating a Material Document

Regards

Byju

Read only

Former Member
0 Likes
1,533

Hi,

Check the BADI MB_DOCUMENT_BADI,And see the documentation.

Regards

Kiran Sure

Read only

Former Member
0 Likes
1,534

Hi,

Please note in exit EXIT_SAPMM07M_001 control goes there even if you select 'Check' bytton, hence the first statement in your exit shoyld be CHECK sy-ucomm = 'OK_POST'. You can pull the data from the structure from GODYNPRO. copy the following 2 statements as it is.

FIELD-SYMBOLS: <fs> TYPE ANY.

DATA: w_c1(30) VALUE '(SAPLMIGO)GODYNPRO-ACTION'.

ASSIGN (w_c1) TO <fs>.

Now <fs> will contain the action i.e. 'A03' for cancellation.

So check <FS> = 'A03' .

Your logic......

I hope this helps,

Regards

Raju Chitale