Skip to Content

Check FM with exception in change the purchase order

Hello

I want to trigger the mail when purchase order is changed.SO I have developed the workflow.but when I change the PO I am getting the excretion in swel Check FM with exception.

I have attached all screens shot. can anyboday help me with where i am doing the mistake

Please find the below screen shot of WF

Swel T code trance

SWE2/ SWETYPV screeb shot

po1.jpg (17.2 kB)
po2.jpg (50.7 kB)
swels.jpg (20.4 kB)
swe2.jpg (69.6 kB)
Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

3 Answers

  • Aug 24, 2017 at 06:46 AM

    Hi,

    Please check and analyse the FM SGOSSUB_CHECK_FB , from there problem arises.

    Thanks

    Add comment
    10|10000 characters needed characters exceeded

  • Aug 25, 2017 at 01:11 PM

    Hi ABAPer (and I second Aditya's comment that it feels better to address a person)

    I think the issue is on your event linkage. When the PO changes, you want SAP to raise an event that your workflow can react to.

    In my experience, using SWW_WI_CREATE_VIA_EVENT accomplishes this. Please change your entry cia SWETYPV, and try again.

    Good luck,

    Sue

    Add comment
    10|10000 characters needed characters exceeded

    • and I second Aditya's comment that it feels better to address a person

      +1 here. I feel much less motivated to answer an anonymous post than helping a real person.

  • Aug 24, 2017 at 10:28 AM

    hi ABAPer,

    how do I address you, its always good to maintain a name rather than (ABAPER) :) because then I feel like communicating with a person :)

    Anyways.

    what is your basic requirement, is it that you want to send a message to a particular person whenever PO is changed?

    If yes 2 ways possible, either build a WF and use SendMail to send message or use the GOSSUB which I see in your screenshot.

    WF is straight forward, you put the BUS2012.CHANGE event in your WF and it will trigger whenever PO is changed.

    GOSSUB thing is a setting done in GOS. This is done where you have no need to build WF and send a small text to user who has subscribed for this feature.

    In your case I see this FM related to Subscribe being used, so let know if you want a WF or this feature.

    Hope it helps.

    Aditya V

    Add comment
    10|10000 characters needed characters exceeded

    • Yes , as per our comments it correct

      I want to send mail when PO is changed.

      Right now I am trying with WF process can you please show me both process for the same it would be helful.