cancel
Showing results for 
Search instead for 
Did you mean: 

Purchase Requisition Release status is not getting changed in EBAN table through Workflow

Former Member
0 Kudos

I have created my Workflow to change release status of purchase requisition where I used built in workflow bus2009 and method inforesetrelease and I have used the event released in the header of the workflow as and when the PR has been released it triggering my workflow and waiting for the user approval but when i click on reject the status of the PR is not getting changed. I have also defined the release strategies and configured it for item release.

I am unable to trace out. It will be a great help.

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi,

Kindly check manually execute BO method  'Cancel' for your PR.Whether its working or not(Status update)

May be some time problem with the Status profile so kindly check that also.

Regards,

ragav

Former Member
0 Kudos

There is not method Cancled but there is a method ResetRelease. I tried using this method but it not taking release code. the release code is there in both container object and as well as workflow object. can u please tell me the Function module for canceling release of PR

Former Member
0 Kudos

Hi,

  call function 'BAPI_REQUISITION_RESET_REL_GEN'

    exporting

      number            = object-key-number

      rel_code          = relcode

    importing

      rel_indicator_new = relindicatornew

      rel_status_new    = relstatusnew

    tables

      return            = return

    exceptions

      others            = 01.

  case sy-subrc.

Regards,

Ragav

Former Member
0 Kudos

Hi,

Thanks for the reply the function module is changing the release status of PR. I will create my own event in my workflow and use this function module. This is a great help for me.

thank you,

with regards,

Ch.Ravi Shankar

Former Member
0 Kudos

hi,

I have created BO as subtype of  bus2105 and used released event and resetrelease method of it in my workflow. When I am executing the WF the status of the PR is getting changed in EBAN table. But when I create a PR and Release it my workflow is getting treiggered and by going to SBWP and click on reject option EBAN table is not getting updated I think the WF is not getting the values of PR Number and Release Code. How to deal with this. It will be a great help.

thnaks.

with regards.

Ch.Ravi Shankar

Answers (2)

Answers (2)

Former Member
0 Kudos

Hi Ravi,

  See the attach screen shot. The approval step outcomes are linked with events. In custom workflow for PR these events not get triggered that's the reason Cancel through workflow in case of custom PR workflow will not work as expected. We also faced the similar kind of issue.

Thnx,

Prakash

Former Member
0 Kudos

hi,

thank you for your reply its really a good information. Once I am done with my work I will update you.

thank you for your kind and quick response.

with regards,

ch.ravi shankar.

Former Member
0 Kudos

hi Prakash,

I have created BO as subtype of  bus2105 and used released event and resetrelease method of it in my workflow. When I am executing the WF the status of the PR is getting changed in EBAN table. But when I create a PR and Release it my workflow is getting triggered and by going to SBWP and click on reject option EBAN table is not getting updated I think the WF is not getting the values of PR Number and Release Code. How to deal with this. It will be a great help.

Thanks.

with regards.

Ch.Ravi Shankar.

Former Member
0 Kudos

Dear Ravi,

  I faced all these issue which you are dealing with. My final solution is as I explained above- Create a new version of template 20000077 and do require modification as u want.

Cheers,

Prakash

Former Member
0 Kudos

Hi Ravi,

  Have you checked whether it get saved if you are doing directly from T-Code ME29N ? Are you using standard template WS20000073 or the custom one ? Its interesting. I faced the same issue. if you will use standard workflow template then only it will work. In the outcomes of the approval step please check one event get triggered which update the data base in case of Cancel of PR Release .

Let me know if you have further doubt.

Cheers,

Prakash

Former Member
0 Kudos

hi Prakash,

Thank you for your quick reply.

ME29N TC is to release Purchase Orders. I have already created Workflow for Purchase Orders when the release of purchase order is canceled it gets updated in the table EKKO.  In case of Purchase requisition the event that I am using in my custom workflow is Released is the only event which I am using and I am using the BO BUS2009 in my workflow where I am using the standard method that is provided by sap in BUS2009 inforesetrelease to cancel release. But its not changing the status of the table neither the PR status is getting changed.

I think the statndard BO BUS2009 wont take PR number as input. As you said u faced the same issue can u elaborate a bit more in how to approach.

thanks and regards.

ch.ravi shankar

Former Member
0 Kudos

Few questions:

1.) What is the T-Code to release PR ?

2.) In which SAP Version you are working ?

The approach: You have to use  SAP standard template for PR 20000073. After ECC 5.0 SAP allowed changes in standard SAP template. Just open the WS20000073 in TC PFTC in change mode and create new version of workflow and do your changes.

Cheers,

Prakash

Former Member
0 Kudos

hi prakash,

1) TC to release PR is me54n

2) I am working on ecc7

I will try out what you said and let you know.

with regards,

ch.ravi shankar

Former Member
0 Kudos

the workflow that you have suggested is for change release ECO.

Former Member
0 Kudos

Sorry its 20000077