2008 Apr 29 10:05 AM
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
2008 Apr 29 11:46 AM
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
2008 Apr 29 10:28 AM
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
2008 Apr 29 10:38 AM
Hi,
Check the BADI MB_DOCUMENT_BADI,And see the documentation.
Regards
Kiran Sure
2008 Apr 29 11:46 AM
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
| User | Count |
|---|---|
| 4 | |
| 2 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |