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

Sy-ucomm for a button

Former Member
0 Likes
1,829

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

4 REPLIES 4
Read only

Former Member
1,057

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

Read only

0 Likes
1,057

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

Read only

0 Likes
1,057

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

Read only

VikasB
Active Participant
0 Likes
1,057

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..