2007 Dec 13 11:50 PM
Hi Experts,
Can anyone please tell me about the sy-ucomm for message button in ME22N transaction and then one more button Repeat Output.
My requirement is i have to re send an IDOC when someone changes the PO and press the repeat output. For this i am using a user exit. When I am opening transaction ME22N it goes to that exit,
to resend IDOC i have written this code.
IF sy-tcode EQ 'ME22N'.
IF sy-ucomm EQ 'MENACH' . " message button
IF sy-ucomm EQ 'V70R'. " repeat output button
code to resend IDOC.
ENDIF.
ENDIF.
The problem is while debugging i found that when i press Message buttion at sy-ucomm EQ 'MENACH' it gives sy-subrc = 4, it is not taking sy-ucomm MENACH.
Can ANyone please tell me the exact sy-ucomm for Message button in ME22N.
Regards
Nik
Hi Experts,
Can anyone please tell me about the sy-ucomm for message button in ME22N transaction and then one more button Repeat Output.
My requirement is i have to re send an IDOC when someone changes the PO and press the repeat output. For this i am using a user exit. When I am opening transaction ME22N it goes to that exit,
to resend IDOC i have written this code.
IF sy-tcode EQ 'ME22N'.
IF sy-ucomm EQ 'MENACH' . " message button
IF sy-ucomm EQ 'V70R'. " repeat output button
code to resend IDOC.
ENDIF.
ENDIF.
The problem is while debugging i found that when i press Message buttion at sy-ucomm EQ 'MENACH' it gives sy-subrc = 4, it is not taking sy-ucomm MENACH.
Can ANyone please tell me the exact sy-ucomm for Message button in ME22N.
Regards
Nik
2007 Dec 14 12:24 AM
Move the cursor on to the button using the TAB button. and press F1.
You can find the Function Code of that particular button.
BUt, i think there is a flaw in your approach. You have to probably do some configuration in order to autotomatically trigger the idoc.
Regards,
Ravi Kanth Talagana
2007 Dec 14 1:17 AM
Hi Ravi,
Do u have any idea tore send IDOC when there is a change in PO. I am not getting any BADI / Exit for that thats y i tried that approach.
If u have then it will be helpful for me.
Regards,
Nik
2007 Dec 14 1:29 AM
HI Nikhil,
You should ask your MM Functional Consultant.
I know that you should have to maintain a Partner profile in we20 transaction and maintain the output control paramters like
Output type as NEU and Process Code a ME11.
then you should also configure your output determination procedure using SPRO (Take help of the functional guy).
Regards,
Ravi Kanth Talagana
2007 Dec 14 6:57 AM
Hi,
you can try out for Customer Function Module EXIT_SAPLEINM_002.
it will have one SAP provided z include.
you can insert your code there.
Regards,
Vikas.
Plz reward if helpful..
| User | Count |
|---|---|
| 3 | |
| 2 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |